This
page
is
part
of
the
FHIR
Specification
(v5.0.0:
R5
-
STU
v6.0.0-ballot4:
Release
6
Ballot
(1st
Full
Ballot)
(see
Ballot
Notes
).
This
is
the
The
current
published
version
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
is
5.0.0
.
For
a
full
list
of
available
versions,
see
the
Directory
of
published
versions
for
published
versions
.
Page
versions:
R5
R4B
R4
R3
Responsible
Owner:
Clinical
Decision
Support
Work
Group
|
|
Security Category : Patient | Compartments : Group , Patient |
A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken.
The GuidanceResponse resource is used to represent the result of invoking a decision support service. It provides a container for the status of the response, any warnings or messages returned by the service, as well as any output data from the service and any suggested actions to be performed.
Use cases for the GuidanceResponse resource include:
In addition, the GuidanceResponse resource is aligned with the CDS Hooks response structure and so provides a mechanism to record the results of CDS Hooks interactions. For a detailed discussion of how the GuidanceResponse resource can be used for this purpose, refer to the Evaluation topic in the Clinical Reasoning module.
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
Filter:
|
|---|---|---|---|---|
|
|
DomainResource |
The
formal
response
to
a
guidance
request
Elements defined in Ancestors: id , meta , implicitRules , language , text , contained , extension , modifierExtension |
|
|
Σ | 0..1 | Identifier |
The
identifier
of
the
request
associated
with
this
response,
if
any
|
|
Σ | 0..* | Identifier |
Business
identifier
for
guidance
response
|
|
Σ | 1..1 |
What
guidance
was
requested
Binding: Guidance Module Code ( Example ) |
|
|
uri | |||
|
canonical () | |||
|
CodeableConcept | |||
|
?! Σ | 1..1 | code |
success
|
data-requested
|
data-required
|
in-progress
|
failure
|
entered-in-error
Binding: Guidance Response Status ( Required ) |
|
Σ | 0..1 | Reference ( Patient | Group ) |
Individual
service
was
|
|
Σ | 0..1 | Reference ( Encounter ) |
Encounter
|
|
Σ | 0..1 | dateTime |
When
the
guidance
response
was
processed
|
|
0..1 | Reference ( Device ) |
Device
returning
the
guidance
|
|
| Σ | 0..1 | Reference ( Location ) |
Where
guidance
response
occurred
|
![]() ![]() |
Σ | 0..* | CodeableReference () |
Why
guidance
is
needed
|
|
0..* | Annotation |
Additional
notes
about
the
response
|
|
|
0..1 | Reference ( OperationOutcome ) |
Messages
resulting
from
the
evaluation
of
the
artifact
or
artifacts
|
|
|
0..1 | Reference ( Parameters ) |
The
output
parameters
of
the
evaluation,
if
any
|
|
|
0..* |
Reference
(
Appointment
|
AppointmentResponse
|
CarePlan
|
Claim
|
CommunicationRequest
|
Contract
|
CoverageEligibilityRequest
|
DeviceRequest
|
EnrollmentRequest
|
|
Proposed
actions,
if
any
|
|
|
0..* | DataRequirement |
Additional
required
data
|
|
Documentation
for
this
format
|
||||
See the Extensions for this resource
UML Diagram ( Legend )
XML Template
<GuidanceResponse xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <requestIdentifier><!-- 0..1 Identifier The identifier of the request associated with this response, if any --></requestIdentifier>
<</identifier><identifier><!-- 0..* Identifier Business identifier for guidance response --></identifier> <module[x]><!-- 1..1 uri|canonical|CodeableConcept What guidance was requested --></module[x]> <status value="[code]"/><!-- 1..1 success | data-requested | data-required | in-progress | failure | entered-in-error --><</subject> <</encounter><subject><!-- 0..1 Reference(Group|Patient) Individual service was done for/to --></subject> <encounter><!-- 0..1 Reference(Encounter) Encounter the guidance response is part of --></encounter> <occurrenceDateTime value="[dateTime]"/><!-- 0..1 When the guidance response was processed --> <performer><!-- 0..1 Reference(Device) Device returning the guidance --></performer> <location><!-- 0..1 Reference(Location) Where guidance response occurred --></location> <reason><!-- 0..* CodeableReference Why guidance is needed --></reason> <note><!-- 0..* Annotation Additional notes about the response --></note> <evaluationMessage><!-- 0..1 Reference(OperationOutcome) Messages resulting from the evaluation of the artifact or artifacts --></evaluationMessage> <outputParameters><!-- 0..1 Reference(Parameters) The output parameters of the evaluation, if any --></outputParameters> <result><!-- 0..* Reference(Appointment|AppointmentResponse|CarePlan|Claim| CommunicationRequest|Contract|CoverageEligibilityRequest|DeviceRequest|| </result>EnrollmentRequest|MedicationRequest|NutritionOrder|RequestOrchestration| ServiceRequest|Task|VisionPrescription) Proposed actions, if any --></result> <dataRequirement><!-- 0..* DataRequirement Additional required data --></dataRequirement> </GuidanceResponse>
JSON Template
{
"resourceType" : "GuidanceResponse",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"requestIdentifier" : { Identifier }, // The identifier of the request associated with this response, if any
"
"identifier" : [{ Identifier }], // Business identifier for guidance response
// module[x]: What guidance was requested. One of these 3:
"moduleUri" : "<uri>",
"moduleCanonical" : "<canonical>",
"moduleCodeableConcept" : { CodeableConcept },
"status" : "<code>", // R! success | data-requested | data-required | in-progress | failure | entered-in-error
"
"
"subject" : { Reference(Group|Patient) }, // Individual service was done for/to
"encounter" : { Reference(Encounter) }, // Encounter the guidance response is part of
"occurrenceDateTime" : "<dateTime>", // When the guidance response was processed
"performer" : { Reference(Device) }, // Device returning the guidance
"location" : { Reference(Location) }, // Where guidance response occurred
"reason" : [{ CodeableReference }], // Why guidance is needed
"note" : [{ Annotation }], // Additional notes about the response
"evaluationMessage" : { Reference(OperationOutcome) }, // Messages resulting from the evaluation of the artifact or artifacts
"outputParameters" : { Reference(Parameters) }, // The output parameters of the evaluation, if any
"result" : [{ Reference(Appointment|AppointmentResponse|CarePlan|Claim|
CommunicationRequest|Contract|CoverageEligibilityRequest|DeviceRequest|
|
EnrollmentRequest|MedicationRequest|NutritionOrder|RequestOrchestration|
ServiceRequest|Task|VisionPrescription) }], // Proposed actions, if any
"dataRequirement" : [{ DataRequirement }] // Additional required data
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:GuidanceResponse; fhir:nodeRole fhir:treeRoot; # if this is the parser root
# from # from# from Resource: fhir:id, fhir:meta, fhir:implicitRules, and fhir:language # from DomainResource: fhir:text, fhir:contained, fhir:extension, and fhir:modifierExtension fhir:requestIdentifier [ Identifier ] ; # 0..1 The identifier of the request associated with this response, if anyfhir:fhir:identifier ( [ Identifier ] ... ) ; # 0..* Business identifier for guidance response # module[x] : 1..1 What guidance was requested. One of these 3fhir: ] fhir: ]fhir:module [ a fhir:Uri ; uri ] fhir:module [ a fhir:Canonical ; canonical ] fhir:module [ a fhir:CodeableConcept ; CodeableConcept ] fhir:status [ code ] ; # 1..1 success | data-requested | data-required | in-progress | failure | entered-in-errorfhir: fhir:fhir:subject [ Reference(Group|Patient) ] ; # 0..1 Individual service was done for/to fhir:encounter [ Reference(Encounter) ] ; # 0..1 Encounter the guidance response is part of fhir:occurrenceDateTime [ dateTime ] ; # 0..1 When the guidance response was processed fhir:performer [ Reference(Device) ] ; # 0..1 Device returning the guidance fhir:location [ Reference(Location) ] ; # 0..1 Where guidance response occurred fhir:reason ( [ CodeableReference ] ... ) ; # 0..* Why guidance is needed fhir:note ( [ Annotation ] ... ) ; # 0..* Additional notes about the response fhir:evaluationMessage [ Reference(OperationOutcome) ] ; # 0..1 Messages resulting from the evaluation of the artifact or artifacts fhir:outputParameters [ Reference(Parameters) ] ; # 0..1 The output parameters of the evaluation, if any fhir:result ( [ Reference(Appointment|AppointmentResponse|CarePlan|Claim|CommunicationRequest|Contract|| |CoverageEligibilityRequest|DeviceRequest|EnrollmentRequest|MedicationRequest| NutritionOrder|RequestOrchestration|ServiceRequest|Task|VisionPrescription) ] ... ) ; # 0..* Proposed actions, if any fhir:dataRequirement ( [ DataRequirement ] ... ) ; # 0..* Additional required data ]
Changes
from
both
R5
to
R6
| GuidanceResponse | |
| GuidanceResponse.location |
|
| GuidanceResponse.result |
|
Changes from R4 and R4B to R6
| GuidanceResponse | |
| GuidanceResponse.location |
|
| GuidanceResponse.reason |
|
| GuidanceResponse.evaluationMessage |
|
| GuidanceResponse.result |
|
| GuidanceResponse.reasonCode |
|
| GuidanceResponse.reasonReference |
|
See the Full Difference for further information
This analysis is available for R4 as XML or JSON and for R4B as XML or JSON .
Structure
| Name | Flags | Card. | Type |
Description
&
Constraints
Filter:
|
|---|---|---|---|---|
|
|
DomainResource |
The
formal
response
to
a
guidance
request
Elements defined in Ancestors: id , meta , implicitRules , language , text , contained , extension , modifierExtension |
|
|
Σ | 0..1 | Identifier |
The
identifier
of
the
request
associated
with
this
response,
if
any
|
|
Σ | 0..* | Identifier |
Business
identifier
for
guidance
response
|
|
Σ | 1..1 |
What
guidance
was
requested
Binding: Guidance Module Code ( Example ) |
|
|
uri | |||
|
canonical () | |||
|
CodeableConcept | |||
|
?! Σ | 1..1 | code |
success
|
data-requested
|
data-required
|
in-progress
|
failure
|
entered-in-error
Binding: Guidance Response Status ( Required ) |
|
Σ | 0..1 | Reference ( Patient | Group ) |
Individual
service
was
|
|
Σ | 0..1 | Reference ( Encounter ) |
Encounter
|
|
Σ | 0..1 | dateTime |
When
the
guidance
response
was
processed
|
|
0..1 | Reference ( Device ) |
Device
returning
the
guidance
|
|
| Σ | 0..1 | Reference ( Location ) |
Where
guidance
response
occurred
|
![]() ![]() |
Σ | 0..* | CodeableReference () |
Why
guidance
is
needed
|
|
0..* | Annotation |
Additional
notes
about
the
response
|
|
|
0..1 | Reference ( OperationOutcome ) |
Messages
resulting
from
the
evaluation
of
the
artifact
or
artifacts
|
|
|
0..1 | Reference ( Parameters ) |
The
output
parameters
of
the
evaluation,
if
any
|
|
|
0..* |
Reference
(
Appointment
|
AppointmentResponse
|
CarePlan
|
Claim
|
CommunicationRequest
|
Contract
|
CoverageEligibilityRequest
|
DeviceRequest
|
EnrollmentRequest
|
|
Proposed
actions,
if
any
|
|
|
0..* | DataRequirement |
Additional
required
data
|
|
Documentation
for
this
format
|
||||
See the Extensions for this resource
XML Template
<GuidanceResponse xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <requestIdentifier><!-- 0..1 Identifier The identifier of the request associated with this response, if any --></requestIdentifier>
<</identifier><identifier><!-- 0..* Identifier Business identifier for guidance response --></identifier> <module[x]><!-- 1..1 uri|canonical|CodeableConcept What guidance was requested --></module[x]> <status value="[code]"/><!-- 1..1 success | data-requested | data-required | in-progress | failure | entered-in-error --><</subject> <</encounter><subject><!-- 0..1 Reference(Group|Patient) Individual service was done for/to --></subject> <encounter><!-- 0..1 Reference(Encounter) Encounter the guidance response is part of --></encounter> <occurrenceDateTime value="[dateTime]"/><!-- 0..1 When the guidance response was processed --> <performer><!-- 0..1 Reference(Device) Device returning the guidance --></performer> <location><!-- 0..1 Reference(Location) Where guidance response occurred --></location> <reason><!-- 0..* CodeableReference Why guidance is needed --></reason> <note><!-- 0..* Annotation Additional notes about the response --></note> <evaluationMessage><!-- 0..1 Reference(OperationOutcome) Messages resulting from the evaluation of the artifact or artifacts --></evaluationMessage> <outputParameters><!-- 0..1 Reference(Parameters) The output parameters of the evaluation, if any --></outputParameters> <result><!-- 0..* Reference(Appointment|AppointmentResponse|CarePlan|Claim| CommunicationRequest|Contract|CoverageEligibilityRequest|DeviceRequest|| </result>EnrollmentRequest|MedicationRequest|NutritionOrder|RequestOrchestration| ServiceRequest|Task|VisionPrescription) Proposed actions, if any --></result> <dataRequirement><!-- 0..* DataRequirement Additional required data --></dataRequirement> </GuidanceResponse>
JSON Template
{
"resourceType" : "GuidanceResponse",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"requestIdentifier" : { Identifier }, // The identifier of the request associated with this response, if any
"
"identifier" : [{ Identifier }], // Business identifier for guidance response
// module[x]: What guidance was requested. One of these 3:
"moduleUri" : "<uri>",
"moduleCanonical" : "<canonical>",
"moduleCodeableConcept" : { CodeableConcept },
"status" : "<code>", // R! success | data-requested | data-required | in-progress | failure | entered-in-error
"
"
"subject" : { Reference(Group|Patient) }, // Individual service was done for/to
"encounter" : { Reference(Encounter) }, // Encounter the guidance response is part of
"occurrenceDateTime" : "<dateTime>", // When the guidance response was processed
"performer" : { Reference(Device) }, // Device returning the guidance
"location" : { Reference(Location) }, // Where guidance response occurred
"reason" : [{ CodeableReference }], // Why guidance is needed
"note" : [{ Annotation }], // Additional notes about the response
"evaluationMessage" : { Reference(OperationOutcome) }, // Messages resulting from the evaluation of the artifact or artifacts
"outputParameters" : { Reference(Parameters) }, // The output parameters of the evaluation, if any
"result" : [{ Reference(Appointment|AppointmentResponse|CarePlan|Claim|
CommunicationRequest|Contract|CoverageEligibilityRequest|DeviceRequest|
|
EnrollmentRequest|MedicationRequest|NutritionOrder|RequestOrchestration|
ServiceRequest|Task|VisionPrescription) }], // Proposed actions, if any
"dataRequirement" : [{ DataRequirement }] // Additional required data
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:GuidanceResponse; fhir:nodeRole fhir:treeRoot; # if this is the parser root
# from # from# from Resource: fhir:id, fhir:meta, fhir:implicitRules, and fhir:language # from DomainResource: fhir:text, fhir:contained, fhir:extension, and fhir:modifierExtension fhir:requestIdentifier [ Identifier ] ; # 0..1 The identifier of the request associated with this response, if anyfhir:fhir:identifier ( [ Identifier ] ... ) ; # 0..* Business identifier for guidance response # module[x] : 1..1 What guidance was requested. One of these 3fhir: ] fhir: ]fhir:module [ a fhir:Uri ; uri ] fhir:module [ a fhir:Canonical ; canonical ] fhir:module [ a fhir:CodeableConcept ; CodeableConcept ] fhir:status [ code ] ; # 1..1 success | data-requested | data-required | in-progress | failure | entered-in-errorfhir: fhir:fhir:subject [ Reference(Group|Patient) ] ; # 0..1 Individual service was done for/to fhir:encounter [ Reference(Encounter) ] ; # 0..1 Encounter the guidance response is part of fhir:occurrenceDateTime [ dateTime ] ; # 0..1 When the guidance response was processed fhir:performer [ Reference(Device) ] ; # 0..1 Device returning the guidance fhir:location [ Reference(Location) ] ; # 0..1 Where guidance response occurred fhir:reason ( [ CodeableReference ] ... ) ; # 0..* Why guidance is needed fhir:note ( [ Annotation ] ... ) ; # 0..* Additional notes about the response fhir:evaluationMessage [ Reference(OperationOutcome) ] ; # 0..1 Messages resulting from the evaluation of the artifact or artifacts fhir:outputParameters [ Reference(Parameters) ] ; # 0..1 The output parameters of the evaluation, if any fhir:result ( [ Reference(Appointment|AppointmentResponse|CarePlan|Claim|CommunicationRequest|Contract|| |CoverageEligibilityRequest|DeviceRequest|EnrollmentRequest|MedicationRequest| NutritionOrder|RequestOrchestration|ServiceRequest|Task|VisionPrescription) ] ... ) ; # 0..* Proposed actions, if any fhir:dataRequirement ( [ DataRequirement ] ... ) ; # 0..* Additional required data ]
Changes
from
both
R5
to
R6
| GuidanceResponse | |
| GuidanceResponse.location |
|
| GuidanceResponse.result |
|
Changes from R4 and R4B to R6
| GuidanceResponse | |
| GuidanceResponse.location |
|
| GuidanceResponse.reason |
|
| GuidanceResponse.evaluationMessage |
|
| GuidanceResponse.result |
|
| GuidanceResponse.reasonCode |
|
| GuidanceResponse.reasonReference |
|
See the Full Difference for further information
This analysis is available for R4 as XML or JSON and for R4B as XML or JSON .
Additional definitions: Master Definition XML + JSON , XML Schema / Schematron + JSON Schema , ShEx (for Turtle ) + see the extensions , the spreadsheet version & the dependency analysis
| Path | ValueSet | Type | Documentation |
|---|---|---|---|
| GuidanceResponse.module[x] | GuidanceModuleCode | Example |
Example guidance module codes. |
| GuidanceResponse.status | GuidanceResponseStatus | Required |
The status of a guidance response. |
Although the GuidanceResponse resource does define search parameters, it is up to the individual decision support service whether or not historical records of guidance requests are preserved. A service might not support searching on GuidanceResponses at all, or it may support searching only for a pre-defined expiration period. The search parameters are defined to provide consumers with a consistent interface to searching if it is available for a specific service implementation. In any case, services should detail the support they do provide using a CapabilityStatement.
Search parameters for this resource. See also the full list of search parameters for this resource , and check the Extensions registry for search parameters on extensions related to this resource. The common parameters also apply. See Searching for more information about searching in REST, messaging, and services.
| Name | Type | Description | Expression | In Common |
| identifier | token | The identifier of the guidance response | GuidanceResponse.identifier |
|
| patient | reference | The identity of a patient to search for guidance response results |
GuidanceResponse.subject.where(resolve()
is
Patient)
( Patient ) |
|
| request | token | The identifier of the request associated with the response | GuidanceResponse.requestIdentifier | |
| status | token | The status of the guidance response | GuidanceResponse.status | |
| subject | reference | The subject that the guidance response is about |
GuidanceResponse.subject
( Group , Patient ) |