This page is part of the Situational Awareness for Novel Epidemic Response (v0.1.0: STU 1 Ballot 1) based on FHIR R4. The current version which supercedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions
This section describes the PULL-TX of this guide. This transaction is used by the Measure Source and Measure Consumer actors.
The Query Measure transaction allows a Measure Consumer to periodically query about the availability of a resource from an Measure Source.
This transaction enables a MeasureConsumer actor to access Measure, MeasureReport, Location and Organization resources from a MeasureSource actor. It defines the query parameters that the actors must and should support for search, and the read operations that must be supported.
Figure 2.1-1: Query Measure Use Case Diagram
Actor | Role |
---|---|
Measure Source | Reports on selected data in response to a query. |
Measure Consumer | Collects data for reporting |
Standard | Name |
---|---|
FHIR-R4 | HL7 FHIR Release 4.0 |
RFC-7230 | Hypertext Transfer Protocol - HTTP/1.1 |
NDJSON | Newline Delimited JSON |
Figure 2.1-2: Query Measure Interactions
The current reporting period has elapsed.
See the Reporting Period extension
The Measure Consumer sends a query using an HTTP GET or POST transaction to the Measure Source requesting information on available resources.
The following are general requirements of the interaction.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_format=application/fhir+xml|application/fhir+json | 0..1 | SHALL | SHALL |
_format=xml|json|text/xml|application/json|application/xml|application/xml+fhir|application/json+fhir | 0..1 | SHOULD | SHOULD NOT |
Accept:=application/fhir+xml|application/fhir+json | 0..1 | SHALL | SHALL |
Accept:=xml|json|text/xml|application/json|application/xml|application/xml+fhir|application/json+fhir | 0..1 | SHOULD | SHOULD NOT |
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_count | 0..1 | SHALL | SHALL |
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_include=* | 0..1 | SHALL | SHALL |
_include:iterate | SHOULD NOT | SHOULD NOT |
A client must be able to read individual resources that are returned or referenced within resources returned by a query. Since MeasureReport references at the very least, Measure, Organization, and Location these must all be able to be read.
The MeasureSource SHALL demonstrate the FHIR read operation on the Location, MeasureReport, Measure and Organization resources.
Read a given MeasureReport using the CSV Format. See CSV Conversion for details.
The MeasureConsumer MAY demonstrate the FHIR $read-csv operation on the MeasureReport resource with the following parameters. The MeasureSource SHALL demonstrate the FHIR $read-csv operation on the MeasureReport resource with the following parameters.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
map | 0..* | ||
return | 1..1 |
Search Measure Report resources using the CSV Format. See CSV Conversion for details.
The MeasureConsumer SHALL demonstrate the FHIR $search-csv operation on the MeasureReport resource with the following parameters. The MeasureSource SHALL demonstrate the FHIR $search-csv operation on the MeasureReport resource with the following parameters.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_lastUpdated | 0..2 | SHALL | SHALL |
date | 0..2 | SHALL | SHALL |
period | 1..2 | SHALL | SHALL |
measure | 1..* | SHALL | SHALL |
measure.title | 0..* | SHOULD | SHOULD |
subject | 0..* | SHALL | SHALL |
subject:identifier | 0..* | SHALL | SHALL |
subject:Location.near | 0..1 | SHOULD | SHOULD |
reporter | 0..* | SHALL | SHALL |
reporter:identifier | 0..* | SHALL | SHALL |
map | 0..* | ||
return | 1..1 |
The MeasureSource SHALL demonstrate the FHIR search operation on the Location, MeasureReport, Measure and Organization resources with the following parameters.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_id | 1..* | SHALL | SHALL |
The MeasureSource SHALL demonstrate the FHIR search operation on the Location and Organization resources with the following parameters.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
name | 0..* | SHALL | SHALL |
identifier | 0..* | SHALL | SHALL |
A client system must be able to retrieve the data they need, be it about beds, ventilators, PPE, or other measure.
Measures can be identified by codes used in the measure, or by the measure title, its canonical URL, or by something easier for a user to recall, such as the text of the measure or a code within it. Multiple measures may report on the same kind of thing (e.g., beds), so retrieval by code, or by code within a value set should be supported. There may be multiple measures which identify the kind of thing that the client system is interested in learning more about. Search by code should be met by implementing the SearchParameter-code search parameter.
However, search by code is not supported by default by many off-the-shelf systems, and so this is not a strict requirement for implementers. Also, chained searching is also not always readily available, and so search by measure title is also not a hard requirement. At the very least, a server must be able to search by measure, and a client must also to ensure the greatest interoperability between systems with differing capabilities.
The MeasureSource SHALL demonstrate the FHIR search operation on the Measure resource with the following parameters.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_text | 0..* | SHOULD | SHOULD |
_content | 0..* | SHOULD | SHOULD |
definition-text | 0..* | SHOULD | SHOULD |
code | 0..* | SHOULD | SHOULD |
code:in | 0..* | SHOULD | SHOULD |
Questionnaire and QuestionnaireResponse are being considered because some data is being requested via forms that better fit a QuestionnaireResponse approach (e.g., free form answers).
The MeasureSource SHALL demonstrate the FHIR read operation on the Questionnaire and QuestionnaireResponse resources.
A client must be able to read individual resources returned in a query
We are still experimenting with QuestionnaireResponse, but expect to adopt it.
The MeasureSource SHALL demonstrate the FHIR search operation on the Questionnaire and QuestionnaireResponse resources with the following parameters.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_id | 1..* | SHALL | SHALL |
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_text | 0..* | SHOULD | SHOULD |
_content | 0..* | SHOULD | SHOULD |
definition-text | 0..* | SHOULD | SHOULD |
code | 0..* | SHOULD | SHOULD |
code:in | 0..* | SHOULD | SHOULD |
A client must be able to search for responses by Questionnaire for relevant dates, e.g., the date of _lastUpdate of a previously retrieved resource to see if it has changed (e.g., in cases where data needs to be refreshed), the date it was reported, or the period it applies to.
In order to enable queries within a geographic region, search must allow for a client to at least enumerate locations by a well defined identifier (e.g., an NPI, a HIFLD location identifier, or some other readily and publicly available facility identifier.) This enables systems to use publicly available data to identify facilities within a particular region.
Further geographic search can be enabled by chaining to location, and using the near search operation location, which allows search to be performed based on geographic coordinates and a distance measure to specify a search within a region. This enables systems without extensive geographic capabilities to come close in identifying a facility within a particular distance (some implementations e.g., HAPI, use a bounding box, rather than a circle, because it increases search efficiency).
All date searches must allow a range to be specified, but need not allow more than one range. Approximate ranges are not required to be supported because server support for these is not commonly available, nor implemented in readily reproducable fashions (the definition of an approximate date can have different meanings for different servers). Simple eq, le, lt, ge, and gt should be sufficient to specify date ranges.
The MeasureConsumer SHALL demonstrate the FHIR search operation on the QuestionnaireResponse resource with the following parameters. The MeasureSource SHALL demonstrate the FHIR search operation on the QuestionnaireResponse resource with the following parameters.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_lastUpdated | 0..2 | SHALL | SHALL |
authored | 0..2 | SHALL | SHALL |
questionnaire | 1..* | SHALL | SHALL |
questionnaire.title | 0..* | SHOULD | SHOULD |
subject | 0..* | SHALL | SHALL |
subject:identifier | 0..* | SHALL | SHALL |
subject:Location.near | 0..1 | SHOULD | SHOULD |
author | 0..* | SHALL | SHALL |
author:identifier | 0..* | SHALL | SHALL |
The MeasureConsumer SHALL demonstrate the FHIR search operation on the MeasureReport resource with the following parameters. The MeasureSource SHALL demonstrate the FHIR search operation on the MeasureReport resource with the following parameters.
Parameter | Cardinality | Measure Source Expectation | Measure Consumer Expectation |
---|---|---|---|
_lastUpdated | 0..2 | SHALL | SHALL |
date | 0..2 | SHALL | SHALL |
period | 1..2 | SHALL | SHALL |
measure | 1..* | SHALL | SHALL |
measure.title | 0..* | SHOULD | SHOULD |
subject | 0..* | SHALL | SHALL |
subject:identifier | 0..* | SHALL | SHALL |
subject:Location.near | 0..1 | SHOULD | SHOULD |
reporter | 0..* | SHALL | SHALL |
reporter:identifier | 0..* | SHALL | SHALL |
Measure Consumer requests data from a Measure Source.
The Measure Consumer performs a FHIR Search operation to retrieve the selected resources.
The Measure Source returns the requested results results.
The Measure Source responds with requested resources.
The resources will conform to the profiles for the MeasureReport, Location or Organization described elsewhere in this Implementation Guide
The Measure Source returns the requested resource.
See the following CapabilityStatement resources for conformance requirements: