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
The official URL for this profile is:
http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-usagecontext
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from UsageContext
This structure is derived from UsageContext
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
UsageContext | SI | 0..* | 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 | S | 1..1 | Coding | |
value[x] | S | 1..1 | CodeableConcept, Quantity, Range, Reference(PlanDefinition | ResearchStudy | InsurancePlan | HealthcareService | Group | Location | Organization) | |
valueCoding | S | 1..1 | Coding | |
system | S | 0..1 | uri | |
code | S | 0..1 | code | |
valueRange | S | 1..1 | Range | |
low | S | 0..1 | SimpleQuantity | |
high | S | 0..1 | SimpleQuantity | |
Documentation for this format |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
UsageContext | SI | 0..* | 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..1 | string | Unique id for inter-element referencing | |
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
code | SΣ | 1..1 | Coding | Type of context being specified Binding: UsageContextType (extensible) |
value[x] | SΣ | 1..1 | CodeableConcept, 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..1 | Coding | Value that defines the context Binding: Context of Use ValueSet (example) |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
system | SΣ | 0..1 | uri | Identity of the terminology system |
version | Σ | 0..1 | string | Version of the system - if relevant |
code | SΣ | 0..1 | code | Symbol in syntax defined by the system |
display | Σ | 0..1 | string | Representation defined by the system |
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user |
value[x] | SΣ | 1..1 | Range | Value that defines the context Binding: Context of Use ValueSet (example) |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
low | SΣ | 0..1 | SimpleQuantity | Low limit |
high | SΣ | 0..1 | SimpleQuantity | High limit |
Documentation for this format |
This structure is derived from UsageContext
Differential View
This structure is derived from UsageContext
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
UsageContext | SI | 0..* | 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 | S | 1..1 | Coding | |
value[x] | S | 1..1 | CodeableConcept, Quantity, Range, Reference(PlanDefinition | ResearchStudy | InsurancePlan | HealthcareService | Group | Location | Organization) | |
valueCoding | S | 1..1 | Coding | |
system | S | 0..1 | uri | |
code | S | 0..1 | code | |
valueRange | S | 1..1 | Range | |
low | S | 0..1 | SimpleQuantity | |
high | S | 0..1 | SimpleQuantity | |
Documentation for this format |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
UsageContext | SI | 0..* | 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..1 | string | Unique id for inter-element referencing | |
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
code | SΣ | 1..1 | Coding | Type of context being specified Binding: UsageContextType (extensible) |
value[x] | SΣ | 1..1 | CodeableConcept, 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..1 | Coding | Value that defines the context Binding: Context of Use ValueSet (example) |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
system | SΣ | 0..1 | uri | Identity of the terminology system |
version | Σ | 0..1 | string | Version of the system - if relevant |
code | SΣ | 0..1 | code | Symbol in syntax defined by the system |
display | Σ | 0..1 | string | Representation defined by the system |
userSelected | Σ | 0..1 | boolean | If this coding was chosen directly by the user |
value[x] | SΣ | 1..1 | Range | Value that defines the context Binding: Context of Use ValueSet (example) |
id | 0..1 | string | Unique id for inter-element referencing | |
extension | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
low | SΣ | 0..1 | SimpleQuantity | Low limit |
high | SΣ | 0..1 | SimpleQuantity | High limit |
Documentation for this format |
Other representations of profile: Schematron
Path | Conformance | ValueSet |
UsageContext.code | extensible | UsageContextType |
UsageContext.value[x] | example | Context of Use ValueSet |
UsageContext.value[x] | example | Context of Use ValueSet |
UsageContext.value[x] | example | Context of Use ValueSet |
Id | Path | Details | Requirements |
ele-1 | UsageContext | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
sdc-uc-1 | UsageContext | 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.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)))) |