{
  "resourceType": "StructureDefinition",
  "id": "2135c127-281b-47ae-8dae-a3806da638bc",
  "meta": {
    "lastUpdated": "2019-04-17T13:55:51.6571996+00:00"
  },
  "url": "http://fhir.de/StructureDefinition/encounter-de-p21-loc",
  "version": "0.1-WORK",
  "name": "encounter-de-p21-loc",
  "title": "Encounter-Loc, deutsches §21 KHEntgG-Profil (Version 0.1)",
  "status": "draft",
  "date": "2019-04-17T13:55:52.135+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "KHEntgG",
      "name": "Datensatzbeschreibung nach Krankenhausentgeltgesetz"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Encounter",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Encounter",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Encounter.identifier",
        "path": "Encounter.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "type.coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Encounter.identifier:Fallnummer",
        "path": "Encounter.identifier",
        "sliceName": "Fallnummer",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Encounter.identifier:Fallnummer.type",
        "path": "Encounter.identifier.type",
        "min": 1
      },
      {
        "id": "Encounter.identifier:Fallnummer.type.coding.system",
        "path": "Encounter.identifier.type.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0203",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://hl7.org/fhir/v2/0203"
        }
      },
      {
        "id": "Encounter.identifier:Fallnummer.type.coding.code",
        "path": "Encounter.identifier.type.coding.code",
        "min": 1,
        "fixedCode": "MR"
      },
      {
        "id": "Encounter.identifier:Fallnummer.system",
        "path": "Encounter.identifier.system",
        "fixedUri": "http://hl7.org/fhir/v2/0203"
      },
      {
        "id": "Encounter.identifier:Fallnummer.value",
        "path": "Encounter.identifier.value",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "KH-internes Kennzeichen des Behandlungsfalls",
            "comment": "FAB.CSV.4"
          }
        ]
      },
      {
        "id": "Encounter.subject.identifier.system",
        "path": "Encounter.subject.identifier.system",
        "fixedUri": "http://fhir.de/NamingSystem/gkv/kvid-10"
      },
      {
        "id": "Encounter.subject.identifier.value",
        "path": "Encounter.subject.identifier.value",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Krankenversichertennummer (Versicherten-ID)",
            "comment": "Fall.CSV.5"
          }
        ]
      },
      {
        "id": "Encounter.hospitalization.origin.identifier",
        "path": "Encounter.hospitalization.origin.identifier",
        "patternIdentifier": {
          "system": "http://fhir.de/NamingSystem/arge-ik/iknr"
        }
      },
      {
        "id": "Encounter.hospitalization.origin.identifier.value",
        "path": "Encounter.hospitalization.origin.identifier.value",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Institutionskennzeichen des verlegenden Krankenhauses",
            "comment": "Fall.CSV.30"
          }
        ]
      },
      {
        "id": "Encounter.location.location",
        "path": "Encounter.location.location",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/location-de-p21-fab"
          }
        ]
      },
      {
        "id": "Encounter.location.location.identifier.value",
        "path": "Encounter.location.location.identifier.value",
        "min": 1,
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://fhir.de/ValueSet/fachabteilungen"
        },
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Fachabteilung",
            "comment": "FAB.CSV.5"
          }
        ]
      },
      {
        "id": "Encounter.location.period.start",
        "path": "Encounter.location.period.start",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Datum der Aufnahme in die Fachabteilung",
            "comment": "FAB.CSV.6"
          }
        ]
      },
      {
        "id": "Encounter.location.period.end",
        "path": "Encounter.location.period.end",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Datum der Verlegung-/Entlassung aus der Fachabteilung",
            "comment": "FAB.CSV.7"
          }
        ]
      },
      {
        "id": "Encounter.serviceProvider.identifier",
        "path": "Encounter.serviceProvider.identifier",
        "patternIdentifier": {
          "system": "http://fhir.de/NamingSystem/arge-ik/iknr"
        }
      },
      {
        "id": "Encounter.serviceProvider.identifier.value",
        "path": "Encounter.serviceProvider.identifier.value",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Institutionskennzeichen des Krankenhauses",
            "comment": "Krankenhaus..CSV.1"
          }
        ]
      },
      {
        "id": "Encounter.partOf",
        "path": "Encounter.partOf",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://gefyra.de/StructureDefinition/encounter-de-khentgg-strict-demo"
          }
        ]
      }
    ]
  }
}