description: This profile sets minimum expectations for a MedicationRequest resource in the context of a patient summary in an Australian context. It is based on the [AU Base MedicationRequest](http://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-au-medicationrequest.html) profile, and applies the constraints of [AU Core MedicationRequest](http://hl7.org.au/fhir/core/StructureDefinition/au-core-medicationrequest) and [MedicationRequest (IPS)](http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationRequest-uv-ips). package_name: hl7.fhir.au.ps derivation: constraint name: AUPSMedicationRequest type: MedicationRequest elements: encounter: type: Reference mustSupport: true refers: ['http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-encounter'] index: 14 medication[x]: elements: coding: index: 6 slicing: rules: open discriminator: - {path: $this, type: pattern} min: null slices: pbs: match: {} schema: binding: {strength: required, valueSet: 'http://terminology.hl7.org.au/ValueSet/pbs-item'} mustSupport: true index: 7 amt: match: {} schema: binding: {strength: required, valueSet: 'https://healthterminologies.gov.au/fhir/ValueSet/australian-medication-1'} mustSupport: true index: 8 reasonCode: {mustSupport: true, index: 17} authoredOn: constraint: au-core-medreq-01: {human: 'Date shall be precise to the day or, if not available, the Data Absent Reason extension shall be present', severity: error, expression: '$this.hasValue() implies (extension(''http://hl7.org/fhir/StructureDefinition/data-absent-reason'').value.exists().not() and $this.toString().length() >= 10)'} mustSupport: true index: 15 requester: type: Reference mustSupport: true refers: ['http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-organization', 'http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-patient', 'http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitioner', 'http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-practitionerrole', 'http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-relatedperson'] index: 16 status: {mustSupport: true, index: 0} dosageInstruction: mustSupport: true index: 19 elements: text: {mustSupport: true, index: 20} timing: {mustSupport: true, index: 21} intent: {mustSupport: true, index: 1} medicationReference: type: Reference choiceOf: medication refers: ['http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-medication'] index: 11 slicing: slices: medicationReference: match: {} schema: type: Reference choiceOf: medication refers: ['http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-medication'] index: 11 subject: type: Reference mustSupport: true refers: ['http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-patient'] index: 12 elements: reference: {mustSupport: true, index: 13} required: [reference] medication: choices: [medicationReference] index: 10 slicing: slices: medicationReference: match: {} schema: choices: [medicationReference] index: 10 reasonReference: type: Reference mustSupport: true refers: ['http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-condition', 'http://hl7.org/fhir/StructureDefinition/Observation'] index: 18 package_version: 0.1.0-preview class: profile kind: resource url: http://hl7.org.au/fhir/ps/StructureDefinition/au-ps-medicationrequest base: http://hl7.org.au/fhir/StructureDefinition/au-medicationrequest version: 0.1.0-preview required: [authoredOn, requester]