{
  "resourceType": "StructureDefinition",
  "url": "http://fhir.healthbc.org/StructureDefinition/ca-bc-careconnect-medication",
  "version": "1.0",
  "name": "ca-bc-careconnect-medication",
  "status": "active",
  "date": "2021-07-15",
  "fhirVersion": "3.0.2",
  "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/w5",
      "name": "W5 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.id",
        "path": "Medication.id",
        "min": 1
      },
      {
        "id": "Medication.meta",
        "path": "Medication.meta",
        "max": "0"
      },
      {
        "id": "Medication.implicitRules",
        "path": "Medication.implicitRules",
        "max": "0"
      },
      {
        "id": "Medication.language",
        "path": "Medication.language",
        "max": "0"
      },
      {
        "id": "Medication.text",
        "path": "Medication.text",
        "max": "0"
      },
      {
        "id": "Medication.code.id",
        "path": "Medication.code.id",
        "max": "0"
      },
      {
        "id": "Medication.code.coding.id",
        "path": "Medication.code.coding.id",
        "max": "0"
      },
      {
        "id": "Medication.code.coding.version",
        "path": "Medication.code.coding.version",
        "max": "0"
      },
      {
        "id": "Medication.code.coding.userSelected",
        "path": "Medication.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Medication.status",
        "path": "Medication.status",
        "max": "0"
      },
      {
        "id": "Medication.isBrand",
        "path": "Medication.isBrand",
        "max": "0"
      },
      {
        "id": "Medication.isOverTheCounter",
        "path": "Medication.isOverTheCounter",
        "max": "0"
      },
      {
        "id": "Medication.manufacturer",
        "path": "Medication.manufacturer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "Medication.manufacturer.id",
        "path": "Medication.manufacturer.id",
        "max": "0"
      },
      {
        "id": "Medication.manufacturer.identifier",
        "path": "Medication.manufacturer.identifier",
        "max": "0"
      },
      {
        "id": "Medication.manufacturer.display",
        "path": "Medication.manufacturer.display",
        "max": "0"
      },
      {
        "id": "Medication.form.id",
        "path": "Medication.form.id",
        "max": "0"
      },
      {
        "id": "Medication.form.coding",
        "path": "Medication.form.coding",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.id",
        "path": "Medication.ingredient.id",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.item[x]:itemCodeableConcept",
        "path": "Medication.ingredient.itemCodeableConcept",
        "sliceName": "itemCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Medication.ingredient.item[x]:itemCodeableConcept.id",
        "path": "Medication.ingredient.itemCodeableConcept.id",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.item[x]:itemCodeableConcept.coding",
        "path": "Medication.ingredient.itemCodeableConcept.coding",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.amount.id",
        "path": "Medication.ingredient.amount.id",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.amount.extension",
        "path": "Medication.ingredient.amount.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Medication.ingredient.amount.extension:drugStrength",
        "path": "Medication.ingredient.amount.extension",
        "sliceName": "drugStrength",
        "short": "Strength of the drug",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://fhir.healthbc.org/StructureDefinition/ca-bc-careconnect-drug-strength-extension"
          }
        ]
      },
      {
        "id": "Medication.ingredient.amount.numerator",
        "path": "Medication.ingredient.amount.numerator",
        "max": "0"
      },
      {
        "id": "Medication.ingredient.amount.denominator",
        "path": "Medication.ingredient.amount.denominator",
        "max": "0"
      },
      {
        "id": "Medication.package",
        "path": "Medication.package",
        "max": "0"
      },
      {
        "id": "Medication.image",
        "path": "Medication.image",
        "max": "0"
      }
    ]
  }
}