{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-03-07T13:01:35.935+00:00"
  },
  "url": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1",
  "version": "1.0.0",
  "name": "Extension-CareConnect-GPC-MedicationStatusReason-1",
  "status": "active",
  "date": "2024-01-22T11:39:06.3872207+00:00",
  "description": "To record the reason the medication (plan or order) was stopped and the date this occurred.",
  "copyright": "Copyright © 2016 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": "complex-type",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "MedicationRequest"
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "To record the reason the medication (plan or order) was stopped and the date this occurred",
        "definition": "To record the reason the medication (plan or order) was stopped and the date this occurred.",
        "max": "1"
      },
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:statusReason",
        "path": "Extension.extension",
        "sliceName": "statusReason",
        "short": "Reason for current status",
        "definition": "Reason for current status.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:statusReason.url",
        "path": "Extension.extension.url",
        "fixedUri": "statusReason"
      },
      {
        "id": "Extension.extension:statusReason.valueCodeableConcept:valueCodeableConcept",
        "path": "Extension.extension.valueCodeableConcept",
        "sliceName": "valueCodeableConcept",
        "short": "To record the reason the medication (plan or order) was stopped",
        "definition": "To record the reason the medication (plan or order) was stopped.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Extension.extension:statusChangeDate",
        "path": "Extension.extension",
        "sliceName": "statusChangeDate",
        "short": "To record the date this occurred",
        "definition": "To record the date this occurred.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:statusChangeDate.url",
        "path": "Extension.extension.url",
        "fixedUri": "statusChangeDate"
      },
      {
        "id": "Extension.extension:statusChangeDate.valueDateTime:valueDateTime",
        "path": "Extension.extension.valueDateTime",
        "sliceName": "valueDateTime",
        "short": "To record the date this occurred",
        "definition": "To record the date this occurred.",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}