PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.base@1.0.1
    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: 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:
        brandName:
          match: {url: null}
          schema: {type: Extension, short: Medication Brand Name, url: 'http://hl7.org.au/fhir/StructureDefinition/medication-brand-name', index: 1}
        genericName:
          match: {url: null}
          schema: {type: Extension, short: Medication Generic Drug Name, url: 'http://hl7.org.au/fhir/StructureDefinition/medication-generic-name', index: 2}
  code:
    short: Coding for the medicine
    constraint:
      inv-amt-tpuu: {human: AMT TPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPDSF'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tpuu-codes'''}
      inv-amt-tpp: {human: AMT TPU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPG'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tpp-codes'''}
      inv-amt-tp: {human: AMT TP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPD'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-tp-codes'''}
      inv-amt-mpuu: {human: AMT MPUU valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPDSF'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mpuu-codes'''}
      inv-amt-mpp: {human: AMT MPP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPG'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mpp-codes'''}
      inv-amt-mp: {human: AMT MP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''UPD'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-mp-codes'''}
      inv-amt-ctpp: {human: AMT CTPP valueset membership required, severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').exists() implies coding.where(system=''http://snomed.info/sct'' and extension(url=''http://hl7.org.au/fhir/CodeSystem/medication-type'').valueCoding=''BPGC'').first().code in ''http://hl7.org.au/fhir/ValueSet/amt-ctpp-codes'''}
    index: 3
    elements:
      coding:
        index: 4
        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
                binding: {strength: required, valueSet: 'http://hl7.org.au/fhir/ValueSet/pbs-item'}
                index: 5
            gtin:
              match: {system: null, code: null}
              schema:
                short: Medication Package Global Trade Item Number (GTIN)
                binding: {strength: required, valueSet: 'http://hl7.org.au/fhir/ValueSet/gtin'}
                index: 6
            amt:
              match: {system: null, code: null}
              schema:
                short: AMT Medicines
                binding: {strength: required, valueSet: 'https://healthterminologies.gov.au/fhir/ValueSet/australian-medication-1'}
                index: 7
                extensions:
                  medicationClass: {url: 'http://hl7.org.au/fhir/StructureDefinition/medication-type', max: 1, type: Extension, index: 9}
                elements:
                  extension:
                    index: 8
                    slicing:
                      rules: open
                      discriminator:
                      - {path: url, type: value}
                      min: null
                      slices:
                        medicationClass:
                          match: {url: null}
                          schema: {type: Extension, url: 'http://hl7.org.au/fhir/StructureDefinition/medication-type', index: 9}
                          max: 1
            mimsPackage:
              match: {system: null, code: null}
              schema:
                short: MIMS Package
                binding: {strength: required, valueSet: 'http://hl7.org.au/fhir/ValueSet/mims'}
                index: 10
              max: 1
      text: {short: Medication primary text, index: 11}
  manufacturer: {short: Physical product manufacturer organisation, index: 12}
  form:
    elements:
      coding:
        index: 13
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          max: 1
          slices:
            snomedForm:
              match: {system: null}
              schema:
                short: Medication Form (SNOMED CT)
                binding: {strength: required, valueSet: 'https://healthterminologies.gov.au/fhir/ValueSet/medication-form-1'}
                index: 14
              max: 1
  ingredient:
    index: 15
    elements:
      item:
        short: Medication ingredient
        choices: []
        index: 17
        slicing:
          rules: closed
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            itemCodeableConcept:
              match: {}
              schema:
                short: Coded Ingredient Product
                choices: [itemCodeableConcept]
                index: 19
      itemCodeableConcept:
        type: CodeableConcept
        short: Coded Ingredient Product
        choiceOf: item
        index: 20
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, short: Coded Ingredient Product, choiceOf: item, index: 20}
      item[x]:
        elements:
          coding:
            index: 21
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                amtMP:
                  match: {system: null}
                  schema:
                    short: AMT Medicinal Product Ingredient
                    binding: {strength: required, valueSet: 'http://hl7.org.au/fhir/ValueSet/amt-mp-codes'}
                    index: 22
                  max: 1
      strength: {short: Quantity/strength of ingredient present, index: 23}
package_version: 1.0.1
extensions:
  brandName: {url: 'http://hl7.org.au/fhir/StructureDefinition/medication-brand-name', type: Extension, short: Medication Brand Name, index: 1}
  genericName: {url: 'http://hl7.org.au/fhir/StructureDefinition/medication-generic-name', type: Extension, short: Medication Generic Drug Name, index: 2}
class: profile
kind: resource
url: http://hl7.org.au/fhir/StructureDefinition/au-medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 2.0.0