{
  "resourceType": "StructureDefinition",
  "url": "http://digen.nublar.de/fhir/StructureDefinition/DigenMedicationStatementRequest",
  "name": "DigenMedicationStatementRequest",
  "status": "draft",
  "description": "This is a MedicationRequest that only exists within the context of a MedicationStatement. It is needed to carry the ordering information (prescriber, date) derived from claims data.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationRequest.meta.id",
        "path": "MedicationRequest.meta.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.meta.security",
        "path": "MedicationRequest.meta.security",
        "max": "0"
      },
      {
        "id": "MedicationRequest.meta.tag",
        "path": "MedicationRequest.meta.tag",
        "max": "0"
      },
      {
        "id": "MedicationRequest.implicitRules",
        "path": "MedicationRequest.implicitRules",
        "max": "0"
      },
      {
        "id": "MedicationRequest.language",
        "path": "MedicationRequest.language",
        "max": "0"
      },
      {
        "id": "MedicationRequest.text",
        "path": "MedicationRequest.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.contained",
        "path": "MedicationRequest.contained",
        "max": "0"
      },
      {
        "id": "MedicationRequest.identifier",
        "path": "MedicationRequest.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.definition",
        "path": "MedicationRequest.definition",
        "max": "0"
      },
      {
        "id": "MedicationRequest.basedOn",
        "path": "MedicationRequest.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationRequest.groupIdentifier",
        "path": "MedicationRequest.groupIdentifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.status",
        "path": "MedicationRequest.status",
        "max": "0"
      },
      {
        "id": "MedicationRequest.intent",
        "path": "MedicationRequest.intent",
        "fixedCode": "order"
      },
      {
        "id": "MedicationRequest.category",
        "path": "MedicationRequest.category",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priority",
        "path": "MedicationRequest.priority",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept",
        "path": "MedicationRequest.medicationCodeableConcept",
        "sliceName": "medicationCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.id",
        "path": "MedicationRequest.medicationCodeableConcept.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding",
        "path": "MedicationRequest.medicationCodeableConcept.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding.id",
        "path": "MedicationRequest.medicationCodeableConcept.coding.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding.system",
        "path": "MedicationRequest.medicationCodeableConcept.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.de/CodeSystem/ifa/pzn"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding.version",
        "path": "MedicationRequest.medicationCodeableConcept.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding.code",
        "path": "MedicationRequest.medicationCodeableConcept.coding.code",
        "short": "PZN",
        "definition": "The 8-digit PZN of the containing MedicationStatement's Medication. This is NOT to be interpreted as the ordered medication in cases where the pharmacy substituted the medication. Such substitutions are currently not in-scope and not part of the domain logic.",
        "comment": "Even though the containing MedicationStatement holds the authoritative medication resource, this coded medication is required by the base FHIR resource.",
        "min": 1
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.coding.userSelected",
        "path": "MedicationRequest.medicationCodeableConcept.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationRequest.medication[x]:medicationCodeableConcept.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.medicationCodeableConcept.text",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject",
        "path": "MedicationRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "MedicationRequest.subject.id",
        "path": "MedicationRequest.subject.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.reference",
        "path": "MedicationRequest.subject.reference",
        "min": 1
      },
      {
        "id": "MedicationRequest.subject.identifier",
        "path": "MedicationRequest.subject.identifier",
        "max": "0"
      },
      {
        "id": "MedicationRequest.subject.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.subject.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.context",
        "path": "MedicationRequest.context",
        "max": "0"
      },
      {
        "id": "MedicationRequest.supportingInformation",
        "path": "MedicationRequest.supportingInformation",
        "max": "0"
      },
      {
        "id": "MedicationRequest.authoredOn",
        "path": "MedicationRequest.authoredOn",
        "short": "Verordnungdatum",
        "definition": "The date when the prescription was initially written or authored on.",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester",
        "path": "MedicationRequest.requester",
        "short": "Verordnet von",
        "definition": "The individual or organization that initiated the request and has responsibility for its activation.",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.id",
        "path": "MedicationRequest.requester.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent",
        "path": "MedicationRequest.requester.agent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ]
      },
      {
        "id": "MedicationRequest.requester.agent.id",
        "path": "MedicationRequest.requester.agent.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.reference",
        "path": "MedicationRequest.requester.agent.reference",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier",
        "path": "MedicationRequest.requester.agent.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:lebenslangeArztnummer",
        "path": "MedicationRequest.requester.agent.identifier",
        "sliceName": "lebenslangeArztnummer",
        "short": "Verordnet von (LANR)"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:lebenslangeArztnummer.id",
        "path": "MedicationRequest.requester.agent.identifier.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:lebenslangeArztnummer.use",
        "path": "MedicationRequest.requester.agent.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:lebenslangeArztnummer.type",
        "path": "MedicationRequest.requester.agent.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:lebenslangeArztnummer.system",
        "path": "MedicationRequest.requester.agent.identifier.system",
        "short": "LANR Namensraum",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n(http://fhir.de/NamingSystem/kbv/lanr)",
        "min": 1,
        "fixedUri": "urn:oid:1.2.276.0.76.4.16"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:lebenslangeArztnummer.value",
        "path": "MedicationRequest.requester.agent.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:lebenslangeArztnummer.period",
        "path": "MedicationRequest.requester.agent.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:lebenslangeArztnummer.assigner",
        "path": "MedicationRequest.requester.agent.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:betriebsstaettennummer",
        "path": "MedicationRequest.requester.agent.identifier",
        "sliceName": "betriebsstaettennummer",
        "short": "Verordnet von (BSNR)"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:betriebsstaettennummer.id",
        "path": "MedicationRequest.requester.agent.identifier.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:betriebsstaettennummer.use",
        "path": "MedicationRequest.requester.agent.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:betriebsstaettennummer.type",
        "path": "MedicationRequest.requester.agent.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:betriebsstaettennummer.system",
        "path": "MedicationRequest.requester.agent.identifier.system",
        "short": "BSNR Namensraum",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n(http://fhir.de/NamingSystem/kbv/bsnr)",
        "min": 1,
        "fixedUri": "urn:oid:1.2.276.0.76.4.17"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:betriebsstaettennummer.value",
        "path": "MedicationRequest.requester.agent.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:betriebsstaettennummer.period",
        "path": "MedicationRequest.requester.agent.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:betriebsstaettennummer.assigner",
        "path": "MedicationRequest.requester.agent.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Institutionskennzeichen",
        "path": "MedicationRequest.requester.agent.identifier",
        "sliceName": "Institutionskennzeichen",
        "short": "Verordnet von (IK Nummer)"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Institutionskennzeichen.id",
        "path": "MedicationRequest.requester.agent.identifier.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Institutionskennzeichen.use",
        "path": "MedicationRequest.requester.agent.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Institutionskennzeichen.type",
        "path": "MedicationRequest.requester.agent.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Institutionskennzeichen.system",
        "path": "MedicationRequest.requester.agent.identifier.system",
        "short": "IK Nummer Namensraum",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n(http://fhir.de/NamingSystem/arge-ik/iknr)",
        "min": 1,
        "fixedUri": "urn:oid:1.2.276.0.76.4.5"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Institutionskennzeichen.value",
        "path": "MedicationRequest.requester.agent.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Institutionskennzeichen.period",
        "path": "MedicationRequest.requester.agent.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Institutionskennzeichen.assigner",
        "path": "MedicationRequest.requester.agent.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Zahnarztnummer",
        "path": "MedicationRequest.requester.agent.identifier",
        "sliceName": "Zahnarztnummer",
        "short": "Verordnet von (ZANR)",
        "definition": "For the identification of dentists the ZANR is used. This number is assigned by the regional KZV. There are 18 NamingSystems using the pattern \"http://fhir.de/NamingSystem/kzv/XX/zahnarztnummer\". \"XX\" refers to the official list of KZVen."
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Zahnarztnummer.id",
        "path": "MedicationRequest.requester.agent.identifier.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Zahnarztnummer.use",
        "path": "MedicationRequest.requester.agent.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Zahnarztnummer.type",
        "path": "MedicationRequest.requester.agent.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Zahnarztnummer.system",
        "path": "MedicationRequest.requester.agent.identifier.system",
        "short": "ZANR Namensraum",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n(http://fhir.de/NamingSystem/kzv/XX/zahnarztnummer)",
        "min": 1,
        "fixedUri": "urn:oid:1.2.276.0.76.3.1.321.1.1.6.16"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Zahnarztnummer.value",
        "path": "MedicationRequest.requester.agent.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Zahnarztnummer.period",
        "path": "MedicationRequest.requester.agent.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.identifier:Zahnarztnummer.assigner",
        "path": "MedicationRequest.requester.agent.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.agent.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.requester.agent.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf",
        "path": "MedicationRequest.requester.onBehalfOf",
        "definition": "The organization the practitioner was acting on behalf of. This SHALL only be used if the agent is a practitioner."
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.id",
        "path": "MedicationRequest.requester.onBehalfOf.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.reference",
        "path": "MedicationRequest.requester.onBehalfOf.reference",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier",
        "path": "MedicationRequest.requester.onBehalfOf.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:betriebsstaettennummer",
        "path": "MedicationRequest.requester.onBehalfOf.identifier",
        "sliceName": "betriebsstaettennummer",
        "short": "Verordnet von (BSNR)"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:betriebsstaettennummer.id",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:betriebsstaettennummer.use",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:betriebsstaettennummer.type",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:betriebsstaettennummer.system",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.system",
        "short": "BSNR Namensraum",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n(http://fhir.de/NamingSystem/kbv/bsnr)",
        "min": 1,
        "fixedUri": "urn:oid:1.2.276.0.76.4.17"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:betriebsstaettennummer.value",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:betriebsstaettennummer.period",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:betriebsstaettennummer.assigner",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:Institutionskennzeichen",
        "path": "MedicationRequest.requester.onBehalfOf.identifier",
        "sliceName": "Institutionskennzeichen",
        "short": "Verordnet von (IK Nummer)"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:Institutionskennzeichen.id",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.id",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:Institutionskennzeichen.use",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.use",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:Institutionskennzeichen.type",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.type",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:Institutionskennzeichen.system",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.system",
        "short": "IK Nummer Namensraum",
        "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.\r\n(http://fhir.de/NamingSystem/arge-ik/iknr)",
        "min": 1,
        "fixedUri": "urn:oid:1.2.276.0.76.4.5"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:Institutionskennzeichen.value",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:Institutionskennzeichen.period",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.period",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.identifier:Institutionskennzeichen.assigner",
        "path": "MedicationRequest.requester.onBehalfOf.identifier.assigner",
        "max": "0"
      },
      {
        "id": "MedicationRequest.requester.onBehalfOf.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationRequest.requester.onBehalfOf.display",
        "max": "0"
      },
      {
        "id": "MedicationRequest.recorder",
        "path": "MedicationRequest.recorder",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonCode",
        "path": "MedicationRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "MedicationRequest.reasonReference",
        "path": "MedicationRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "MedicationRequest.note",
        "path": "MedicationRequest.note",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dosageInstruction",
        "path": "MedicationRequest.dosageInstruction",
        "max": "0"
      },
      {
        "id": "MedicationRequest.dispenseRequest",
        "path": "MedicationRequest.dispenseRequest",
        "max": "0"
      },
      {
        "id": "MedicationRequest.substitution",
        "path": "MedicationRequest.substitution",
        "max": "0"
      },
      {
        "id": "MedicationRequest.priorPrescription",
        "path": "MedicationRequest.priorPrescription",
        "max": "0"
      },
      {
        "id": "MedicationRequest.detectedIssue",
        "path": "MedicationRequest.detectedIssue",
        "max": "0"
      },
      {
        "id": "MedicationRequest.eventHistory",
        "path": "MedicationRequest.eventHistory",
        "max": "0"
      }
    ]
  }
}