description: This profile defines a medication statement structure including core localisation concepts for use in an Australian context. package_name: rs/hl7.fhir.au.base derivation: constraint name: AUBaseMedicationStatement type: MedicationStatement elements: extension: index: 0 slicing: rules: open discriminator: - {path: url, type: value} min: null slices: longTerm: match: {url: null} schema: {type: Extension, short: Medication Long Term Indicator, url: h, index: 1} brandName: match: {url: null} schema: {type: Extension, short: Medication Brand Name, url: h, index: 2} genericName: match: {url: null} schema: {type: Extension, short: Medication Generic Drug Name, url: h, index: 3} medication: short: Medication Reference choices: [medicationReference] index: 20 slicing: slices: medicationReference: match: {} schema: short: Medication Reference choices: [medicationReference] index: 20 medicationCodeableConcept: type: CodeableConcept short: Coded Medication constraint: inv-amt-tpuu: {human: AMT TPUU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tpuu-codes'''} inv-amt-tpp: {human: AMT TPU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tpp-codes'''} inv-amt-tp: {human: AMT TP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tp-codes'''} inv-amp-mpuu: {human: AMT MPUU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mpuu-codes'''} inv-amt-mpp: {human: AMT MPP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mpp-codes'''} inv-amt-mp: {human: AMT MP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mp-codes'''} inv-amt-ctpp: {human: AMT CTPP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').code in ''http://hl7.org.au/fhir/ValueSet/amt-ctpp-codes'''} choiceOf: medication index: 10 slicing: slices: medicationCoded: match: {} schema: type: CodeableConcept short: Coded Medication constraint: inv-amt-tpuu: {human: AMT TPUU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tpuu-codes'''} inv-amt-tpp: {human: AMT TPU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tpp-codes'''} inv-amt-tp: {human: AMT TP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tp-codes'''} inv-amp-mpuu: {human: AMT MPUU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mpuu-codes'''} inv-amt-mpp: {human: AMT MPP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mpp-codes'''} inv-amt-mp: {human: AMT MP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mp-codes'''} inv-amt-ctpp: {human: AMT CTPP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').code in ''http://hl7.org.au/fhir/ValueSet/amt-ctpp-codes'''} choiceOf: medication index: 10 medicationReference: type: Reference short: Medication Reference choiceOf: medication refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication'] index: 21 slicing: slices: medicationReference: match: {} schema: type: Reference short: Medication Reference choiceOf: medication refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication'] index: 21 medication[x]: elements: coding: short: Medication Codes index: 11 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: 12} gtin: match: {system: null, code: null} schema: {short: Medication Package Global Trade Item Number (GTIN), index: 13} amt: match: {system: null, code: null} schema: short: AMT Medicines index: 14 extensions: medicationClass: url: h type: Extension short: Class of Medication Coding index: 16 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: 17 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: 17 elements: extension: index: 15 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: 16 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: 17 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: 17 mimsPackage: match: {system: null, code: null} schema: {short: MIMS Package, index: 18} max: 1 reasonNotTaken: elements: coding: index: 22 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: snomedReasonNotTaken: match: {system: null} schema: {short: Reason Not Taken (SNOMED CT), index: 23} max: 1 reasonCode: elements: coding: index: 24 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: snomedReasonCode: match: {system: null} schema: {short: Reason For Medication (SNOMED CT), index: 25} max: 1 dosage: {type: Dosage, index: 26} package_version: 1.0.2 extensions: longTerm: {url: h, type: Extension, short: Medication Long Term Indicator, index: 1} brandName: {url: h, type: Extension, short: Medication Brand Name, index: 2} genericName: {url: h, type: Extension, short: Medication Generic Drug Name, index: 3} class: profile kind: resource url: http://hl7.org.au/fhir/StructureDefinition/au-medicationstatement base: http://hl7.org/fhir/StructureDefinition/MedicationStatement version: 1.0.0