PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.base@1.0.0
    http://hl7.org.au/fhir/StructureDefinition/au-medication
description: Medication record for Australian context
package_name: 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
        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
  code:
    short: Coding for the medicine
    index: 4
    elements:
      coding:
        index: 5
        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: 20
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 22
                    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: 23
                        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: 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: BPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with strengths and form}
                                index: 23
                                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: 23
            amtMPUU:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal 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: UPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with strengths and form}
                        index: 27
                        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: 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: UPDSF, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with strengths and form}
                                index: 27
                                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: 27
            amtMPP:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product Pack
                index: 12
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 14
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                        index: 15
                        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: 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: UPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded package with no container}
                                index: 15
                                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: 15
            amtCTPP:
              match: {system: null, code: null}
              schema:
                short: AMT Containered Trade Product Pack
                index: 16
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 18
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                        index: 19
                        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: 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: BPGC, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with container}
                                index: 19
                                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: 19
            amtTP:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product
                index: 28
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 30
                    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: 31
                        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: 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: BPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded product with no strengths or form}
                                index: 31
                                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: 31
            gtin:
              match: {system: null, code: null}
              schema: {short: Medication Package Global Trade Item Number (GTIN), index: 7}
            amtTPP:
              match: {system: null, code: null}
              schema:
                short: AMT Trade Product Pack
                index: 8
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 10
                    elements:
                      valueCoding:
                        pattern:
                          type: Coding
                          value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container}
                        index: 11
                        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: 11
                elements:
                  extension:
                    index: 9
                    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: 10
                            elements:
                              valueCoding:
                                pattern:
                                  type: Coding
                                  value: {code: BPG, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Branded package with no container}
                                index: 11
                                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: 11
            pbs:
              match: {system: null, code: null}
              schema: {short: PBS Item Code, index: 6}
            mimsPackage:
              match: {system: null, code: null}
              schema: {short: MIMS Package, index: 36}
              max: 1
            amtMP:
              match: {system: null, code: null}
              schema:
                short: AMT Medicinal Product
                index: 32
                extensions:
                  medicationType:
                    url: h
                    type: Extension
                    short: Type of Medication Coding
                    index: 34
                    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: 35
                        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: 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: UPD, system: 'http://hl7.org.au/fhir/CodeSystem/medication-type', display: Unbranded product with no strengths or form}
                                index: 35
                                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: 35
      text: {short: Medication primary text, index: 37}
  manufacturer: {short: Physical product manufacturer organisation, index: 38}
  form:
    elements:
      coding:
        index: 39
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          max: 1
          slices:
            snomedForm:
              match: {system: null}
              schema: {short: Medication Form (SNOMED CT), index: 40}
              max: 1
  ingredient:
    index: 41
    elements:
      item:
        short: Medication ingredient
        choices: []
        index: 43
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: type}
          min: 1
          max: 1
          slices:
            itemCodeableConcept:
              match: {}
              schema:
                short: Coded Ingredient Product
                choices: [itemCodeableConcept]
                index: 45
      itemCodeableConcept:
        type: CodeableConcept
        short: Coded Ingredient Product
        choiceOf: item
        index: 46
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, short: Coded Ingredient Product, choiceOf: item, index: 46}
      item[x]:
        elements:
          coding:
            index: 47
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                amtMP:
                  match: {system: null}
                  schema: {short: AMT Medicinal Product Ingredient, index: 48}
                  max: 1
      amount: {short: Strength of ingredient, index: 49}
    required: [item]
  package:
    elements:
      content: {index: 50}
      batch:
        index: 51
        extensions:
          MedicationBatchSerialNumber: {url: h, min: 0, max: 1, type: Extension, short: Medication Batch Serial Number, index: 53}
        elements:
          extension:
            index: 52
            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: 53}
                  min: 0
                  max: 1
package_version: 1.0.0
extensions:
  pbsSponsor: {url: h, min: 0, max: 1, type: Extension, short: PBS Sponsor, 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-medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.0.0