Medication IG DE
1.1.0 - STU1

Medication IG DE - Local Development build (v1.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Extension: Dosage asNeededFor

Official URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-Dosage.asNeededFor | Version: 1.1.0
Active as of 2026-07-06 | Computable Name: DosageAsNeededFor

Indicates whether the medication is only taken based on a precondition for taking the medication.

Context of Use

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

- Element ID: `Dosage`

Usage info

Usages:

- Use this Extension: Dosage DE
- Examples for this Extension: MedicationDispense/INV-C-AsNeededForRequiresAsNeeded-Dispense-02-of-03, MedicationDispense/INV-C-MaxDosePerPeriodOnly24hOr1d-Dispense-02-of-03, MedicationDispense/INV-C-dos-1-Dispense-02-of-03, MedicationRequest/Example-MR-Dosage-Bedarfsmedikation-Kopfschmerzen... Show 7 more, MedicationRequest/Example-MR-Dosage-Bedarfsmedikation-Struktur-Intervall, MedicationRequest/INV-C-AsNeededForRequiresAsNeeded-Request-01-of-03, MedicationRequest/INV-C-MaxDosePerPeriodOnly24hOr1d-Request-01-of-03, MedicationRequest/INV-C-dos-1-Request-01-of-03, MedicationStatement/INV-C-AsNeededForRequiresAsNeeded-Statement-03-of-03, MedicationStatement/INV-C-MaxDosePerPeriodOnly24hOr1d-Statement-03-of-03 and MedicationStatement/INV-C-dos-1-Statement-03-of-03

You can also check for usages in the FHIR IG Statistics

### Formal Views of Extension Content

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

- Differential Table
- Snapshot Table
- Statistics/References
- All

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Dosage asNeededFor
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-Dosage.asNeededFor"
value[x] |  | 0..1 | CodeableConcept | Value of extension Binding: SNOMEDCTMedicationAsNeededReasonCodes (example)
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Dosage asNeededFor
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-Dosage.asNeededFor"
value[x] |  | 0..1 | CodeableConcept | Value of extension Binding: SNOMEDCTMedicationAsNeededReasonCodes (example)
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type CodeableConcept: Indicates whether the medication is only taken based on a precondition for taking the medication.

Differential View

This structure is derived from Extension

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Dosage asNeededFor
extension |  | 0..0 |  | Extension
url |  | 1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-Dosage.asNeededFor"
value[x] |  | 0..1 | CodeableConcept | Value of extension Binding: SNOMEDCTMedicationAsNeededReasonCodes (example)
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Extension |  | 0..* | Extension | Dosage asNeededFor
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..0 |  | Extension Slice: Unordered, Open by value:url
url |  | 1..1 | uri | "http://hl7.org/fhir/5.0/StructureDefinition/extension-Dosage.asNeededFor"
value[x] |  | 0..1 | CodeableConcept | Value of extension Binding: SNOMEDCTMedicationAsNeededReasonCodes (example)
Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type CodeableConcept: Indicates whether the medication is only taken based on a precondition for taking the medication.

Other representations of profile: CSV, Excel, Schematron

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
Extension.value[x] | Base | example | SNOMED CT Medication As Needed Reason Codes | 📦4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
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()`