{
  "resourceType": "StructureDefinition",
  "id": "shr-base-Informant-extension",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR Informant Extension</b></p>\n  <p>The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program.</p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.base.Informant"
    }
  ],
  "version": "0.0.1",
  "name": "SHR Informant Extension",
  "title": "SHR Informant 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 entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program.",
  "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:informant",
        "path": "Extension",
        "short": "SHR Informant Extension",
        "definition": "The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "choice-1",
            "severity": "error",
            "human": "shr-base-Informant-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:informant.extension:string",
        "path": "Extension.extension",
        "sliceName": "string",
        "definition": "The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/primitive-string-extension"
          }
        ]
      },
      {
        "id": "Extension:informant.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:informant.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:informant.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:informant.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:informant.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:informant.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:informant.url",
        "path": "Extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension"
      },
      {
        "id": "Extension:informant.value[x]",
        "path": "Extension.value[x]",
        "min": 0,
        "max": "0"
      }
    ]
  }
}