openIMIS FHIR R4 Implementation Guide
1.0.0 - ci-build

openIMIS FHIR R4 Implementation Guide - Local Development build (v1.0.0). See the Directory of published versions

Extension: Unit Price (Medication|ActivityDefinition)

Official URL: https://openimis.github.io/openimis_fhir_r4_ig/StructureDefinition/unit-price Version: 1.0.0
Active as of 2022-05-31 Responsible: openIMIS Initiative Computable Name: UnitPriceExtension

The unit price for a Medication or ActivityDefinition.

Context of Use

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

  • OpenIMISMedication
  • OpenIMISActivityDefinition
  • OpenIMISInvoice

Usage info

Usage:

Formal Views of Extension Content

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

This structure is derived from Extension

Summary

Mandatory: 0 element (1 nested mandatory element)
Fixed Value: 1 element
Prohibited: 1 element

Slices

This structure defines the following Slices:

  • The element Extension.value[x] is sliced based on the value of type:$this

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionUnit Price (Medication|ActivityDefinition)
... extension 0..0
... url 1..1uri"https://openimis.github.io/openimis_fhir_r4_ig/StructureDefinition/unit-price"
... value[x] 0..1MoneyValue of extension
Slice: Unordered, Open by type:$this
.... value 1..1decimalNumerical value (with implicit precision)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionUnit Price (Medication|ActivityDefinition)
... id 0..1stringUnique id for inter-element referencing
... extension 0..0
... url 1..1uri"https://openimis.github.io/openimis_fhir_r4_ig/StructureDefinition/unit-price"
.... value[x]:valueMoney 0..1MoneyValue of extension
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... value Σ1..1decimalNumerical value (with implicit precision)
..... currency Σ0..1codeISO 4217 Currency Code
Binding: Currencies (required): A code indicating the currency, taken from ISO 4217.


doco Documentation for this format

This structure is derived from Extension

Summary

Mandatory: 0 element (1 nested mandatory element)
Fixed Value: 1 element
Prohibited: 1 element

Slices

This structure defines the following Slices:

  • The element Extension.value[x] is sliced based on the value of type:$this

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionUnit Price (Medication|ActivityDefinition)
... extension 0..0
... url 1..1uri"https://openimis.github.io/openimis_fhir_r4_ig/StructureDefinition/unit-price"
... value[x] 0..1MoneyValue of extension
Slice: Unordered, Open by type:$this
.... value 1..1decimalNumerical value (with implicit precision)

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 0..*ExtensionUnit Price (Medication|ActivityDefinition)
... id 0..1stringUnique id for inter-element referencing
... extension 0..0
... url 1..1uri"https://openimis.github.io/openimis_fhir_r4_ig/StructureDefinition/unit-price"
.... value[x]:valueMoney 0..1MoneyValue of extension
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... value Σ1..1decimalNumerical value (with implicit precision)
..... currency Σ0..1codeISO 4217 Currency Code
Binding: Currencies (required): A code indicating the currency, taken from ISO 4217.


doco Documentation for this format

 

Other representations of profile: CSV, Excel, Schematron

Terminology Bindings

PathConformanceValueSet
Extension.value[x]:valueMoney.currencyrequiredCurrencies

Constraints

IdGradePathDetailsRequirements
ele-1errorExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.value[x]:valueMoneyAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.value[x]:valueMoney.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.value[x]:valueMoney.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.value[x]:valueMoney.valueAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.value[x]:valueMoney.currencyAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())