PackagesCanonicalsLogsProblems
    Packages
    fhir.r4.wales@2.1.0
    https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationRequest
description: null
package_name: fhir.r4.wales
derivation: constraint
name: DataStandardsWalesMedicationRequest
type: MedicationRequest
elements:
  category: {index: 7}
  eventHistory:
    type: Reference
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Provenance']
    index: 43
  encounter:
    type: Reference
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Encounter']
    index: 20
  dispenseRequest:
    index: 40
    elements:
      performer:
        type: Reference
        refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Organization']
        index: 41
  reported:
    choices: [reportedBoolean, reportedReference]
    index: 9
  reasonCode: {mustSupport: true, index: 26}
  medicationCodeableConcept: {type: CodeableConcept, choiceOf: medication, index: 14}
  statusReason:
    mustSupport: true
    index: 2
    elements:
      coding:
        index: 3
        elements:
          system: {index: 4}
          code: {index: 5}
          display: {index: 6}
        required: [code, display, system]
    required: [coding]
  authoredOn: {index: 21}
  note:
    mustSupport: true
    index: 34
    elements:
      author:
        choices: [authorReference, authorString]
        index: 36
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['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', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-RelatedPerson']
        index: 37
      authorString: {type: string, choiceOf: author, index: 38}
  extension:
    mustSupport: true
    index: 0
    slicing:
      slices:
        medicationRepeatInformation:
          match: {}
          schema: {mustSupport: true, index: 0}
  requester:
    type: Reference
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Device', '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', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-RelatedPerson']
    index: 22
    elements:
      reference: {index: 23}
    required: [reference]
  reportedReference:
    type: Reference
    choiceOf: reported
    refers: ['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', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-RelatedPerson']
    index: 11
  status: {short: active | cancelled | stopped, index: 1}
  dosageInstruction: {type: Dosage, index: 39}
  groupIdentifier: {mustSupport: true, index: 29}
  recorder:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole']
    index: 25
  reportedBoolean: {type: boolean, choiceOf: reported, index: 10}
  basedOn:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationRequest', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-ServiceRequest']
    index: 28
  priorPrescription:
    type: Reference
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationRequest']
    index: 42
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Medication']
    index: 15
  courseOfTherapyType:
    mustSupport: true
    index: 30
    elements:
      coding:
        index: 31
        elements:
          system: {index: 32}
          code: {index: 33}
        required: [code, system]
    required: [coding]
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient']
    index: 16
    elements:
      reference: {index: 17}
      identifier:
        elements:
          system:
            pattern: {type: uri, value: 'https://fhir.nhs.uk/Id/nhs-number'}
            type: uri
            index: 18
          value: {index: 19}
        required: [system, value]
    required: [reference]
  performer:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/CareTeam', 'https://fhir.hl7.org.uk/StructureDefinition/UKCore-RelatedPerson', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Device', '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: 24
  medication:
    choices: [medicationCodeableConcept, medicationReference]
    index: 13
  reasonReference:
    type: Reference
    refers: ['https://fhir.hl7.org.uk/StructureDefinition/UKCore-Condition', 'https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Observation']
    index: 27
package_version: 2.1.0
extensions:
  medicationRepeatInformation: {url: null, mustSupport: true, index: 0}
class: profile
kind: resource
url: https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-MedicationRequest
base: https://fhir.hl7.org.uk/StructureDefinition/UKCore-MedicationRequest
version: 1.1.1
required: [authoredOn, category, dispenseRequest, requester]