This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v4.0.1:
R4
-
Mixed
Normative
and
STU
)
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
The
current
version
which
supercedes
this
version
is
5.0.0
.
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
R2
Responsible
Owner:
Patient
Care
Work
Group
|
|
Security Category : Patient | Compartments : Device , Group , Patient , Practitioner |
Prospective warnings of potential issues when providing care to the patient.
A
flag
is
a
warning
or
notification
of
some
sort
presented
to
the
user
-
who
may
be
a
clinician
or
some
other
person
involve
involved
in
patient
care.
It
usually
represents
something
of
sufficient
significance
to
warrant
a
special
display
of
some
sort
-
rather
than
just
a
note
in
the
resource.
A
flag
has
a
subject
representing
the
resource
that
will
trigger
its
display.
This
subject
can
be
of
different
types,
as
described
in
the
examples
below:
A flag is typically presented as a label in a prominent location in the record to notify the clinician of the potential issues, though it may also appear in other contexts; e.g. notes applicable to a radiology technician, or to a clinician performing a home visit. For patients, the information in the flag will often be derived from the record, and therefore, for a thorough and careful clinician, who has the time to review the notes will be redundant. However, given the volume of information frequently found in patients' records and the potentially serious consequences of losing sight of some facts, this redundancy is deemed appropriate. As well, some flags may reflect information not captured by any other resource in the record. (E.g. "Patient has large dog at home")
In line with its purpose, a flag is concise, highlighting a small set of high-priority issues among the much larger set of data in the chart. Readers who want more detail should consult the chart or other source of information. Caution should be exercised in creating Flag instances. If entries are created for information that could be gleaned in a sufficiently timely fashion by reviewing the patient record, the flag list will itself become overwhelming and will cease to serve its intended purpose.
Flags are expected to persist in a record for some period of time and are, at most, targeted to particular types of practitioners or to practitioners in a particular system.
Examples of Patient related issues that might appear in flags:
Examples of issues that should not appear only in flags:
Note that we include "latex allergy" in the "in scope" list, and "allergy" in the "not in scope" list. The Flag resource is not designed to replace the normal order checking process, and one should not expect to see all allergies in Flags. However, if there is an activity that might occur prior to careful evaluation of the record (e.g. donning of latex gloves) and that activity might pose a risk to the patient, that is the sort of eventuality the Flag is intended to support.
Specific guidelines about what type of information is appropriate to expose using Flag, as well as what categories of individuals should see particular flags, will vary by interoperability community.
Flags may highlight a highly condensed view of information found in the AllergyIntolerance , Condition , Observation , Procedure and possibly other resources. A common extension allows the linkage of a Flag to the supporting detail resource. The purpose of these other resources is to provide detailed clinical information. The purpose of a Flag is to alert practitioners to information that is important to influence their interaction with a Patient prior to detailed review of the record.
Flags
are
not
used
to
convey
information
to
a
specific
individual
or
organization
(e.g.
an
abnormal
lab
result
reported
to
the
ordering
clinician,
reporting
of
an
adverse
reaction
to
a
regulatory
authority).
These
are
handled
using
the
CommunicationRequest
and
the
Communication
resources.
.
Flags
are
not
raised
as
a
result
of
a
reported
or
proposed
action
(e.g.
drug-drug
interactions,
duplicate
therapy
warnings).
These
would
be
are
handled
using
DetectedIssue
.
Flag is not used for alerts or alarm conditions detected and signaled by a patient-connected health/medical device. These are handled using DeviceAlert .
No references for this Resource.
Structure
See the Extensions for this resource
UML Diagram ( Legend )
XML Template
<Flag xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <identifier><!-- 0..* Identifier Business identifier --></identifier>
< <</category><status value="[code]"/><!-- 0..1 active | inactive | entered-in-error --> <category><!-- 0..* CodeableConcept Clinical, administrative, etc --></category> <code><!-- 1..1 CodeableConcept Coded or textual message to display to user --></code><| </subject><subject><!-- 1..1 Reference(Group|Location|Medication|Organization|Patient| PlanDefinition|Practitioner|PractitionerRole|Procedure|RelatedPerson) Who/What is flag about? --></subject> <period><!-- 0..1 Period Time period when flag is active --></period> <encounter><!-- 0..1 Reference(Encounter) Alert relevant during encounter --></encounter> <author><!-- 0..1 Reference(Device|Organization|Patient|Practitioner|</author>PractitionerRole|RelatedPerson) Flag creator --></author> <supportingInfo><!-- 0..* Reference(AllergyIntolerance|Condition|Observation| Procedure|RiskAssessment) Extra information to use in context of the flag --></supportingInfo> </Flag>
JSON Template
{
"resourceType" : "Flag",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"identifier" : [{ Identifier }], // Business identifier
"
"
"status" : "<code>", // active | inactive | entered-in-error
"category" : [{ CodeableConcept }], // Clinical, administrative, etc
"code" : { CodeableConcept }, // R! Coded or textual message to display to user
"|
"subject" : { Reference(Group|Location|Medication|Organization|Patient|
PlanDefinition|Practitioner|PractitionerRole|Procedure|RelatedPerson) }, // R! Who/What is flag about?
"period" : { Period }, // Time period when flag is active
"encounter" : { Reference(Encounter) }, // Alert relevant during encounter
"author" : { Reference(Device|Organization|Patient|Practitioner|
PractitionerRole|RelatedPerson) }, // Flag creator
"supportingInfo" : [{ Reference(AllergyIntolerance|Condition|Observation|
Procedure|RiskAssessment) }] // Extra information to use in context of the flag
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:Flag; fhir:nodeRole fhir:treeRoot; # if this is the parser root
# from # from fhir: fhir: fhir: fhir: fhir:| fhir: fhir: fhir:# from Resource: fhir:id, fhir:meta, fhir:implicitRules, and fhir:language # from DomainResource: fhir:text, fhir:contained, fhir:extension, and fhir:modifierExtension fhir:identifier ( [ Identifier ] ... ) ; # 0..* Business identifier fhir:status [ code ] ; # 0..1 active | inactive | entered-in-error fhir:category ( [ CodeableConcept ] ... ) ; # 0..* Clinical, administrative, etc fhir:code [ CodeableConcept ] ; # 1..1 Coded or textual message to display to user fhir:subject [ Reference(Group|Location|Medication|Organization|Patient|PlanDefinition|Practitioner| PractitionerRole|Procedure|RelatedPerson) ] ; # 1..1 Who/What is flag about? fhir:period [ Period ] ; # 0..1 Time period when flag is active fhir:encounter [ Reference(Encounter) ] ; # 0..1 Alert relevant during encounter fhir:author [ Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson) ] ; # 0..1 Flag creator fhir:supportingInfo ( [ Reference(AllergyIntolerance|Condition|Observation|Procedure|RiskAssessment) ] ... ) ; # 0..* Extra information to use in context of the flag ]
Changes
since
R3
from
both
R4
and
R4B
| Flag | |
| Flag.status |
|
|
|
|
| Flag.author |
|
| Flag.supportingInfo |
|
See the Full Difference for further information
This
analysis
is
available
for
R4
as
XML
or
JSON
.
See
R3
<-->
R4
Conversion
Maps
(status
=
2
tests
that
all
execute
ok.
All
tests
pass
round-trip
testing
and
all
r3
resources
are
valid.)
for
R4B
as
XML
or
JSON
.
Structure
See the Extensions for this resource
XML Template
<Flag xmlns="http://hl7.org/fhir"><!-- from Resource: id, meta, implicitRules, and language --> <!-- from DomainResource: text, contained, extension, and modifierExtension --> <identifier><!-- 0..* Identifier Business identifier --></identifier>
< <</category><status value="[code]"/><!-- 0..1 active | inactive | entered-in-error --> <category><!-- 0..* CodeableConcept Clinical, administrative, etc --></category> <code><!-- 1..1 CodeableConcept Coded or textual message to display to user --></code><| </subject><subject><!-- 1..1 Reference(Group|Location|Medication|Organization|Patient| PlanDefinition|Practitioner|PractitionerRole|Procedure|RelatedPerson) Who/What is flag about? --></subject> <period><!-- 0..1 Period Time period when flag is active --></period> <encounter><!-- 0..1 Reference(Encounter) Alert relevant during encounter --></encounter> <author><!-- 0..1 Reference(Device|Organization|Patient|Practitioner|</author>PractitionerRole|RelatedPerson) Flag creator --></author> <supportingInfo><!-- 0..* Reference(AllergyIntolerance|Condition|Observation| Procedure|RiskAssessment) Extra information to use in context of the flag --></supportingInfo> </Flag>
JSON Template
{
"resourceType" : "Flag",
// from Resource: id, meta, implicitRules, and language
// from DomainResource: text, contained, extension, and modifierExtension
"identifier" : [{ Identifier }], // Business identifier
"
"
"status" : "<code>", // active | inactive | entered-in-error
"category" : [{ CodeableConcept }], // Clinical, administrative, etc
"code" : { CodeableConcept }, // R! Coded or textual message to display to user
"|
"subject" : { Reference(Group|Location|Medication|Organization|Patient|
PlanDefinition|Practitioner|PractitionerRole|Procedure|RelatedPerson) }, // R! Who/What is flag about?
"period" : { Period }, // Time period when flag is active
"encounter" : { Reference(Encounter) }, // Alert relevant during encounter
"author" : { Reference(Device|Organization|Patient|Practitioner|
PractitionerRole|RelatedPerson) }, // Flag creator
"supportingInfo" : [{ Reference(AllergyIntolerance|Condition|Observation|
Procedure|RiskAssessment) }] // Extra information to use in context of the flag
}
Turtle Template
@prefix fhir: <http://hl7.org/fhir/> .[ a fhir:Flag; fhir:nodeRole fhir:treeRoot; # if this is the parser root
# from # from fhir: fhir: fhir: fhir: fhir:| fhir: fhir: fhir:# from Resource: fhir:id, fhir:meta, fhir:implicitRules, and fhir:language # from DomainResource: fhir:text, fhir:contained, fhir:extension, and fhir:modifierExtension fhir:identifier ( [ Identifier ] ... ) ; # 0..* Business identifier fhir:status [ code ] ; # 0..1 active | inactive | entered-in-error fhir:category ( [ CodeableConcept ] ... ) ; # 0..* Clinical, administrative, etc fhir:code [ CodeableConcept ] ; # 1..1 Coded or textual message to display to user fhir:subject [ Reference(Group|Location|Medication|Organization|Patient|PlanDefinition|Practitioner| PractitionerRole|Procedure|RelatedPerson) ] ; # 1..1 Who/What is flag about? fhir:period [ Period ] ; # 0..1 Time period when flag is active fhir:encounter [ Reference(Encounter) ] ; # 0..1 Alert relevant during encounter fhir:author [ Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson) ] ; # 0..1 Flag creator fhir:supportingInfo ( [ Reference(AllergyIntolerance|Condition|Observation|Procedure|RiskAssessment) ] ... ) ; # 0..* Extra information to use in context of the flag ]
Changes
since
Release
3
from
both
R4
and
R4B
| Flag | |
| Flag.status |
|
|
|
|
| Flag.author |
|
| Flag.supportingInfo |
|
See the Full Difference for further information
This
analysis
is
available
for
R4
as
XML
or
JSON
.
See
R3
<-->
R4
Conversion
Maps
(status
=
2
tests
that
all
execute
ok.
All
tests
pass
round-trip
testing
and
all
r3
resources
are
valid.)
for
R4B
as
XML
or
JSON
.
See
the
Profiles
&
Extensions
and
the
alternate
Additional
definitions:
Master
Definition
XML
+
JSON
,
XML
Schema
/
Schematron
+
JSON
Schema
,
ShEx
(for
Turtle
)
+
see
the
extensions
,
the
spreadsheet
version
&
the
dependency
analysis
| Path |
|
Type |
|
|---|---|---|---|
| Flag.status | FlagStatus | Required |
Indicates
whether
this
flag
is
active
and
needs
to
be
displayed
to
a
user,
or
whether
it
is
no
longer
needed
or
was
entered
in
error.
|
| Flag.category |
|
Example |
Example list of general categories for flagged issues. (Not complete or necessarily appropriate.) |
| Flag.code |
|
Example |
Example list of detail codes for flagged issues. (Not complete or necessarily appropriate.) |
The Flag resource is sometimes used as "patient notes" and MAY be used to warn of issues such as:
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 |
| author | reference | Flag creator |
Flag.author
( Practitioner , Organization , Device , Patient , PractitionerRole , RelatedPerson ) |
|
| category | token | The category of the flag, such as clinical, administrative, etc. | Flag.category | |
| date | date | Time period when flag is active | Flag.period |
|
| encounter | reference | Alert relevant during encounter |
Flag.encounter
( Encounter ) |
|
| identifier | token | Business identifier | Flag.identifier | 58 Resources |
| patient | reference | The identity of a subject to list flags for |
Flag.subject.where(resolve()
is
Patient)
( Patient ) |
|
| status | token | active | inactive | entered-in-error | Flag.status | |
| subject | reference | The identity of a subject to list flags for |
Flag.subject
( Practitioner , Group , Organization , Medication , Patient , PlanDefinition , Procedure , PractitionerRole , RelatedPerson , Location ) |