PackagesCanonicalsLogsProblems
    Packages
    rs/gpc.stu3.fhir@assets-1.1.0
    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: rs/gpc.stu3.fhir
derivation: constraint
name: CareConnect-GPC-MedicationRequest-1
type: MedicationRequest
elements:
  meta:
    elements:
      profile: {index: 0}
    required: [profile]
  detectedIssue: {mustSupport: true, index: 66}
  dispenseRequest:
    index: 53
    elements:
      validityPeriod:
        index: 54
        elements:
          start: {index: 55}
        required: [start]
      quantity:
        mustSupport: true
        index: 56
        extensions:
          quantityText: {url: h, max: 1, type: Extension, mustSupport: true, index: 58}
        elements:
          extension:
            index: 57
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: null
              slices:
                quantityText:
                  match: {url: null}
                  schema: {type: Extension, mustSupport: true, url: h, index: 58}
                  max: 1
      expectedSupplyDuration:
        mustSupport: true
        index: 59
        elements:
          value: {index: 60}
          comparator: {index: 61}
          system:
            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
            type: uri
            index: 62
          code: {index: 63}
        required: [code, system, value]
      performer:
        type: Reference
        mustSupport: true
        refers: ['https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-GPC-Organization-1']
        index: 64
    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:
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        repeatInformation:
          match: {url: null}
          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: {url: null}
          schema: {type: Extension, mustSupport: true, url: h, index: 6}
        prescriptionType:
          match: {url: null}
          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: 39}
                    elements:
                      extension:
                        index: 38
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            snomedCTDescriptionID:
                              match: {url: null}
                              schema: {type: Extension, url: h, index: 39}
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 40
                      version: {index: 41}
                      code: {index: 42}
                      display: {index: 43}
                    required: [code, display, system]
      patientInstruction: {mustSupport: true, index: 44}
      route:
        elements:
          coding:
            index: 45
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                snomedCT:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    index: 46
                    extensions:
                      snomedCTDescriptionID: {url: h, type: Extension, index: 48}
                    elements:
                      extension:
                        index: 47
                        slicing:
                          rules: open
                          discriminator:
                          - {path: url, type: value}
                          min: null
                          slices:
                            snomedCTDescriptionID:
                              match: {url: null}
                              schema: {type: Extension, url: h, index: 48}
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 49
                      version: {index: 50}
                      code: {index: 51}
                      display: {index: 52}
                    required: [code, display, system]
    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: [system, value]
  context:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/EpisodeOfCare', '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: 65
  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: assets-1.1.0
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.7.0
required: [authoredOn, dispenseRequest, dosageInstruction, identifier, recorder, status]