AU Base Implementation Guide
5.1.0-preview - Preview

Publication Build: This will be filled in by the publication tooling

## Extension: Medication Type

Official URL: http://hl7.org.au/fhir/StructureDefinition/medication-type | Version: 5.1.0-preview
Standards status: Trial-use | Maturity Level: 2 | Computable Name: MedicationType
Copyright/Legal: HL7 Australia© 2018+; Licensed Under Creative Commons No Rights Reserved.

This extension applies to the Coding data type and is used to indicate the type of information covered by the code e.g. branded product with no strength or form. This is useful when there are multiple codings from the same coding system at different levels/classifications.

This extension may be used on the following element(s):

- FHIRPath Medication.code.ofType(CodeableConcept).coding
- FHIRPath Medication.ingredient.item.ofType(CodeableConcept).coding
- FHIRPath MedicationRequest.medication.ofType(CodeableConcept).coding
- FHIRPath MedicationDispense.medication.ofType(CodeableConcept).coding
- FHIRPath MedicationStatement.medication.ofType(CodeableConcept).coding
- FHIRPath MedicationAdministration.medication.ofType(CodeableConcept).coding
- Element ID ValueSet.expansion.contains
- Element ID ValueSet.expansion.contains.contains
- Element ID CodeSystem.concept
- Element ID CodeSystem.concept.concept

### Usage Notes

Usage:

- Use this Extension: AU Base Medication, AU Base Medication Administration, AU Base Medication Dispense, AU Base Medication Request and AU Base Medication Statement
- Examples for this Extension: Bundle/example0, Medication/BrandProductwithBatchDetails0, Medication/BrandedPack0, Medication/BrandedPack1... Show 11 more, Medication/BrandedPackSingleActiveIngredient0, Medication/DoseBased, Medication/FourOrMoreActiveIngredientsProduct0, Medication/GenericPack0, Medication/UnbrandedProduct0, Medication/UnbrandedProduct1, Medication/UnbrandedProduct2, MedicationAdministration/example1, MedicationStatement/example0, MedicationStatement/example1 and MedicationStatement/example2

Changes since version 5.0.0:

- No changes

### Formal Views of Extension Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

- Differential Table
- Snapshot Table
- All

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Medication type
url |  | 1..1 | uri | "http://hl7.org.au/fhir/StructureDefinition/medication-type"
value[x] |  | 1..1 | Coding | Value of extension Binding: Medication Type (required)
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Medication type
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.org.au/fhir/StructureDefinition/medication-type"
value[x] |  | 1..1 | Coding | Value of extension Binding: Medication Type (required)
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension of type Coding: This extension applies to the Coding data type and is used to indicate the type of information covered by the code e.g. branded product with no strength or form. This is useful when there are multiple codings from the same coding system at different levels/classifications.

Maturity: 2

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Medication type
url |  | 1..1 | uri | "http://hl7.org.au/fhir/StructureDefinition/medication-type"
value[x] |  | 1..1 | Coding | Value of extension Binding: Medication Type (required)
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Medication type
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.org.au/fhir/StructureDefinition/medication-type"
value[x] |  | 1..1 | Coding | Value of extension Binding: Medication Type (required)
Documentation for this format

Other representations of profile: CSV, Excel, Schematron

#### Terminology Bindings

Path | Conformance | ValueSet | URI
Extension.value[x] | required | MedicationType (a valid code from Medication Type) `http://terminology.hl7.org.au/ValueSet/medication-type` from this IG

#### Constraints

Id | Grade | Path(s) | Details | Requirements
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |