{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2023-10-04T09:06:08.8942682+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "phx"
    }
  ],
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationStatement-1",
  "version": "1.9.0",
  "name": "CareConnect-GPC-MedicationStatement-1",
  "title": "CareConnect GPC MedicationStatement1",
  "status": "active",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "publisher": "HL7 UK",
  "description": "This MedicationStatement Resource is a record of a medication that is being consumed by a patient.",
  "purpose": "CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/ on the 12th September 2019.",
  "copyright": "Copyright © 2020 HL7 UK\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\r\n\r\nhttp://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\r\n\r\nHL7® FHIR® standard Copyright © 2011+ HL7\r\n\r\nThe HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at\r\n\r\nhttps://www.hl7.org/fhir/license.html",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.meta",
        "path": "MedicationStatement.meta"
      },
      {
        "id": "MedicationStatement.meta.profile",
        "path": "MedicationStatement.meta.profile",
        "min": 1
      },
      {
        "id": "MedicationStatement.extension",
        "path": "MedicationStatement.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "MedicationStatement.extension:lastIssueDate",
        "path": "MedicationStatement.extension",
        "sliceName": "lastIssueDate",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatementLastIssueDate-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.extension:changeSummary",
        "path": "MedicationStatement.extension",
        "sliceName": "changeSummary",
        "short": "Optional Extensions Element",
        "definition": "Optional Extension Element - found in all resources.",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationChangeSummary-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.extension:prescribingAgency",
        "path": "MedicationStatement.extension",
        "sliceName": "prescribingAgency",
        "short": "The type of organisation/setting responsible for authorising and issuing the medication",
        "definition": "The type of organisation/setting responsible for authorising and issuing the medication.",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-PrescribingAgency-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.extension:dosageLastChanged",
        "path": "MedicationStatement.extension",
        "sliceName": "dosageLastChanged",
        "short": "The date when the dosage instructions were last changed",
        "definition": "Only populate where the dosage instructions have been changed during the lifetime of the Medication/Medical Device plan.\r\nSet to the date when the dosage instructions were last changed.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationDosageLastChanged-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.extension:dosageLastChanged.url",
        "path": "MedicationStatement.extension.url",
        "fixedUri": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationDosageLastChanged-1"
      },
      {
        "id": "MedicationStatement.identifier",
        "path": "MedicationStatement.identifier",
        "min": 1
      },
      {
        "id": "MedicationStatement.identifier.system",
        "path": "MedicationStatement.identifier.system",
        "min": 1
      },
      {
        "id": "MedicationStatement.identifier.value",
        "path": "MedicationStatement.identifier.value",
        "min": 1
      },
      {
        "id": "MedicationStatement.basedOn",
        "path": "MedicationStatement.basedOn",
        "max": "1",
        "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.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationDispense"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Procedure-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Observation-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationStatement-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Medication-1"
          }
        ],
        "binding": {
          "strength": "example",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/medication-codes"
        }
      },
      {
        "id": "MedicationStatement.effective[x]",
        "path": "MedicationStatement.effective[x]",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dateAsserted",
        "path": "MedicationStatement.dateAsserted",
        "min": 1
      },
      {
        "id": "MedicationStatement.informationSource",
        "path": "MedicationStatement.informationSource",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-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.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.note",
        "path": "MedicationStatement.note",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.note.author[x]",
        "path": "MedicationStatement.note.author[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          },
          {
            "code": "string"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1"
          },
          {
            "code": "Reference",
            "targetProfile": "https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.text",
        "path": "MedicationStatement.dosage.text",
        "min": 1
      },
      {
        "id": "MedicationStatement.dosage.patientInstruction",
        "path": "MedicationStatement.dosage.patientInstruction",
        "mustSupport": true
      },
      {
        "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.nhs.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"
        },
        "min": 0
      },
      {
        "id": "MedicationStatement.dosage.route.coding:snomedCT.extension:snomedCTDescriptionID",
        "path": "MedicationStatement.dosage.route.coding.extension",
        "sliceName": "snomedCTDescriptionID",
        "min": 0,
        "type": [
          {
            "code": "Extension",
            "profile": "https://fhir.nhs.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",
        "path": "MedicationStatement.dosage.route.coding.display",
        "min": 1
      }
    ]
  }
}