PackagesCanonicalsLogsProblems
    Packages
    gpc.stu3.fhir-assets@1.4.2
    https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1
description: This MedicationRequest Resource represents an order for both supply of the medication and the instructions for administration of the medication to a patient.
package_name: gpc.stu3.fhir-assets
derivation: constraint
name: CareConnect-GPC-MedicationRequest-1
type: MedicationRequest
elements:
  meta:
    index: 0
    elements:
      profile: {index: 1}
    required: [profile]
  detectedIssue: {mustSupport: true, index: 63}
  dispenseRequest:
    index: 51
    elements:
      validityPeriod:
        index: 52
        elements:
          start: {index: 53}
        required: [start]
      quantity:
        mustSupport: true
        index: 54
        extensions:
          quantityText: {url: h, max: 1, type: Extension, mustSupport: true, index: 55}
        elements:
          extension:
            type: Extension
            mustSupport: true
            url: h
            index: 55
            slicing:
              slices:
                quantityText:
                  match: {}
                  schema: {type: Extension, mustSupport: true, url: h, index: 55}
                  max: 1
      expectedSupplyDuration:
        mustSupport: true
        index: 56
        elements:
          value: {index: 57}
          comparator: {index: 58}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            index: 59
          code: {index: 60}
        required: [value, system, code]
      performer:
        type: Reference
        mustSupport: true
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
        index: 61
    required: [validityPeriod]
  medicationCodeableConcept: {type: CodeableConcept, choiceOf: medication, index: 17}
  authoredOn: {index: 21}
  note:
    mustSupport: true
    index: 27
    elements:
      author:
        choices: [authorReference, authorString, authorReference, authorReference]
        index: 29
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1']
        index: 32
      authorString: {type: string, choiceOf: author, index: 31}
  extension:
    type: Extension
    url: h
    index: 2
    slicing:
      slices:
        repeatInformation:
          match: {}
          schema:
            type: Extension
            url: h
            index: 2
            extensions:
              numberOfRepeatPrescriptionsAllowed: {url: null, mustSupport: true, index: 3}
              numberOfRepeatPrescriptionsIssued: {url: null, mustSupport: false, index: 4}
              authorisationExpiryDate: {url: null, mustSupport: true, index: 5}
            elements:
              extension:
                mustSupport: true
                index: 3
                slicing:
                  slices:
                    numberOfRepeatPrescriptionsAllowed:
                      match: {}
                      schema: {mustSupport: true, index: 3}
                    numberOfRepeatPrescriptionsIssued:
                      match: {}
                      schema: {mustSupport: false, index: 4}
                    authorisationExpiryDate:
                      match: {}
                      schema: {mustSupport: true, index: 5}
        statusReason:
          match: {}
          schema: {type: Extension, mustSupport: true, url: h, index: 6}
        prescriptionType:
          match: {}
          schema: {type: Extension, mustSupport: true, url: h, index: 7}
  requester:
    mustSupport: true
    index: 22
    elements:
      agent:
        type: Reference
        refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', '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: 23
      onBehalfOf:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
        index: 24
  status: {index: 14}
  dosageInstruction:
    index: 34
    elements:
      text: {index: 35}
      additionalInstruction:
        elements:
          coding:
            index: 36
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 37
                    extensions:
                      snomedCTDescriptionID: {url: h, type: Extension, index: 38}
                    elements:
                      extension:
                        type: Extension
                        url: h
                        index: 38
                        slicing:
                          slices:
                            snomedCTDescriptionID:
                              match: {}
                              schema: {type: Extension, url: h, index: 38}
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 39
                      version: {index: 40}
                      code: {index: 41}
                      display: {index: 42}
                    required: [display, system, code]
      patientInstruction: {mustSupport: true, index: 43}
      route:
        elements:
          coding:
            index: 44
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 45
                    extensions:
                      snomedCTDescriptionID: {url: h, type: Extension, index: 46}
                    elements:
                      extension:
                        type: Extension
                        url: h
                        index: 46
                        slicing:
                          slices:
                            snomedCTDescriptionID:
                              match: {}
                              schema: {type: Extension, url: h, index: 46}
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 47
                      version: {index: 48}
                      code: {index: 49}
                      display: {index: 50}
                    required: [display, system, code]
    required: [text]
  groupIdentifier:
    mustSupport: true
    index: 12
    elements:
      assigner:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
        index: 13
  recorder:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
    index: 25
  identifier:
    index: 8
    elements:
      system: {index: 9}
      value: {index: 10}
    required: [value, system]
  context:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1']
    index: 20
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/ProcedureRequest', 'http://hl7.org/fhir/StructureDefinition/ReferralRequest', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1']
    index: 11
  priorPrescription:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1']
    index: 62
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Medication-1']
    index: 18
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1']
    index: 19
  medication:
    choices: [medicationCodeableConcept, medicationReference]
    index: 16
  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: 26
package_version: 1.4.2
extensions:
  repeatInformation:
    url: h
    type: Extension
    index: 2
    extensions:
      numberOfRepeatPrescriptionsAllowed: {url: null, mustSupport: true, index: 3}
      numberOfRepeatPrescriptionsIssued: {url: null, mustSupport: false, index: 4}
      authorisationExpiryDate: {url: null, mustSupport: true, index: 5}
    elements:
      extension:
        mustSupport: true
        index: 3
        slicing:
          slices:
            numberOfRepeatPrescriptionsAllowed:
              match: {}
              schema: {mustSupport: true, index: 3}
            numberOfRepeatPrescriptionsIssued:
              match: {}
              schema: {mustSupport: false, index: 4}
            authorisationExpiryDate:
              match: {}
              schema: {mustSupport: true, index: 5}
  statusReason: {url: h, type: Extension, mustSupport: true, index: 6}
  prescriptionType: {url: h, type: Extension, mustSupport: true, index: 7}
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.8.0
required: [authoredOn, dosageInstruction, status, identifier, recorder, dispenseRequest]