{
  "resourceType": "StructureDefinition",
  "id": "medication-verto",
  "url": "http://verto.ca/fhir/StructureDefinition/medication-custom",
  "version": "1.0.0",
  "name": "Medication",
  "title": "Verto's Medication Profile",
  "status": "active",
  "experimental": true,
  "date": "2025-01-13",
  "publisher": "Verto Health",
  "description": "Simplified Medication Profile with core elements to power Verto's Digital Twin",
  "fhirVersion": "5.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://hl7.org/fhir/R4/StructureDefinition/Medication",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication",
        "path": "Medication",
        "short": "Verto's Medication Profile",
        "definition": "Simplified Medication Profile with core elements to power Verto's Digital Twin.",
        "type": [
          {
            "code": "Medication"
          }
        ]
      },
      {
        "id": "Medication.identifier",
        "path": "Medication.identifier",
        "short": "Business identifier for this medication",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "short": "Codes that identify this medication",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication.status",
        "path": "Medication.status",
        "short": "Medication status",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": false,
        "isModifier": true,
        "isSummary": true
      },
      {
        "id": "Medication.manufacturer",
        "path": "Medication.manufacturer",
        "short": "Manufacturer of the item",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Medication.manufacturer",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "short": "Describes the form of the item.  Powder; tablets; capsule.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false,
        "binding": {
          "strength": "preferred",
          "valueSet": "http://hl7.org/fhir/uv/ips/ValueSet/medicine-doseform"
        }
      },
      {
        "id": "Medication.amount",
        "path": "Medication.amount",
        "short": "Amount of drug in package",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Ratio"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Medication.ingredient",
        "path": "Medication.ingredient",
        "short": "Active or inactive ingredient",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Medication.ingredient.item",
        "path": "Medication.ingredient.item",
        "short": "The actual ingredient or content",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableReference",
            "targetProfile": [
              "https://hl7.org/fhir/R4/substance.html",
              "https://hl7.org/fhir/R4/medication.html"
            ]
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Medication.ingredient.isActive",
        "path": "Medication.ingredient.isActive",
        "short": "Active ingredient indicator",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Medication.ingredient.strength",
        "path": "Medication.ingredient.strength",
        "short": "Quantity of ingredient present",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Ratio"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Medication.batch",
        "path": "Medication.batch",
        "short": "Details about packaged medications",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Medication.batch.lotNumber",
        "path": "Medication.batch.lotNumber",
        "short": "Identifier assigned to batch",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Medication.batch.expirationDate",
        "path": "Medication.batch.expirationDate",
        "short": "When batch will expire",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": false
      }
    ]
  }
}