PackagesCanonicalsLogsProblems
    Packages
    rs/NHSD.Assets.STU3@1.3.0
    https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1
description: To record the reason the medication (plan or order) was stopped and the date this occurred.
package_name: rs/NHSD.Assets.STU3
derivation: constraint
name: Extension-CareConnect-GPC-MedicationStatusReason-1
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        statusReason:
          match: {url: statusReason}
          schema:
            short: Reason for current status
            _required: true
            index: 1
            elements:
              url:
                pattern: {type: uri, value: statusReason}
                type: uri
                index: 2
              valueCodeableConcept:
                type: CodeableConcept
                short: To record the reason the medication (plan or order) was stopped
                index: 3
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema: {type: CodeableConcept, short: To record the reason the medication (plan or order) was stopped, index: 3}
        statusChangeDate:
          match: {url: statusChangeDate}
          schema:
            short: To record the date this occurred
            _required: true
            index: 4
            elements:
              url:
                pattern: {type: uri, value: statusChangeDate}
                type: uri
                index: 5
              valueDateTime:
                type: dateTime
                short: To record the date this occurred
                index: 6
                slicing:
                  slices:
                    valueDateTime:
                      match: {}
                      schema: {type: dateTime, short: To record the date this occurred, index: 6}
  url:
    pattern: {type: uri, value: 'https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1'}
    type: uri
    index: 7
  value:
    choices: []
    index: 9
package_version: 1.3.0
extensions:
  statusReason:
    url: statusReason
    short: Reason for current status
    _required: true
    index: 1
    elements:
      url:
        pattern: {type: uri, value: statusReason}
        type: uri
        index: 2
      valueCodeableConcept:
        type: CodeableConcept
        short: To record the reason the medication (plan or order) was stopped
        index: 3
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, short: To record the reason the medication (plan or order) was stopped, index: 3}
  statusChangeDate:
    url: statusChangeDate
    short: To record the date this occurred
    _required: true
    index: 4
    elements:
      url:
        pattern: {type: uri, value: statusChangeDate}
        type: uri
        index: 5
      valueDateTime:
        type: dateTime
        short: To record the date this occurred
        index: 6
        slicing:
          slices:
            valueDateTime:
              match: {}
              schema: {type: dateTime, short: To record the date this occurred, index: 6}
class: extension
kind: complex-type
url: https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareConnect-GPC-MedicationStatusReason-1
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 1.0.0