PackagesCanonicalsLogsProblems
    Packages
    fhir.r4.wales.stu1@0.1.1-ballot
    https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationDispense
description: null
package_name: fhir.r4.wales.stu1
derivation: constraint
name: DataStandardsWalesMedicationDispense
type: MedicationDispense
elements:
  category:
    elements:
      coding:
        elements:
          system: {index: 12}
          code: {index: 13}
        required: [code, system]
  whenHandedOver: {mustSupport: true, index: 49}
  whenPrepared: {mustSupport: true, index: 48}
  eventHistory:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Provenance']
    index: 67
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 68
  substitution:
    elements:
      responsibleParty:
        type: Reference
        refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole']
        index: 64
        elements:
          identifier:
            elements:
              assigner:
                type: Reference
                refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
                index: 65
  detectedIssue:
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 66
  medicationCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: medication, index: 16}
  type:
    binding: {strength: required, valueSet: 'https://fhir.hl7.org.uk/ValueSet/UKCore-MedicationSupplyType'}
    mustSupport: true
    index: 39
    elements:
      coding:
        elements:
          system: {index: 40}
          code: {index: 41}
        required: [code, system]
  statusReason:
    mustSupport: true
    choices: [statusReasonCodeableConcept]
    index: 8
  note:
    elements:
      author:
        choices: [authorReference, authorString]
        index: 55
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-Patient', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-Practitioner', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson']
        index: 56
      authorString: {type: string, choiceOf: author, index: 57}
  statusReasonCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: statusReason, index: 9}
  supportingInformation:
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 24
  status: {mustSupport: true, index: 6}
  statusReason[x]:
    elements:
      coding:
        elements:
          system: {index: 10}
          code: {index: 11}
        required: [code, system]
  dosageInstruction:
    mustSupport: true
    index: 58
    elements:
      asNeeded:
        choices: []
        index: 60
      site:
        binding: {strength: extensible, valueSet: 'https://fhir.hl7.org.uk/ValueSet/UKCore-BodySite'}
        index: 61
      route:
        binding: {strength: extensible, valueSet: 'https://fhir.hl7.org.uk/ValueSet/UKCore-SubstanceOrProductAdministrationRoute'}
        index: 62
      method:
        binding: {strength: extensible, valueSet: 'https://fhir.hl7.org.uk/ValueSet/UKCore-MedicationDosageMethod'}
        index: 63
  daysSupply: {mustSupport: true, index: 47}
  identifier:
    mustSupport: true
    index: 0
    elements:
      system: {index: 1}
      value: {index: 2}
      assigner:
        type: Reference
        refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
        index: 3
    required: [system, value]
  context:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-EpisodeOfCare', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Encounter']
    index: 22
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 23
  medicationReference:
    type: Reference
    mustSupport: true
    choiceOf: medication
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Medication']
    index: 17
  quantity:
    mustSupport: true
    index: 42
    elements:
      value: {index: 43}
      unit: {index: 44}
      system: {index: 45}
      code: {index: 46}
    required: [code, system, unit, value]
  partOf:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Procedure']
    index: 4
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Organization']
            index: 5
  location:
    type: Reference
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Location']
    index: 31
    elements:
      identifier:
        elements:
          system: {index: 32}
          value: {index: 33}
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 34
        required: [system, value]
      display: {index: 35}
    required: [display]
  authorizingPrescription:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationRequest']
    index: 36
    elements:
      reference: {index: 37}
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 38
    required: [reference]
  receiver:
    type: Reference
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner']
    index: 52
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 53
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient']
    index: 18
    elements:
      identifier:
        elements:
          system: {index: 19}
          value: {index: 20}
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 21
        required: [system, value]
  destination:
    type: Reference
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Location']
    index: 50
    elements:
      identifier:
        elements:
          assigner:
            type: Reference
            refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
            index: 51
  performer:
    mustSupport: true
    index: 25
    elements:
      actor:
        type: Reference
        refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Device', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole']
        index: 26
        elements:
          reference: {index: 27}
          identifier:
            elements:
              system: {index: 28}
              value: {index: 29}
              assigner:
                type: Reference
                refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
                index: 30
            required: [system, value]
        required: [reference]
  medication:
    mustSupport: true
    choices: [medicationCodeableConcept, medicationReference]
    index: 15
package_version: 0.1.1-ballot
class: profile
kind: resource
url: https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationDispense
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 0.1.0
required: [authorizingPrescription, identifier, performer, quantity, receiver, subject]