PackagesCanonicalsLogsProblems
    Packages
    NHSD.Assets.STU3@1.5.0
    https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Medication-Flag-1
description: This Flag Resource carries prospective warnings of potential issues related to the patient's medications.
package_name: NHSD.Assets.STU3
derivation: constraint
name: CareConnect-Medication-Flag-1
type: Flag
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        medication:
          match: {url: null}
          schema: {type: Extension, url: h, index: 1}
  identifier:
    elements:
      system: {index: 2}
      value: {index: 3}
      assigner:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1']
        index: 4
    required: [value, system]
  category:
    index: 5
    elements:
      coding:
        index: 6
        elements:
          system:
            pattern: {type: Uri, value: 'http://hl7.org/fhir/flag-category'}
            index: 7
          version: {index: 8}
          code:
            pattern: {type: Code, value: drug}
            index: 9
          display:
            pattern: {type: String, value: Drug}
            index: 10
          userSelected: {index: 11}
        required: [display, system, code]
    required: [coding]
  code:
    index: 12
    elements:
      coding:
        index: 13
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.hl7.org.uk/STU3/CareConnect-MedicationFlag-1'}
            index: 14
          version: {index: 15}
          code: {index: 16}
          display: {index: 17}
          userSelected: {index: 18}
        required: [display, system, code]
    required: [coding]
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Location-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1']
    index: 19
  encounter:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1']
    index: 20
  author:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1']
    index: 21
package_version: 1.5.0
extensions:
  medication: {url: h, type: Extension, index: 1}
class: profile
kind: resource
url: https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Medication-Flag-1
base: http://hl7.org/fhir/StructureDefinition/Flag
version: 0.0.2
required: [category]