US-Core CI Build

This page is part of the US Core (v0.0.0: STU1 Ballot 1) based on FHIR v1.8.0. The current version which supercedes this version is 5.0.1. For a full list of available versions, see the Directory of published versions

D.4.1 StructureDefinition-us-core-observationresults

Laboratory results are grouped and summarized using the DiagnosticReport resource which reference Observation resources. Each Observation resource represents an individual laboratory test and result value, a “nested” panel (such as a microbial susceptibility panel) which references other observations, or rarely a laboratory test with component result values. This profile sets minimum expectations for the Observation resource resource to record, search and fetch laboratory test results associated with a patient. It identifies which core elements, extensions, vocabularies and value sets SHALL be present in the resource when using this profile.

Example Usage Scenarios:

The following are example usage scenarios for the US Core-Results profile:

  • Query for lab results belonging to a Patient
  • Record lab results belonging to a Patient
Mandatory Data Elements and Terminology

The following data-elements are mandatory (i.e data MUST be present). These are presented below in a simple human-readable explanation. Profile specific guidance and examples are provided as well. The Formal Profile Definition below provides the formal summary, definitions, and terminology requirements.

Each Observation must have:

  1. a status
  2. a category code of ‘laboratory’
  3. a LOINC code, if available, which tells you what is being measured
  4. a patient
  5. a result value and, if the result value is a numeric quantity, a standard UCUM unit

Each Observation should have:

  1. a time indicating when the measurement was taken
  2. a reference range if available

Profile specific implementation guidance:

  • Additional codes that translate or map to the Observation code or category codes are allowed. For example:
    • providing both a local system codes and a LOINC code that it map to
    • providing a more specific category codes such as “chemistry’, SNOMED CT concepts, or system specific codes in addition to the “laboratory” category code.
  • If there is no result then you have to supply a reason unless Observation is being used to group other results then there is no value. Instead, it includes composite values or references to other Observations
  • See the General Guidance Section for further guidance on using UCUM

Examples

  • [observation-usg]Observation-usg.html)
  • [observation-urobilinogen]Observation-urobilinogen.html)
  • [observation-urine-wbcs]Observation-urine-wbcs.html)
  • [observation-urine-sediment]Observation-urine-sediment.html)
  • [observation-urine-rbcs]Observation-urine-rbcs.html)
  • [observation-urine-protein]Observation-urine-protein.html)
  • [observation-urine-ph]Observation-urine-ph.html)
  • [observation-urine-nitrite]Observation-urine-nitrite.html)
  • [observation-urine-leukocyte-esterase]Observation-urine-leukocyte-esterase.html)
  • [observation-urine-ketone]Observation-urine-ketone.html)
  • [observation-urine-hemoglobin]Observation-urine-hemoglobin.html)
  • [observation-urine-glucose]Observation-urine-glucose.html)
  • [observation-urine-epi-cells]Observation-urine-epi-cells.html)
  • [observation-urine-color]Observation-urine-color.html)
  • [observation-urine-clarity]Observation-urine-clarity.html)
  • [observation-urine-cells]Observation-urine-cells.html)
  • [observation-urine-bilirubin]Observation-urine-bilirubin.html)
  • [observation-urine-bacteria]Observation-urine-bacteria.html)
  • [observation-serum-total-bilirubin]Observation-serum-total-bilirubin.html)
  • [observation-serum-sodium]Observation-serum-sodium.html)
  • [observation-serum-potassium]Observation-serum-potassium.html)
  • [observation-serum-creatinine]Observation-serum-creatinine.html)
  • [observation-serum-co2]Observation-serum-co2.html)
  • [observation-serum-chloride]Observation-serum-chloride.html)
  • [observation-serum-calcium]Observation-serum-calcium.html)
  • [observation-oxygen-saturation]Observation-oxygen-saturation.html)
  • [observation-neutrophils]Observation-neutrophils.html)
  • [observation-mchc]Observation-mchc.html)
  • [observation-hemoglobin]Observation-hemoglobin.html)
  • [observation-erythrocytes]Observation-erythrocytes.html)
  • [observation-BUN]Observation-BUN.html)
  • [observation-blood-pressure]Observation-blood-pressure.html)
  • [observation-blood-glucose]Observation-blood-glucose.html)

D.4.1.1 Formal Views of Profile Content

The official URL for this profile is:

http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults

This profile builds on Observation.

This profile was published on Mon Aug 01 00:00:00 AEST 2016 as a draft by Health Level Seven International (FHIR-Infrastructure).

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

Complete Summary of the Mandatory Requirements

  1. One status in Observation.status which has an required binding to ObservationStatus
  2. One category in Observation.category which must have:
  3. One code in Observation.code which has an extensible binding to LOINC Observation Codes
    • Other additional codes are allowed - e.g. system specific codes. All codes SHALL have a code system value
  4. One patient in Observation.subject
  5. Either one Observation.value[x] or one code in Observation.DataAbsentReason (unless the Observation.code is a panel code)
    • For Observation.valueQuantity must have:
      • One numeric value in Observation.valueQuantity.value
      • a fixed Observation.valueQuantity.system=“http://unitsofmeasure.org
      • a UCUM units code in Observation.valueQuantity.code which has an required binding to UCUM units
    • For Observation.valueCodeableConcept must have either:
      1. a code in Observation.valueCodeableConcept.coding.code and code system in Observation.valueCodeableConcept.coding.sytem which has an preferred binding to Observation Value Codes (SNOMED-CT)
      2. OR text in Observation.valueCodeableConcept.text
    • Observation.DataAbsentReason has an extensible binding to Observation Value Absent Reason

Each Observation SHOULD have:

  1. A date and time in effectiveDateTime or effectivePeriod
  2. A reference range if applicable in Observation.referenceRange
NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation I0..*US Core Result Observation
us-core-2: If there is no component or related element then either a value[x] or a data absent reason must be present
... status S1..1codeBinding: ObservationStatus (required)
... category S1..1CodeableConceptRequired Pattern: {"coding":[{"system":"http://hl7.org/fhir/observation-category","code":"laboratory"}]}
... code S1..1CodeableConceptUS Realm Laboratory Test Name
Binding: LOINC Codes (extensible)
.... coding S1..*CodingStandard and local codes may be included here by repeating the coding element with a different coding.system.
..... system S1..1uri
..... code S1..1code
..... display S0..1string
.... text S0..1stringDisplay text
... subject S1..1Reference(US Core Patient Profile)
... effective[x] SI0..1dateTime, Periodus-core-1: Datetime must be at least to day.
... value[x] SIstring, Range, Ratio, SampledData, Attachment, time, dateTime, PeriodSlice: Unordered, Open, by @type
... valueQuantity S0..1QuantityBinding: UCUM units (required)
... valueCodeableConcept S0..1CodeableConceptBinding: Observation Value Codes (SNOMED-CT) (preferred)
... dataAbsentReason SI0..1CodeableConceptBinding: Observation Value Absent Reason (extensible)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation I0..*US Core Result Observation
us-core-2: If there is no component or related element then either a value[x] or a data absent reason must be present
... id ∑0..1idLogical id of this artifact
... meta ∑0..1MetaMetadata about the resource
... implicitRules ?!∑0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier 0..*IdentifierUnique Id for this particular observation
... status ?!S1..1coderegistered | preliminary | final | amended +
Binding: ObservationStatus (required)
... category S1..1CodeableConceptClassification of type of observation
Binding: Observation Category Codes (example)
Required Pattern: {"coding":[{"system":"http://hl7.org/fhir/observation-category","code":"laboratory"}]}
... code S1..1CodeableConceptUS Realm Laboratory Test Name
Binding: LOINC Codes (extensible)
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... coding S1..*CodingStandard and local codes may be included here by repeating the coding element with a different coding.system.
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... system S1..1uriIdentity of the terminology system
..... version ∑0..1stringVersion of the system - if relevant
..... code S1..1codeSymbol in syntax defined by the system
..... display S0..1stringRepresentation defined by the system
..... userSelected ∑0..1booleanIf this coding was chosen directly by the user
.... text S0..1stringDisplay text
... subject S1..1Reference(US Core Patient Profile)Who and/or what this is about
... encounter 0..1Reference(Encounter)Healthcare event during which this observation is made
... effective[x] SI0..1dateTime, PeriodClinically relevant time/time-period for observation
us-core-1: Datetime must be at least to day.
... issued ∑0..1instantDate/Time this was made available
... performer ∑0..*Reference(Practitioner), Reference(Organization), Reference(Patient), Reference(RelatedPerson)Who is responsible for the observation
... value[x] ∑IQuantity, CodeableConcept, string, Range, Ratio, SampledData, Attachment, time, dateTime, PeriodActual result
Slice: Unordered, Open, by @type
... value[x] SI0..1string, Range, Ratio, SampledData, Attachment, time, dateTime, PeriodActual result
... valueQuantity SI0..1QuantityActual result
Binding: UCUM units (required)
... valueCodeableConcept SI0..1CodeableConceptActual result
Binding: Observation Value Codes (SNOMED-CT) (preferred)
... dataAbsentReason SI0..1CodeableConceptWhy the result is missing
Binding: Observation Value Absent Reason (extensible)
... interpretation 0..1CodeableConceptHigh, low, normal, etc.
Binding: Observation Interpretation Codes (extensible)
... comment 0..1stringComments about result
... bodySite 0..1CodeableConceptObserved body part
Binding: SNOMED CT Body Structures (example)
... method 0..1CodeableConceptHow it was done
Binding: Observation Methods (example)
... specimen 0..1Reference(Specimen)Specimen used for this observation
... device 0..1Reference(Device), Reference(DeviceMetric)(Measurement) Device
... referenceRange I0..*BackboneElementProvides guide for interpretation
obs-3: Must have at least a low or a high or text
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... low I0..1SimpleQuantityLow Range, if relevant
.... high I0..1SimpleQuantityHigh Range, if relevant
.... meaning 0..*CodeableConceptReference range qualifier
Binding: Observation Reference Range Meaning Codes (example)
.... age 0..1RangeApplicable age range, if relevant
.... text 0..1stringText based reference range in an observation
... related ∑I0..*BackboneElementResource related to this observation
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... type 0..1codehas-member | derived-from | sequel-to | replaces | qualified-by | interfered-by
Binding: ObservationRelationshipType (required)
.... target 1..1Reference(Observation), Reference(QuestionnaireResponse), Reference(Sequence)Resource that is related to this one
... component ∑I0..*BackboneElementComponent results
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... code ∑1..1CodeableConceptType of component observation (code / type)
Binding: LOINC Codes (example)
.... value[x] ∑0..1Quantity, CodeableConcept, string, Range, Ratio, SampledData, Attachment, time, dateTime, PeriodActual component result
.... dataAbsentReason I0..1CodeableConceptWhy the component result is missing
Binding: Observation Value Absent Reason (extensible)
.... interpretation 0..1CodeableConceptHigh, low, normal, etc.
Binding: Observation Interpretation Codes (extensible)
.... referenceRange 0..*Unknown reference to #Observation:uscoreobss.referenceRange
Provides guide for interpretation of component result

doco Documentation for this format

Complete Summary of the Mandatory Requirements

  1. One status in Observation.status which has an required binding to ObservationStatus
  2. One category in Observation.category which must have:
  3. One code in Observation.code which has an extensible binding to LOINC Observation Codes
    • Other additional codes are allowed - e.g. system specific codes. All codes SHALL have a code system value
  4. One patient in Observation.subject
  5. Either one Observation.value[x] or one code in Observation.DataAbsentReason (unless the Observation.code is a panel code)
    • For Observation.valueQuantity must have:
      • One numeric value in Observation.valueQuantity.value
      • a fixed Observation.valueQuantity.system=“http://unitsofmeasure.org
      • a UCUM units code in Observation.valueQuantity.code which has an required binding to UCUM units
    • For Observation.valueCodeableConcept must have either:
      1. a code in Observation.valueCodeableConcept.coding.code and code system in Observation.valueCodeableConcept.coding.sytem which has an preferred binding to Observation Value Codes (SNOMED-CT)
      2. OR text in Observation.valueCodeableConcept.text
    • Observation.DataAbsentReason has an extensible binding to Observation Value Absent Reason

Each Observation SHOULD have:

  1. A date and time in effectiveDateTime or effectivePeriod
  2. A reference range if applicable in Observation.referenceRange

Differential View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation I0..*US Core Result Observation
us-core-2: If there is no component or related element then either a value[x] or a data absent reason must be present
... status S1..1codeBinding: ObservationStatus (required)
... category S1..1CodeableConceptRequired Pattern: {"coding":[{"system":"http://hl7.org/fhir/observation-category","code":"laboratory"}]}
... code S1..1CodeableConceptUS Realm Laboratory Test Name
Binding: LOINC Codes (extensible)
.... coding S1..*CodingStandard and local codes may be included here by repeating the coding element with a different coding.system.
..... system S1..1uri
..... code S1..1code
..... display S0..1string
.... text S0..1stringDisplay text
... subject S1..1Reference(US Core Patient Profile)
... effective[x] SI0..1dateTime, Periodus-core-1: Datetime must be at least to day.
... value[x] SIstring, Range, Ratio, SampledData, Attachment, time, dateTime, PeriodSlice: Unordered, Open, by @type
... valueQuantity S0..1QuantityBinding: UCUM units (required)
... valueCodeableConcept S0..1CodeableConceptBinding: Observation Value Codes (SNOMED-CT) (preferred)
... dataAbsentReason SI0..1CodeableConceptBinding: Observation Value Absent Reason (extensible)

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Observation I0..*US Core Result Observation
us-core-2: If there is no component or related element then either a value[x] or a data absent reason must be present
... id ∑0..1idLogical id of this artifact
... meta ∑0..1MetaMetadata about the resource
... implicitRules ?!∑0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier 0..*IdentifierUnique Id for this particular observation
... status ?!S1..1coderegistered | preliminary | final | amended +
Binding: ObservationStatus (required)
... category S1..1CodeableConceptClassification of type of observation
Binding: Observation Category Codes (example)
Required Pattern: {"coding":[{"system":"http://hl7.org/fhir/observation-category","code":"laboratory"}]}
... code S1..1CodeableConceptUS Realm Laboratory Test Name
Binding: LOINC Codes (extensible)
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... coding S1..*CodingStandard and local codes may be included here by repeating the coding element with a different coding.system.
..... id 0..1stringxml:id (or equivalent in JSON)
..... extension 0..*ExtensionAdditional Content defined by implementations
..... system S1..1uriIdentity of the terminology system
..... version ∑0..1stringVersion of the system - if relevant
..... code S1..1codeSymbol in syntax defined by the system
..... display S0..1stringRepresentation defined by the system
..... userSelected ∑0..1booleanIf this coding was chosen directly by the user
.... text S0..1stringDisplay text
... subject S1..1Reference(US Core Patient Profile)Who and/or what this is about
... encounter 0..1Reference(Encounter)Healthcare event during which this observation is made
... effective[x] SI0..1dateTime, PeriodClinically relevant time/time-period for observation
us-core-1: Datetime must be at least to day.
... issued ∑0..1instantDate/Time this was made available
... performer ∑0..*Reference(Practitioner), Reference(Organization), Reference(Patient), Reference(RelatedPerson)Who is responsible for the observation
... value[x] ∑IQuantity, CodeableConcept, string, Range, Ratio, SampledData, Attachment, time, dateTime, PeriodActual result
Slice: Unordered, Open, by @type
... value[x] SI0..1string, Range, Ratio, SampledData, Attachment, time, dateTime, PeriodActual result
... valueQuantity SI0..1QuantityActual result
Binding: UCUM units (required)
... valueCodeableConcept SI0..1CodeableConceptActual result
Binding: Observation Value Codes (SNOMED-CT) (preferred)
... dataAbsentReason SI0..1CodeableConceptWhy the result is missing
Binding: Observation Value Absent Reason (extensible)
... interpretation 0..1CodeableConceptHigh, low, normal, etc.
Binding: Observation Interpretation Codes (extensible)
... comment 0..1stringComments about result
... bodySite 0..1CodeableConceptObserved body part
Binding: SNOMED CT Body Structures (example)
... method 0..1CodeableConceptHow it was done
Binding: Observation Methods (example)
... specimen 0..1Reference(Specimen)Specimen used for this observation
... device 0..1Reference(Device), Reference(DeviceMetric)(Measurement) Device
... referenceRange I0..*BackboneElementProvides guide for interpretation
obs-3: Must have at least a low or a high or text
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... low I0..1SimpleQuantityLow Range, if relevant
.... high I0..1SimpleQuantityHigh Range, if relevant
.... meaning 0..*CodeableConceptReference range qualifier
Binding: Observation Reference Range Meaning Codes (example)
.... age 0..1RangeApplicable age range, if relevant
.... text 0..1stringText based reference range in an observation
... related ∑I0..*BackboneElementResource related to this observation
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... type 0..1codehas-member | derived-from | sequel-to | replaces | qualified-by | interfered-by
Binding: ObservationRelationshipType (required)
.... target 1..1Reference(Observation), Reference(QuestionnaireResponse), Reference(Sequence)Resource that is related to this one
... component ∑I0..*BackboneElementComponent results
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... code ∑1..1CodeableConceptType of component observation (code / type)
Binding: LOINC Codes (example)
.... value[x] ∑0..1Quantity, CodeableConcept, string, Range, Ratio, SampledData, Attachment, time, dateTime, PeriodActual component result
.... dataAbsentReason I0..1CodeableConceptWhy the component result is missing
Binding: Observation Value Absent Reason (extensible)
.... interpretation 0..1CodeableConceptHigh, low, normal, etc.
Binding: Observation Interpretation Codes (extensible)
.... referenceRange 0..*Unknown reference to #Observation:uscoreobss.referenceRange
Provides guide for interpretation of component result

doco Documentation for this format

Downloads: StructureDefinition: (XML, JSON, CSV), Schema: XML Schematron

 

D.4.1.2 Quick Start

Below is an overview of the required search and read operations.

Summary of Argonaut Search Criteria for StructureDefinition-us-core-observationresults


Clients

  • A client has connected to a server and fetched all of a patient’s laboratory results by searching by category using GET [base]/Observation?patient=[id]&category=laboratory.
  • A client has connected to a server and fetched all of a patient’s laboratory results searching by category code and date range using GET [base]/Observation?patient=[id]&category=laboratory&date=[date]{&date=[date]}.
  • A client has connected to a server and fetched all of all of a patient’s laboratory results searching by category and code using GET [base]/Observation?patient=[id]&category=laboratory&code=[LOINC].

  • A client SHOULD be capable of connecting to a server and fetching any of a patient’s laboratory results searching by category and one or more codes and date range using GET [base]/Observation?patient=[id]&category=laboratory&code=[LOINC1{,LOINC2,LOINC3,...}]&date=[date]{&date=[date]}.

Servers

  • A server is capable of returning all of a patient’s laboratory results queried by category using GET [base]/Observation?patient=[id]&category=laboratory.
  • A server is capable of returning all of a patient’s laboratory results queried by category code and date range usingGET [base]/Observation?patient=[id]&category=laboratory&date=[date]{&date=[date]}.
  • A server is capable of returning all of a patient’s laboratory results queried by category and code using GET [base]/Observation?patient=[id]&category=laboratory&code=[LOINC].

  • A server SHOULD be capable of returning all of a patient’s laboratory results queried by category and one or more codes and date range using GET [base]/Observation?patient=[id]&category=laboratory&code=[LOINC1{,LOINC2,LOINC3,...}]&date=[date]{&date=[date]}.

  • A server has ensured that every API request includes a valid Authorization token, supplied via:Authorization: Bearer {server-specific-token-here}
  • A server has rejected any unauthorized requests by returning an HTTP 401 Unauthorized response code.

GET [base]/Observation?patient=[id]&category=laboratory

Support: Mandatory to support search by patient and category code = ‘laboratory’.

Implementation Notes: Search based on laboratory category code = “laboratory”. This fetches a bundle of all Observation resources with laboratory categories for the specified patient (how to search by reference) and (how to search by token).

Response Class:

  • (Status 200): successful operation
  • (Status 400): invalid parameter
  • (Status 401/4xx): unauthorized request
  • (Status 403): insufficient scope

Example:

GET https://fhir-open-api-dstu2.smarthealthit.org/Observation?patient=1134281&category=laboratory


GET [base]/Observation?patient=[id]&code=[LOINC{,LOINC2,LOINC3,...}]

Support: Mandatory support search by a laboratory LOINC code. SHOULD support search by multiple LOINC codes.

Implementation Notes: 1) Search based on laboratory LOINC code(s). This fetches a bundle of all Observation resources for a specific observation LOINC code(s) for the specified patient (how to search by reference) and (how to search by token). 2) The Observation “code” parameter searches both in both Observation.code and Observation.component.code.

Response Class:

  • (Status 200): successful operation
  • (Status 400): invalid parameter
  • (Status 401/4xx): unauthorized request
  • (Status 403): insufficient scope

Example: Search for all blood glucose lab results for a patient:

GET https://fhir-open-api-dstu2.smarthealthit.org/Observation?patient=1134281&code=2339-0

Example: Search for all blood glucose, urine glucose and urine ketones for a patient

GET https://fhir-open-api-dstu2.smarthealthit.org/Observation?patient=1134281&code=2339-0,25428-4,2514-8


GET [base]/Observation?patient=[id]&category=laboratory&date=[date]{&date=[date]}

Support: Mandatory support search by category code =”laboratory” and date or period

Implementation Notes: Search based on laboratory category code and date. This fetches a bundle of all Observation resources with category ‘laboratory’ for the specified patient for a specified time period (how to search by reference), (how to search by token) amd (how to search by date).

Response Class:

  • (Status 200): successful operation
  • (Status 400): invalid parameter
  • (Status 401/4xx): unauthorized request
  • (Status 403): insufficient scope

Example: Find all the laboratory results after 2013-03-14

GET http://fhir2.healthintersections.com.au/open/Observation?patient=555580&category=laboratory&date=ge2015-01-14