description: This profile defines a medication request structure including core localisation concepts for use as a prescription in an Australian context. package_name: rs/hl7.fhir.au.base derivation: constraint name: AUBaseMedicationRequest type: MedicationRequest elements: substitution: short: Brand substitution details index: 53 elements: allowed: {short: Brand substitution flag, index: 54} medication[x]: elements: coding: index: 33 slicing: rules: open discriminator: - {path: system, type: value} - {path: code, type: value} min: null slices: pbs: match: {system: null, code: null} schema: {short: PBS Item Code, index: 34} gtin: match: {system: null, code: null} schema: {short: Medication Package Global Trade Item Number (GTIN), index: 35} amt: match: {system: null, code: null} schema: short: AMT Medicines index: 36 extensions: medicationClass: url: h type: Extension short: Class of Medication Coding index: 38 elements: valueCoding: pattern: type: Coding value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container} type: Coding index: 39 slicing: slices: valueCoding: match: {} schema: pattern: type: Coding value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container} type: Coding index: 39 elements: extension: index: 37 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: medicationClass: match: {url: null} schema: type: Extension short: Class of Medication Coding url: h index: 38 elements: valueCoding: pattern: type: Coding value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container} type: Coding index: 39 slicing: slices: valueCoding: match: {} schema: pattern: type: Coding value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container} type: Coding index: 39 mimsPackage: match: {system: null, code: null} schema: {short: MIMS Package, index: 40} max: 1 text: {short: Medication primary text, index: 41} dispenseRequest: short: Requested dispensing index: 51 elements: numberOfRepeatsAllowed: {short: Maximum repeats authorised, index: 52} reasonCode: {index: 49} medicationCodeableConcept: type: CodeableConcept short: Coded Prescribed Medication constraint: inv-amt-tpuu: {human: AMT TPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tpuu-codes'''} inv-amt-tpp: {human: AMT TPU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tpp-codes'''} inv-amt-tp: {human: AMT TP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tp-codes'''} inv-amp-mpuu: {human: AMT MPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mpuu-codes'''} inv-amt-mpp: {human: AMT MPP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mpp-codes'''} inv-amt-mp: {human: AMT MP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mp-codes'''} inv-amt-ctpp: {human: AMT CTPP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-ctpp-codes'''} choiceOf: medication index: 32 slicing: slices: medicationCoded: match: {} schema: type: CodeableConcept short: Coded Prescribed Medication constraint: inv-amt-tpuu: {human: AMT TPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tpuu-codes'''} inv-amt-tpp: {human: AMT TPU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tpp-codes'''} inv-amt-tp: {human: AMT TP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tp-codes'''} inv-amp-mpuu: {human: AMT MPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mpuu-codes'''} inv-amt-mpp: {human: AMT MPP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mpp-codes'''} inv-amt-mp: {human: AMT MP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mp-codes'''} inv-amt-ctpp: {human: AMT CTPP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').exists() implies coding.where(system=''http://snomed.info/sct'' and extention.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-ctpp-codes'''} choiceOf: medication index: 32 authoredOn: {short: Created date, index: 48} extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: groundsForConcurrentSupply: match: {url: null} schema: {type: Extension, short: Grounds for Concurrent Supply of Medication, url: h, index: 1} max: 1 minimumIntervalBetweenRepeats: match: {url: null} schema: {type: Extension, short: Minimum Interval Between Repeats, url: h, index: 2} brandName: match: {url: null} schema: {type: Extension, short: Medication Brand Name, url: h, index: 3} genericName: match: {url: null} schema: {type: Extension, short: Medication Generic Drug Name, url: h, index: 4} supportingInformation: index: 45 slicing: rules: open ordered: false discriminator: - {path: resolve(), type: profile} min: null slices: bodyHeight: match: {} schema: type: Reference short: Observation of Body Height refers: ['http://hl7.org.au/fhir/StructureDefinition/au-bodyheight'] index: 46 max: 1 bodyWeight: match: {} schema: type: Reference short: Observation of Body Weight refers: ['http://hl7.org.au/fhir/StructureDefinition/au-bodyweight'] index: 47 max: 1 dosageInstruction: {type: Dosage, index: 50} identifier: index: 5 slicing: rules: open discriminator: - {path: system, type: value} - {path: type, type: value} min: null slices: etpVendorIdentifier: match: {system: null, type: null} schema: short: Electronic Transfer of Prescription Supplier Identifier index: 6 elements: type: index: 7 elements: coding: index: 8 elements: system: pattern: {type: uri, value: 'http://hl7.org.au/fhir/v2/0203'} type: uri index: 9 code: pattern: {type: code, value: ETP} type: code index: 10 required: [code, system] text: pattern: {type: string, value: ETP Identifier} type: string index: 11 required: [coding, text] system: {short: ETP vendor identifier system URL, index: 12} value: {short: ETP vendor identifier, index: 13} assigner: short: ETP vendor index: 14 elements: display: {short: ETP vendor name, index: 15} required: [display] required: [assigner, system, type, value] localScriptNumber: match: {system: null, type: null} schema: short: Local Prescription Number index: 16 elements: type: short: Coded identifier type for local prescription number index: 17 elements: coding: index: 18 elements: system: pattern: {type: uri, value: 'http://hl7.org.au/fhir/v2/0203'} type: uri index: 19 code: pattern: {type: code, value: LPN} type: code index: 20 required: [code, system] text: pattern: {type: string, value: Local Prescription Number} type: string index: 21 required: [coding, text] system: {short: Namespace for local prescription number, index: 22} value: {short: Prescription number, index: 23} assigner: index: 24 elements: display: {index: 25} required: [display] required: [assigner, system, type, value] medicationReference: type: Reference short: Prescribed Medication choiceOf: medication refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication'] index: 44 slicing: slices: medicationReference: match: {} schema: type: Reference short: Prescribed Medication choiceOf: medication refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication'] index: 44 medication: short: Prescribed Medication choices: [medicationReference] index: 43 slicing: slices: medicationReference: match: {} schema: short: Prescribed Medication choices: [medicationReference] index: 43 package_version: 1.0.2 extensions: groundsForConcurrentSupply: {url: h, max: 1, type: Extension, short: Grounds for Concurrent Supply of Medication, index: 1} minimumIntervalBetweenRepeats: {url: h, type: Extension, short: Minimum Interval Between Repeats, index: 2} brandName: {url: h, type: Extension, short: Medication Brand Name, index: 3} genericName: {url: h, type: Extension, short: Medication Generic Drug Name, index: 4} class: profile kind: resource url: http://hl7.org.au/fhir/StructureDefinition/au-medicationrequest base: http://hl7.org/fhir/StructureDefinition/MedicationRequest version: 1.0.1