Using FHIR Clinical Reasoning with CDS Hooks
1.0.0-draft -
Using FHIR Clinical Reasoning with CDS Hooks, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 1.0.0-draft built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cds-hooks-clinical-reasoning/ and changes regularly. See the Directory of published versions
| Official URL: http://hl7.org/fhir/uv/cds-hooks-clinical-reasoning/StructureDefinition/cdshooksguidanceresponse | Version: 1.0.0-draft | |||
| Standards status: Trial-use Active as of 2025-11-04 | Maturity Level: 2 | Computable Name: CDSHooksGuidanceResponse | ||
Defines a GuidanceResponse that represents the response container for a CDS Hooks response
Usages:
You can also check for usages in the FHIR IG Statistics
Description Differentials, Snapshots, and other representations.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
1..1 | GuidanceResponse | The formal response to a guidance request | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
1..1 | uri | Service endpoint URL: http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 1..1 | Identifier | The identifier of the request associated with this response, if any |
![]() ![]() |
Σ | 1..1 | Identifier | Business identifier |
![]() ![]() |
Σ | 1..1 | uri | What guidance was requested Slice: Unordered, Closed by type:$this |
![]() ![]() ![]() |
Σ | 1..1 | uri | What guidance was requested |
![]() ![]() |
?!Σ | 1..1 | code | success | data-requested | data-required | in-progress | failure | entered-in-error Binding: GuidanceResponseStatus (required): The status of a guidance response. |
![]() ![]() |
S | 0..1 | Reference(Patient | Group) | Patient the request was performed for |
![]() ![]() |
S | 0..1 | dateTime | When the guidance response was processed |
![]() ![]() |
S | 0..1 | Reference(Device) | Device returning the guidance |
![]() ![]() |
S | 0..1 | Reference(CarePlan | RequestGroup) | Proposed actions, if any |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| GuidanceResponse.status | Base | required | GuidanceResponseStatus | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | GuidanceResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | GuidanceResponse | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | GuidanceResponse | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | GuidanceResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | GuidanceResponse | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
1..1 | GuidanceResponse | The formal response to a guidance request | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
1..1 | uri | Service endpoint URL: http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint | |
![]() ![]() |
1..1 | Identifier | The identifier of the request associated with this response, if any | |
![]() ![]() |
1..1 | Identifier | Business identifier | |
![]() ![]() |
1..1 | uri | What guidance was requested | |
![]() ![]() |
S | 0..1 | Reference(Patient | Group) | Patient the request was performed for |
![]() ![]() |
S | 0..1 | dateTime | When the guidance response was processed |
![]() ![]() |
S | 0..1 | Reference(Device) | Device returning the guidance |
![]() ![]() |
S | 0..1 | Reference(CarePlan | RequestGroup) | Proposed actions, if any |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
1..1 | GuidanceResponse | The formal response to a guidance request | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
1..1 | uri | Service endpoint URL: http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
Σ | 1..1 | Identifier | The identifier of the request associated with this response, if any | ||||
![]() ![]() |
Σ | 1..1 | Identifier | Business identifier | ||||
![]() ![]() |
Σ | 1..1 | uri | What guidance was requested Slice: Unordered, Closed by type:$this | ||||
![]() ![]() ![]() |
Σ | 1..1 | uri | What guidance was requested | ||||
![]() ![]() |
?!Σ | 1..1 | code | success | data-requested | data-required | in-progress | failure | entered-in-error Binding: GuidanceResponseStatus (required): The status of a guidance response. | ||||
![]() ![]() |
S | 0..1 | Reference(Patient | Group) | Patient the request was performed for | ||||
![]() ![]() |
0..1 | Reference(Encounter) | Encounter during which the response was returned | |||||
![]() ![]() |
S | 0..1 | dateTime | When the guidance response was processed | ||||
![]() ![]() |
S | 0..1 | Reference(Device) | Device returning the guidance | ||||
![]() ![]() |
0..* | CodeableConcept | Why guidance is needed | |||||
![]() ![]() |
0..* | Reference(Condition | Observation | DiagnosticReport | DocumentReference) | Why guidance is needed | |||||
![]() ![]() |
0..* | Annotation | Additional notes about the response | |||||
![]() ![]() |
0..* | Reference(OperationOutcome) | Messages resulting from the evaluation of the artifact or artifacts | |||||
![]() ![]() |
0..1 | Reference(Parameters) | The output parameters of the evaluation, if any | |||||
![]() ![]() |
S | 0..1 | Reference(CarePlan | RequestGroup) | Proposed actions, if any | ||||
![]() ![]() |
0..* | DataRequirement | Additional required data | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| GuidanceResponse.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| GuidanceResponse.status | Base | required | GuidanceResponseStatus | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | GuidanceResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | GuidanceResponse | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | GuidanceResponse | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | GuidanceResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | GuidanceResponse | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Summary
Mandatory: 4 elements
Must-Support: 4 elements
Extensions
This structure refers to these extensions:
Maturity: 2
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
1..1 | GuidanceResponse | The formal response to a guidance request | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
1..1 | uri | Service endpoint URL: http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint | |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored |
![]() ![]() |
Σ | 1..1 | Identifier | The identifier of the request associated with this response, if any |
![]() ![]() |
Σ | 1..1 | Identifier | Business identifier |
![]() ![]() |
Σ | 1..1 | uri | What guidance was requested Slice: Unordered, Closed by type:$this |
![]() ![]() ![]() |
Σ | 1..1 | uri | What guidance was requested |
![]() ![]() |
?!Σ | 1..1 | code | success | data-requested | data-required | in-progress | failure | entered-in-error Binding: GuidanceResponseStatus (required): The status of a guidance response. |
![]() ![]() |
S | 0..1 | Reference(Patient | Group) | Patient the request was performed for |
![]() ![]() |
S | 0..1 | dateTime | When the guidance response was processed |
![]() ![]() |
S | 0..1 | Reference(Device) | Device returning the guidance |
![]() ![]() |
S | 0..1 | Reference(CarePlan | RequestGroup) | Proposed actions, if any |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| GuidanceResponse.status | Base | required | GuidanceResponseStatus | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | GuidanceResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | GuidanceResponse | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | GuidanceResponse | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | GuidanceResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | GuidanceResponse | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
1..1 | GuidanceResponse | The formal response to a guidance request | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
1..1 | uri | Service endpoint URL: http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint | |
![]() ![]() |
1..1 | Identifier | The identifier of the request associated with this response, if any | |
![]() ![]() |
1..1 | Identifier | Business identifier | |
![]() ![]() |
1..1 | uri | What guidance was requested | |
![]() ![]() |
S | 0..1 | Reference(Patient | Group) | Patient the request was performed for |
![]() ![]() |
S | 0..1 | dateTime | When the guidance response was processed |
![]() ![]() |
S | 0..1 | Reference(Device) | Device returning the guidance |
![]() ![]() |
S | 0..1 | Reference(CarePlan | RequestGroup) | Proposed actions, if any |
Documentation for this format | ||||
Snapshot ViewView
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
1..1 | GuidanceResponse | The formal response to a guidance request | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
1..1 | uri | Service endpoint URL: http://hl7.org/fhir/StructureDefinition/cqf-cdsHooksEndpoint | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored | ||||
![]() ![]() |
Σ | 1..1 | Identifier | The identifier of the request associated with this response, if any | ||||
![]() ![]() |
Σ | 1..1 | Identifier | Business identifier | ||||
![]() ![]() |
Σ | 1..1 | uri | What guidance was requested Slice: Unordered, Closed by type:$this | ||||
![]() ![]() ![]() |
Σ | 1..1 | uri | What guidance was requested | ||||
![]() ![]() |
?!Σ | 1..1 | code | success | data-requested | data-required | in-progress | failure | entered-in-error Binding: GuidanceResponseStatus (required): The status of a guidance response. | ||||
![]() ![]() |
S | 0..1 | Reference(Patient | Group) | Patient the request was performed for | ||||
![]() ![]() |
0..1 | Reference(Encounter) | Encounter during which the response was returned | |||||
![]() ![]() |
S | 0..1 | dateTime | When the guidance response was processed | ||||
![]() ![]() |
S | 0..1 | Reference(Device) | Device returning the guidance | ||||
![]() ![]() |
0..* | CodeableConcept | Why guidance is needed | |||||
![]() ![]() |
0..* | Reference(Condition | Observation | DiagnosticReport | DocumentReference) | Why guidance is needed | |||||
![]() ![]() |
0..* | Annotation | Additional notes about the response | |||||
![]() ![]() |
0..* | Reference(OperationOutcome) | Messages resulting from the evaluation of the artifact or artifacts | |||||
![]() ![]() |
0..1 | Reference(Parameters) | The output parameters of the evaluation, if any | |||||
![]() ![]() |
S | 0..1 | Reference(CarePlan | RequestGroup) | Proposed actions, if any | ||||
![]() ![]() |
0..* | DataRequirement | Additional required data | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| GuidanceResponse.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| GuidanceResponse.status | Base | required | GuidanceResponseStatus | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | GuidanceResponse | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | GuidanceResponse | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | GuidanceResponse | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | GuidanceResponse | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | GuidanceResponse | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Summary
Mandatory: 4 elements
Must-Support: 4 elements
Extensions
This structure refers to these extensions:
Maturity: 2
Other representations of profile: CSV, Excel, Schematron