KBVPrErpPrescriptionMap
type: StructureMap
node role: treeRoot
id:
  v: KBVPrErpPrescriptionMap
text:
  status:
    v: generated
  div:
    v: Generated Narrative: StructureMap KBVPrErpPrescriptionMap #xD; map "https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpPrescriptionMap" = "KBVPrErpPrescriptionMap"#xD; #xD; // Auto-generated StructureMap for KBV_PR_ERP_Prescription|1.4.0 -> EPAMedicationRequest|1.3.0#xD; #xD; uses "https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription" alias KBVPRERPPrescription as source#xD; uses "https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request" alias EPAMedicationRequest as target#xD; #xD; // Mapping generated for KBV_PR_ERP_Prescription|1.4.0 -> EPAMedicationRequest|1.3.0#xD; group KBVPrErpPrescriptionMap(source KBVPRERPPrescription : KBVPRERPPrescription, target EPAMedicationRequest : EPAMedicationRequest) <<types>> {#xD; KBVPRERPPrescription.authoredOn as srcKBVPRERPPrescriptionAuthoredon3962f227 -> EPAMedicationRequest.authoredOn = srcKBVPRERPPrescriptionAuthoredon3962f227 as tgtEPAMedicationRequestAuthoredonbb8b1afd "MedicationRequestAuthoredoncccaaca3"; // Automatic copy#xD; KBVPRERPPrescription.basedOn as srcKBVPRERPPrescriptionBasedon44096147 -> EPAMedicationRequest.basedOn = srcKBVPRERPPrescriptionBasedon44096147 as tgtEPAMedicationRequestBasedon1481cab7 "MedicationRequestBasedonc8b5003b"; // Copied to 'MedicationRequest.basedOn'#xD; KBVPRERPPrescription.dispenseRequest as srcKBVPRERPPrescriptionDispenserequest1783274a -> EPAMedicationRequest.dispenseRequest = srcKBVPRERPPrescriptionDispenserequest1783274a as tgtEPAMedicationRequestDispenserequest519b8c09 "MedicationRequestDispenserequestabc39b18"; // Copied to 'MedicationRequest.dispenseRequest'#xD; KBVPRERPPrescription.dosageInstruction as srcKBVPRERPPrescriptionDosageinstructionc10ce439 -> EPAMedicationRequest.dosageInstruction = srcKBVPRERPPrescriptionDosageinstructionc10ce439 as tgtEPAMedicationRequestDosageinstructionc76ffbd5 "MedicationRequestDosageinstruction0c18f214"; // Copied to 'MedicationRequest.dosageInstruction'#xD; KBVPRERPPrescription.extension as s…
url:
  v: https://gematik.de/fhir/structure-comparer/StructureMap/KBVPrErpPrescriptionMap
  l: KBVPrErpPrescriptionMap
version:
  v: 2.0.0-ballot.1
name:
  v: KBVPrErpPrescriptionMap
status:
  v: active
date:
  v: 2026-02-02
publisher:
  v: gematik GmbH
contact:
  name:
    v: gematik GmbH
  telecom:
    system:
      v: url
    value:
      v: https://gematik.de
  telecom:
    system:
      v: email
description:
  v: Auto-generated StructureMap for KBV_PR_ERP_Prescription|1.4.0 -> EPAMedicationRequest|1.3.0
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: DE
    display:
      v: Germany
structure:
  url:
    v: https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Prescription
    l: KBV PR ERP Prescription
  mode:
    v: source
  alias:
    v: KBVPRERPPrescription
structure:
  url:
    v: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request
    l: epa-medication-request
  mode:
    v: target
  alias:
    v: EPAMedicationRequest
group:
  name:
    v: KBVPrErpPrescriptionMap
  type mode:
    v: types
  documentation:
    v: Mapping generated for KBV_PR_ERP_Prescription|1.4.0 -> EPAMedicationRequest|1.3.0
  input:
    name:
      v: KBVPRERPPrescription
    type:
      v: KBVPRERPPrescription
    mode:
      v: source
  input:
    name:
      v: EPAMedicationRequest
    type:
      v: EPAMedicationRequest
    mode:
      v: target
  rule:
    name:
      v: MedicationRequestAuthoredoncccaaca3
    source:
      context:
        v: KBVPRERPPrescription
      element:
        v: authoredOn
    target:
      context:
        v: EPAMedicationRequest
      context type:
        v: variable
      element:
        v: authoredOn
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Automatic copy
  rule:
    name:
      v: MedicationRequestBasedonc8b5003b
    source:
      context:
        v: KBVPRERPPrescription
      element:
        v: basedOn
      variable:
        v: srcKBVPRERPPrescriptionBasedon44096147
    target:
      context:
        v: EPAMedicationRequest
      context type:
        v: variable
      element:
        v: basedOn
      variable:
        v: tgtEPAMedicationRequestBasedon1481cab7
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied to 'MedicationRequest.basedOn'
  rule:
    source:
      context:
        v: KBVPRERPPrescription
      element:
        v: dispenseRequest
    target:
      context:
        v: EPAMedicationRequest
      context type:
        v: variable
      element:
        v: dispenseRequest
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied to 'MedicationRequest.dispenseRequest'
  rule:
    source:
      context:
        v: KBVPRERPPrescription
      element:
        v: dosageInstruction
    target:
      context:
        v: EPAMedicationRequest
      context type:
        v: variable
      element:
        v: dosageInstruction
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied to 'MedicationRequest.dosageInstruction'
  rule:
    name:
      v: MedicationRequestExtension9fb7a1e1
    source:
      context:
        v: KBVPRERPPrescription
      element:
        v: extension
      condition:
        v: url != 'renderedDosageInstruction' and url != 'prescriberID' and url != 'id' and url != 'ID' and url != 'narcotics' and url != 'Betaeubungsmittel' and url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Patient_ID' and url != 'indicator' and url != 'Off-Label' and url != 'declaration-of-expertise' and url != 'teratogenic' and url != 'narcotics-markings' and url != 'Mehrfachverordnung' and url != 'Unfallkennzeichen' and url != 'additional-information-substitutes' and url != 'Zeitraum' and url != 'valueString' and url != 'multiplePrescription' and url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee' and url != 'VerschreiberID' and url != 'isBvg' and url != 'period' and url != 'https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension' and url != 'ErklaerungSachkenntnis' and url != 'valuePeriod' and url != 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' and url != 'Unfalltag' and url != 'valueDate' and url != 'security-compliance' and url != 'https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension' and url != 'hand-out-information-material' and url != 'valueBoolean' and url != 'https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension' and url != 'https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension' and url != 'valueCoding' and url != 'BtM-Sonderkennzeichen' and url != 'EinhaltungSicherheitsmassnahmen' and url != 'PatientenID' and url != 'Notdienstgebuehr' and url != 'Nummerierung' and url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Narcotic' and url != 'ErgaenzendeAngabenSubstitutionsmittel' and url != 'GebaerfaehigeFrau' and url != 'https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_SER' and url != 'Kennzeichen' and url != 'patientID' and url != 'valueRatio' and url != 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta' and url…
    target:
      context:
        v: EPAMedicationRequest
      context type:
        v: variable
      element:
        v: extension
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Automatic copy
  rule:
    source:
      context:
        v: KBVPRERPPrescription
      element:
        v: extension
      condition:
        v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_DosageFlag'
    target:
      context:
        v: EPAMedicationRequest
      context type:
        v: variable
      element:
        v: extension

Id
v: srcKBVPRERPPrescriptionBasedon44096147

v: Feld wird nicht gemappt | Quelle: MedicationRequest.extension:Dosierungskennzeichen

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_EmergencyServicesFee'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
documentation:
  v: Feld wird nicht gemappt | Quelle: MedicationRequest.extension:Notdienstgebuehr

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
documentation:
  v: Feld wird nicht gemappt | Quelle: MedicationRequest.extension:Unfallinformationen

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_StatusCoPayment'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
documentation:
  v: Feld wird nicht gemappt | Quelle: MedicationRequest.extension:Zuzahlungsstatus

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta' and url = 'http://ig.fhir.de/igs/medication/StructureDefinition/GeneratedDosageInstructionsMeta'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: copy
  parameter:
    value: Id
documentation:
  v: Automatic copy

name:
  v: MedicationRequestExtensionIsser59899e4f
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_SER' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_SER'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: create
  parameter:
    value: String
      v: Extension
target:
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: https://gematik.de/fhir/epa-medication/StructureDefinition/indicator-ser-extension
rule:
  source:
    element:
      v: value
  target:
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: Id
  documentation:
    v: Copied from 'MedicationRequest.extension:SER.value[x]'
documentation:
  v: Copied from 'MedicationRequest.extension:SER'

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription' and url != 'period' and url != 'indicator' and url != 'id' and url != 'counter' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Multiple_Prescription'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: create
  parameter:
    value: String
      v: Extension
target:
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: https://gematik.de/fhir/epa-medication/StructureDefinition/multiple-prescription-extension
rule:
  source:
    element:
      v: extension
    condition:
      v: url != 'period' and url != 'indicator' and url != 'id' and url != 'counter' and url != 'indicator' and url != 'counter' and url != 'period' and url != 'id' and url != 'indicator' and url != 'counter' and url != 'period' and url != 'id' and url != 'Kennzeichen' and url != 'Nummerierung' and url != 'Zeitraum' and url != 'ID' and url != 'valueBoolean' and url != 'valueRatio' and url != 'valuePeriod' and url != 'valueIdentifier'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: copy
    parameter:
      value: Id
  documentation:
    v: Copied from 'MedicationRequest.extension:Mehrfachverordnung.extension'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'Nummerierung'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: counter
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: create
      parameter:
        value: String
    documentation:
      v: Copied from 'MedicationRequest.extension:Mehrfachverordnung.extension:Nummerierung.value[x]'
  documentation:
    v: Copied from 'MedicationRequest.extension:Mehrfachverordnung.extension:Nummerierung'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'ID'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: id
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: create
      parameter:
        value: String
    documentation:
      v: Copied from 'MedicationRequest.extension:Mehrfachverordnung.extension:ID.value[x]'
  documentation:
    v: Copied from 'MedicationRequest.extension:Mehrfachverordnung.extension:ID'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'Kennzeichen'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: indicator
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied from 'MedicationRequest.extension:Mehrfachverordnung.extension:Kennzeichen.value[x]'
  documentation:
    v: Copied from 'MedicationRequest.extension:Mehrfachverordnung.extension:Kennzeichen'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'Zeitraum'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: period

String
v: Ratio

String
v: Identifier

v: Copied from 'MedicationRequest.extension:Mehrfachverordnung.extension:Zeitraum'

v: Copied from 'MedicationRequest.extension:Mehrfachverordnung'

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Narcotic' and url != 'narcotics-markings' and url != 'additional-information-substitutes' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Narcotic'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: create
  parameter:
    value: String
      v: Extension
target:
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: https://gematik.de/fhir/epa-medication/StructureDefinition/narcotics-extension
rule:
  source:
    element:
      v: extension
    condition:
      v: url != 'narcotics-markings' and url != 'additional-information-substitutes' and url != 'narcotics-markings' and url != 'additional-information-substitutes' and url != 'narcotics-markings' and url != 'additional-information-substitutes' and url != 'valueCoding' and url != 'valueString' and url != 'BtM-Sonderkennzeichen' and url != 'ErgaenzendeAngabenSubstitutionsmittel' and url != 'valueCoding' and url != 'valueString'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: copy
    parameter:
      value: Id
  documentation:
    v: Copied from 'MedicationRequest.extension:Betaeubungsmittel.extension'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'ErgaenzendeAngabenSubstitutionsmittel'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: additional-information-substitutes
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied from 'MedicationRequest.extension:Betaeubungsmittel.extension:ErgaenzendeAngabenSubstitutionsmittel.value[x]'
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied from 'MedicationRequest.extension:Betaeubungsmittel.extension:ErgaenzendeAngabenSubstitutionsmittel.value[x]:valueString'
  documentation:
    v: Copied from 'MedicationRequest.extension:Betaeubungsmittel.extension:ErgaenzendeAngabenSubstitutionsmittel'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'BtM-Sonderkennzeichen'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: narcotics-markings
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied from 'MedicationRequest.extension:Betaeubungsmittel.extension:BtM-Sonderkennzeichen.value[x]'
  documentation:
    v: Copied from 'MedicationRequest.extension:Betaeubungsmittel.extension:BtM-Sonderkennzeichen'
documentation:
  v: Copied from 'MedicationRequest.extension:Betaeubungsmittel'

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Patient_ID' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Patient_ID'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: create
  parameter:
    value: String
      v: Extension
target:
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: https://gematik.de/fhir/epa-medication/StructureDefinition/patient-id-extension
rule:
  source:
    element:
      v: value
  target:
    context type:
      v: variable
    element:
      v: value
    transform:
      v: create
    parameter:
      value: String
        v: Identifier
  documentation:
    v: Copied from 'MedicationRequest.extension:PatientenID.value[x]'
documentation:
  v: Copied from 'MedicationRequest.extension:PatientenID'

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Prescriber_ID' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Prescriber_ID'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: create
  parameter:
    value: String
      v: Extension
target:
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: https://gematik.de/fhir/epa-medication/StructureDefinition/prescriber-id-extension
rule:
  source:
    element:
      v: value
  target:
    context type:
      v: variable
    element:
      v: value
    transform:
      v: create
    parameter:
      value: String
        v: Identifier
  documentation:
    v: Copied from 'MedicationRequest.extension:VerschreiberID.value[x]'
documentation:
  v: Copied from 'MedicationRequest.extension:VerschreiberID'

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction' and url = 'http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: create
  parameter:
    value: String
      v: Extension
target:
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-MedicationRequest.renderedDosageInstruction
rule:
  source:
    element:
      v: extension
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: copy
    parameter:
      value: Id
  documentation:
    v: Copied to 'MedicationRequest.extension:renderedDosageInstruction.extension'
rule:
  source:
    element:
      v: id
  target:
    context type:
      v: variable
    element:
      v: id
    transform:
      v: copy
    parameter:
      value: Id
  documentation:
    v: Copied to 'MedicationRequest.extension:renderedDosageInstruction.id'
rule:
  source:
    element:
      v: value
  target:
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: Id
  documentation:
    v: Copied to 'MedicationRequest.extension:renderedDosageInstruction.value[x]'
documentation:
  v: Copied to 'MedicationRequest.extension:renderedDosageInstruction'

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: extension
  condition:
    v: url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Teratogenic' and url != 'security-compliance' and url != 'declaration-of-expertise' and url != 'hand-out-information-material' and url != 'off-label' and url != 'childbearing-potential' and url = 'https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Teratogenic'
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: create
  parameter:
    value: String
      v: Extension
target:
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: https://gematik.de/fhir/epa-medication/StructureDefinition/teratogenic-extension
rule:
  source:
    element:
      v: extension
    condition:
      v: url != 'security-compliance' and url != 'declaration-of-expertise' and url != 'hand-out-information-material' and url != 'off-label' and url != 'childbearing-potential' and url != 'off-label' and url != 'childbearing-potential' and url != 'security-compliance' and url != 'hand-out-information-material' and url != 'declaration-of-expertise' and url != 'off-label' and url != 'childbearing-potential' and url != 'security-compliance' and url != 'hand-out-information-material' and url != 'declaration-of-expertise' and url != 'Off-Label' and url != 'GebaerfaehigeFrau' and url != 'EinhaltungSicherheitsmassnahmen' and url != 'AushaendigungInformationsmaterialien' and url != 'ErklaerungSachkenntnis' and url != 'valueBoolean' and url != 'valueBoolean' and url != 'valueBoolean' and url != 'valueBoolean' and url != 'valueBoolean'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: copy
    parameter:
      value: Id
  documentation:
    v: Copied from 'MedicationRequest.extension:T-Rezept.extension'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'GebaerfaehigeFrau'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: childbearing-potential
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied from 'MedicationRequest.extension:T-Rezept.extension:GebaerfaehigeFrau.value[x]'
  documentation:
    v: Copied from 'MedicationRequest.extension:T-Rezept.extension:GebaerfaehigeFrau'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'ErklaerungSachkenntnis'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: declaration-of-expertise
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied from 'MedicationRequest.extension:T-Rezept.extension:ErklaerungSachkenntnis.value[x]'
  documentation:
    v: Copied from 'MedicationRequest.extension:T-Rezept.extension:ErklaerungSachkenntnis'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'AushaendigungInformationsmaterialien'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: hand-out-information-material
  rule:
    source:
      element:
        v: value
    target:
      context type:
        v: variable
      element:
        v: value
      transform:
        v: copy
      parameter:
        value: Id
    documentation:
      v: Copied from 'MedicationRequest.extension:T-Rezept.extension:AushaendigungInformationsmaterialien.value[x]'
  documentation:
    v: Copied from 'MedicationRequest.extension:T-Rezept.extension:AushaendigungInformationsmaterialien'
rule:
  source:
    element:
      v: extension
    condition:
      v: url = 'Off-Label'
  target:
    context type:
      v: variable
    element:
      v: extension
    transform:
      v: create
    parameter:
      value: String
        v: Extension
  target:
    context type:
      v: variable
    element:
      v: url
    transform:
      v: copy
    parameter:
      value: String
        v: off-label

source:
  element:
    v: value
target:
  context type:
    v: variable
  element:
    v: value
  transform:
    v: copy
  parameter:
    value: Id
documentation:
  v: Copied from 'MedicationRequest.extension:T-Rezept.extension:Off-Label.value[x]'

v: Copied from 'MedicationRequest.extension:T-Rezept.extension:Off-Label'

source:
  element:
    v: extension
  condition:
    v: url = 'EinhaltungSicherheitsmassnahmen'
target:
  context type:
    v: variable
  element:
    v: extension
  transform:
    v: create
  parameter:
    value: String
      v: Extension
target:
  context type:
    v: variable
  element:
    v: url
  transform:
    v: copy
  parameter:
    value: String
      v: security-compliance
rule:
  source:
    element:
      v: value
  target:
    context type:
      v: variable
    element:
      v: value
    transform:
      v: copy
    parameter:
      value: Id
  documentation:
    v: Copied from 'MedicationRequest.extension:T-Rezept.extension:EinhaltungSicherheitsmassnahmen.value[x]'
documentation:
  v: Copied from 'MedicationRequest.extension:T-Rezept.extension:EinhaltungSicherheitsmassnahmen'

v: Copied from 'MedicationRequest.extension:T-Rezept'

name:
  v: MedicationRequestInsurance8b499ebd
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: insurance
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: insurance
documentation:
  v: Feld wird nicht gemappt | Quelle: MedicationRequest.insurance

source:
  context:
    v: KBVPRERPPrescription
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: insurance
rule:
  source:
    context:
      v: KBVPRERPPrescription
  target:
    context type:
      v: variable
    element:
      v: display
  documentation:
    v: Feld wird nicht gemappt | Inherited from MedicationRequest.insurance | Quelle: MedicationRequest.insurance.display

source:
  context:
    v: KBVPRERPPrescription
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: insurance
rule:
  source:
    context:
      v: KBVPRERPPrescription
    element:
      v: insurance
  rule:
    source:
      element:
        v: extension
    target:
      context type:
        v: variable
      element:
        v: extension
    documentation:
      v: Feld wird nicht gemappt | Inherited from MedicationRequest.insurance | Quelle: MedicationRequest.insurance.extension

name:
  v: MedicationRequestInsuranceIdd780df33
source:
  context:
    v: KBVPRERPPrescription
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: insurance
rule:
  name:
    v: MedicationRequestInsuranceIdd780df33
  source:
    context:
      v: KBVPRERPPrescription
    element:
      v: insurance
  rule:
    name:
      v: MedicationRequestInsuranceIdd780df33
    source:
      element:
        v: id
    target:
      context type:
        v: variable
      element:
        v: id
    documentation:
      v: Feld wird nicht gemappt | Inherited from MedicationRequest.insurance | Quelle: MedicationRequest.insurance.id

source:
  context:
    v: KBVPRERPPrescription
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: insurance
rule:
  source:
    context:
      v: KBVPRERPPrescription
  target:
    context type:
      v: variable
    element:
      v: identifier
  documentation:
    v: Feld wird nicht gemappt | Inherited from MedicationRequest.insurance | Quelle: MedicationRequest.insurance.identifier

source:
  context:
    v: KBVPRERPPrescription
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: insurance
rule:
  source:
    context:
      v: KBVPRERPPrescription
    element:
      v: insurance
  rule:
    source:
      element:
        v: reference
    target:
      context type:
        v: variable
      element:
        v: reference
    documentation:
      v: Feld wird nicht gemappt | Inherited from MedicationRequest.insurance | Quelle: MedicationRequest.insurance.reference

name:
  v: MedicationRequestInsuranceTypec5db1613
source:
  context:
    v: KBVPRERPPrescription
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: insurance
rule:
  name:
    v: MedicationRequestInsuranceTypec5db1613
  source:
    context:
      v: KBVPRERPPrescription
  target:
    context type:
      v: variable
    element:
      v: type
  documentation:
    v: Feld wird nicht gemappt | Inherited from MedicationRequest.insurance | Quelle: MedicationRequest.insurance.type

name:
  v: MedicationRequestIntentd6f3b441
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: intent
  variable:
    v: srcKBVPRERPPrescriptionIntentd287d5c0
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: intent
  variable:
    v: tgtEPAMedicationRequestIntentc2c09deb
  transform:
    v: copy
  parameter:
    value: Id
      v: srcKBVPRERPPrescriptionIntentd287d5c0
documentation:
  v: Automatic copy

source:
  context:
    v: KBVPRERPPrescription
  element:
    v: medication
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: medication
  transform:
    v: copy
  parameter:
    value: Id
documentation:
  v: Copied to 'MedicationRequest.medication[x]'

name:
  v: MedicationRequestMeta9962a339
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: meta
  variable:
    v: srcKBVPRERPPrescriptionMetaebbb9882
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: meta
  variable:
    v: tgtEPAMedicationRequestMeta55fad1b0
  transform:
    v: create
  parameter:
    value: String
      v: Meta
rule:
  name:
    v: MedicationRequestMetaProfile56c958a8
  source:
    context:
      v: srcKBVPRERPPrescriptionMetaebbb9882
    variable:
      v: srcMedicationRequestMetaProfile56c958a8
  target:
    context:
      v: tgtEPAMedicationRequestMeta55fad1b0
    context type:
      v: variable
    element:
      v: profile
    variable:
      v: tgtMedicationRequestMetaProfile56c958a8
    transform:
      v: copy
    parameter:
      value: String
        v: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request
  documentation:
    v: Fixed value 'https://gematik.de/fhir/epa-medication/StructureDefinition/epa-medication-request'
documentation:
  v: Automatic copy

name:
  v: MedicationRequestNote3f48e22b
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: note
  variable:
    v: srcKBVPRERPPrescriptionNote271cad5f
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: note
  variable:
    v: tgtEPAMedicationRequestNote7f5e9d21
  transform:
    v: copy
  parameter:
    value: Id
      v: srcKBVPRERPPrescriptionNote271cad5f
documentation:
  v: Copied to 'MedicationRequest.note'

name:
  v: MedicationRequestRequester3e498d80
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: requester
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: requester
  transform:
    v: copy
  parameter:
    value: Id
documentation:
  v: Copied to 'MedicationRequest.requester'

name:
  v: MedicationRequestStatus67a37e7d
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: status
  variable:
    v: srcKBVPRERPPrescriptionStatusdacc71a5
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: status
  variable:
    v: tgtEPAMedicationRequestStatuse5522c01
  transform:
    v: copy
  parameter:
    value: Id
      v: srcKBVPRERPPrescriptionStatusdacc71a5
documentation:
  v: Automatic copy

name:
  v: MedicationRequestSubjectfe47ad58
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: subject
  variable:
    v: srcKBVPRERPPrescriptionSubjectb79dbef0
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: subject
  variable:
    v: tgtEPAMedicationRequestSubject8a8bf8a9
documentation:
  v: Manual action required | Transformationsregel F_007: Wird aus KBV_PR_FOR_Patient.identifier:versichertenId übernommen. | Quelle: MedicationRequest.subject

source:
  context:
    v: KBVPRERPPrescription
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: subject
  variable:
    v: tgtEPAMedicationRequestSubject8a8bf8a9
rule:
  source:
    context:
      v: KBVPRERPPrescription
  target:
    context:
      v: tgtEPAMedicationRequestSubject8a8bf8a9
    context type:
      v: variable
    element:
      v: identifier
  documentation:
    v: Manual action required | Befüllen von .subject nach Transformationsregel F_010 | Quelle: MedicationRequest.subject.identifier

name:
  v: MedicationRequestSubstitution5015c761
source:
  context:
    v: KBVPRERPPrescription
  element:
    v: substitution
target:
  context:
    v: EPAMedicationRequest
  context type:
    v: variable
  element:
    v: substitution
  transform:
    v: copy
  parameter:
    value: Id
documentation:
  v: Copied to 'MedicationRequest.substitution'