PackagesCanonicalsLogsProblems
    Packages
    gpc.stu3.fhir-assets@1.1.3
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationDispense-1
description: Indicates that a medication product is to be or has been dispensed for a named person/patient.
package_name: gpc.stu3.fhir-assets
derivation: constraint
name: CareConnect-GPC-MedicationDispense-1
type: MedicationDispense
elements:
  category:
    elements:
      coding:
        elements:
          system: {index: 5}
          code: {index: 6}
        required: [system, code]
  whenHandedOver: {mustSupport: true, index: 28}
  whenPrepared: {mustSupport: true, index: 27}
  substitution:
    elements:
      responsibleParty:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
        index: 38
  medicationCodeableConcept: {type: CodeableConcept, choiceOf: medication, index: 9}
  type:
    mustSupport: true
    index: 18
    elements:
      coding:
        elements:
          system: {index: 19}
          code: {index: 20}
        required: [system, code]
  note:
    elements:
      author:
        choices: [authorReference, authorString, authorReference, authorReference]
        index: 32
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
        index: 35
      authorString: {type: string, choiceOf: author, index: 34}
  status: {mustSupport: true, index: 4}
  dosageInstruction: {mustSupport: true, index: 37}
  daysSupply: {mustSupport: true, index: 26}
  identifier:
    mustSupport: true
    index: 0
    elements:
      system: {index: 1}
      value: {index: 2}
      assigner:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
        index: 3
    required: [value, system]
  context:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/EpisodeOfCare', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Encounter-1']
    index: 14
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Medication-1']
    index: 10
  quantity:
    index: 21
    elements:
      value: {index: 22}
      unit: {index: 23}
      system: {index: 24}
      code: {index: 25}
    required: [value, unit, system, code]
  authorizingPrescription:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1']
    index: 17
  receiver:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
    index: 30
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1']
    index: 11
    elements:
      identifier:
        elements:
          system:
            pattern: {type: Uri, value: 'https://fhir.nhs.uk/Id/nhs-number'}
            index: 12
          value: {index: 13}
        required: [value, system]
  destination:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Location-1']
    index: 29
  performer:
    mustSupport: true
    index: 15
    elements:
      actor:
        type: Reference
        refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-RelatedPerson-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
        index: 16
  medication:
    choices: [medicationCodeableConcept, medicationReference]
    index: 8
package_version: 1.1.3
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationDispense-1
base: http://hl7.org/fhir/StructureDefinition/MedicationDispense
version: 1.1.0
required: [quantity, subject, performer]