<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="gem-erp-sr-log-prescription-request" />
  <url value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
  <version value="1.2.0" />
  <name value="GEM_ERP_SR_LOG_PrescriptionRequest" />
  <title value="Rezeptanforderung" />
  <status value="active" />
  <experimental value="false" />
  <date value="2025-07-31" />
  <publisher value="gematik GmbH" />
  <description value="Fachliches Modell zur Beschreibung einer Rezeptanforderung" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="Rezeptanforderung-Fachliches-Mapping" />
    <uri value="ERPServiceRequestPrescriptionRequest" />
    <name value="Rezeptanforderung Fachliches Mapping" />
    <comment value="Mapping des Fachmodells aus GEM_ERP_SR_LOG_PrescriptionRequest auf das FHIR-Modell ERPServiceRequestPrescriptionRequest" />
  </mapping>
  <mapping>
    <identity value="Quelle-Rezeptanforderung-Mapping" />
    <name value="Quelle der Rezeptanforderungsinformationen" />
    <comment value="Beschreibt die Quelle der Rezeptanforderungsinformationen" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <snapshot>
    <element id="gem-erp-sr-log-prescription-request">
      <path value="gem-erp-sr-log-prescription-request" />
      <short value="Rezeptanforderung" />
      <definition value="Fachliches Modell zur Beschreibung einer Rezeptanforderung" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="gem-erp-sr-log-prescription-request" />
        <min value="0" />
        <max value="*" />
      </base>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="log-prescription-request-1" />
        <severity value="error" />
        <human value="Wenn eine Anfrage gestellt wird (status = 'active'), muss auch der Anfragende vorhanden sein." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <constraint>
        <key value="log-prescription-request-2" />
        <severity value="error" />
        <human value="Wenn eine Anfrage von einer Apotheke (involvierteParteien.Anfragender.AnfragenderTyp = 'APO') gestellt wird, muss die Angabe der Pflegeeinrichtung zur Kopie angegeben werden (involvierteParteien.PflegeeinrichtungKopie)." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.id">
      <path value="gem-erp-sr-log-prescription-request.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.extension">
      <path value="gem-erp-sr-log-prescription-request.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.MetaDaten" />
      <short value="Metadaten im MessageHeader" />
      <definition value="Metadaten im MessageHeader" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.id">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.extension">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger" />
      <short value="Empfänger der Nachricht" />
      <definition value="Empfänger der Nachricht" />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger" />
        <min value="1" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.destination" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Aus Kontaktmanagement oder VZD Suche" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.id">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.extension">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.KIMAdresse">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.KIMAdresse" />
      <short value="KIM-Adresse des Empfängers" />
      <definition value="KIM-Adresse des Empfängers" />
      <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.KIMAdresse" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="url" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.destination.endpoint" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Aus Kontaktmanagement oder VZD Suche" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.TelematikID">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.TelematikID" />
      <short value="Telematik-ID des Absenders" />
      <definition value="Telematik-ID des Absenders" />
      <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.TelematikID" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="url" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.destination.receiver.identifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Aus Kontaktmanagement oder VZD Suche" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender" />
      <short value="Absender der Nachricht" />
      <definition value="Absender der Nachricht" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.sender" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender.id">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender.extension">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender.TelematikID">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.TelematikID" />
      <short value="Telematik-ID des Absenders" />
      <definition value="Telematik-ID des Absenders" />
      <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.TelematikID" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="url" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.sender.identifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS, SMC-B oder HBA Zertifikat" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender.Name">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.Name" />
      <short value="Name des Absenders" />
      <definition value="Name des Absenders" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.Name" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.sender.display" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem" />
      <short value="Absendendes System" />
      <definition value="Absendendes System" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.id">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.extension">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Name">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Name" />
      <short value="Name des Herstellers des absendenden Systems" />
      <definition value="Name des Herstellers des absendenden Systems" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Name" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Software">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Software" />
      <short value="Name der Software des absendenden Systems" />
      <definition value="Name der Software des absendenden Systems" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Software" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.software" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Version">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Version" />
      <short value="Version des absendenden Systems" />
      <definition value="Version des absendenden Systems" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Version" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.version" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.EMailKontakt">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.EMailKontakt" />
      <short value="E-Mail-Kontakt des absendenden Systems" />
      <definition value="E-Mail-Kontakt des absendenden Systems" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.EMailKontakt" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.contact.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Website">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Website" />
      <short value="Website des absendenden Systems" />
      <definition value="Website des absendenden Systems" />
      <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Website" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="url" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.endpoint" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Status">
      <path value="gem-erp-sr-log-prescription-request.Status" />
      <short value="Status" />
      <definition value="Status der Anforderung. Wird genutzt, um den Bearbeitungsstand einer Anfrage zu verfolgen. Im Falle der Rezeptanforderung wird eine Anfrage mit dem Status 'active' erstellt und geschickt und signalisiert somit eine neue Anfrage." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Status" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="code" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="log-prescription-request-1" />
        <severity value="error" />
        <human value="Wenn eine Anfrage gestellt wird (status = 'active'), muss auch der Anfragende vorhanden sein." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.status" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Setzt den Status der Anfrage auf 'active'" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.VorgangsID">
      <path value="gem-erp-sr-log-prescription-request.VorgangsID" />
      <short value="ID des Vorgangs" />
      <definition value="Wird vom initialen Sender gesetzt und muss immer mitgeführt werden." />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.VorgangsID" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.identifier:requestId.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Erzeugt einen Vorgang und generiert eine VorgangsID" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.VersichertenEinloesung">
      <path value="gem-erp-sr-log-prescription-request.VersichertenEinloesung" />
      <short value="Versicherten Einlösung" />
      <definition value="Angabe, ob der Versicherte das E-Rezept selbst einlösen möchte." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.VersichertenEinloesung" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.extension:redeemByPatient.valueBoolean" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Angabemöglichkeit im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien" />
      <short value="Involvierte Parteien" />
      <definition value="Angaben zu den involvierten Parteien" />
      <min value="1" />
      <max value="*" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien" />
        <min value="1" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.subject/performer/requester" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.id">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.extension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen" />
      <short value="Patienteninformationen" />
      <definition value="Angaben zum Patienten" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.subject(ERPServiceRequestPatient)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Abfrage aus Stammdatenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.id">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.extension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenIdentifierKVNR">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenIdentifierKVNR" />
      <short value="KVNR des Patienten" />
      <definition value="KVNR des Patienten" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenIdentifierKVNR" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPatient.identifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenName">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenName" />
      <short value="Name des Patienten" />
      <definition value="Strukturierte Angabe des Namens des Patienten" />
      <comment value="Names may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts might or might not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems must care about name parts around the world varies widely." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenName" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="HumanName" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XPN" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="EN (actually, PN)" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="ProviderName" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPatient.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenGeburtstag">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenGeburtstag" />
      <short value="Geburtstag des Patienten" />
      <definition value="Angabe des Geburtstags mit Jahr, Monat und Tag" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenGeburtstag" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="date" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPatient.birthDate" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt" />
      <short value="Verordnender Arzt" />
      <definition value="Angaben zum verordnenden Arzt. Anzugeben, wenn ein Arzt zur Ausstellung identifiziert werden kann." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.performer(ERPServiceRequestPractitioner)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Falls vorher bekannt aus Kontaktmanagement oder vorheriger RezeptID" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.id">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.extension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.LANR">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.LANR" />
      <short value="LANR des Arztes" />
      <definition value="LANR des Arztes" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.LANR" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPractitioner.identifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.Name">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.Name" />
      <short value="Name des Arztes" />
      <definition value="Name des Arztes" />
      <comment value="Names may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts might or might not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems must care about name parts around the world varies widely." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.Name" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="HumanName" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XPN" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="EN (actually, PN)" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="ProviderName" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPractitioner.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender" />
      <short value="Anfragender" />
      <definition value="Angaben zum anfragenden" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="log-prescription-request-1" />
        <severity value="error" />
        <human value="Wenn eine Anfrage gestellt wird (status = 'active'), muss auch der Anfragende vorhanden sein." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.requester(ERPServiceRequestOrganization)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.id">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.extension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.AnfragenderTyp">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.AnfragenderTyp" />
      <short value="Typ des Anfragenden" />
      <definition value="Folgende Typen sind zulässig: Apotheke, Pflegeeinrichtung" />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.AnfragenderTyp" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="log-prescription-request-2" />
        <severity value="error" />
        <human value="Wenn eine Anfrage von einer Apotheke (involvierteParteien.Anfragender.AnfragenderTyp = 'APO') gestellt wird, muss die Angabe der Pflegeeinrichtung zur Kopie angegeben werden (involvierteParteien.PflegeeinrichtungKopie)." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Name">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Name" />
      <short value="Name des Anfragenden" />
      <definition value="Name des Anfragenden" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Name" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Adresse">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Adresse" />
      <short value="Straßenadresse des Anfragenden" />
      <definition value="Straßenadresse des Anfragenden" />
      <comment value="Note: address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates.  Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource)." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Adresse" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Address" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XAD" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Address" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.address" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Telefon">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Telefon" />
      <short value="Telefonnummer des Anfragenden" />
      <definition value="Telefonnummer des Anfragenden" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Telefon" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.contact.telecom:tel.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie" />
      <short value="Zu benachrichtigende Pflegeeinrichtung" />
      <definition value="Angaben zur Pflegeeinrichtung, die über den Ablauf der Rezeptanforderung per Kopie informiert werden soll. Muss angegeben werden, wenn die Apotheke die Rezeptanforderung stellt." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="log-prescription-request-2" />
        <severity value="error" />
        <human value="Wenn eine Anfrage von einer Apotheke (involvierteParteien.Anfragender.AnfragenderTyp = 'APO') gestellt wird, muss die Angabe der Pflegeeinrichtung zur Kopie angegeben werden (involvierteParteien.PflegeeinrichtungKopie)." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.supportingInfo:pflegeeinrichtungKopie(ERPServiceRequestOrganization)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes AVS" />
        <comment value="Im Fall, dass die Apotheke die Anfrage initiiert" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.id">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.extension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Name">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Name" />
      <short value="Name der Pflegeeinrichtung" />
      <definition value="Name der Pflegeeinrichtung" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Name" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes AVS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Telefon">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Telefon" />
      <short value="Telefonnummer der Pflegeeinrichtung" />
      <definition value="Telefonnummer der Pflegeeinrichtung" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Telefon" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.contact.telecom:tel.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes AVS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.KIMAdresse">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.KIMAdresse" />
      <short value="KIM-Adresse der Pflegeeinrichtung" />
      <definition value="KIM-Adresse der Pflegeeinrichtung" />
      <comment value="Note: address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates.  Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource)." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.KIMAdresse" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Address" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="XAD" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="AD" />
      </mapping>
      <mapping>
        <identity value="servd" />
        <map value="Address" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.contact.telecom:kim.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes AVS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Freitext">
      <path value="gem-erp-sr-log-prescription-request.Freitext" />
      <short value="Freitext" />
      <definition value="Individuelle Nachricht an den Empfänger" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Freitext" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.note" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung" />
      <short value="Grund der Anforderung" />
      <definition value="Entweder Codiert oder als Freitext" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung.id">
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung.extension">
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundCode">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundCode" />
      <short value="Code des Grundes" />
      <definition value="Folgende Gründe sind vorgesehen: Korrektur, Reichweite erschöpft(Dauermedikation), nach Vitalwertmessung, nach Bedarf (z.B. aufgrund von Schmerzen)" />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundCode" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.coding" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundText">
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundText" />
      <short value="Text des Grundes" />
      <definition value="Text des Grundes" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundText" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.text" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Prioritaet">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.Prioritaet" />
      <short value="Priorität" />
      <definition value="Angabe der Priorität der Anforderung" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Prioritaet" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.priority" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Prioritaet.id">
      <path value="gem-erp-sr-log-prescription-request.Prioritaet.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Prioritaet.extension">
      <path value="gem-erp-sr-log-prescription-request.Prioritaet.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Prioritaet.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.Prioritaet.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Prioritaet.PrioritaetCode">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.Prioritaet.PrioritaetCode" />
      <short value="Priorität der Anforderung" />
      <definition value="Folgende Prioritäten sind zulässig: Hoch, Normal" />
      <comment value="Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Prioritaet.PrioritaetCode" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="CV" />
      </mapping>
      <mapping>
        <identity value="orim" />
        <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.priority" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.Restreichweite" />
      <short value="Restreichweite" />
      <definition value="Angabe der Restreichweite" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Restreichweite" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.extension:remainingSupply" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Abfrage/ Eingabe im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.id">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.extension">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.Freitext">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.Freitext" />
      <short value="Restreichweite in Tage oder Anzahl an Einheiten" />
      <definition value="Restreichweite in Tage oder Anzahl an Einheiten" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Restreichweite.Freitext" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.extension:remainingSupplyFreeText.valueString" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.Einheit">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.Einheit" />
      <short value="Einheit der Restreichweite" />
      <definition value="Einheit der Restreichweite" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Restreichweite.Einheit" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.extension:remainingSupply.unit" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Ggf. automatisierte Berechnung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.Wert">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.Wert" />
      <short value="Wert der Restreichweite" />
      <definition value="Wert der Restreichweite" />
      <comment value="Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Restreichweite.Wert" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="decimal" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.extension:remainingSupply.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Ggf. automatisierte Berechnung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Anhaenge">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.Anhaenge" />
      <short value="Anhänge" />
      <definition value="Anhänge zur Anforderung. Das können PDFs, Bilder oder andere Dokumente sein." />
      <comment value="Werden auf Ebene der KIM-Nachricht angehangen" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Anhaenge" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Attachment" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="att-1" />
        <severity value="error" />
        <human value="If the Attachment has data, it SHALL have a contentType" />
        <expression value="data.empty() or contentType.exists()" />
        <xpath value="not(exists(f:data)) or exists(f:contentType)" />
        <source value="http://hl7.org/fhir/StructureDefinition/Attachment" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="ED/RP" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="ED" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Generierung oder Bereitstellung im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.Medikation" />
      <short value="Medikation" />
      <definition value="Angaben zur Medikation" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Medikation" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.basedOn(ERPServiceRequestMedicationRequest)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.id">
      <path value="gem-erp-sr-log-prescription-request.Medikation.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.extension">
      <path value="gem-erp-sr-log-prescription-request.Medikation.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.Medikation.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.VorherigeRezeptID">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.Medikation.VorherigeRezeptID" />
      <short value="ID des vorherigen Rezepts" />
      <definition value="Kann bei der Anforderung einer Folgeverordnung verwendet werden, um einen Bezug zu einer vorherigen Verordnung herzustellen." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Medikation.VorherigeRezeptID" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.extension:PriorPrescriptionID.valueIdentifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Kann aus dem Medikamentenmanagement abgefragt werden" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.MedikationsReferenz">
      <path value="gem-erp-sr-log-prescription-request.Medikation.MedikationsReferenz" />
      <short value="Referenz auf das Medikamentenobjekt" />
      <definition value="Referenz auf das Medikamentenobjekt nach KBV_Verordnung (Freitext, PZN, Wirkstoff, Rezeptur)" />
      <comment value="Folgende Profile aus dem E-Rezept Verordnungsdatensatz sind zulässig: KBV_PR_ERP_Medication_Compounding, KBV_PR_ERP_Medication_FreeText, KBV_PR_ERP_Medication _Ingredient, KBV_PR_ERP_Medication_PZN" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Medikation.MedikationsReferenz" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Medication" />
      </type>
      <constraint>
        <key value="dom-2" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" />
        <expression value="contained.contained.empty()" />
        <xpath value="not(parent::f:contained and f:contained)" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-4" />
        <severity value="error" />
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" />
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" />
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-3" />
        <severity value="error" />
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource" />
        <expression value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" />
        <xpath value="not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
          <valueBoolean value="true" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
          <valueMarkdown value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." />
        </extension>
        <key value="dom-6" />
        <severity value="warning" />
        <human value="A resource should have narrative for robust management" />
        <expression value="text.`div`.exists()" />
        <xpath value="exists(f:text/h:div)" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <constraint>
        <key value="dom-5" />
        <severity value="error" />
        <human value="If a resource is contained in another resource, it SHALL NOT have a security label" />
        <expression value="contained.meta.security.empty()" />
        <xpath value="not(exists(f:contained/*/f:meta/f:security))" />
        <source value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="script10.6" />
        <map value="NewRx/MedicationPrescribed&#xD;-or-&#xD;RxFill/MedicationDispensed&#xD;-or-&#xD;RxHistoryResponse/MedicationDispensed&#xD;-or-&#xD;RxHistoryResponse/MedicationPrescribed" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="ManufacturedProduct[classCode=ADMM]" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.medication" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen" />
      <short value="Anzahl der Packungen" />
      <definition value="Anzahl der Packungen" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.dispenseReques.quantity" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.id">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.id" />
      <representation value="xmlAttr" />
      <short value="Unique id for inter-element referencing" />
      <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="string" />
        </extension>
        <code value="http://hl7.org/fhirpath/System.String" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.extension">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <description value="Extensions are always sliced by (at least) url" />
        <rules value="open" />
      </slicing>
      <short value="Additional content defined by implementations" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <alias value="extensions" />
      <alias value="user content" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.modifierExtension">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.modifierExtension" />
      <short value="Extensions that cannot be ignored even if unrecognized" />
      <definition value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.&#xA;&#xA;Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <requirements value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." />
      <alias value="extensions" />
      <alias value="user content" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
        <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
      </constraint>
      <isModifier value="true" />
      <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Einheit">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Einheit" />
      <short value="Einheit der Menge, fix auf 'Packung' gesetzt" />
      <definition value="Einheit der Menge, fix auf 'Packung' gesetzt" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Einheit" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.dispenseRequest.quantity.code" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Wert">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Wert" />
      <short value="Anzahl der Packungen" />
      <definition value="Anzahl der Packungen" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Wert" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.dispenseRequest.quantity.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AngabeMVO">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AngabeMVO" />
      <short value="Angabe MVO" />
      <definition value="Angabe, ob der anfordernde eine MVO wünscht. Es obliegt dem Verordnenden dem Wunsch nachzukommen. Der verordnende LE entscheidet über die Menge und die Zeiträume" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="gem-erp-sr-log-prescription-request.Medikation.AngabeMVO" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.extension:requestMVO.extension:Kennzeichen.valueBoolean" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Angabemöglichkeit im Moment der Anforderung. Unterstützung ggf. durch PS." />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="gem-erp-sr-log-prescription-request">
      <path value="gem-erp-sr-log-prescription-request" />
      <short value="Rezeptanforderung" />
      <definition value="Fachliches Modell zur Beschreibung einer Rezeptanforderung" />
      <constraint>
        <key value="log-prescription-request-1" />
        <severity value="error" />
        <human value="Wenn eine Anfrage gestellt wird (status = 'active'), muss auch der Anfragende vorhanden sein." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <constraint>
        <key value="log-prescription-request-2" />
        <severity value="error" />
        <human value="Wenn eine Anfrage von einer Apotheke (involvierteParteien.Anfragender.AnfragenderTyp = 'APO') gestellt wird, muss die Angabe der Pflegeeinrichtung zur Kopie angegeben werden (involvierteParteien.PflegeeinrichtungKopie)." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten" />
      <short value="Metadaten im MessageHeader" />
      <definition value="Metadaten im MessageHeader" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger" />
      <short value="Empfänger der Nachricht" />
      <definition value="Empfänger der Nachricht" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.destination" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Aus Kontaktmanagement oder VZD Suche" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.KIMAdresse">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.KIMAdresse" />
      <short value="KIM-Adresse des Empfängers" />
      <definition value="KIM-Adresse des Empfängers" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="url" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.destination.endpoint" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Aus Kontaktmanagement oder VZD Suche" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.TelematikID">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Empfaenger.TelematikID" />
      <short value="Telematik-ID des Absenders" />
      <definition value="Telematik-ID des Absenders" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="url" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.destination.receiver.identifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Aus Kontaktmanagement oder VZD Suche" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender" />
      <short value="Absender der Nachricht" />
      <definition value="Absender der Nachricht" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.sender" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender.TelematikID">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.TelematikID" />
      <short value="Telematik-ID des Absenders" />
      <definition value="Telematik-ID des Absenders" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="url" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.sender.identifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS, SMC-B oder HBA Zertifikat" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.Absender.Name">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.Absender.Name" />
      <short value="Name des Absenders" />
      <definition value="Name des Absenders" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.sender.display" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem" />
      <short value="Absendendes System" />
      <definition value="Absendendes System" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Name">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Name" />
      <short value="Name des Herstellers des absendenden Systems" />
      <definition value="Name des Herstellers des absendenden Systems" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Software">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Software" />
      <short value="Name der Software des absendenden Systems" />
      <definition value="Name der Software des absendenden Systems" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.software" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Version">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Version" />
      <short value="Version des absendenden Systems" />
      <definition value="Version des absendenden Systems" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.version" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.EMailKontakt">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.EMailKontakt" />
      <short value="E-Mail-Kontakt des absendenden Systems" />
      <definition value="E-Mail-Kontakt des absendenden Systems" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.contact.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Website">
      <path value="gem-erp-sr-log-prescription-request.MetaDaten.AbsendendesSystem.Website" />
      <short value="Website des absendenden Systems" />
      <definition value="Website des absendenden Systems" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="url" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestDispenseRequestHeader.source.endpoint" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Erstellendes PS" />
        <comment value="Automatisiert durch Software gesetzt" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Status">
      <path value="gem-erp-sr-log-prescription-request.Status" />
      <short value="Status" />
      <definition value="Status der Anforderung. Wird genutzt, um den Bearbeitungsstand einer Anfrage zu verfolgen. Im Falle der Rezeptanforderung wird eine Anfrage mit dem Status 'active' erstellt und geschickt und signalisiert somit eine neue Anfrage." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <constraint>
        <key value="log-prescription-request-1" />
        <severity value="error" />
        <human value="Wenn eine Anfrage gestellt wird (status = 'active'), muss auch der Anfragende vorhanden sein." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.status" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Setzt den Status der Anfrage auf 'active'" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.VorgangsID">
      <path value="gem-erp-sr-log-prescription-request.VorgangsID" />
      <short value="ID des Vorgangs" />
      <definition value="Wird vom initialen Sender gesetzt und muss immer mitgeführt werden." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.identifier:requestId.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Erzeugt einen Vorgang und generiert eine VorgangsID" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.VersichertenEinloesung">
      <path value="gem-erp-sr-log-prescription-request.VersichertenEinloesung" />
      <short value="Versicherten Einlösung" />
      <definition value="Angabe, ob der Versicherte das E-Rezept selbst einlösen möchte." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.extension:redeemByPatient.valueBoolean" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Angabemöglichkeit im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien" />
      <short value="Involvierte Parteien" />
      <definition value="Angaben zu den involvierten Parteien" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.subject/performer/requester" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen" />
      <short value="Patienteninformationen" />
      <definition value="Angaben zum Patienten" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.subject(ERPServiceRequestPatient)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Abfrage aus Stammdatenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenIdentifierKVNR">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenIdentifierKVNR" />
      <short value="KVNR des Patienten" />
      <definition value="KVNR des Patienten" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPatient.identifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenName">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenName" />
      <short value="Name des Patienten" />
      <definition value="Strukturierte Angabe des Namens des Patienten" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="HumanName" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPatient.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenGeburtstag">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PatientenInformationen.PatientenGeburtstag" />
      <short value="Geburtstag des Patienten" />
      <definition value="Angabe des Geburtstags mit Jahr, Monat und Tag" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="date" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPatient.birthDate" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt" />
      <short value="Verordnender Arzt" />
      <definition value="Angaben zum verordnenden Arzt. Anzugeben, wenn ein Arzt zur Ausstellung identifiziert werden kann." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.performer(ERPServiceRequestPractitioner)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Falls vorher bekannt aus Kontaktmanagement oder vorheriger RezeptID" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.LANR">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.LANR" />
      <short value="LANR des Arztes" />
      <definition value="LANR des Arztes" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPractitioner.identifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.Name">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.VerordnenderArzt.Name" />
      <short value="Name des Arztes" />
      <definition value="Name des Arztes" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="HumanName" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPractitioner.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender" />
      <short value="Anfragender" />
      <definition value="Angaben zum anfragenden" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="log-prescription-request-1" />
        <severity value="error" />
        <human value="Wenn eine Anfrage gestellt wird (status = 'active'), muss auch der Anfragende vorhanden sein." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.requester(ERPServiceRequestOrganization)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.AnfragenderTyp">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.AnfragenderTyp" />
      <short value="Typ des Anfragenden" />
      <definition value="Folgende Typen sind zulässig: Apotheke, Pflegeeinrichtung" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <constraint>
        <key value="log-prescription-request-2" />
        <severity value="error" />
        <human value="Wenn eine Anfrage von einer Apotheke (involvierteParteien.Anfragender.AnfragenderTyp = 'APO') gestellt wird, muss die Angabe der Pflegeeinrichtung zur Kopie angegeben werden (involvierteParteien.PflegeeinrichtungKopie)." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Name">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Name" />
      <short value="Name des Anfragenden" />
      <definition value="Name des Anfragenden" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Adresse">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Adresse" />
      <short value="Straßenadresse des Anfragenden" />
      <definition value="Straßenadresse des Anfragenden" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Address" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.address" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Telefon">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.Anfragender.Telefon" />
      <short value="Telefonnummer des Anfragenden" />
      <definition value="Telefonnummer des Anfragenden" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.contact.telecom:tel.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie" />
      <short value="Zu benachrichtigende Pflegeeinrichtung" />
      <definition value="Angaben zur Pflegeeinrichtung, die über den Ablauf der Rezeptanforderung per Kopie informiert werden soll. Muss angegeben werden, wenn die Apotheke die Rezeptanforderung stellt." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <constraint>
        <key value="log-prescription-request-2" />
        <severity value="error" />
        <human value="Wenn eine Anfrage von einer Apotheke (involvierteParteien.Anfragender.AnfragenderTyp = 'APO') gestellt wird, muss die Angabe der Pflegeeinrichtung zur Kopie angegeben werden (involvierteParteien.PflegeeinrichtungKopie)." />
        <source value="https://gematik.de/fhir/erp-servicerequest/StructureDefinition/gem-erp-sr-log-prescription-request" />
      </constraint>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.supportingInfo:pflegeeinrichtungKopie(ERPServiceRequestOrganization)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes AVS" />
        <comment value="Im Fall, dass die Apotheke die Anfrage initiiert" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Name">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Name" />
      <short value="Name der Pflegeeinrichtung" />
      <definition value="Name der Pflegeeinrichtung" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.name" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes AVS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Telefon">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.Telefon" />
      <short value="Telefonnummer der Pflegeeinrichtung" />
      <definition value="Telefonnummer der Pflegeeinrichtung" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.contact.telecom:tel.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes AVS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.KIMAdresse">
      <path value="gem-erp-sr-log-prescription-request.involvierteParteien.PflegeeinrichtungKopie.KIMAdresse" />
      <short value="KIM-Adresse der Pflegeeinrichtung" />
      <definition value="KIM-Adresse der Pflegeeinrichtung" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Address" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestOrganization.contact.telecom:kim.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes AVS" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Freitext">
      <path value="gem-erp-sr-log-prescription-request.Freitext" />
      <short value="Freitext" />
      <definition value="Individuelle Nachricht an den Empfänger" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.note" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung">
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung" />
      <short value="Grund der Anforderung" />
      <definition value="Entweder Codiert oder als Freitext" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundCode">
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundCode" />
      <short value="Code des Grundes" />
      <definition value="Folgende Gründe sind vorgesehen: Korrektur, Reichweite erschöpft(Dauermedikation), nach Vitalwertmessung, nach Bedarf (z.B. aufgrund von Schmerzen)" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.coding" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundText">
      <path value="gem-erp-sr-log-prescription-request.GrundDerAnforderung.GrundText" />
      <short value="Text des Grundes" />
      <definition value="Text des Grundes" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.text" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Prioritaet">
      <path value="gem-erp-sr-log-prescription-request.Prioritaet" />
      <short value="Priorität" />
      <definition value="Angabe der Priorität der Anforderung" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.priority" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Prioritaet.PrioritaetCode">
      <path value="gem-erp-sr-log-prescription-request.Prioritaet.PrioritaetCode" />
      <short value="Priorität der Anforderung" />
      <definition value="Folgende Prioritäten sind zulässig: Hoch, Normal" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.priority" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite" />
      <short value="Restreichweite" />
      <definition value="Angabe der Restreichweite" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.extension:remainingSupply" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Abfrage/ Eingabe im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.Freitext">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.Freitext" />
      <short value="Restreichweite in Tage oder Anzahl an Einheiten" />
      <definition value="Restreichweite in Tage oder Anzahl an Einheiten" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.extension:remainingSupplyFreeText.valueString" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Abfrage im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.Einheit">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.Einheit" />
      <short value="Einheit der Restreichweite" />
      <definition value="Einheit der Restreichweite" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.extension:remainingSupply.unit" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Ggf. automatisierte Berechnung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Restreichweite.Wert">
      <path value="gem-erp-sr-log-prescription-request.Restreichweite.Wert" />
      <short value="Wert der Restreichweite" />
      <definition value="Wert der Restreichweite" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.reasonCode.extension:remainingSupply.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Ggf. automatisierte Berechnung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Anhaenge">
      <path value="gem-erp-sr-log-prescription-request.Anhaenge" />
      <short value="Anhänge" />
      <definition value="Anhänge zur Anforderung. Das können PDFs, Bilder oder andere Dokumente sein." />
      <comment value="Werden auf Ebene der KIM-Nachricht angehangen" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Attachment" />
      </type>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Generierung oder Bereitstellung im Moment der Anforderung" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation">
      <path value="gem-erp-sr-log-prescription-request.Medikation" />
      <short value="Medikation" />
      <definition value="Angaben zur Medikation" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestPrescriptionRequest.basedOn(ERPServiceRequestMedicationRequest)" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.VorherigeRezeptID">
      <path value="gem-erp-sr-log-prescription-request.Medikation.VorherigeRezeptID" />
      <short value="ID des vorherigen Rezepts" />
      <definition value="Kann bei der Anforderung einer Folgeverordnung verwendet werden, um einen Bezug zu einer vorherigen Verordnung herzustellen." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.extension:PriorPrescriptionID.valueIdentifier.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Kann aus dem Medikamentenmanagement abgefragt werden" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.MedikationsReferenz">
      <path value="gem-erp-sr-log-prescription-request.Medikation.MedikationsReferenz" />
      <short value="Referenz auf das Medikamentenobjekt" />
      <definition value="Referenz auf das Medikamentenobjekt nach KBV_Verordnung (Freitext, PZN, Wirkstoff, Rezeptur)" />
      <comment value="Folgende Profile aus dem E-Rezept Verordnungsdatensatz sind zulässig: KBV_PR_ERP_Medication_Compounding, KBV_PR_ERP_Medication_FreeText, KBV_PR_ERP_Medication _Ingredient, KBV_PR_ERP_Medication_PZN" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Medication" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.medication" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen" />
      <short value="Anzahl der Packungen" />
      <definition value="Anzahl der Packungen" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.dispenseReques.quantity" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Einheit">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Einheit" />
      <short value="Einheit der Menge, fix auf 'Packung' gesetzt" />
      <definition value="Einheit der Menge, fix auf 'Packung' gesetzt" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.dispenseRequest.quantity.code" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Wert">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AnzahlPackungen.Wert" />
      <short value="Anzahl der Packungen" />
      <definition value="Anzahl der Packungen" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.dispenseRequest.quantity.value" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Anfragendes PS oder Nutzer des PS" />
        <comment value="Bereitstellung aus Medikamentenmanagement" />
      </mapping>
    </element>
    <element id="gem-erp-sr-log-prescription-request.Medikation.AngabeMVO">
      <path value="gem-erp-sr-log-prescription-request.Medikation.AngabeMVO" />
      <short value="Angabe MVO" />
      <definition value="Angabe, ob der anfordernde eine MVO wünscht. Es obliegt dem Verordnenden dem Wunsch nachzukommen. Der verordnende LE entscheidet über die Menge und die Zeiträume" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <mapping>
        <identity value="Rezeptanforderung-Fachliches-Mapping" />
        <map value="ERPServiceRequestMedicationRequest.extension:requestMVO.extension:Kennzeichen.valueBoolean" />
      </mapping>
      <mapping>
        <identity value="Quelle-Rezeptanforderung-Mapping" />
        <map value="Nutzer des PS" />
        <comment value="Angabemöglichkeit im Moment der Anforderung. Unterstützung ggf. durch PS." />
      </mapping>
    </element>
  </differential>
</StructureDefinition>