PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.au.base@1.0.2
    http://hl7.org.au/fhir/StructureDefinition/au-medication
description: This profile defines a medication structure including core localisation concepts for use in an 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}
          max: 1
        brandName:
          match: {url: null}
          schema: {type: Extension, short: Medication Brand Name, url: h, index: 2}
        genericName:
          match: {url: null}
          schema: {type: Extension, short: Medication Generic Drug Name, url: h, index: 3}
  code:
    short: Coding for the medicine
    constraint:
      inv-amt-tpuu: {human: AMT TPUU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tpuu-codes'''}
      inv-amt-tpp: {human: AMT TPU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tpp-codes'''}
      inv-amt-tp: {human: AMT TP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').code in ''http://hl7.org.au/fhir/ValueSet/amt-tp-codes'''}
      inv-amp-mpuu: {human: AMT MPUU valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mpuu-codes'''}
      inv-amt-mpp: {human: AMT MPP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mpp-codes'''}
      inv-amt-mp: {human: AMT MP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').code in ''http://hl7.org.au/fhir/ValueSet/amt-mp-codes'''}
      inv-amt-ctpp: {human: AMT CTPP valueset membership required, severity: error, expression: 'coding.exists(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'') implies coding.where(system=''http://snomed.info/sct'' and extension.where(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').code in ''http://hl7.org.au/fhir/ValueSet/amt-ctpp-codes'''}
    index: 4
    elements:
      coding:
        index: 5
        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, index: 6}
            gtin:
              match: {system: null, code: null}
              schema: {short: Medication Package Global Trade Item Number (GTIN), index: 7}
            amt:
              match: {system: null, code: null}
              schema:
                short: AMT Medicines
                index: 8
                extensions:
                  medicationClass: {url: h, max: 1, type: Extension, index: 10}
                elements:
                  extension:
                    index: 9
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationClass:
                          match: {url: null}
                          schema: {type: Extension, url: h, index: 10}
                          max: 1
            mimsPackage:
              match: {system: null, code: null}
              schema: {short: MIMS Package, index: 11}
              max: 1
      text: {short: Medication primary text, index: 12}
  manufacturer: {short: Physical product manufacturer organisation, index: 13}
  form:
    elements:
      coding:
        index: 14
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          max: 1
          slices:
            snomedForm:
              match: {system: null}
              schema: {short: Medication Form (SNOMED CT), index: 15}
              max: 1
  ingredient:
    index: 16
    elements:
      item:
        short: Medication ingredient
        choices: []
        index: 18
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            itemCodeableConcept:
              match: {}
              schema:
                short: Coded Ingredient Product
                choices: [itemCodeableConcept]
                index: 20
      itemCodeableConcept:
        type: CodeableConcept
        short: Coded Ingredient Product
        choiceOf: item
        index: 21
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, short: Coded Ingredient Product, choiceOf: item, index: 21}
      item[x]:
        elements:
          coding:
            index: 22
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                amtMP:
                  match: {system: null}
                  schema: {short: AMT Medicinal Product Ingredient, index: 23}
                  max: 1
      amount: {short: Strength of ingredient, index: 24}
package_version: 1.0.2
extensions:
  pbsSponsor: {url: h, max: 1, type: Extension, short: PBS Sponsor, index: 1}
  brandName: {url: h, type: Extension, short: Medication Brand Name, index: 2}
  genericName: {url: h, 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