PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.base@1.0.1
    http://hl7.org.au/fhir/StructureDefinition/au-medicationstatement
description: This profile defines a medication statement structure including core localisation concepts for use in an Australian context.
package_name: 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: 'http://hl7.org.au/fhir/StructureDefinition/medication-long-term', index: 1}
        brandName:
          match: {url: null}
          schema: {type: Extension, short: Medication Brand Name, url: 'http://hl7.org.au/fhir/StructureDefinition/medication-brand-name', index: 2}
        genericName:
          match: {url: null}
          schema: {type: Extension, short: Medication Generic Drug Name, url: 'http://hl7.org.au/fhir/StructureDefinition/medication-generic-name', index: 3}
  medication:
    short: Medication Detail
    choices: [medicationCodeableConcept, medicationReference]
    index: 5
  medicationCodeableConcept:
    type: CodeableConcept
    short: Coded Medication
    constraint:
      inv-amt-tpuu: {human: AMT TPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tp-codes'''}
      inv-amt-mpuu: {human: AMT MPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-ctpp-codes'''}
    index: 8
    slicing:
      slices:
        medicationCodeableConcept:
          match: {}
          schema:
            type: CodeableConcept
            short: Coded Medication
            constraint:
              inv-amt-tpuu: {human: AMT TPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tp-codes'''}
              inv-amt-mpuu: {human: AMT MPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(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 extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-ctpp-codes'''}
            index: 8
            elements:
              coding:
                short: Medication Codes
                index: 9
                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
                        binding: {strength: required, valueSet: 'http://hl7.org.au/fhir/ValueSet/pbs-item'}
                        index: 10
                    gtin:
                      match: {system: null, code: null}
                      schema:
                        short: Medication Package Global Trade Item Number (GTIN)
                        binding: {strength: required, valueSet: 'http://hl7.org.au/fhir/ValueSet/gtin'}
                        index: 11
                    amt:
                      match: {system: null, code: null}
                      schema:
                        short: AMT Medicines
                        binding: {strength: required, valueSet: 'https://healthterminologies.gov.au/fhir/ValueSet/australian-medication-1'}
                        index: 12
                        extensions:
                          medicationClass:
                            url: http://hl7.org.au/fhir/StructureDefinition/medication-type
                            type: Extension
                            short: Class of Medication Coding
                            index: 14
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container}
                                index: 15
                                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}
                                        index: 15
                        elements:
                          extension:
                            index: 13
                            slicing:
                              rules: open
                              discriminator:
                              - {path: url, type: value}
                              min: null
                              slices:
                                medicationClass:
                                  match: {url: null}
                                  schema:
                                    type: Extension
                                    short: Class of Medication Coding
                                    url: http://hl7.org.au/fhir/StructureDefinition/medication-type
                                    index: 14
                                    elements:
                                      valueCoding:
                                        pattern:
                                          type: Coding
                                          value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container}
                                        index: 15
                                        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}
                                                index: 15
                    mimsPackage:
                      match: {system: null, code: null}
                      schema:
                        short: MIMS Package
                        binding: {strength: required, valueSet: 'http://hl7.org.au/fhir/ValueSet/mims'}
                        index: 16
                      max: 1
  medicationReference:
    type: Reference
    short: Medication Reference
    refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication']
    index: 17
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            short: Medication Reference
            refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication']
            index: 17
  reasonCode:
    elements:
      coding:
        index: 18
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            snomedReasonCode:
              match: {system: null}
              schema:
                short: Reason For Taking/Not Taking Medication (SNOMED CT)
                binding: {strength: required, valueSet: 'https://healthterminologies.gov.au/fhir/ValueSet/medication-reason-taken-1'}
                index: 19
              max: 1
  dosage: {type: Dosage, index: 20}
package_version: 1.0.1
extensions:
  longTerm: {url: 'http://hl7.org.au/fhir/StructureDefinition/medication-long-term', type: Extension, short: Medication Long Term Indicator, index: 1}
  brandName: {url: 'http://hl7.org.au/fhir/StructureDefinition/medication-brand-name', type: Extension, short: Medication Brand Name, index: 2}
  genericName: {url: 'http://hl7.org.au/fhir/StructureDefinition/medication-generic-name', 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: 2.0.0