...
The Fallback Library contains a rule that ensures creation of a Task that draws attention to a measurement needing evaluation. It is intended for implicit use in case no other automated processing type Library has been set up for a given ProcedureRequest ServiceRequest through its ActivityDefinition.
...
This Library contains a generic rule that performs assessment of an Observation based on absolute reference range(s) automatically copied from a ProcedureRequest ServiceRequest referencing an ActivityDefinition that references the Library. The rule in this Library is automatically performed as a reaction to submitting of the Observation. This Library can be referenced from an ActivityDefinition along with other Library, even the Relative Reference Ranges Library described below.
...
.type
set toautomated-processing
.parameter
.use
set toin
for input.type
set toQuestionnaireResponse
.parameter
.use
set toin
for input.type
set toQuestionnaire
.parameter
.use
set toin
for input.type
set toProcedureRequest
ServiceRequest
The Library rule sets up instructions that causes production of:
...
.type
set tologic-library
.parameter[0]
.use
set toout
for output.type
set toCoding
.parameter[1]
.use
set toin
for input.type
set toObservation
.parameter[2]
.use set to
in
for input.type
set toProcedureRequest
ServiceRequest
The input Observation must have
.code
: Coding for height (code=NPU03794, system=urn:oid:1.2.208.176.2.1)effectiveDateTime
basedOn
referencing a ProcedureRequest ServiceRequest
It is not necessary to provide the ProcedureRequest ServiceRequest as input. The Libary$evaluate operation will retrieve it by resolving the basedOn
reference in the Observation.
Output will be a code from the http://hl7.org/fhir/v3/ObservationInterpretation CodeSystem:
Output Coding | Evaluation |
---|---|
code=IND, system=http://hl7.org/fhir/v3/ObservationInterpretation, display=Indeterminate | The referenced |
ServiceRequest does not contain | |
code=N, system=http://hl7.org/fhir/v3/ObservationInterpretation, display=Normal | The height Observation has not exceeded the max age specified in |
ServiceRequest. | |
code=L, system=http://hl7.org/fhir/v3/ObservationInterpretation, display=Low | The height Observation has exceeded the max age specified in |
ServiceRequest. |
Library for Calculating Body Mass Index
...
.type
set tologic-library
.parameter[0]
.use set to out for output
.type set to Quantity
.parameter[1]
.use
set toin
for input.type
set toObservation
.parameter[2]
.use set to
in
for input.type
set toProcedureRequest
ServiceRequest
The library expects two observations as input:
...
It is not necessary to provide the ProcedureRequest ServiceRequest as input. The Libary$evaluate operation will retrieve it by resolving the basedOn
reference in the weight Observation.
...