{
  "resourceType": "StructureDefinition",
  "id": "3bb3dbac-7bd0-42a6-8a02-829a99ed2cd2",
  "meta": {
    "lastUpdated": "2020-01-10T15:39:29.518+00:00"
  },
  "url": "http://digen.nublar.de/fhir/StructureDefinition/DigenNotfallpass",
  "name": "DigenNotfallpass",
  "status": "draft",
  "date": "2020-01-10T15:39:28.6994113+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://digen.nublar.de/fhir/StructureDefinition/DigenNotfallpassAbstract",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:medicationSection",
        "path": "Composition.section",
        "sliceName": "medicationSection"
      },
      {
        "id": "Composition.section:medicationSection.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenDocumentReferenceNFP",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:medicationSection.emptyReason",
        "path": "Composition.section.emptyReason",
        "comment": "When the emergency pass is being created for the first time, all the sections are emtpy (without entry) and the emptyReason = notasked. Depending on the swipes of the user the entryReason changes. In case the user is choosing to connect the active medication with the emergency pass, the emptyReason is being removed and a medication document will be put in an emergency folder. In this section the document will be referenced as documentReference. If a section has no entry the element text must be present."
      },
      {
        "id": "Composition.section:diseaseSection",
        "path": "Composition.section",
        "sliceName": "diseaseSection"
      },
      {
        "id": "Composition.section:diseaseSection.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAbrechnung",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAlphaID",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenConditionText",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:emergencyDocumentSection",
        "path": "Composition.section",
        "sliceName": "emergencyDocumentSection"
      },
      {
        "id": "Composition.section:emergencyDocumentSection.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenDocumentReferenceNFP",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:emergencyDocumentSection.emptyReason",
        "path": "Composition.section.emptyReason",
        "comment": "When the emergency pass is being created for the first time, all the sections are emtpy (without entry) and the emptyReason = notasked. Depending on the swipes of the user the entryReason changes. In case the user is choosing to connect documentswith the emergency pass, the emptyReason is being removed and the documents will be put in an emergency folder. In this section the document will be referenced as documentReference. If a section has no entry the element text must be present."
      },
      {
        "id": "Composition.section:allergySection",
        "path": "Composition.section",
        "sliceName": "allergySection"
      },
      {
        "id": "Composition.section:allergySection.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAbrechnung",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenConditionAlphaID",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://digen.nublar.de/fhir/StructureDefinition/DigenConditionText",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "Composition.section:primaryCareProviderSection",
        "path": "Composition.section",
        "sliceName": "primaryCareProviderSection"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry",
        "path": "Composition.section.entry",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization",
            "aggregation": [
              "bundled",
              "referenced"
            ]
          }
        ]
      }
    ]
  }
}