{
  "resourceType": "StructureDefinition",
  "id": "1447dfcb-1673-4703-b58b-d7b4ee0a39ba",
  "meta": {
    "lastUpdated": "2018-12-17T20:24:52.839+00:00"
  },
  "url": "http://fhir.de/StructureDefinition/TestClaim",
  "version": "0.1-WORK",
  "name": "claim-de-p21",
  "title": "Claim, deutsches §21 KHEntgG-Profil (Version 0.1)",
  "status": "draft",
  "date": "2018-12-17T20:24:52.478+00:00",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "KHEntgG",
      "name": "Datensatzbeschreibung nach Krankenhausentgeltgesetz"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Claim",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Claim",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Claim.identifier.value",
        "path": "Claim.identifier.value",
        "definition": "Klassifizierung nach Schluessel 4: SGB 5 - Anlage 2",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Entgeltart",
            "comment": "Entgelte.CSV.6"
          }
        ]
      },
      {
        "id": "Claim.patient.identifier.system",
        "path": "Claim.patient.identifier.system",
        "fixedUri": "http://fhir.de/NamingSystem/gkv/kvid-10"
      },
      {
        "id": "Claim.patient.identifier.value",
        "path": "Claim.patient.identifier.value",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Krankenversichertennummer (Versicherten-ID)",
            "comment": "Fall.CSV.5"
          }
        ]
      },
      {
        "id": "Claim.billablePeriod.start",
        "path": "Claim.billablePeriod.start",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Abrechnung von",
            "comment": "Entgelte.CSV.8"
          }
        ]
      },
      {
        "id": "Claim.billablePeriod.end",
        "path": "Claim.billablePeriod.end",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Abrechnung bis",
            "comment": "Entgelte.CSV.9"
          }
        ]
      },
      {
        "id": "Claim.insurer.identifier.system",
        "path": "Claim.insurer.identifier.system",
        "fixedUri": "http://fhir.de/NamingSystem/arge-ik/iknr"
      },
      {
        "id": "Claim.insurer.identifier.value",
        "path": "Claim.insurer.identifier.value",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Institutuionskennzeichen der Krankenkasse",
            "comment": "Fall.CSV.7"
          }
        ]
      },
      {
        "id": "Claim.organization.identifier",
        "path": "Claim.organization.identifier",
        "patternIdentifier": {
          "system": "http://fhir.de/NamingSystem/arge-ik/iknr"
        }
      },
      {
        "id": "Claim.organization.identifier.value",
        "path": "Claim.organization.identifier.value",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Institutionskennzeichen des Krankenhauses",
            "comment": "Krankenhaus.CSV.1"
          }
        ]
      },
      {
        "id": "Claim.information.timing[x]",
        "path": "Claim.information.timing[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Claim.information.timing[x]:Tage-ohne-BerechnungBehandlung",
        "path": "Claim.information.timing[x]",
        "sliceName": "Tage-ohne-BerechnungBehandlung",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Tage ohne Berechnung/Behandlung",
            "comment": "Entgelte.CSV.11"
          }
        ]
      },
      {
        "id": "Claim.information.timing[x]:Tag-der-Behandlung-PIA",
        "path": "Claim.information.timing[x]",
        "sliceName": "Tag-der-Behandlung-PIA",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Tag der Behandlung",
            "comment": "Entgelte.CSV.12"
          }
        ]
      },
      {
        "id": "Claim.diagnosis.diagnosis[x]",
        "path": "Claim.diagnosis.diagnosis[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Condition"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/condition-de-p21"
          }
        ],
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "KH-internes Kennzeichen des Behandlungsfalls",
            "comment": "Fall.CSV.4"
          }
        ]
      },
      {
        "id": "Claim.procedure.procedure[x]",
        "path": "Claim.procedure.procedure[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Procedure"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/procedure-de-p21"
          }
        ],
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "KH-internes Kennzeichen des Behandlungsfalls",
            "comment": "Fall.CSV.4"
          }
        ]
      },
      {
        "id": "Claim.item.service",
        "path": "Claim.item.service",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Claim.item.service:Kostenartengruppe",
        "path": "Claim.item.service",
        "sliceName": "Kostenartengruppe"
      },
      {
        "id": "Claim.item.service:Kostenartengruppe.coding",
        "path": "Claim.item.service.coding",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://fhir.de/ValueSet/inek/kostenartengruppe"
        }
      },
      {
        "id": "Claim.item.service:Kostenartengruppe.coding.code",
        "path": "Claim.item.service.coding.code",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Kostenartengruppe",
            "comment": "Kosten.CSV.3"
          }
        ]
      },
      {
        "id": "Claim.item.service:Kostenstellengruppe",
        "path": "Claim.item.service",
        "sliceName": "Kostenstellengruppe"
      },
      {
        "id": "Claim.item.service:Kostenstellengruppe.coding",
        "path": "Claim.item.service.coding",
        "binding": {
          "strength": "preferred",
          "valueSetUri": "http://fhir.de/ValueSet/inek/kostenstellengruppe"
        }
      },
      {
        "id": "Claim.item.service:Kostenstellengruppe.coding.code",
        "path": "Claim.item.service.coding.code",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Kostenstellengruppe",
            "comment": "Kosten.CSV.2"
          }
        ]
      },
      {
        "id": "Claim.item.location[x]",
        "path": "Claim.item.location[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Address"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/location-de-p21-fab"
          }
        ]
      },
      {
        "id": "Claim.item.quantity.value",
        "path": "Claim.item.quantity.value",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Entgeltanzahl",
            "comment": "Entgelte.CSV.10"
          }
        ]
      },
      {
        "id": "Claim.item.unitPrice",
        "path": "Claim.item.unitPrice",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Claim.item.unitPrice:Entgeltbetrag",
        "path": "Claim.item.unitPrice",
        "sliceName": "Entgeltbetrag"
      },
      {
        "id": "Claim.item.unitPrice:Entgeltbetrag.value",
        "path": "Claim.item.unitPrice.value",
        "min": 1,
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Entgeltbetrag",
            "comment": "Entgelte.CSV.7"
          }
        ]
      },
      {
        "id": "Claim.item.unitPrice:Kostenwert",
        "path": "Claim.item.unitPrice",
        "sliceName": "Kostenwert"
      },
      {
        "id": "Claim.item.unitPrice:Kostenwert.value",
        "path": "Claim.item.unitPrice.value",
        "mapping": [
          {
            "identity": "KHEntgG",
            "map": "Kostenwert",
            "comment": "Kosten.CSV.7"
          }
        ]
      },
      {
        "id": "Claim.item.encounter",
        "path": "Claim.item.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter"
          },
          {
            "code": "Reference",
            "targetProfile": "http://gefyra.de/StructureDefinition/encounter-de-khentgg-strict-demo"
          },
          {
            "code": "Reference",
            "targetProfile": "http://fhir.de/StructureDefinition/encounter-de-p21-loc"
          }
        ]
      }
    ]
  }
}