PackagesCanonicalsLogsProblems
    Packages
    NHSD.Assets.STU3@1.0.0
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-MedicationStatement-1
description: This MedicationStatement Resource is a record of a medication that is being consumed by a patient with further constraints applied to support medications prescribed for a patient, to support the Digital Child Health project.
package_name: NHSD.Assets.STU3
derivation: constraint
name: CareConnect-DCH-MedicationStatement-1
type: MedicationStatement
elements:
  dosage:
    elements:
      additionalInstruction:
        index: 31
        elements:
          coding:
            index: 32
            elements:
              system:
                pattern: {type: Uri, value: 'https://fhir.nhs.uk/STU3/CodeSystem/DCH-DoseDirectionDuration-1'}
                index: 33
              version: {index: 34}
              code: {index: 35}
              display: {index: 36}
              userSelected: {index: 37}
            required: [display, system, code]
      route:
        elements:
          coding:
            index: 38
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 39
                    extensions:
                      snomedCTDescriptionID:
                        url: h
                        type: Extension
                        index: 41
                        elements:
                          url:
                            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                            index: 42
                    elements:
                      extension:
                        index: 40
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            snomedCTDescriptionID:
                              match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                              schema:
                                type: Extension
                                url: h
                                index: 41
                                elements:
                                  url:
                                    pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-coding-sctdescid'}
                                    index: 42
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 43
                      version: {index: 44}
                      code: {index: 45}
                      display: {index: 46}
                    required: [display, system, code]
  derivedFrom: {index: 23}
  note:
    elements:
      author:
        choices: [authorReference, authorString, authorReference, authorReference]
        index: 26
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1']
        index: 29
      authorString: {type: string, choiceOf: author, index: 28}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        lastIssueDate:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationStatementLastIssueDate-1'}
          schema:
            type: Extension
            url: h
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationStatementLastIssueDate-1'}
                index: 2
        changeSummary:
          match: {url: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationChangeSummary-1'}
          schema:
            type: Extension
            short: Optional Extensions Element
            url: h
            index: 3
            elements:
              url:
                pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationChangeSummary-1'}
                index: 4
  identifier:
    index: 5
    elements:
      use: {index: 6}
      type: {index: 7}
      system: {index: 8}
      value: {index: 9}
      period: {index: 10}
      assigner:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
        index: 11
    required: [value, system]
  context:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Encounter-1']
    index: 15
    elements:
      reference: {index: 16}
    required: [reference]
  basedOn:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-MedicationRequest-1']
    index: 12
    elements:
      reference: {index: 13}
    required: [reference]
  medicationReference:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Medication-1']
    index: 17
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Medication-1']
            index: 17
            elements:
              reference: {index: 18}
            required: [reference]
  partOf:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-MedicationStatement-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/DCH-MedicationAdministration-1']
    index: 14
  informationSource:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Practitioner-1']
    index: 19
    elements:
      reference: {index: 20}
    required: [reference]
  subject:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-Patient-1']
    index: 21
    elements:
      reference: {index: 22}
    required: [reference]
  reasonReference:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Condition-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Observation-1']
    index: 24
package_version: 1.0.0
extensions:
  lastIssueDate:
    url: h
    type: Extension
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationStatementLastIssueDate-1'}
        index: 2
  changeSummary:
    url: h
    type: Extension
    short: Optional Extensions Element
    index: 3
    elements:
      url:
        pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-MedicationChangeSummary-1'}
        index: 4
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-DCH-MedicationStatement-1
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: 1.1.0
required: [context]