This
is
the
Continuous
Integration
Build
of
FHIR
(will
be
incorrect/inconsistent
at
times).
See
the
Directory
of
published
versions

Responsible
Owner:
Clinical
Decision
Support
Work
Group
| Trial Use | 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:
|
|---|---|---|---|---|
| TU | 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
done
for/to
|
![]() ![]() | Σ | 0..1 | Reference ( Encounter ) |
Encounter
the
guidance
response
is
part
of
|
| Σ | 0..1 | dateTime |
When
the
|
![]() ![]() |
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 | MedicationRequest | NutritionOrder | RequestOrchestration | ServiceRequest | Task | VisionPrescription ) |
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><!-- 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><!-- 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| 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 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 any fhir:identifier ( [ Identifier ] ... ) ; # 0..* Business identifier for guidance response # module[x] : 1..1 What guidance was requested. One of these 3 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-error 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 R4 and R4B
|
|
|
| GuidanceResponse.location |
|
| GuidanceResponse.reason |
|
| GuidanceResponse.evaluationMessage |
|
| GuidanceResponse.result |
|
| GuidanceResponse.reasonCode |
|
| GuidanceResponse.reasonReference |
|
Raw
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:
![]() ![]() |
|---|---|---|---|---|
![]() | TU | 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
done
for/to
|
![]() ![]() | Σ | 0..1 | Reference ( Encounter ) |
Encounter
the
guidance
response
is
part
of
|
![]() ![]() | Σ | 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 | MedicationRequest | NutritionOrder | RequestOrchestration | ServiceRequest | Task | VisionPrescription ) |
Proposed
actions,
if
any
| |
![]() ![]() | 0..* | DataRequirement |
Additional
required
data
| |
Documentation
for
this
format
![]() | ||||
See the Extensions for this resource
Definition
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><!-- 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><!-- 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| 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
}
Usage
note:
every
effort
has
been
made
Turtle
Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:GuidanceResponse; fhir:nodeRole fhir:treeRoot; # if this is the parser root # 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 any fhir:identifier ( [ Identifier ] ... ) ; # 0..* Business identifier for guidance response # module[x] : 1..1 What guidance was requested. One of these 3 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-error 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 R4 and R4B
| GuidanceResponse | |
| GuidanceResponse.location |
|
| GuidanceResponse.reason |
|
| GuidanceResponse.evaluationMessage |
|
| GuidanceResponse.result |
|
| GuidanceResponse.reasonCode |
|
| GuidanceResponse.reasonReference |
|
See
the
examples
are
correct
Full
Difference
for
further
information
This
analysis
is
available
for
R4
as
XML
or
JSON
and
useful,
but
they
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
normative
part
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
specification.
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 | 59 Resources |
| patient | reference | The identity of a patient to search for guidance response results |
GuidanceResponse.subject.where(resolve()
is
Patient)
( Patient ) | 61 Resources |
| 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 ) |