<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="cyehr-ext-medicinalproductdefinition" />
  <meta>
    <versionId value="2" />
    <lastUpdated value="2023-03-29T21:04:11.3892385+00:00" />
  </meta>
  <url value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-medicinalproductdefinition" />
  <name value="CYEHREXTMedicinalProductDefinition" />
  <title value="Cyprus EHR Extension: Medicinal Product Definition" />
  <status value="draft" />
  <experimental value="true" />
  <date value="2022-03-19T16:33:37.6858741+00:00" />
  <publisher value="eHealth4U" />
  <contact>
    <name value="eHealth Lab (University of Cyprus)" />
    <telecom>
      <system value="email" />
      <value value="ehealthl@ucy.ac.cy" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Extension to describe a subset of the parameters included in the medicinal product definition. Inspired by R5 http://hl7.org/fhir/5.0.0-snapshot1/medicinalproductdefinition.html." />
  <purpose value="Cyprus Drug Information System team requested to include the following fields per each medication linked to a medication statement in the national EHR of Cyprus: (1) the medication name, (2) the strength of the medication as reported in the name, (3) the description of the medication and (4) the route of administration. These fields were not included in total in one of the &quot;Medications work group&quot;  R4 core resources, neither in the draft R4 Medications resources. &#xD;&#xA;&#xD;&#xA;However, they are included in the R5 version (5.00-snapshot1) as part of the MedicinalProductDefinition resource. In this context the particular fields were built as extensions keeping the same format and structure as in the MedicinalProductDefinition resource (which would be the resource that we would use to represent the medications for the EHR if it was available in R4 according to CYPDIS requirements)." />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="fhirpath" />
    <expression value="(Medication | Immunization)" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Extension.extension:productName">
      <path value="Extension.extension" />
      <sliceName value="productName" />
      <short value="The full product name" />
      <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.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The full product name." />
      <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.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Inspired by http://hl7.org/fhir/5.0.0-snapshot1/medicinalproductdefinition-definitions.html#MedicinalProductDefinition.name.productName" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:productName.url">
      <path value="Extension.extension.url" />
      <fixedUri value="productName" />
    </element>
    <element id="Extension.extension:productName.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.extension:strength">
      <path value="Extension.extension" />
      <sliceName value="strength" />
      <short value="The drug strength (as part of its name)" />
      <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.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The drug strength defined as part of its name." />
      <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.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Equals to the coded part as represented here:  http://hl7.org/fhir/5.0.0-snapshot1/medicinalproductdefinition-definitions.html#MedicinalProductDefinition.name.namePart&#xD;&#xA;using the following data for the MedicinalProductDefinition.name.namePart.type&#xD;&#xA;{&#xD;&#xA;  &quot;coding&quot;: [&#xD;&#xA;    {&#xD;&#xA;      &quot;system&quot;: &quot;http://hl7.org/fhir/medicinal-product-name-part-type&quot;,&#xD;&#xA;      &quot;version&quot;: &quot;4.6.0&quot;,&#xD;&#xA;      &quot;code&quot;: &quot;StrengthPart&quot;,&#xD;&#xA;      &quot;display&quot;: &quot;Strength part&quot;&#xD;&#xA;    }&#xD;&#xA;  ]&#xD;&#xA;}" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:strength.url">
      <path value="Extension.extension.url" />
      <fixedUri value="strength" />
    </element>
    <element id="Extension.extension:strength.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.extension:description">
      <path value="Extension.extension" />
      <sliceName value="description" />
      <short value="General description of this product" />
      <definition value="CyprusEHR: Textual description. Note that this is not the name of the package or product." />
      <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.&#xD;&#xA;&#xD;&#xA;CyprusEHR: Inspired by http://hl7.org/fhir/5.0.0-snapshot1/medicinalproductdefinition-definitions.html#MedicinalProductDefinition.description" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:description.url">
      <path value="Extension.extension.url" />
      <fixedUri value="description" />
    </element>
    <element id="Extension.extension:description.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="markdown" />
      </type>
    </element>
    <element id="Extension.extension:routeOfAdministration">
      <path value="Extension.extension" />
      <sliceName value="routeOfAdministration" />
      <short value="The path by which the product is taken into or makes contact with the body" />
      <definition value="CyprusEHR: The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route. See also AdministrableProductDefinition resource." />
      <comment value="CyprusEHR: Inspired by: http://hl7.org/fhir/5.0.0-snapshot1/medicinalproductdefinition-definitions.html#MedicinalProductDefinition.route" />
      <min value="0" />
    </element>
    <element id="Extension.extension:routeOfAdministration.url">
      <path value="Extension.extension.url" />
      <fixedUri value="routeOfAdministration" />
    </element>
    <element id="Extension.extension:routeOfAdministration.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips" />
      </type>
    </element>
    <element id="Extension.extension:routeOfAdministration.value[x].coding">
      <path value="Extension.extension.value[x].coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:routeOfAdministration.value[x].coding:eHDSIRouteOfAdministration">
      <path value="Extension.extension.value[x].coding" />
      <sliceName value="eHDSIRouteOfAdministration" />
      <definition value="A reference to a code defined by EDQM as defined by eHDSI in Master Value Catalogue for eHDSIRouteofAdministration." />
      <max value="1" />
      <binding>
        <strength value="required" />
        <description value="eHDSI Route of Administration codes" />
        <valueSet value="http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsirouteofadministration" />
      </binding>
    </element>
    <element id="Extension.extension:routeOfAdministration.value[x].coding:eHDSIRouteOfAdministration.system">
      <path value="Extension.extension.value[x].coding.system" />
      <min value="1" />
    </element>
    <element id="Extension.extension:routeOfAdministration.value[x].coding:eHDSIRouteOfAdministration.code">
      <path value="Extension.extension.value[x].coding.code" />
      <min value="1" />
    </element>
    <element id="Extension.extension:routeOfAdministration.value[x].coding:eHDSIRouteOfAdministration.display">
      <path value="Extension.extension.value[x].coding.display" />
      <min value="1" />
    </element>
    <element id="Extension.extension:packageSizeUnit">
      <path value="Extension.extension" />
      <sliceName value="packageSizeUnit" />
      <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.&#xD;&#xA;&#xD;&#xA;CyprusEHR: The intake unit as defined (locally) by the Cyprus Pharmaceutical Services (CYPDIS)." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:packageSizeUnit.url">
      <path value="Extension.extension.url" />
      <fixedUri value="packageSizeUnit" />
    </element>
    <element id="Extension.extension:packageSizeUnit.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-ext-medicinalproductdefinition" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>