{
  "resourceType": "StructureDefinition",
  "url": "http://interopsante.org/fhir/StructureDefinition/FrMedicationUcd",
  "version": "1.0.0",
  "name": "FrMedicationUcd",
  "title": "French branded name Medication",
  "status": "draft",
  "experimental": false,
  "date": "2021-10-18",
  "publisher": "InterOp'Santé - FRANCE",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir@interopsante.org"
        }
      ]
    }
  ],
  "description": "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": "French UCD identifying a medication. May be composed of many substances. May be compound.",
  "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 the branded Medication of MRQ, MDP, MAD or MUS",
        "definition": "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)."
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "definition": "The UCD code of the branded medication.",
        "requirements": "The developper SHALL support the infusion use case, which requires a multi-compounds Medication ressource.",
        "min": 1,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://phast.fr/fhir/ValueSet/Pharmacy/CIOdc/SIPh-CIO_UCD"
        }
      },
      {
        "id": "Medication.code.text",
        "path": "Medication.code.text",
        "comment": "When some code is available, the text is the same as a displayName of one of the codings."
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "comment": "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": "extensible",
          "valueSet": "http://interopsante.org/fhir/ValueSet/fr-mp-dose-form"
        }
      },
      {
        "id": "Medication.amount",
        "path": "Medication.amount",
        "short": "Amount of drug in the MRequest, MDispense, MAdministration or MUsage",
        "definition": "It is the volume (liquid) or mass (ointment) in the Medication of the MeidcationRequest, MedicationDispense, MAdministration or MedicationUse (pka MedicationStatement).",
        "type": [
          {
            "code": "Ratio",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRatioUcum"
            ]
          }
        ]
      },
      {
        "id": "Medication.ingredient",
        "path": "Medication.ingredient",
        "definition": "Identifies a particular constituent in the product.",
        "comment": "For the active ingedients, the medication contains ALL the ingredients and ONLY the ingredients.",
        "min": 1
      },
      {
        "id": "Medication.ingredient.item[x]",
        "path": "Medication.ingredient.item[x]",
        "short": "Substance or UCD part",
        "definition": "The actual substance (single component mediction) or component (multiple component medication) o",
        "requirements": "The composition of the medication for this ingredient has to be defined",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrMPSubstanceActive"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrMedicationUcdPart"
            ]
          }
        ]
      },
      {
        "id": "Medication.ingredient.strength",
        "path": "Medication.ingredient.strength",
        "definition": "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": "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": "Ratio",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRatioUcum"
            ]
          }
        ]
      },
      {
        "id": "Medication.batch",
        "path": "Medication.batch",
        "definition": "This applies for the proprietary named medication involved in a MedicationDispense, MedicationAdministration or a MedicationUse.",
        "comment": "WARNING: it is the batch number of the part.\r\nIf 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."
      }
    ]
  }
}