Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Extension quantityRemaining - Detailed Descriptions

Pharmacy Work Group Maturity Level: 1InformativeUse Context: Any

Detailed Descriptions for the elements in the extension.

Extension
Element IdExtension
Definition

The quanity left to be dispensed after a dispensing event.

Short DisplayQuanity of medication left to be dispensed after a dispensing event
Cardinality0..1
Invariants
Inherited by this element
ele-1RuleAll FHIR elements must have a @value or childrenhasValue() or (children().count() > id.count())
ext-1RuleMust have either extensions or value[x], not bothextension.exists() != value.exists()
Extension.id
Element IdExtension.id
Definition

Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.

Short DisplayUnique id for inter-element referencing
Cardinality0..1
Typeid
Extension.extension
Element IdExtension.extension
Definition

An Extension

Short DisplayExtension
Cardinality0..0
TypeExtension
Invariants
Inherited by this element
ele-1RuleAll FHIR elements must have a @value or childrenhasValue() or (children().count() > id.count())
ext-1RuleMust have either extensions or value[x], not bothextension.exists() != value.exists()
SlicingThis element introduces a set of slices. The slicing rules are:
  • unordered
  • Open
  • discriminators: value:url
Extension.url
Element IdExtension.url
Definition

Source of the definition for the extension code - a logical name or a URL.

Short Displayidentifies the meaning of the extension
Cardinality1..1
Typeuri
Comments

The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.

Fixed Valuehttp://hl7.org/fhir/StructureDefinition/medicationdispense-quantityRemaining
Extension.value[x]
Element IdExtension.value[x]
Definition

The comparator is not used on a SimpleQuantity

Short DisplayA fixed quantity (no comparator)
Cardinality1..1
TypeQuantity(SimpleQuantity)
[x] NoteSee Choice of Datatypes for further information about how to use [x]
Comments

The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.

Invariants
Inherited by this element
ele-1RuleAll FHIR elements must have a @value or childrenhasValue() or (children().count() > id.count())
sqty-1RuleThe comparator is not used on a SimpleQuantitycomparator.empty()
qty-3RuleIf a code for the unit is present, the system SHALL also be presentcode.empty() or system.exists()