PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.au.base@0.9.3
    http://hl7.org.au/fhir/StructureDefinition/au-medication
description: Medication record for Australian context
package_name: rs/hl7.fhir.au.base
derivation: constraint
name: AUBaseMedication
type: Medication
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        pbsSponsor:
          match: {url: null}
          schema: {type: Extension, short: PBS sponsor, url: h, index: 1}
          min: 0
          max: 1
  code:
    short: Coding for the Medicine
    index: 2
    elements:
      coding:
        index: 3
        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: 18
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 20
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: BPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with strengths and form}
                        type: Coding
                        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: BPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with strengths and form}
                                type: Coding
                                index: 21
            amtMPUU:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product Unit of Use
                index: 22
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 24
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: UPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with strengths and form}
                        type: Coding
                        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: UPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with strengths and form}
                                type: Coding
                                index: 25
            amtMPP:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product Pack
                index: 10
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 12
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                        type: Coding
                        index: 13
                elements:
                  extension:
                    index: 11
                    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: 12
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                                type: Coding
                                index: 13
            amtCTPP:
              match: {system: null, code: null}
              schema:
                short: AMT Containered 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: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                        type: Coding
                        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: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                                type: Coding
                                index: 17
            amtTP:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product
                index: 26
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 28
                    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}
                        type: Coding
                        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: BPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with no strengths or form}
                                type: Coding
                                index: 29
            gtin:
              match: {system: null, code: null}
              schema: {short: Medication Package GTIN, index: 5}
            amtTPP:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product Pack
                index: 6
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 8
                    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: 9
                elements:
                  extension:
                    index: 7
                    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: 8
                            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: 9
            pbs:
              match: {system: null, code: null}
              schema: {short: Medication PBS coding (ignore item context), index: 4}
            mimsPackage:
              match: {system: null, code: null}
              schema: {short: MIMS Package, index: 34}
              max: 1
            amtMP:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product
                index: 30
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of medication coding
                    index: 32
                    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}
                        type: Coding
                        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: UPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with no strengths or form}
                                type: Coding
                                index: 33
  manufacturer: {short: Physical Product Manufacturer Organisation, index: 35}
  form:
    elements:
      coding:
        index: 36
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          max: 1
          slices:
            snomedForm:
              match: {system: null}
              schema: {short: Medication Form (SNOMED CT), index: 37}
              max: 1
  ingredient:
    index: 38
    elements:
      item:
        short: Medication ingredient
        choices: []
        index: 40
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: type}
          min: 1
          max: 1
          slices:
            itemCodeableConcept:
              match: {}
              schema:
                short: Coded Ingredient Product
                choices: [itemCodeableConcept]
                index: 42
      itemCodeableConcept:
        type: CodeableConcept
        short: Coded Ingredient Product
        choiceOf: item
        index: 43
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, short: Coded Ingredient Product, choiceOf: item, index: 43}
      item[x]:
        elements:
          coding:
            index: 44
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                amtMP:
                  match: {system: null}
                  schema: {short: AMT Medicinal Product Ingredient, index: 45}
                  max: 1
      amount: {short: Strength of Ingredient, index: 46}
    required: [item]
  package:
    elements:
      content: {index: 47}
      batch:
        index: 48
        extensions:
          MedicationBatchSerialNumber: {url: h, min: 0, max: 1, type: Extension, short: Medication Batch Serial Number, index: 50}
        elements:
          extension:
            index: 49
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: null
              slices:
                MedicationBatchSerialNumber:
                  match: {url: null}
                  schema: {type: Extension, short: Medication Batch Serial Number, url: h, index: 50}
                  min: 0
                  max: 1
package_version: 0.9.3
extensions:
  pbsSponsor: {url: h, min: 0, max: 1, type: Extension, short: PBS sponsor, index: 1}
class: profile
kind: resource
url: http://hl7.org.au/fhir/StructureDefinition/au-medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: '0.1'