<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cyehr-sd-dischargereport-r4" />
  <url value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-dischargereport-r4" />
  <name value="CYEHRSDDischargeReport" />
  <title value="Cyprus EHR Discharge Report profile" />
  <status value="draft" />
  <publisher value="eHealth4U" />
  <contact>
    <name value="eHealth Lab" />
    <telecom>
      <system value="email" />
      <value value="ehealthl@ucy.ac.cy" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="*Update: This profile is retired and replaced by http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-visitsummary-r4.* Clinical document used to represent a Discharge Report which can be used for both outpatient and inpatient purposes as part of the prototype of the national integrated EHR of Cyprus. The main use-case of this profile is to record all the necessary data describing the actions taken for the patient and/or the findings that were identified during an encounter as part of an episode of care." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Composition" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/clinicaldocument" />
  <derivation value="constraint" />
  <differential>
    <element id="Composition.meta">
      <path value="Composition.meta" />
    </element>
    <element id="Composition.meta.profile">
      <path value="Composition.meta.profile" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Composition.meta.profile:CyprusEHRProfile">
      <path value="Composition.meta.profile" />
      <sliceName value="CyprusEHRProfile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-dischargereport-r4" />
    </element>
    <element id="Composition.language">
      <path value="Composition.language" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsilanguage" />
      </binding>
    </element>
    <element id="Composition.text">
      <path value="Composition.text" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.extension">
      <path value="Composition.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Composition.extension:versionNumber">
      <path value="Composition.extension" />
      <sliceName value="versionNumber" />
      <min value="0" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.identifier">
      <path value="Composition.identifier" />
      <definition value="A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The National eHealth Authority OID indicating that this is a discharge form document." />
      <comment value="Similar to ClinicalDocument/setId in CDA. See discussion in resource definition for how these relate.&#xD;&#xA;&#xD;&#xA;CyprusEHR: This SHALL be used for the discharge reports of the national integrated EHR of Cyprus." />
      <patternIdentifier>
        <use value="official" />
        <system value="urn:oid:2.16.840.1.113883.3.9143.5.3.1" />
      </patternIdentifier>
      <mustSupport value="true" />
    </element>
    <element id="Composition.identifier.use">
      <path value="Composition.identifier.use" />
      <min value="1" />
    </element>
    <element id="Composition.identifier.system">
      <path value="Composition.identifier.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.identifier.value">
      <path value="Composition.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.status">
      <path value="Composition.status" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.type">
      <path value="Composition.type" />
      <comment value="For Composition type, LOINC is ubiquitous and strongly endorsed by HL7. Most implementation guides will require a specific LOINC code, or use LOINC as an extensible binding.&#xD;&#xA;&#xD;&#xA;CyprusEHR: All CYEHRDischargeForm instances must include the type.code = 34133-9/episodeNoteSummary since they are all considered summary notes on an encounter of a specific episode (see more here: https://motorcycleguy.blogspot.com/2010/08/whats-diff.html). More refining codings are allowed like:&#xD;&#xA;(1) loinc.org/34105-7 for &quot;Hospital Discharge summary&quot; (a very specific summarization of an inpatient episode of care)." />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="34133-9" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
      </binding>
    </element>
    <element id="Composition.type.coding">
      <path value="Composition.type.coding" />
      <min value="1" />
    </element>
    <element id="Composition.type.coding.system">
      <path value="Composition.type.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.type.coding.code">
      <path value="Composition.type.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.type.coding.display">
      <path value="Composition.type.coding.display" />
      <min value="1" />
    </element>
    <element id="Composition.category">
      <path value="Composition.category" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Discharge Report categories" />
      <definition value="A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Specifies the category of the Discharge Report. The general term &quot;Discharge Report&quot; is expected to be used and where applicable a more refiend term can be additionally used." />
      <comment value="This is a metadata field from [XDS/MHD](http://wiki.ihe.net/index.php?title=Mobile_access_to_Health_Documents_(MHD)).&#xD;&#xA;&#xD;&#xA;CyprusEHR: For CYEHR the term 18842-5/Discharge summary will be the only coding used for the created discharge reports." />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <binding>
        <strength value="extensible" />
      </binding>
    </element>
    <element id="Composition.category:dischargeSummary">
      <path value="Composition.category" />
      <sliceName value="dischargeSummary" />
      <short value="Discharge Summary report" />
      <definition value="A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type.&#xD;&#xA;&#xD;&#xA;CyprusEHR: This category indicates that this composition profile represents a discharge summary report. The discharge summary report can be used to give a synopsis of a patient's admission to a hospital or a synospis of a patient's visit to an outpatient doctor." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="18842-5" />
        </coding>
      </patternCodeableConcept>
      <binding>
        <strength value="required" />
      </binding>
    </element>
    <element id="Composition.category:dischargeSummary.coding">
      <path value="Composition.category.coding" />
      <min value="1" />
    </element>
    <element id="Composition.category:dischargeSummary.coding.system">
      <path value="Composition.category.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.category:dischargeSummary.coding.code">
      <path value="Composition.category.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.category:dischargeSummary.coding.display">
      <path value="Composition.category.coding.display" />
      <min value="1" />
    </element>
    <element id="Composition.subject">
      <path value="Composition.subject" />
      <short value="Who Discharge Report is about" />
      <definition value="CyprusEHR: Who Discharge Report is about. The discharge report is about a patient to give a synopsis of his/her health data as recorded during his/her admission to a hospital or visit to an outpatient doctor as part of an encounter." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Composition.subject.reference">
      <path value="Composition.subject.reference" />
      <min value="1" />
    </element>
    <element id="Composition.encounter">
      <path value="Composition.encounter" />
      <short value="Encounter associated with this discharge report" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-encounter-r4" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Composition.encounter.reference">
      <path value="Composition.encounter.reference" />
      <min value="1" />
    </element>
    <element id="Composition.author">
      <path value="Composition.author" />
      <short value="Who and/or what authored the discharge report" />
      <definition value="CyprusEHR: Identifies who is responsible for the information in the discharge report, not necessarily who typed it in." />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.&#xD;&#xA;&#xD;&#xA;CyprusEHR: For CYEHR: in the cases a Practitioner has authored the discharge report, the corresponding CYEHRSDPractitionerRole shall be used." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitionerrole-r4" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitioner-r4" />
      </type>
    </element>
    <element id="Composition.author.reference">
      <path value="Composition.author.reference" />
      <min value="1" />
    </element>
    <element id="Composition.title">
      <path value="Composition.title" />
      <short value="Title of the Discharge Report" />
      <definition value="Official human-readable label for the discharge report." />
      <mustSupport value="true" />
    </element>
    <element id="Composition.confidentiality">
      <path value="Composition.confidentiality" />
      <comment value="The exact use of this element, and enforcement and issues related to highly sensitive documents are out of scope for the base specification, and delegated to implementation profiles (see security section).  This element is labeled as a modifier because highly confidential documents must not be treated as if they are not.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Following the eHSDI MVC corresponding value set (eHDSIConfidentiality) use only the following codes for the national Integrated EHR system of Cyprus: &#xD;&#xA;* N (display: normal)&#xD;&#xA;* R (display: restricted)&#xD;&#xA;* V (display: very restricted)" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Codes specifying the level of confidentiality of the composition (eHDSI MVC compatible)" />
      </binding>
    </element>
    <element id="Composition.attester">
      <path value="Composition.attester" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.attester.mode">
      <path value="Composition.attester.mode" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.attester.time">
      <path value="Composition.attester.time" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.attester.party">
      <path value="Composition.attester.party" />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.&#xD;&#xA;&#xD;&#xA;CyprusEHR: For the discharge reports created by the national integrated EHR of Cyprus, the practitionerRole of a doctor will be referenced to indicate the attester." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitionerrole-r4" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-practitioner-r4" />
        <targetProfile value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-organization-r4" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Composition.attester.party.reference">
      <path value="Composition.attester.party.reference" />
      <min value="1" />
    </element>
    <element id="Composition.custodian">
      <path value="Composition.custodian" />
      <short value="National eHealth Authority of Cyprus" />
      <definition value="Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The National eHealth Authority of Cyprus which is the custodian of the discharge reports that are stored in the national integrated EHR system of Cyprus." />
      <comment value="This is useful when documents are derived from a composition - provides guidance for how to get the latest version of the document. This is optional because this is sometimes not known by the authoring system, and can be inferred by context. However, it is important that this information be known when working with a derived document, so providing a custodian is encouraged.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Every dicharge report stored in the national integrated EHR of Cyprus SHALL have as custodian the NeHA." />
    </element>
    <element id="Composition.custodian.reference">
      <path value="Composition.custodian.reference" />
      <min value="1" />
    </element>
    <element id="Composition.custodian.identifier">
      <path value="Composition.custodian.identifier" />
      <patternIdentifier>
        <use value="official" />
        <system value="urn:ietf:rfc:3986" />
        <value value="urn:oid:2.16.840.1.113883.3.9143.1.1" />
      </patternIdentifier>
    </element>
    <element id="Composition.custodian.identifier.system">
      <path value="Composition.custodian.identifier.system" />
      <min value="1" />
    </element>
    <element id="Composition.custodian.identifier.value">
      <path value="Composition.custodian.identifier.value" />
      <min value="1" />
    </element>
    <element id="Composition.custodian.display">
      <path value="Composition.custodian.display" />
      <fixedString value="National eHealth Authority of Cyprus" />
    </element>
    <element id="Composition.relatesTo">
      <path value="Composition.relatesTo" />
      <comment value="A document is a version specific composition.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Not to be used in the context of Cyprus EHR." />
    </element>
    <element id="Composition.event">
      <path value="Composition.event" />
      <comment value="The event needs to be consistent with the type element, though can provide further information if desired.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Not to be used in the context of Cyprus EHR." />
    </element>
    <element id="Composition.event.code.coding.system">
      <path value="Composition.event.code.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.event.code.coding.code">
      <path value="Composition.event.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.event.code.coding.display">
      <path value="Composition.event.code.coding.display" />
      <min value="1" />
    </element>
    <element id="Composition.section">
      <path value="Composition.section" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <short value="Sections composing the Discharge Report" />
      <definition value="The root of the sections that make up the discharge report.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The structure of the sections composing the CYEHRDischargeReport is designed in a way to be conformant with the XeHealth Discharge Report." />
      <min value="2" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section.code">
      <path value="Composition.section.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Composition.section.code.coding.system">
      <path value="Composition.section.code.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.section.code.coding.code">
      <path value="Composition.section.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.section.author.reference">
      <path value="Composition.section.author.reference" />
      <min value="1" />
    </element>
    <element id="Composition.section.focus.reference">
      <path value="Composition.section.focus.reference" />
      <min value="1" />
    </element>
    <element id="Composition.section.orderedBy">
      <path value="Composition.section.orderedBy" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Composition.section.orderedBy.coding.system">
      <path value="Composition.section.orderedBy.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.section.orderedBy.coding.code">
      <path value="Composition.section.orderedBy.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.section.orderedBy.coding.display">
      <path value="Composition.section.orderedBy.coding.display" />
      <min value="1" />
    </element>
    <element id="Composition.section.entry.reference">
      <path value="Composition.section.entry.reference" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section.entry.identifier.system">
      <path value="Composition.section.entry.identifier.system" />
      <min value="1" />
    </element>
    <element id="Composition.section.entry.identifier.value">
      <path value="Composition.section.entry.identifier.value" />
      <min value="1" />
    </element>
    <element id="Composition.section.emptyReason">
      <path value="Composition.section.emptyReason" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Composition.section.emptyReason.coding.system">
      <path value="Composition.section.emptyReason.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.section.emptyReason.coding.code">
      <path value="Composition.section.emptyReason.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.section.section">
      <path value="Composition.section.section" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Composition#Composition.section" />
    </element>
    <element id="Composition.section:sectionAllergies">
      <path value="Composition.section" />
      <sliceName value="sectionAllergies" />
      <short value="&quot;Allergies &amp;or adverse reactions&quot; section" />
      <definition value="The root of the sections that make up the composition.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Contains a list and description of any allergies or adverse reactions pertinent to current or past medical history. At a minimum this section should contain currently active and any relevant historical allergies and adverse reactions (term description by LOINC)." />
      <comment value="CyprusEHR: This section is designed in a way to be conformant with the sectionAllergies from XeHealth Discharge Report." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionAllergies.title">
      <path value="Composition.section.title" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionAllergies.code">
      <path value="Composition.section.code" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="48765-2" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionAllergies.code.coding">
      <path value="Composition.section.code.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.code.coding.system">
      <path value="Composition.section.code.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.code.coding.code">
      <path value="Composition.section.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.code.coding.display">
      <path value="Composition.section.code.coding.display" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size&#xD;&#xA;&#xD;&#xA;CyprusEHR: Display is optional due to the conformance requirement with the XeHealth DischargeReport.sectionAllergies.code.coding" />
    </element>
    <element id="Composition.section:sectionAllergies.author.reference">
      <path value="Composition.section.author.reference" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.focus.reference">
      <path value="Composition.section.focus.reference" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.text">
      <path value="Composition.section.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionAllergies.orderedBy">
      <path value="Composition.section.orderedBy" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Composition.section:sectionAllergies.orderedBy.coding.system">
      <path value="Composition.section.orderedBy.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.orderedBy.coding.code">
      <path value="Composition.section.orderedBy.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.orderedBy.coding.display">
      <path value="Composition.section.orderedBy.coding.display" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.entry">
      <path value="Composition.section.entry" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionAllergies.entry.reference">
      <path value="Composition.section.entry.reference" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionAllergies.entry.identifier.system">
      <path value="Composition.section.entry.identifier.system" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.entry.identifier.value">
      <path value="Composition.section.entry.identifier.value" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionAllergies.emptyReason">
      <path value="Composition.section.emptyReason" />
      <comment value="The various reasons for an empty section make a significant interpretation to its interpretation. Note that this code is for use when the entire section content has been suppressed, and not for when individual items are omitted - implementers may consider using a text note or a flag on an entry in these cases.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Omitted due to conformance requirement with the XeHealth DischargeReport.sectionAllergies" />
      <max value="0" />
    </element>
    <element id="Composition.section:sectionAllergies.section">
      <path value="Composition.section.section" />
      <comment value="Nested sections are primarily used to help human readers navigate to particular portions of the document.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Omitted due to conformance requirement with the XeHealth DischargeReport.sectionAllergies" />
      <max value="0" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Composition#Composition.section" />
    </element>
    <element id="Composition.section:sectionMedications">
      <path value="Composition.section" />
      <sliceName value="sectionMedications" />
      <short value="&quot;History of Medication&quot; section" />
      <definition value="The root of the sections that make up the composition.&#xD;&#xA;&#xD;&#xA;CyprusEHR: History of medication use defines a patient's current medications and history of pertinent medications. This term may also include a patient's prescription and dispense history (term description by LOINC)." />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionMedications.title">
      <path value="Composition.section.title" />
      <short value="Medication Summary section" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionMedications.code">
      <path value="Composition.section.code" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="10160-0" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionMedications.code.coding">
      <path value="Composition.section.code.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Composition.section:sectionMedications.code.coding.system">
      <path value="Composition.section.code.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionMedications.code.coding.code">
      <path value="Composition.section.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionMedications.text">
      <path value="Composition.section.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionMedications.orderedBy">
      <path value="Composition.section.orderedBy" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Composition.section:sectionMedications.orderedBy.coding.system">
      <path value="Composition.section.orderedBy.coding.system" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionMedications.orderedBy.coding.code">
      <path value="Composition.section.orderedBy.coding.code" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionMedications.orderedBy.coding.display">
      <path value="Composition.section.orderedBy.coding.display" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionMedications.entry">
      <path value="Composition.section.entry" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionMedications.entry.reference">
      <path value="Composition.section.entry.reference" />
      <mustSupport value="true" />
    </element>
    <element id="Composition.section:sectionMedications.entry.identifier.system">
      <path value="Composition.section.entry.identifier.system" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionMedications.entry.identifier.value">
      <path value="Composition.section.entry.identifier.value" />
      <min value="1" />
    </element>
    <element id="Composition.section:sectionMedications.emptyReason">
      <path value="Composition.section.emptyReason" />
      <max value="0" />
    </element>
    <element id="Composition.section:sectionMedications.section">
      <path value="Composition.section.section" />
      <max value="0" />
      <contentReference value="http://hl7.org/fhir/StructureDefinition/Composition#Composition.section" />
    </element>
  </differential>
</StructureDefinition>