{
  "resourceType": "StructureDefinition",
  "id": "MedicationPSABAllDif",
  "url": "https://www.alberta.ca/fhir/psab/StructureDefinition/MedicationPSABAllDif",
  "name": "MedicationPSABAllDif",
  "title": "Medication (All Differential Example)",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Medication",
  "baseDefinition": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/medication-ca-ps",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Medication.id",
        "path": "Medication.id",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.implicitRules",
        "path": "Medication.implicitRules",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.language",
        "path": "Medication.language",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.text",
        "path": "Medication.text",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.contained",
        "path": "Medication.contained",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.extension",
        "path": "Medication.extension",
        "comment": "Implementers may be asked to provide an example with the following extension as part of testing"
      },
      {
        "id": "Medication.extension:strength",
        "path": "Medication.extension",
        "sliceName": "strength",
        "short": "Extension for representing overall medication strength.",
        "definition": "The overall medication strength, rather than the strength of a specific ingredient.",
        "comment": "Implementers may be asked to provide an example with the following extension as part of testing",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://prescribeit.ca/fhir/StructureDefinition/ext-medication-strength-description"
            ]
          }
        ]
      },
      {
        "id": "Medication.identifier",
        "path": "Medication.identifier",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.code",
        "path": "Medication.code",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.code.extension",
        "path": "Medication.code.extension",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.code.coding",
        "path": "Medication.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.code.coding:CCDD",
        "path": "Medication.code.coding",
        "sliceName": "CCDD",
        "comment": "Optional - submit if available [Note: Not always recorded in patient chart; and not always applicable - compound medications do not have a DIN number for example.] Reference: Health Canada Drug ID Number",
        "min": 0,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "Medication.code.coding:CCDD.system",
        "path": "Medication.code.coding.system",
        "min": 1,
        "fixedUri": "http://terminology.hl7.org/CodeSystem/hc-CCDD"
      },
      {
        "id": "Medication.code.text",
        "path": "Medication.code.text",
        "comment": "Mandatory if any prescribed medication data is present; otherwise must be blank/null. String: Max Character length (200)",
        "min": 1
      },
      {
        "id": "Medication.form",
        "path": "Medication.form",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      },
      {
        "id": "Medication.form.coding",
        "path": "Medication.form.coding",
        "comment": "No terminology has been defined in AB for this element. Future releases may include defined terminology. This element is not expected to be populated as part of testing"
      },
      {
        "id": "Medication.form.text",
        "path": "Medication.form.text",
        "comment": "Implementers may be asked to provide an example with the following element populated as part of testing"
      }
    ]
  }
}