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

Extension: Extension amountOfPackages

Official URL: http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages Version: 1.0.0
Draft as of 2026-10-28 Computable Name: AmountOfPackages

Number of dispensed drug packages. Source

The amountOfPackages extension is used in the MedicationListMedicationDispense profile.

Context of Use

Usage info

Usages:

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.

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension 0..* Extension The number of packages
Extension.url 1..1 uri "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages"
Extension.value[x] 1..1 positiveInt The number of packages

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension 0..* Extension The number of packages
Extension.id 0..1 string Unique id for inter-element referencing
Extension.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Extension.url 1..1 uri "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages"
Extension.value[x] 1..1 positiveInt The number of packages

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type positiveInt: Number of dispensed drug packages. Source

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension 0..* Extension The number of packages
Extension.url 1..1 uri "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages"
Extension.value[x] 1..1 positiveInt The number of packages

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension 0..* Extension The number of packages
Extension.id 0..1 string Unique id for inter-element referencing
Extension.extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
Extension.url 1..1 uri "http://resepti.kanta.fi/fhir/StructureDefinition/extension/amountOfPackages"
Extension.value[x] 1..1 positiveInt The number of packages

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension with the type positiveInt: Number of dispensed drug packages. Source

 

Other representations of profile: CSV, Excel, Schematron

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()