PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.base@1.0.0
    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:
  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}
          max: 1
        genericName:
          match: {url: null}
          schema: {type: Extension, short: Medication Generic Drug Name, url: h, index: 3}
          max: 1
  medication:
    short: Medication Reference
    choices: [medicationReference]
    index: 44
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            short: Medication Reference
            choices: [medicationReference]
            index: 44
  medicationCodeableConcept:
    type: CodeableConcept
    short: Coded Medication
    choiceOf: medication
    index: 10
    slicing:
      slices:
        medicationCoded:
          match: {}
          schema: {type: CodeableConcept, short: Coded Medication, choiceOf: medication, index: 10}
  medicationReference:
    type: Reference
    short: Medication Reference
    choiceOf: medication
    refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication']
    index: 45
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            type: Reference
            short: Medication Reference
            choiceOf: medication
            refers: ['http://hl7.org.au/fhir/StructureDefinition/au-medication']
            index: 45
  medication[x]:
    elements:
      coding:
        short: Medication Codes
        index: 11
        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: 26
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 28
                    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: 29
                        slicing:
                          slices:
                            valueCoding:
                              match: {}
                              schema:
                                pattern:
                                  type: Coding
                                  value: {code: BPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with strengths and form}
                                index: 29
                elements:
                  extension:
                    index: 27
                    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: 28
                            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: 29
                                slicing:
                                  slices:
                                    valueCoding:
                                      match: {}
                                      schema:
                                        pattern:
                                          type: Coding
                                          value: {code: BPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with strengths and form}
                                        index: 29
            amtMPUU:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product Unit of Use
                index: 30
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 32
                    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: 33
                        slicing:
                          slices:
                            valueCoding:
                              match: {}
                              schema:
                                pattern:
                                  type: Coding
                                  value: {code: UPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with strengths and form}
                                index: 33
                elements:
                  extension:
                    index: 31
                    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: 32
                            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: 33
                                slicing:
                                  slices:
                                    valueCoding:
                                      match: {}
                                      schema:
                                        pattern:
                                          type: Coding
                                          value: {code: UPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with strengths and form}
                                        index: 33
            amtMPP:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product Pack
                index: 18
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 20
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                        index: 21
                        slicing:
                          slices:
                            valueCoding:
                              match: {}
                              schema:
                                pattern:
                                  type: Coding
                                  value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                                index: 21
                elements:
                  extension:
                    index: 19
                    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: 20
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                                index: 21
                                slicing:
                                  slices:
                                    valueCoding:
                                      match: {}
                                      schema:
                                        pattern:
                                          type: Coding
                                          value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                                        index: 21
            amtCTPP:
              match: {system: null, code: null}
              schema:
                short: AMT Containered Trade Product Pack
                index: 22
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 24
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                        index: 25
                        slicing:
                          slices:
                            valueCoding:
                              match: {}
                              schema:
                                pattern:
                                  type: Coding
                                  value: {code: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                                index: 25
                elements:
                  extension:
                    index: 23
                    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: 24
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                                index: 25
                                slicing:
                                  slices:
                                    valueCoding:
                                      match: {}
                                      schema:
                                        pattern:
                                          type: Coding
                                          value: {code: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                                        index: 25
            amtTP:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product
                index: 34
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 36
                    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: 37
                        slicing:
                          slices:
                            valueCoding:
                              match: {}
                              schema:
                                pattern:
                                  type: Coding
                                  value: {code: BPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with no strengths or form}
                                index: 37
                elements:
                  extension:
                    index: 35
                    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: 36
                            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: 37
                                slicing:
                                  slices:
                                    valueCoding:
                                      match: {}
                                      schema:
                                        pattern:
                                          type: Coding
                                          value: {code: BPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with no strengths or form}
                                        index: 37
            gtin:
              match: {system: null, code: null}
              schema: {short: Medication Package Global Trade Item Number (GTIN), index: 13}
            amtTPP:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product Pack
                index: 14
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type 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}
                        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}
                                index: 17
                elements:
                  extension:
                    index: 15
                    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: 16
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container}
                                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}
                                        index: 17
            pbs:
              match: {system: null, code: null}
              schema: {short: PBS Item Code, index: 12}
            mimsPackage:
              match: {system: null, code: null}
              schema: {short: MIMS Package, index: 42}
              max: 1
            amtMP:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product
                index: 38
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 40
                    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: 41
                        slicing:
                          slices:
                            valueCoding:
                              match: {}
                              schema:
                                pattern:
                                  type: Coding
                                  value: {code: UPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with no strengths or form}
                                index: 41
                elements:
                  extension:
                    index: 39
                    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: 40
                            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: 41
                                slicing:
                                  slices:
                                    valueCoding:
                                      match: {}
                                      schema:
                                        pattern:
                                          type: Coding
                                          value: {code: UPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with no strengths or form}
                                        index: 41
  reasonNotTaken:
    index: 46
    elements:
      coding:
        index: 47
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            snomedReasonNotTaken:
              match: {system: null}
              schema: {short: Reason Not Taken (SNOMED CT), index: 48}
              max: 1
  reasonCode:
    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
  dosage: {type: Dosage, index: 51}
package_version: 1.0.0
extensions:
  longTerm: {url: h, type: Extension, short: Medication Long Term Indicator, index: 1}
  brandName: {url: h, max: 1, type: Extension, short: Medication Brand Name, index: 2}
  genericName: {url: h, max: 1, 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
required: [medicationCodeableConcept, medication, medicationReference]