<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://interopsante.org/fhir/StructureDefinition/FrMedicationUcd" />
  <version value="1.0.0" />
  <name value="FrMedicationUcd" />
  <title value="French branded name Medication" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2021-10-18" />
  <publisher value="InterOp'Santé - FRANCE" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="fhir@interopsante.org" />
    </telecom>
  </contact>
  <description value="French prescribed, dispensed or used medication expressed as branded medication composed of one to many substances. The code the french UCD (Unité Commune de Dispensation)." />
  <purpose value="French UCD identifying a medication. May be composed of many substances. May be compound." />
  <copyright value="InterOp&amp;#39;Sant&amp;#233; 2021" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="script10.6" />
    <uri value="http://ncpdp.org/SCRIPT10_6" />
    <name value="Mapping to NCPDP SCRIPT 10.6" />
  </mapping>
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="v2" />
    <uri value="http://hl7.org/v2" />
    <name value="HL7 v2 Mapping" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Medication" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" />
  <derivation value="constraint" />
  <differential>
    <element id="Medication">
      <path value="Medication" />
      <short value="Definition of the branded Medication of MRQ, MDP, MAD or MUS" />
      <definition value="This ressource is profiled for describing the branded medication composition in the presription line represented by a MedicationRequest, a MedicationDispense , a MedicationAdminitration or a MedicationUsage (pka MedicationStatement)." />
    </element>
    <element id="Medication.code">
      <path value="Medication.code" />
      <definition value="The UCD code of the branded medication." />
      <requirements value="The developper SHALL support the infusion use case, which requires a multi-compounds Medication ressource." />
      <min value="1" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://phast.fr/fhir/ValueSet/Pharmacy/CIOdc/SIPh-CIO_UCD" />
      </binding>
    </element>
    <element id="Medication.code.text">
      <path value="Medication.code.text" />
      <comment value="When some code is available, the text is the same as a displayName of one of the codings." />
    </element>
    <element id="Medication.form">
      <path value="Medication.form" />
      <comment value="When branded medication is referenced from MedicationRequest, this is the ordered form.  When Medication is referenced within MedicationDispense, this is the dispensed form.  When branded medication is referenced within MedicationAdministration, this is administered form." />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://interopsante.org/fhir/ValueSet/fr-mp-dose-form" />
      </binding>
    </element>
    <element id="Medication.amount">
      <path value="Medication.amount" />
      <short value="Amount of drug in the MRequest, MDispense, MAdministration or MUsage" />
      <definition value="It is the volume (liquid) or mass (ointment) in the Medication of the MeidcationRequest, MedicationDispense, MAdministration or MedicationUse (pka MedicationStatement)." />
      <type>
        <code value="Ratio" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrRatioUcum" />
      </type>
    </element>
    <element id="Medication.ingredient">
      <path value="Medication.ingredient" />
      <definition value="Identifies a particular constituent in the product." />
      <comment value="For the active ingedients, the medication contains ALL the ingredients and ONLY the ingredients." />
      <min value="1" />
    </element>
    <element id="Medication.ingredient.item[x]">
      <path value="Medication.ingredient.item[x]" />
      <short value="Substance or UCD part" />
      <definition value="The actual substance (single component mediction) or component (multiple component medication) o" />
      <requirements value="The composition of the medication for this ingredient has to be defined" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrMPSubstanceActive" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrMedicationUcdPart" />
      </type>
    </element>
    <element id="Medication.ingredient.strength">
      <path value="Medication.ingredient.strength" />
      <definition value="Specifies how many of the item[x]:refernce(FrMedciationUcdPart) or how much subtance of the item[x]:codeableConcept(snomedSubstance) there are in this FrMedicationUcd" />
      <comment value="The quantity of this ingredient defining the medication. For instance, 50 mg/mL defining the glucose quantity for the glucose 5% or 500 mg medicine and 30 mg respectively defining the paracetamol and the codeine quantity for the association paracetamol+codeine 500 mg+30 mg medicine." />
      <type>
        <code value="Ratio" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrRatioUcum" />
      </type>
    </element>
    <element id="Medication.batch">
      <path value="Medication.batch" />
      <definition value="This applies for the proprietary named medication involved in a MedicationDispense, MedicationAdministration or a MedicationUse." />
      <comment value="WARNING: it is the batch number of the part.&#xD;&#xA;If it is not discerned for each part, it SHALL NOT be provided here but at the grouping level where it is defined, most often the UCD." />
    </element>
  </differential>
</StructureDefinition>