PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.core@0.4.0-preview
    http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationrequest
description: This profile sets minimum expectations for a MedicationRequest resource to record, search, and fetch medication orders and requests (i.e. prescriptions) associated with a patient. It is based on the [AU Base Medication Request](http://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-au-medicationrequest.html) profile and identifies the *additional* mandatory core elements, extensions, vocabularies and value sets that **SHALL** be present in the MedicationRequest when conforming to this profile. It provides the floor for standards development for specific uses cases in an Australian context.
package_name: hl7.fhir.au.core
derivation: constraint
name: AUCoreMedicationRequest
type: MedicationRequest
elements:
  encounter:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-encounter']
    index: 14
  medication[x]:
    elements:
      coding:
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            pbs:
              match: {system: null}
              schema: {mustSupport: true, index: 8}
            amt:
              match: {system: null}
              schema: {mustSupport: true, index: 9}
  reasonCode: {mustSupport: true, index: 17}
  medicationCodeableConcept:
    type: CodeableConcept
    choiceOf: medication
    index: 6
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: medication, index: 6}
  authoredOn:
    constraint:
      au-core-medreq-03: {human: Date shall be at least to day, source: 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationrequest', severity: error, expression: toString().length() >= 10}
    mustSupport: true
    index: 15
  requester:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/StructureDefinition/au-relatedperson', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-organization', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitioner', 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-practitionerrole']
    index: 16
  status: {mustSupport: true, index: 0}
  dosageInstruction: {mustSupport: true, index: 19}
  intent: {mustSupport: true, index: 1}
  medicationReference:
    type: Reference
    choiceOf: medication
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-medication']
    index: 12
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            choiceOf: medication
            refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-medication']
            index: 12
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient']
    index: 13
  medication:
    choices: [medicationReference]
    index: 11
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            choices: [medicationReference]
            index: 11
  reasonReference:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-condition', 'http://hl7.org/fhir/StructureDefinition/Observation']
    index: 18
package_version: 0.4.0-preview
class: profile
kind: resource
url: http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationrequest
base: http://hl7.org.au/fhir/StructureDefinition/au-medicationrequest
version: 0.4.0-preview
required: [authoredOn, requester]