{
  "resourceType": "StructureDefinition",
  "id": "shr-base-Author-extension",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR Author Extension</b></p>\n  <p>The person or organization who created the entry and is responsible for (and may certify) the content.</p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.base.Author"
    }
  ],
  "version": "0.0.1",
  "name": "SHR Author Extension",
  "title": "SHR Author Extension",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "description": "The person or organization who created the entry and is responsible for (and may certify) the content.",
  "fhirVersion": "3.0.1",
  "kind": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "*"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension:author",
        "path": "Extension",
        "short": "SHR Author Extension",
        "definition": "The person or organization who created the entry and is responsible for (and may certify) the content.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "choice-1",
            "severity": "error",
            "human": "shr-base-Author-extension SHALL have either extension('string') or extension('patient') or extension('group') or extension('device') or extension('participant') or extension('relatedperson') or extension('organization')",
            "expression": "( extension('string').url | extension('patient').url | extension('group').url | extension('device').url | extension('participant').url | extension('relatedperson').url | extension('organization').url ).distinct().count() == 1"
          }
        ]
      },
      {
        "id": "Extension:author.extension:string",
        "path": "Extension.extension",
        "sliceName": "string",
        "definition": "The person or organization who created the entry and is responsible for (and may certify) the content.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/primitive-string-extension"
          }
        ]
      },
      {
        "id": "Extension:author.extension:patient",
        "path": "Extension.extension",
        "sliceName": "patient",
        "definition": "A person in the role of a patient, including extended demographic information about the subject of this health record.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Patient-extension"
          }
        ]
      },
      {
        "id": "Extension:author.extension:group",
        "path": "Extension.extension",
        "sliceName": "group",
        "definition": "A set of entities (personnel, material, or places) to be considered together. May be a pool of like-type resources, a team, or combination of personnel, material and places.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Group-extension"
          }
        ]
      },
      {
        "id": "Extension:author.extension:device",
        "path": "Extension.extension",
        "sliceName": "device",
        "definition": "A specific durable physical device used in diagnosis or treatment. The value is the coding for a type of device, for example, a CPAP machine. The same device might be used on multiple patients.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-device-Device-extension"
          }
        ]
      },
      {
        "id": "Extension:author.extension:participant",
        "path": "Extension.extension",
        "sliceName": "participant",
        "definition": "An object (usually a Person, Party, or Organization but potentially a device or other Entity) that participates in a task or activity.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-Participant-extension"
          }
        ]
      },
      {
        "id": "Extension:author.extension:relatedperson",
        "path": "Extension.extension",
        "sliceName": "relatedperson",
        "definition": "A person in a role defined in relationship to a patient",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-RelatedPerson-extension"
          }
        ]
      },
      {
        "id": "Extension:author.extension:organization",
        "path": "Extension.extension",
        "sliceName": "organization",
        "definition": "A social or legal structure formed by human beings.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Organization-extension"
          }
        ]
      },
      {
        "id": "Extension:author.url",
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension"
      },
      {
        "id": "Extension:author.value[x]",
        "path": "Extension.value[x]",
        "min": 0,
        "max": "0"
      }
    ]
  }
}