{
  "resourceType": "StructureDefinition",
  "id": "logicalmodel-Medicationdetails-R4",
  "url": "http://linkehr.com/fhir/logicalmodel-medicationdetails-R4",
  "identifier": [
    {
      "system": "openEHR-CKM",
      "value": "openEHR-EHR-CLUSTER.medication.v2"
    }
  ],
  "version": "0",
  "name": "Medicationdetails",
  "title": "Medication details",
  "status": "draft",
  "date": "2024-06-18",
  "publisher": "openEHR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.veratech.es"
        }
      ]
    }
  ],
  "description": "Details about a medication or component of a medication, including strength, form and details of any specific constituents.",
  "purpose": "To record details about a medication or component of a medication, including strength, form and details of any specific constituents.",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "openEHR",
      "uri": "http://openehr.org",
      "name": "openEHR Mapping"
    },
    {
      "identity": "openEHR-natural",
      "uri": "http://openehr.org",
      "name": "openEHR natural path"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "StructureDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "snapshot": {
    "element": [
      {
        "id": "Medication_details",
        "path": "Medication_details",
        "short": "Medication details",
        "definition": "Details about a medication or component of a medication, including strength, form and details of any specific constituents.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Name",
        "path": "Medication_details.Name",
        "short": "Name",
        "definition": "The name of the medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Name",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Name.value",
        "path": "Medication_details.Name.value",
        "short": "Name",
        "definition": "The name of the medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Name.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Form",
        "path": "Medication_details.Form",
        "short": "Form",
        "definition": "The formulation or presentation of the medication or medication component.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_details.Form",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Medication_details.Form.value",
        "path": "Medication_details.Form.value",
        "short": "Form",
        "definition": "The formulation or presentation of the medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Form.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Category",
        "path": "Medication_details.Category",
        "short": "Category",
        "definition": "The category of the medication or medication component, with regard to manufacturing or preparation, and the number of ingredients.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Category",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Category.value_DV_CODED_TEXT",
        "path": "Medication_details.Category.value_DV_CODED_TEXT",
        "short": "Category",
        "definition": "The category of the medication or medication component, with regard to manufacturing or preparation, and the number of ingredients.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Category.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Category.value_DV_TEXT",
        "path": "Medication_details.Category.value_DV_TEXT",
        "short": "Category",
        "definition": "The category of the medication or medication component, with regard to manufacturing or preparation, and the number of ingredients.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Category.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Strength_(presentation)",
        "path": "Medication_details.Strength_(presentation)",
        "short": "Strength (presentation)",
        "definition": "The strength of the medication or medication component, expressed as a ratio.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Strength_(presentation)",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Strength_(presentation).Strength_numerator",
        "path": "Medication_details.Strength_(presentation).Strength_numerator",
        "short": "Strength numerator",
        "definition": "The numerator of the strength fraction.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Medication_details.Strength_(presentation).Strength_numerator",
          "min": 1,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Strength_(presentation).Strength_numerator.value",
        "path": "Medication_details.Strength_(presentation).Strength_numerator.value",
        "short": "Strength numerator",
        "definition": "The numerator of the strength fraction.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Strength_(presentation).Strength_numerator.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Strength_(presentation).Strength_denominator",
        "path": "Medication_details.Strength_(presentation).Strength_denominator",
        "short": "Strength denominator",
        "definition": "The denominator of the strength fraction.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Medication_details.Strength_(presentation).Strength_denominator",
          "min": 1,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Strength_(presentation).Strength_denominator.value",
        "path": "Medication_details.Strength_(presentation).Strength_denominator.value",
        "short": "Strength denominator",
        "definition": "The denominator of the strength fraction.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Strength_(presentation).Strength_denominator.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Strength_(concentration)",
        "path": "Medication_details.Strength_(concentration)",
        "short": "Strength (concentration)",
        "definition": "The strength of the medication or medication component, as a concentration.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Strength_(concentration)",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Strength_(concentration).value",
        "path": "Medication_details.Strength_(concentration).value",
        "short": "Strength (concentration)",
        "definition": "The strength of the medication or medication component, as a concentration.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Strength_(concentration).value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Manufacturer",
        "path": "Medication_details.Manufacturer",
        "short": "Manufacturer",
        "definition": "The manufacturer of the medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Manufacturer",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Manufacturer.value",
        "path": "Medication_details.Manufacturer.value",
        "short": "Manufacturer",
        "definition": "The manufacturer of the medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Manufacturer.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Batch_ID",
        "path": "Medication_details.Batch_ID",
        "short": "Batch ID",
        "definition": "The identifier assigned to the production batch by the manufacturer during production.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_details.Batch_ID",
          "min": 0,
          "max": "*"
        }
      },
      {
        "id": "Medication_details.Batch_ID.value_DV_TEXT",
        "path": "Medication_details.Batch_ID.value_DV_TEXT",
        "short": "Batch ID",
        "definition": "The identifier assigned to the production batch by the manufacturer during production.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Batch_ID.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Batch_ID.value_DV_IDENTIFIER",
        "path": "Medication_details.Batch_ID.value_DV_IDENTIFIER",
        "short": "Batch ID",
        "definition": "The identifier assigned to the production batch by the manufacturer during production.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Batch_ID.value_DV_IDENTIFIER",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Expiry",
        "path": "Medication_details.Expiry",
        "short": "Expiry",
        "definition": "The expiry date and/or time of the medication or medication component, as given by the manufacturer or individual preparing the mixture.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Expiry",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Expiry.value",
        "path": "Medication_details.Expiry.value",
        "short": "Expiry",
        "definition": "The expiry date and/or time of the medication or medication component, as given by the manufacturer or individual preparing the mixture.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Expiry.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Constituent",
        "path": "Medication_details.Constituent",
        "short": "Constituent",
        "definition": "Details of an ingredient or product used to make up a mixed pack, preparation or infusion.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_details.Constituent",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Amount",
        "path": "Medication_details.Amount",
        "short": "Amount",
        "definition": "The amount of medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Amount",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Amount.value",
        "path": "Medication_details.Amount.value",
        "short": "Amount",
        "definition": "The amount of medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Amount.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Alternate_amount",
        "path": "Medication_details.Alternate_amount",
        "short": "Alternate amount",
        "definition": "An equivalent representation of the amount of the medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Alternate_amount",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Alternate_amount.value",
        "path": "Medication_details.Alternate_amount.value",
        "short": "Alternate amount",
        "definition": "An equivalent representation of the amount of the medication or medication component.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Alternate_amount.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Role",
        "path": "Medication_details.Role",
        "short": "Role",
        "definition": "The role of the medication or medication component within a mixture.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Role",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Role.value_DV_CODED_TEXT",
        "path": "Medication_details.Role.value_DV_CODED_TEXT",
        "short": "Role",
        "definition": "The role of the medication or medication component within a mixture.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Role.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Role.value_DV_TEXT",
        "path": "Medication_details.Role.value_DV_TEXT",
        "short": "Role",
        "definition": "The role of the medication or medication component within a mixture.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Role.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Description",
        "path": "Medication_details.Description",
        "short": "Description",
        "definition": "Narrative description of the medication or medication component where it is not possible to describe this fully using structured elements.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Description",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_details.Description.value",
        "path": "Medication_details.Description.value",
        "short": "Description",
        "definition": "Narrative description of the medication or medication component where it is not possible to describe this fully using structured elements.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_details.Description.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_details.Structured_details",
        "path": "Medication_details.Structured_details",
        "short": "Structured details",
        "definition": "Additional details about the medication or medication component.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Medication_details.Structured_details",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      }
    ]
  }
}