PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.base@0.9.3
    http://hl7.org.au/fhir/StructureDefinition/au-medicationstatement
description: Medication statement for Australian context
package_name: hl7.fhir.au.base
derivation: constraint
name: AUBaseMedicationStatement
type: MedicationStatement
elements:
  dosage: {type: Dosage, index: 51}
  medication[x]:
    elements:
      coding:
        short: Medication Codes
        index: 9
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          - {path: code, type: value}
          min: null
          slices:
            amtTPUU:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product Unit of Use
                index: 24
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 26
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: BPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with strengths and form}
                        index: 27
                elements:
                  extension:
                    index: 25
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationType:
                          match: {url: null}
                          schema:
                            type: Extension
                            short: Type of medication coding
                            url: h
                            index: 26
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: BPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with strengths and form}
                                index: 27
            amtMPUU:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product Unit of Use
                index: 28
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 30
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: UPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with strengths and form}
                        index: 31
                elements:
                  extension:
                    index: 29
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationType:
                          match: {url: null}
                          schema:
                            type: Extension
                            short: Type of medication coding
                            url: h
                            index: 30
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: UPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with strengths and form}
                                index: 31
            amtMPP:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product Pack
                index: 16
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 18
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                        index: 19
                elements:
                  extension:
                    index: 17
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationType:
                          match: {url: null}
                          schema:
                            type: Extension
                            short: Type of medication coding
                            url: h
                            index: 18
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                                index: 19
            amtCTPP:
              match: {system: null, code: null}
              schema:
                short: AMT Containered Trade Product Pack
                index: 20
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 22
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                        index: 23
                elements:
                  extension:
                    index: 21
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationType:
                          match: {url: null}
                          schema:
                            type: Extension
                            short: Type of medication coding
                            url: h
                            index: 22
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                                index: 23
            amtTP:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product
                index: 32
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 34
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: BPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with no strengths or form}
                        index: 35
                elements:
                  extension:
                    index: 33
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationType:
                          match: {url: null}
                          schema:
                            type: Extension
                            short: Type of medication coding
                            url: h
                            index: 34
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: BPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with no strengths or form}
                                index: 35
            gtin:
              match: {system: null, code: null}
              schema: {short: Medication Package GTIN, index: 11}
            amtTPP:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product Pack
                index: 12
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type 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
                elements:
                  extension:
                    index: 13
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationType:
                          match: {url: null}
                          schema:
                            type: Extension
                            short: Type of medication coding
                            url: h
                            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
            pbs:
              match: {system: null, code: null}
              schema: {short: Medication PBS coding (ignore item context), index: 10}
            mimsPackage:
              match: {system: null, code: null}
              schema: {short: MIMS Package, index: 40}
              max: 1
            amtMP:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product
                index: 36
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 38
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: UPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with no strengths or form}
                        index: 39
                elements:
                  extension:
                    index: 37
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationType:
                          match: {url: null}
                          schema:
                            type: Extension
                            short: Type of medication coding
                            url: h
                            index: 38
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: UPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with no strengths or form}
                                index: 39
  reasonCode:
    index: 48
    elements:
      coding:
        index: 49
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            snomedReasonCode:
              match: {system: null}
              schema: {short: Reason For Medication (SNOMED CT), index: 50}
              max: 1
  medicationCodeableConcept:
    type: CodeableConcept
    short: Coded medication
    choiceOf: medication
    index: 8
    slicing:
      slices:
        medicationCoded:
          match: {}
          schema: {type: CodeableConcept, short: Coded medication, choiceOf: medication, index: 8}
  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}
          min: 0
          max: 1
  medicationReference:
    type: Reference
    short: Medication Reference
    choiceOf: medication
    refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication']
    index: 43
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            short: Medication Reference
            choiceOf: medication
            refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication']
            index: 43
  subject:
    type: Reference
    short: Subject of statement
    refers: ['http://hl7.org.au/fhir/StructureDefinition/au-patient', 'http://hl7.org/fhir/StructureDefinition/Group']
    index: 44
  reasonNotTaken:
    index: 45
    elements:
      coding:
        index: 46
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            snomedReasonNotTaken:
              match: {system: null}
              schema: {short: Reason Not Taken (SNOMED CT), index: 47}
              max: 1
  medication:
    short: Medication Reference
    choices: [medicationReference]
    index: 42
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            short: Medication Reference
            choices: [medicationReference]
            index: 42
package_version: 0.9.3
extensions:
  longTerm: {url: h, min: 0, max: 1, type: Extension, short: Medication long term indicator, index: 1}
class: profile
kind: resource
url: http://hl7.org.au/fhir/StructureDefinition/au-medicationstatement
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: null
required: [medicationCodeableConcept, medication, medicationReference]