{
  "resourceType": "StructureDefinition",
  "id": "logicalmodel-Medicationsupplyamount-R4",
  "url": "http://linkehr.com/fhir/logicalmodel-medicationsupplyamount-R4",
  "identifier": [
    {
      "system": "openEHR-CKM",
      "value": "openEHR-EHR-CLUSTER.medication_supply_amount.v0"
    }
  ],
  "version": "0",
  "name": "Medicationsupplyamount",
  "title": "Medication supply amount",
  "status": "draft",
  "date": "2024-06-18",
  "publisher": "openEHR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.veratech.es"
        }
      ]
    }
  ],
  "description": "Details related to the amount of a medication, vaccine or other therapeutic item to be supplied or supplied to the patient, as part of authorisation, dispensing or administration.",
  "purpose": "To record the amount of a medication, vaccine or other therapeutic item to be supplied or supplied to the patient, as part of authorisation, dispensing or administration, both in the context of the original medication order and in a subsequent action.",
  "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_supply_amount",
        "path": "Medication_supply_amount",
        "short": "Medication supply amount",
        "definition": "Details related to the amount of a medication, vaccine or other therapeutic item to be supplied or supplied to the patient, as part of authorisation, dispensing or administration.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_supply_amount.Amount_description",
        "path": "Medication_supply_amount.Amount_description",
        "short": "Amount description",
        "definition": "A narrative representation of the amount The amount of medication, vaccine or therapeutic good intended to be supplied or actually supplied.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Amount_description",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_supply_amount.Amount_description.value",
        "path": "Medication_supply_amount.Amount_description.value",
        "short": "Amount description",
        "definition": "A narrative representation of the amount The amount of medication, vaccine or therapeutic good intended to be supplied or actually supplied.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Amount_description.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_supply_amount.Amount",
        "path": "Medication_supply_amount.Amount",
        "short": "Amount",
        "definition": "The amount of medication, vaccine or therapeutic good intended to be supplied or actually supplied.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Amount",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_supply_amount.Amount.value",
        "path": "Medication_supply_amount.Amount.value",
        "short": "Amount",
        "definition": "The amount of medication, vaccine or therapeutic good intended to be supplied or actually supplied.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Amount.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_supply_amount.Units",
        "path": "Medication_supply_amount.Units",
        "short": "Units",
        "definition": "The dose unit or pack unit associated with the dispense amount.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Units",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_supply_amount.Units.value",
        "path": "Medication_supply_amount.Units.value",
        "short": "Units",
        "definition": "The dose unit or pack unit associated with the dispense amount.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Units.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_supply_amount.Number_of_packs",
        "path": "Medication_supply_amount.Number_of_packs",
        "short": "Number of packs",
        "definition": "The number of packs specified by the prescriber or dispensed by the dispenser.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Number_of_packs",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_supply_amount.Number_of_packs.value",
        "path": "Medication_supply_amount.Number_of_packs.value",
        "short": "Number of packs",
        "definition": "The number of packs specified by the prescriber or dispensed by the dispenser.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Number_of_packs.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_supply_amount.Pack_size",
        "path": "Medication_supply_amount.Pack_size",
        "short": "Pack size",
        "definition": "The pack size specifed by the prescriber or dispensed by the dispenser.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Pack_size",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_supply_amount.Pack_size.value",
        "path": "Medication_supply_amount.Pack_size.value",
        "short": "Pack size",
        "definition": "The pack size specifed by the prescriber or dispensed by the dispenser.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Pack_size.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_supply_amount.Pack_units",
        "path": "Medication_supply_amount.Pack_units",
        "short": "Pack units",
        "definition": "The units of measurement associated with pack size.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Pack_units",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_supply_amount.Pack_units.value",
        "path": "Medication_supply_amount.Pack_units.value",
        "short": "Pack units",
        "definition": "The units of measurement associated with pack size.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Pack_units.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication_supply_amount.Duration_of_supply",
        "path": "Medication_supply_amount.Duration_of_supply",
        "short": "Duration of supply",
        "definition": "The period of time for which the medication should be dispensed or for which a suppy was dispensed.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Duration_of_supply",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Medication_supply_amount.Duration_of_supply.value",
        "path": "Medication_supply_amount.Duration_of_supply.value",
        "short": "Duration of supply",
        "definition": "The period of time for which the medication should be dispensed or for which a suppy was dispensed.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication_supply_amount.Duration_of_supply.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Duration"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      }
    ]
  }
}