2.7.0 - STU 3 (2nd ballot)

This page is part of the Structured Data Capture FHIR IG (v2.7.0: STU 3 Ballot 2) based on FHIR R4. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions

StructureDefinition: SDCUsageContext

The official URL for this profile is:

http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-usagecontext

Formal Views of Profile Content

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

This structure is derived from UsageContext

Summary

Must-Support: 8 elements

This structure is derived from UsageContext

NameFlagsCard.TypeDescription & Constraintsdoco
.. UsageContext SI0..*sdc-uc-1: If code is gender, focus, user, venue or species, value must be CodeableConcept. If code is age, value must be Range. If code is workflow, task or program, value must be CodeableConcept or Reference
... code S1..1Coding
... value[x] S1..1CodeableConcept, Quantity, Range, Reference(PlanDefinition | ResearchStudy | InsurancePlan | HealthcareService | Group | Location | Organization)
... valueCoding S1..1Coding
.... system S0..1uri
.... code S0..1code
... valueRange S1..1Range
.... low S0..1SimpleQuantity
.... high S0..1SimpleQuantity

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. UsageContext SI0..*Describes the context of use for a conformance or knowledge resource
sdc-uc-1: If code is gender, focus, user, venue or species, value must be CodeableConcept. If code is age, value must be Range. If code is workflow, task or program, value must be CodeableConcept or Reference
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... code SΣ1..1CodingType of context being specified
Binding: UsageContextType (extensible)
... value[x] SΣ1..1CodeableConcept, Quantity, Range, Reference(PlanDefinition | ResearchStudy | InsurancePlan | HealthcareService | Group | Location | Organization)Value that defines the context
Binding: Context of Use ValueSet (example)
... value[x] SΣ1..1CodingValue that defines the context
Binding: Context of Use ValueSet (example)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... system SΣ0..1uriIdentity of the terminology system
.... version Σ0..1stringVersion of the system - if relevant
.... code SΣ0..1codeSymbol in syntax defined by the system
.... display Σ0..1stringRepresentation defined by the system
.... userSelected Σ0..1booleanIf this coding was chosen directly by the user
... value[x] SΣ1..1RangeValue that defines the context
Binding: Context of Use ValueSet (example)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... low SΣ0..1SimpleQuantityLow limit
.... high SΣ0..1SimpleQuantityHigh limit

doco Documentation for this format

This structure is derived from UsageContext

Summary

Must-Support: 8 elements

Differential View

This structure is derived from UsageContext

NameFlagsCard.TypeDescription & Constraintsdoco
.. UsageContext SI0..*sdc-uc-1: If code is gender, focus, user, venue or species, value must be CodeableConcept. If code is age, value must be Range. If code is workflow, task or program, value must be CodeableConcept or Reference
... code S1..1Coding
... value[x] S1..1CodeableConcept, Quantity, Range, Reference(PlanDefinition | ResearchStudy | InsurancePlan | HealthcareService | Group | Location | Organization)
... valueCoding S1..1Coding
.... system S0..1uri
.... code S0..1code
... valueRange S1..1Range
.... low S0..1SimpleQuantity
.... high S0..1SimpleQuantity

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. UsageContext SI0..*Describes the context of use for a conformance or knowledge resource
sdc-uc-1: If code is gender, focus, user, venue or species, value must be CodeableConcept. If code is age, value must be Range. If code is workflow, task or program, value must be CodeableConcept or Reference
... id 0..1stringUnique id for inter-element referencing
... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
... code SΣ1..1CodingType of context being specified
Binding: UsageContextType (extensible)
... value[x] SΣ1..1CodeableConcept, Quantity, Range, Reference(PlanDefinition | ResearchStudy | InsurancePlan | HealthcareService | Group | Location | Organization)Value that defines the context
Binding: Context of Use ValueSet (example)
... value[x] SΣ1..1CodingValue that defines the context
Binding: Context of Use ValueSet (example)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... system SΣ0..1uriIdentity of the terminology system
.... version Σ0..1stringVersion of the system - if relevant
.... code SΣ0..1codeSymbol in syntax defined by the system
.... display Σ0..1stringRepresentation defined by the system
.... userSelected Σ0..1booleanIf this coding was chosen directly by the user
... value[x] SΣ1..1RangeValue that defines the context
Binding: Context of Use ValueSet (example)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
.... low SΣ0..1SimpleQuantityLow limit
.... high SΣ0..1SimpleQuantityHigh limit

doco Documentation for this format

 

Other representations of profile: Schematron

Terminology Bindings

PathConformanceValueSet
UsageContext.codeextensibleUsageContextType
UsageContext.value[x]exampleContext of Use ValueSet
UsageContext.value[x]exampleContext of Use ValueSet
UsageContext.value[x]exampleContext of Use ValueSet

Constraints

IdPathDetailsRequirements
ele-1UsageContextAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
sdc-uc-1UsageContextIf code is gender, focus, user, venue or species, value must be CodeableConcept. If code is age, value must be Range. If code is workflow, task or program, value must be CodeableConcept or Reference
: code.system!='http://terminology.hl7.org/CodeSystem/usage-context-type' or (((code.code='gender' or code.code='focus' or code.code='user' or code.code='venue' or code.code='species') implies value.exists() and value is CodeableConcept) and (code.code='age' implies value.exists() and value is Range) ((code.code='workflow' or code.code='task' or code.code='program') implies (value.exists() and (value is CodeableConcept or value is Reference))))