PackagesCanonicalsLogsProblems
    Packages
    gpc.stu3.fhir-assets@1.4.1
    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: 67}
  dispenseRequest:
    index: 55
    elements:
      validityPeriod:
        index: 56
        elements:
          start: {index: 57}
        required: [start]
      quantity:
        mustSupport: true
        index: 58
        extensions:
          quantityText: {url: h, max: 1, type: Extension, mustSupport: true, index: 59}
        elements:
          extension:
            type: Extension
            mustSupport: true
            url: h
            index: 59
            slicing:
              slices:
                quantityText:
                  match: {}
                  schema: {type: Extension, mustSupport: true, url: h, index: 59}
                  max: 1
      expectedSupplyDuration:
        mustSupport: true
        index: 60
        elements:
          value: {index: 61}
          comparator: {index: 62}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            index: 63
          code: {index: 64}
        required: [value, system, code]
      performer:
        type: Reference
        mustSupport: true
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
        index: 65
    required: [validityPeriod]
  medicationCodeableConcept: {type: CodeableConcept, choiceOf: medication, index: 19}
  authoredOn: {index: 23}
  note:
    mustSupport: true
    index: 29
    elements:
      author:
        choices: [authorReference, authorString, authorReference, authorReference]
        index: 31
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1']
        index: 34
      authorString: {type: string, choiceOf: author, index: 33}
  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: 4}
              numberOfRepeatPrescriptionsIssued: {url: null, mustSupport: false, index: 5}
              authorisationExpiryDate: {url: null, mustSupport: true, index: 6}
            elements:
              extension:
                index: 3
                slicing:
                  slices:
                    numberOfRepeatPrescriptionsAllowed:
                      match: {}
                      schema: {mustSupport: true, index: 4}
                    numberOfRepeatPrescriptionsIssued:
                      match: {}
                      schema: {mustSupport: false, index: 5}
                    authorisationExpiryDate:
                      match: {}
                      schema: {mustSupport: true, index: 6}
            required: [extension]
        statusReason:
          match: {}
          schema:
            type: Extension
            mustSupport: true
            url: h
            index: 7
            extensions: {}
            elements:
              extension: {array: true, min: 2, index: 8}
        prescriptionType:
          match: {}
          schema: {type: Extension, mustSupport: true, url: h, index: 9}
  requester:
    mustSupport: true
    index: 24
    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: 25
      onBehalfOf:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
        index: 26
  status: {index: 16}
  dosageInstruction:
    index: 36
    elements:
      text: {index: 37}
      additionalInstruction:
        elements:
          coding:
            index: 38
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 39
                    extensions:
                      snomedCTDescriptionID:
                        url: h
                        type: Extension
                        index: 40
                        extensions: {}
                        elements:
                          extension: {index: 41}
                        required: [extension]
                    elements:
                      extension:
                        type: Extension
                        url: h
                        index: 40
                        slicing:
                          slices:
                            snomedCTDescriptionID:
                              match: {}
                              schema:
                                type: Extension
                                url: h
                                index: 40
                                extensions: {}
                                elements:
                                  extension: {index: 41}
                                required: [extension]
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 42
                      version: {index: 43}
                      code: {index: 44}
                      display: {index: 45}
                    required: [display, system, code]
      patientInstruction: {mustSupport: true, index: 46}
      route:
        elements:
          coding:
            index: 47
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 48
                    extensions:
                      snomedCTDescriptionID:
                        url: h
                        type: Extension
                        index: 49
                        extensions: {}
                        elements:
                          extension: {index: 50}
                        required: [extension]
                    elements:
                      extension:
                        type: Extension
                        url: h
                        index: 49
                        slicing:
                          slices:
                            snomedCTDescriptionID:
                              match: {}
                              schema:
                                type: Extension
                                url: h
                                index: 49
                                extensions: {}
                                elements:
                                  extension: {index: 50}
                                required: [extension]
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        index: 51
                      version: {index: 52}
                      code: {index: 53}
                      display: {index: 54}
                    required: [display, system, code]
    required: [text]
  groupIdentifier:
    mustSupport: true
    index: 14
    elements:
      assigner:
        type: Reference
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
        index: 15
  recorder:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Practitioner-1']
    index: 27
  identifier:
    index: 10
    elements:
      system: {index: 11}
      value: {index: 12}
    required: [value, system]
  context:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/EpisodeOfCare', 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Encounter-1']
    index: 22
  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: 13
  priorPrescription:
    type: Reference
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1']
    index: 66
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Medication-1']
    index: 20
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Patient-1']
    index: 21
  medication:
    choices: [medicationCodeableConcept, medicationReference]
    index: 18
  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: 28
package_version: 1.4.1
extensions:
  repeatInformation:
    url: h
    type: Extension
    index: 2
    extensions:
      numberOfRepeatPrescriptionsAllowed: {url: null, mustSupport: true, index: 4}
      numberOfRepeatPrescriptionsIssued: {url: null, mustSupport: false, index: 5}
      authorisationExpiryDate: {url: null, mustSupport: true, index: 6}
    elements:
      extension:
        index: 3
        slicing:
          slices:
            numberOfRepeatPrescriptionsAllowed:
              match: {}
              schema: {mustSupport: true, index: 4}
            numberOfRepeatPrescriptionsIssued:
              match: {}
              schema: {mustSupport: false, index: 5}
            authorisationExpiryDate:
              match: {}
              schema: {mustSupport: true, index: 6}
    required: [extension]
  statusReason:
    url: h
    type: Extension
    mustSupport: true
    index: 7
    extensions: {}
    elements:
      extension: {array: true, min: 2, index: 8}
  prescriptionType: {url: h, type: Extension, mustSupport: true, index: 9}
class: profile
kind: resource
url: https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-MedicationRequest-1
base: http://hl7.org/fhir/StructureDefinition/MedicationRequest
version: 1.7.0
required: [authoredOn, dosageInstruction, status, identifier, recorder, dispenseRequest]