{
  "resourceType": "StructureDefinition",
  "id": "bd201925-ea9f-4694-afa1-0c2e87eb61b8",
  "meta": {
    "lastUpdated": "2020-04-03T12:21:43.955+00:00"
  },
  "url": "http://digen.nublar.de/fhir/StructureDefinition/DigenNotfallpassInbound",
  "name": "DigenNotfallpassInbound",
  "status": "draft",
  "date": "2020-04-03T12:21:42.2951215+00:00",
  "fhirVersion": "3.0.2",
  "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.section:medicationSection",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "medicationSection"
      },
      {
        "id": "Composition.section:medicationSection.text",
        "path": "Composition.section.text",
        "min": 1
      },
      {
        "id": "Composition.section:medicationSection.entry",
        "path": "Composition.section.entry",
        "max": "0"
      },
      {
        "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. This section won't have an entries even though it's filled. If a section has no entry the element text must be present."
      },
      {
        "id": "Composition.section:emergencyDocumentSection",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "emergencyDocumentSection"
      },
      {
        "id": "Composition.section:emergencyDocumentSection.text",
        "path": "Composition.section.text",
        "min": 1
      },
      {
        "id": "Composition.section:emergencyDocumentSection.entry",
        "path": "Composition.section.entry",
        "max": "0"
      },
      {
        "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 documents with the emergency pass, the emptyReason is being removed and the documents will be put in an emergency folder. This section won't have an entries even though it's filled. If a section has no entry the element text must be present."
      },
      {
        "id": "Composition.section:primaryCareProviderSection",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
            "valueString": "Section"
          }
        ],
        "path": "Composition.section",
        "sliceName": "primaryCareProviderSection"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry",
        "path": "Composition.section.entry",
        "max": "1"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.reference",
        "path": "Composition.section.entry.reference",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer",
        "path": "Composition.section.entry.identifier",
        "sliceName": "betriebsstaettennummer",
        "example": [
          {
            "label": "Example BSNR",
            "valueIdentifier": {
              "system": "http://fhir.de/NamingSystem/kbv/bsnr",
              "value": "123456789"
            }
          }
        ]
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.use",
        "path": "Composition.section.entry.identifier.use",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.type",
        "path": "Composition.section.entry.identifier.type",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.system",
        "path": "Composition.section.entry.identifier.system",
        "min": 1,
        "fixedUri": "urn:oid:1.2.276.0.76.4.17"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.value",
        "path": "Composition.section.entry.identifier.value",
        "min": 1
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.period",
        "path": "Composition.section.entry.identifier.period",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:betriebsstaettennummer.assigner",
        "path": "Composition.section.entry.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen",
        "path": "Composition.section.entry.identifier",
        "sliceName": "institutionskennzeichen",
        "example": [
          {
            "label": "Example IK Nummer",
            "valueIdentifier": {
              "system": "http://fhir.de/NamingSystem/arge-ik/iknr",
              "value": "160819895"
            }
          }
        ]
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.use",
        "path": "Composition.section.entry.identifier.use",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.type",
        "path": "Composition.section.entry.identifier.type",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.system",
        "path": "Composition.section.entry.identifier.system",
        "min": 1,
        "fixedUri": "urn:oid:1.2.276.0.76.4.5"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.value",
        "path": "Composition.section.entry.identifier.value",
        "min": 1
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.period",
        "path": "Composition.section.entry.identifier.period",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.identifier:institutionskennzeichen.assigner",
        "path": "Composition.section.entry.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Composition.section:primaryCareProviderSection.entry.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Composition.section.entry.display",
        "max": "0"
      }
    ]
  }
}