{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-AW-Verordnung-Heilmittel",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Verordnung_Heilmittel",
  "version": "1.3.0",
  "name": "KBV_PR_AW_Verordnung_Heilmittel",
  "status": "draft",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "copyright": "Copyright © [2022], Kassenärztliche Bundesvereinigung (KBV). All rights reserved.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "quick",
      "uri": "http://siframework.org/cqf",
      "name": "Quality Improvement and Clinical Knowledge (QUICK)"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest",
        "path": "ServiceRequest",
        "short": "Verordnung_Heilmittel",
        "definition": "Diese Ressource bietet die grundlegende Möglichkeit eine Heilmittelverordnung zu transportieren. Diese Möglichkeit soll es ermöglichen neben der eVerordnung alte Verordnungen auf einem sehr geringen Level zu transportieren.\r\n\r\nDiese Ressource soll eine Art Ergänzung zu einer Anlage sein, in der die grundlegenden Informationen strukturiert übertragen werden können."
      },
      {
        "id": "ServiceRequest.id",
        "path": "ServiceRequest.id",
        "min": 1
      },
      {
        "id": "ServiceRequest.meta",
        "path": "ServiceRequest.meta",
        "min": 1
      },
      {
        "id": "ServiceRequest.meta.versionId",
        "path": "ServiceRequest.meta.versionId",
        "min": 1
      },
      {
        "id": "ServiceRequest.meta.lastUpdated",
        "path": "ServiceRequest.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "ServiceRequest.meta.profile",
        "path": "ServiceRequest.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Verordnung_Heilmittel|1.3.0"
      },
      {
        "id": "ServiceRequest.text",
        "path": "ServiceRequest.text",
        "min": 1
      },
      {
        "id": "ServiceRequest.text.status",
        "path": "ServiceRequest.text.status",
        "short": "extensions",
        "fixedCode": "extensions"
      },
      {
        "id": "ServiceRequest.identifier",
        "path": "ServiceRequest.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.instantiatesCanonical",
        "path": "ServiceRequest.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "ServiceRequest.instantiatesUri",
        "path": "ServiceRequest.instantiatesUri",
        "max": "0"
      },
      {
        "id": "ServiceRequest.basedOn",
        "path": "ServiceRequest.basedOn",
        "max": "0"
      },
      {
        "id": "ServiceRequest.replaces",
        "path": "ServiceRequest.replaces",
        "max": "0"
      },
      {
        "id": "ServiceRequest.requisition",
        "path": "ServiceRequest.requisition",
        "max": "0"
      },
      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "fixedCode": "completed"
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "fixedCode": "order"
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "max": "0"
      },
      {
        "id": "ServiceRequest.priority",
        "path": "ServiceRequest.priority",
        "max": "0"
      },
      {
        "id": "ServiceRequest.doNotPerform",
        "path": "ServiceRequest.doNotPerform",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code",
        "path": "ServiceRequest.code",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding",
        "path": "ServiceRequest.code.coding",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.system",
        "path": "ServiceRequest.code.coding.system",
        "min": 1,
        "fixedUri": "https://fhir.kbv.de/CodeSystem/KBV_CS_AW_Ressourcentyp",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.code",
        "path": "ServiceRequest.code.coding.code",
        "min": 1,
        "fixedCode": "Verordnung_Heilmittel",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.userSelected",
        "path": "ServiceRequest.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "ServiceRequest.code.text",
        "path": "ServiceRequest.code.text",
        "short": "Bezeichnung des Heilmittels",
        "definition": "Dieses Element beinhaltet eine Bezeichnung des Heilmittels.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.orderDetail",
        "path": "ServiceRequest.orderDetail",
        "max": "0"
      },
      {
        "id": "ServiceRequest.quantity[x]",
        "path": "ServiceRequest.quantity[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Patient|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.subject.reference",
        "path": "ServiceRequest.subject.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.subject.type",
        "path": "ServiceRequest.subject.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.subject.identifier",
        "path": "ServiceRequest.subject.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.subject.display",
        "path": "ServiceRequest.subject.display",
        "max": "0"
      },
      {
        "id": "ServiceRequest.encounter",
        "path": "ServiceRequest.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Begegnung|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.encounter.reference",
        "path": "ServiceRequest.encounter.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.encounter.type",
        "path": "ServiceRequest.encounter.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.encounter.identifier",
        "path": "ServiceRequest.encounter.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.encounter.display",
        "path": "ServiceRequest.encounter.display",
        "max": "0"
      },
      {
        "id": "ServiceRequest.occurrence[x]",
        "path": "ServiceRequest.occurrence[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.asNeeded[x]",
        "path": "ServiceRequest.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.authoredOn",
        "path": "ServiceRequest.authoredOn",
        "short": "Austellungsdatum",
        "definition": "Datum an dem die Verordnung ausgestellt wurde.",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.requester",
        "path": "ServiceRequest.requester",
        "max": "0"
      },
      {
        "id": "ServiceRequest.performerType",
        "path": "ServiceRequest.performerType",
        "max": "0"
      },
      {
        "id": "ServiceRequest.performer",
        "path": "ServiceRequest.performer",
        "max": "0"
      },
      {
        "id": "ServiceRequest.locationCode",
        "path": "ServiceRequest.locationCode",
        "max": "0"
      },
      {
        "id": "ServiceRequest.locationReference",
        "path": "ServiceRequest.locationReference",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonCode",
        "path": "ServiceRequest.reasonCode",
        "definition": "In diesem Element ist eine Diagnose als ICD-Code dokumentierbar, allerdings ist eine vollständige Diagnoseressource(https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Diagnose) in reasonReference zu bevorzugen.",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.coding",
        "path": "ServiceRequest.reasonCode.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "closed"
        },
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.coding:icd-code",
        "path": "ServiceRequest.reasonCode.coding",
        "sliceName": "icd-code",
        "definition": "A reference to a code def1ined by a terminology system.",
        "type": [
          {
            "code": "Coding",
            "profile": [
              "http://fhir.de/StructureDefinition/CodingICD10GM|1.3.2"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.coding:icd-code.extension",
        "path": "ServiceRequest.reasonCode.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "min": 0
      },
      {
        "id": "ServiceRequest.reasonCode.coding:icd-code.extension:Mehrfachcodierungs-Kennzeichen",
        "path": "ServiceRequest.reasonCode.coding.extension",
        "sliceName": "Mehrfachcodierungs-Kennzeichen",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.coding:icd-code.extension:Seitenlokalisation",
        "path": "ServiceRequest.reasonCode.coding.extension",
        "sliceName": "Seitenlokalisation",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.coding:icd-code.extension:Diagnosesicherheit",
        "path": "ServiceRequest.reasonCode.coding.extension",
        "sliceName": "Diagnosesicherheit",
        "min": 0,
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.coding:icd-code.system",
        "path": "ServiceRequest.reasonCode.coding.system",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.coding:icd-code.version",
        "path": "ServiceRequest.reasonCode.coding.version",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.coding:icd-code.code",
        "path": "ServiceRequest.reasonCode.coding.code",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonCode.text",
        "path": "ServiceRequest.reasonCode.text",
        "short": "Freitext",
        "definition": "Ein ICD-Code ist bevorzugt, wenn allerdings kein Code angegeben werden kann, so kann der Grund hier beschrieben werden.",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonReference",
        "path": "ServiceRequest.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Diagnose|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.reasonReference.reference",
        "path": "ServiceRequest.reasonReference.reference",
        "min": 1
      },
      {
        "id": "ServiceRequest.reasonReference.type",
        "path": "ServiceRequest.reasonReference.type",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonReference.identifier",
        "path": "ServiceRequest.reasonReference.identifier",
        "max": "0"
      },
      {
        "id": "ServiceRequest.reasonReference.display",
        "path": "ServiceRequest.reasonReference.display",
        "max": "0"
      },
      {
        "id": "ServiceRequest.insurance",
        "path": "ServiceRequest.insurance",
        "max": "0"
      },
      {
        "id": "ServiceRequest.supportingInfo",
        "path": "ServiceRequest.supportingInfo",
        "max": "0"
      },
      {
        "id": "ServiceRequest.specimen",
        "path": "ServiceRequest.specimen",
        "max": "0"
      },
      {
        "id": "ServiceRequest.bodySite",
        "path": "ServiceRequest.bodySite",
        "max": "0"
      },
      {
        "id": "ServiceRequest.note",
        "path": "ServiceRequest.note",
        "short": "Erläuterung",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.note.author[x]",
        "path": "ServiceRequest.note.author[x]",
        "max": "0"
      },
      {
        "id": "ServiceRequest.note.time",
        "path": "ServiceRequest.note.time",
        "max": "0"
      },
      {
        "id": "ServiceRequest.patientInstruction",
        "path": "ServiceRequest.patientInstruction",
        "max": "0"
      },
      {
        "id": "ServiceRequest.relevantHistory",
        "path": "ServiceRequest.relevantHistory",
        "max": "0"
      }
    ]
  }
}