ERA FHIR specification
1.0.0 - draft
ERA FHIR specification - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountFormula | Version: 1.0.0 | |||
| Draft as of 2026-10-28 | Computable Name: AmountFormula | |||
The dispensed amount of the drug as a calculation formula Source
The amountformula extension is used in the quantity element of MedicationDispense resource
Context of Use
This extension may be used on the following element(s)
MedicationDispense.quantity
Usage info
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from Extension
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | Extension | The amount of drug as a formula | |
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
1..1 | Extension | The amount of drug as a calculation formula, amount | |
![]() ![]() ![]() ![]() |
1..1 | uri | "value" | |
![]() ![]() ![]() ![]() |
1..1 | string | The amount of drug as a calculation formula, amount | |
![]() ![]() ![]() |
1..1 | Extension | The amount of drug as a calculation formula, unit | |
![]() ![]() ![]() ![]() |
1..1 | uri | "unit" | |
![]() ![]() ![]() ![]() |
1..1 | string | The amount of drug as a calculation formula, unit | |
![]() ![]() |
1..1 | uri | "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountFormula" | |
![]() ![]() |
0..0 | Value of extension | ||
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | Extension | The amount of drug as a formula | |
![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
1..1 | Extension | The amount of drug as a calculation formula, amount | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | uri | "value" | |
![]() ![]() ![]() ![]() |
1..1 | string | The amount of drug as a calculation formula, amount | |
![]() ![]() ![]() |
1..1 | Extension | The amount of drug as a calculation formula, unit | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | uri | "unit" | |
![]() ![]() ![]() ![]() |
1..1 | string | The amount of drug as a calculation formula, unit | |
![]() ![]() |
1..1 | uri | "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountFormula" | |
Documentation for this format | ||||
This structure is derived from Extension
Summary
Complex Extension: The dispensed amount of the drug as a calculation formula Source
Differential View
This structure is derived from Extension
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | Extension | The amount of drug as a formula | |
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
1..1 | Extension | The amount of drug as a calculation formula, amount | |
![]() ![]() ![]() ![]() |
1..1 | uri | "value" | |
![]() ![]() ![]() ![]() |
1..1 | string | The amount of drug as a calculation formula, amount | |
![]() ![]() ![]() |
1..1 | Extension | The amount of drug as a calculation formula, unit | |
![]() ![]() ![]() ![]() |
1..1 | uri | "unit" | |
![]() ![]() ![]() ![]() |
1..1 | string | The amount of drug as a calculation formula, unit | |
![]() ![]() |
1..1 | uri | "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountFormula" | |
![]() ![]() |
0..0 | Value of extension | ||
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | Extension | The amount of drug as a formula | |
![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() |
2..* | Extension | Extension Slice: Unordered, Open by value:url Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them | |
![]() ![]() ![]() |
1..1 | Extension | The amount of drug as a calculation formula, amount | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | uri | "value" | |
![]() ![]() ![]() ![]() |
1..1 | string | The amount of drug as a calculation formula, amount | |
![]() ![]() ![]() |
1..1 | Extension | The amount of drug as a calculation formula, unit | |
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() |
1..1 | uri | "unit" | |
![]() ![]() ![]() ![]() |
1..1 | string | The amount of drug as a calculation formula, unit | |
![]() ![]() |
1..1 | uri | "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountFormula" | |
Documentation for this format | ||||
This structure is derived from Extension
Summary
Complex Extension: The dispensed amount of the drug as a calculation formula Source
Other representations of profile: CSV, Excel, Schematron
| 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()
|