<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="logicalmodel-Prescription-R4" />
  <url value="http://linkehr.com/fhir/logicalmodel-prescription-R4" />
  <identifier>
    <system value="openEHR-CKM" />
    <value value="openEHR-EHR-COMPOSITION.prescription.v0" />
  </identifier>
  <version value="0" />
  <name value="Prescription" />
  <title value="Prescription" />
  <status value="draft" />
  <date value="2024-06-18" />
  <publisher value="openEHR" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://www.veratech.es" />
    </telecom>
  </contact>
  <description value="Set of medication orders communicated to pharmacy." />
  <purpose value="A composition for transferring medication orders to the pharmacy." />
  <fhirVersion value="4.0.0" />
  <mapping>
    <identity value="openEHR" />
    <uri value="http://openehr.org" />
    <name value="openEHR Mapping" />
  </mapping>
  <mapping>
    <identity value="openEHR-natural" />
    <uri value="http://openehr.org" />
    <name value="openEHR natural path" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="StructureDefinition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <snapshot>
    <element id="Prescription">
      <path value="Prescription" />
      <short value="Prescription" />
      <definition value="Set of medication orders communicated to pharmacy." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Prescription" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Prescription.category">
      <path value="Prescription.category" />
      <short value="Prescription" />
      <definition value="Set of medication orders communicated to pharmacy." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Prescription.category" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Prescription.EVENT_CONTEXT">
      <path value="Prescription.EVENT_CONTEXT" />
      <definition value="EVENT_CONTEXT" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Prescription.EVENT_CONTEXT" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Prescription.EVENT_CONTEXT.other_context">
      <path value="Prescription.EVENT_CONTEXT.other_context" />
      <short value="Tree" />
      <definition value="@ internal @" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Prescription.EVENT_CONTEXT.other_context" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Prescription.EVENT_CONTEXT.other_context.Extension">
      <path value="Prescription.EVENT_CONTEXT.other_context.Extension" />
      <short value="Extension" />
      <definition value="Additional information required to capture local context or to align with other reference models/formalisms." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Prescription.EVENT_CONTEXT.other_context.Extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
    <element id="Prescription.EVENT_CONTEXT.other_context.Prescription_identifier">
      <path value="Prescription.EVENT_CONTEXT.other_context.Prescription_identifier" />
      <short value="Prescription identifier" />
      <definition value="An identifier for the prescription as a whole." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Prescription.EVENT_CONTEXT.other_context.Prescription_identifier" />
        <min value="0" />
        <max value="*" />
      </base>
    </element>
    <element id="Prescription.EVENT_CONTEXT.other_context.Prescription_identifier.value">
      <path value="Prescription.EVENT_CONTEXT.other_context.Prescription_identifier.value" />
      <short value="Prescription identifier" />
      <definition value="An identifier for the prescription as a whole." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Prescription.EVENT_CONTEXT.other_context.Prescription_identifier.value" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <mustSupport value="false" />
      <isModifier value="false" />
      <isSummary value="true" />
    </element>
  </snapshot>
</StructureDefinition>