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: UsageContext (Medication)

Official URL: https://openimis.github.io/openimis_fhir_r4_ig/StructureDefinition/medication-usage-context Version: 1.0.0
Active as of 2022-05-31 Responsible: openIMIS Initiative Computable Name: MedicationUsageContextExtension

The Context a Medication can be prescribed.

Context of Use

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

  • OpenIMISMedication

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: 2 elements (6 nested mandatory elements)
Fixed Value: 4 elements
Prohibited: 4 elements

Slices

This structure defines the following Slices:

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

 

Other representations of profile: CSV, Excel, Schematron

Terminology Bindings

PathConformanceValueSet / Code
Extension.extension:Gender.value[x]:valueUsageContext.codeextensiblePattern: gender("Gender")
Extension.extension:Gender.value[x]:valueUsageContext.value[x]exampleContext of Use ValueSet
Extension.extension:Gender.value[x]:valueUsageContext.value[x]:valueCodeableConceptexampleContext of Use ValueSet
Extension.extension:Gender.value[x]:valueUsageContext.value[x]:valueCodeableConcept.codingrequiredUsageContextGenderTypeVS
Extension.extension:Age.value[x]:valueUsageContext.codeextensiblePattern: age("Age")
Extension.extension:Age.value[x]:valueUsageContext.value[x]exampleContext of Use ValueSet
Extension.extension:Age.value[x]:valueUsageContext.value[x]:valueCodeableConceptexampleContext of Use ValueSet
Extension.extension:Age.value[x]:valueUsageContext.value[x]:valueCodeableConcept.codingrequiredUsageContextAgeTypeVS
Extension.extension:CareType.value[x]:valueUsageContext.codeextensiblePattern: venue("Clinical Venue")
Extension.extension:CareType.value[x]:valueUsageContext.value[x]exampleContext of Use ValueSet
Extension.extension:CareType.value[x]:valueUsageContext.value[x]:valueCodeableConceptexampleContext of Use ValueSet
Extension.extension:CareType.value[x]:valueUsageContext.value[x]:valueCodeableConcept.codingrequiredActivityDefinitionUsageContextVenueTypeVS

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.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:GenderAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:GenderMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:Gender.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Gender.value[x]:valueUsageContextAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Gender.value[x]:valueUsageContext.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:Gender.value[x]:valueUsageContext.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:Gender.value[x]:valueUsageContext.codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Gender.value[x]:valueUsageContext.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Gender.value[x]:valueUsageContext.value[x]:valueCodeableConceptAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Gender.value[x]:valueUsageContext.value[x]:valueCodeableConcept.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:Gender.value[x]:valueUsageContext.value[x]:valueCodeableConcept.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:Gender.value[x]:valueUsageContext.value[x]:valueCodeableConcept.codingAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Gender.value[x]:valueUsageContext.value[x]:valueCodeableConcept.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:AgeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:AgeMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:Age.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Age.value[x]:valueUsageContextAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Age.value[x]:valueUsageContext.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:Age.value[x]:valueUsageContext.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:Age.value[x]:valueUsageContext.codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Age.value[x]:valueUsageContext.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Age.value[x]:valueUsageContext.value[x]:valueCodeableConceptAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Age.value[x]:valueUsageContext.value[x]:valueCodeableConcept.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:Age.value[x]:valueUsageContext.value[x]:valueCodeableConcept.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:Age.value[x]:valueUsageContext.value[x]:valueCodeableConcept.codingAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:Age.value[x]:valueUsageContext.value[x]:valueCodeableConcept.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:CareTypeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:CareTypeMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:CareType.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:CareType.value[x]:valueUsageContextAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:CareType.value[x]:valueUsageContext.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:CareType.value[x]:valueUsageContext.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:CareType.value[x]:valueUsageContext.codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:CareType.value[x]:valueUsageContext.value[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:CareType.value[x]:valueUsageContext.value[x]:valueCodeableConceptAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:CareType.value[x]:valueUsageContext.value[x]:valueCodeableConcept.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorExtension.extension:CareType.value[x]:valueUsageContext.value[x]:valueCodeableConcept.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorExtension.extension:CareType.value[x]:valueUsageContext.value[x]:valueCodeableConcept.codingAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorExtension.extension:CareType.value[x]:valueUsageContext.value[x]:valueCodeableConcept.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())