<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://interopsante.org/fhir/StructureDefinition/FrMedicationNonproprietaryName" />
  <version value="1.0.0" />
  <name value="FrMedicationNonproprietaryName" />
  <title value="French non proprietary 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="Simple prescribed, dispensed, administered or used medication expressed in non proprietary name composed of one to many substances. If composed of many substance, the strengh SHALL be defined." />
  <purpose value="Simple medication description, include those composed of many substances." />
  <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="Simple nonproprietary name Medication of MRQ, MDP or MUS" />
      <definition value="This ressource is profiled for describing a simple medicament (vs compound medication) in the presription line represented by a MedicationRequest, a MedicationDispense or a MedicationUsage (pka MedicationStatement)." />
      <comment value="A simple medication is made of one single component made of one to many substances.&#xD;&#xA;Optionality of doseForm, amount and strehgth attributes supports different levels of granularity.&#xD;&#xA;The coarser level only defines the substances it's made of. For instance, contaning only paracetamol or containing only glucose.&#xD;&#xA;The finest level is the defines the composition and the dose form. For instance, paracetamol 500 mg tablet or  500 mL glucose 5% (50 mg/mL) solution for injection." />
    </element>
    <element id="Medication.extension">
      <path value="Medication.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Medication.extension:drugCharacteristic">
      <path value="Medication.extension" />
      <sliceName value="drugCharacteristic" />
      <short value="descriptive properties of the medicine" />
      <type>
        <code value="Extension" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrDrugCharacteristic" />
      </type>
    </element>
    <element id="Medication.code">
      <path value="Medication.code" />
      <definition value="A sctid  that specify this 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://interopsante.org/fhir/ValueSet/fr-medicinal-product-only" />
      </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" />
      <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 or MUsage" />
      <definition value="The quantity of the only substance or the volume (liquid) or mass (ointment) in the Medication of the MedicationRequest, Dispense or Use (pka MedicationStatement)." />
      <comment value="If the strenght of the ingredients is a concentration, it is the volume (liquid) or mass (ointment) in the Medication of the MedicationRequest, Dispense or Use (pka MedicationStatement).&#xD;&#xA;If there is only one ingredient and the strenght is not defined, it is the quantity of the substance." />
      <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" />
      <definition value="The actual substance (simple ingredient) of the simple medication (ie. made of single component)." />
      <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>
    </element>
    <element id="Medication.ingredient.strength">
      <path value="Medication.ingredient.strength" />
      <definition value="Specifies how much of the items there are in this Medication" />
      <comment value="The quantity of this igredient 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 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" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>