{
  "resourceType": "StructureDefinition",
  "url": "http://interopsante.org/fhir/StructureDefinition/FrMedicationCompound",
  "version": "1.0.0",
  "name": "FrMedicationCompound",
  "title": "French compound Medication",
  "status": "draft",
  "experimental": false,
  "date": "2021-10-18",
  "publisher": "InterOp'Santé - FRANCE",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir@interopsante.org"
        }
      ]
    }
  ],
  "description": "A complex medication composed of two to many simple médication. The simple medications component are described in as many ingredient.itemReference referencing a Medication resource profiled fr-medication-1.",
  "purpose": "Compound medication description",
  "copyright": "InterOp&#39;Sant&#233; 2021",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "script10.6",
      "uri": "http://ncpdp.org/SCRIPT10_6",
      "name": "Mapping to NCPDP SCRIPT 10.6"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication",
        "path": "Medication",
        "short": "Definition of a Medication compound of a MedicinalRequest, Dispense or Usage",
        "definition": "Medication compound of a Medication representing the composition of a MedicationRequest, a MedicationDispense or a MedicationUsage (pka MedicationStatement). For instance, Glucose 5% 1L part of an infusion made of 3 compounds, Glucose 5% 1L + Sodium chloride 3g + Potassium chloride 2g."
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "short": "No code that identify this medication",
        "definition": "Defines the text of the compound detailed in this compound Medication.",
        "requirements": "Text of compound SHALL be provided.",
        "min": 1
      },
      {
        "id": "Medication.code.coding",
        "path": "Medication.code.coding",
        "short": "Generaly no code for compound medicinal product",
        "definition": "A code identifing the compound medicinal product. Generaly none : no code defined for G5 1L + NaCl 3g + KCl 2g.",
        "comment": "Codes may be defined very casually in enumerations."
      },
      {
        "id": "Medication.code.text",
        "path": "Medication.code.text",
        "requirements": "Although a code is genraly unavailable for a compoud medicinal product, there is alway a denomination for it.",
        "min": 1
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "binding": {
          "strength": "extensible",
          "valueSet": "http://interopsante.org/fhir/ValueSet/fr-mp-dose-form"
        }
      },
      {
        "id": "Medication.amount",
        "path": "Medication.amount",
        "definition": "Specific amount in Medication defined by the element collection. For instance 1 L for the amount of the compound Glucose 5% of an infusion Glucose 5% 1L + Sodium chloride 3g + Potassium chloride 2g. Or 3 g for the amount of compound Sodium chloride of the same infusion. SHALL be 1 (without unit, ie. code = 1 in UCUM system) when there is multiple ingredient element with at least the strenght element of two of them expressed in asbolute quantity (ie. simple quantity).",
        "comment": "The Ratio datatype is limited to numerator value, leading back to the SimpleQuantity datatype.",
        "type": [
          {
            "code": "Ratio",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRatioUcum"
            ]
          }
        ]
      },
      {
        "id": "Medication.ingredient",
        "path": "Medication.ingredient",
        "short": "Medication component of compound medication",
        "definition": "Identifies a medicinal component of the compound medicinal product",
        "comment": "The Medication SHALL contain ALL the items of the item element list AND ONLY the items of the item element list.",
        "min": 1
      },
      {
        "id": "Medication.ingredient.item[x]",
        "path": "Medication.ingredient.item[x]",
        "short": "The actual compound",
        "definition": "The actual compound, either nonproprietary named medication or branded named medication identified by a UCD code.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrMedicationNonproprietaryName",
              "http://interopsante.org/fhir/StructureDefinition/FrMedicationUcd"
            ]
          }
        ]
      },
      {
        "id": "Medication.ingredient.strength",
        "path": "Medication.ingredient.strength",
        "requirements": "The amount and strength of the medication component are described in the item element referencing a Medication ressource profiled fr-medication-1.",
        "max": "0"
      },
      {
        "id": "Medication.batch",
        "path": "Medication.batch",
        "max": "0"
      }
    ]
  }
}