{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-07-11T14:39:17.582+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "phx"
    }
  ],
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MedicationStatement-1",
  "version": "1.3.0",
  "name": "CareConnect-ITK-MedicationStatement-1",
  "status": "active",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "publisher": "NHS Digital",
  "contact": [
    {
      "name": "Interoperability Team",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This MedicationStatement Resource is a record of a medication that is being consumed by a patient.  A MedicationStatement may indicate that the patient may be taking the medication now, or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician.",
  "purpose": "CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/",
  "copyright": "Copyright © 2018 NHS Digital",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.extension",
        "path": "MedicationStatement.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationStatement.extension:lastIssueDate",
        "path": "MedicationStatement.extension",
        "sliceName": "lastIssueDate",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationStatementLastIssueDate-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.extension:lastIssueDate.url",
        "path": "MedicationStatement.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationStatementLastIssueDate-1"
      },
      {
        "id": "MedicationStatement.extension:changeSummary",
        "path": "MedicationStatement.extension",
        "sliceName": "changeSummary",
        "short": "Optional Extensions Element",
        "definition": "Optional Extension Element - found in all resources.",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationChangeSummary-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.extension:changeSummary.url",
        "path": "MedicationStatement.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationChangeSummary-1"
      },
      {
        "id": "MedicationStatement.identifier.type.coding.system",
        "path": "MedicationStatement.identifier.type.coding.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.identifier.type.coding.code",
        "path": "MedicationStatement.identifier.type.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.identifier.type.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.identifier.type.coding.display",
        "min": 1
      },
      {
        "id": "MedicationStatement.identifier.system",
        "path": "MedicationStatement.identifier.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.identifier.value",
        "path": "MedicationStatement.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationStatement.identifier.assigner",
        "path": "MedicationStatement.identifier.assigner",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.basedOn",
        "path": "MedicationStatement.basedOn",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-MedicationRequest-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MedicationStatement-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Procedure-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-MedicationDispense-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.partOf.reference",
        "path": "MedicationStatement.partOf.reference",
        "min": 1
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Encounter-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.context.reference",
        "path": "MedicationStatement.context.reference",
        "min": 1
      },
      {
        "id": "MedicationStatement.category.coding.system",
        "path": "MedicationStatement.category.coding.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.category.coding.code",
        "path": "MedicationStatement.category.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.category.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.category.coding.display",
        "min": 1
      },
      {
        "id": "MedicationStatement.medicationReference:medicationReference",
        "path": "MedicationStatement.medicationReference",
        "sliceName": "medicationReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Medication-1"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MedicationCode"
            }
          ],
          "strength": "example",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/medication-codes"
        }
      },
      {
        "id": "MedicationStatement.medicationReference:medicationReference.reference",
        "path": "MedicationStatement.medicationReference.reference",
        "min": 1
      },
      {
        "id": "MedicationStatement.informationSource",
        "path": "MedicationStatement.informationSource",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.informationSource.reference",
        "path": "MedicationStatement.informationSource.reference",
        "min": 1
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.subject.reference",
        "path": "MedicationStatement.subject.reference",
        "min": 1
      },
      {
        "id": "MedicationStatement.derivedFrom",
        "path": "MedicationStatement.derivedFrom",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonNotTaken",
        "path": "MedicationStatement.reasonNotTaken",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonNotTaken.coding.system",
        "path": "MedicationStatement.reasonNotTaken.coding.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.reasonNotTaken.coding.code",
        "path": "MedicationStatement.reasonNotTaken.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.reasonNotTaken.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.reasonNotTaken.coding.display",
        "min": 1
      },
      {
        "id": "MedicationStatement.reasonCode.coding.system",
        "path": "MedicationStatement.reasonCode.coding.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.reasonCode.coding.code",
        "path": "MedicationStatement.reasonCode.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.reasonCode.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.reasonCode.coding.display",
        "min": 1
      },
      {
        "id": "MedicationStatement.reasonReference",
        "path": "MedicationStatement.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Observation-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Condition-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.reasonReference.reference",
        "path": "MedicationStatement.reasonReference.reference",
        "min": 1
      },
      {
        "id": "MedicationStatement.note.author[x]",
        "path": "MedicationStatement.note.author[x]",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/ITK-RelatedPerson-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.additionalInstruction.coding.system",
        "path": "MedicationStatement.dosage.additionalInstruction.coding.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.additionalInstruction.coding.code",
        "path": "MedicationStatement.dosage.additionalInstruction.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.additionalInstruction.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.dosage.additionalInstruction.coding.display",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.timing.code.coding.system",
        "path": "MedicationStatement.dosage.timing.code.coding.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.timing.code.coding.code",
        "path": "MedicationStatement.dosage.timing.code.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.timing.code.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.dosage.timing.code.coding.display",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.site.coding.system",
        "path": "MedicationStatement.dosage.site.coding.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.site.coding.code",
        "path": "MedicationStatement.dosage.site.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.site.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.dosage.site.coding.display",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.route.coding",
        "path": "MedicationStatement.dosage.route.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "MedicationStatement.dosage.route.coding:snomedCT",
        "path": "MedicationStatement.dosage.route.coding",
        "sliceName": "snomedCT",
        "max": "1",
        "binding": {
          "strength": "example",
          "description": "A code from the SNOMED Clinical Terminology UK coding system that describes the e-Prescribing route of administration.",
          "valueSetReference": {
            "reference": "https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-MedicationDosageRoute-1"
          }
        }
      },
      {
        "id": "MedicationStatement.dosage.route.coding:snomedCT.extension",
        "path": "MedicationStatement.dosage.route.coding.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "MedicationStatement.dosage.route.coding:snomedCT.extension:snomedCTDescriptionID",
        "path": "MedicationStatement.dosage.route.coding.extension",
        "sliceName": "snomedCTDescriptionID",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.route.coding:snomedCT.system",
        "path": "MedicationStatement.dosage.route.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "MedicationStatement.dosage.route.coding:snomedCT.version",
        "path": "MedicationStatement.dosage.route.coding.version",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.route.coding:snomedCT.code",
        "path": "MedicationStatement.dosage.route.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.route.coding:snomedCT.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.dosage.route.coding.display",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.method.coding.system",
        "path": "MedicationStatement.dosage.method.coding.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.method.coding.code",
        "path": "MedicationStatement.dosage.method.coding.code",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.method.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "MedicationStatement.dosage.method.coding.display",
        "min": 1
      }
    ]
  }
}