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