Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 to automated-processing

  • .parameter

    • .use set to in for input

    • .type set to QuestionnaireResponse

  • .parameter

    • .use set to in for input

    • .type set to Questionnaire

  • .parameter

    • .use set to in for input

    • .type set to ProcedureRequest ServiceRequest

The Library rule sets up instructions that causes production of:

...

  • .type set to logic-library

  • .parameter[0]

    • .use set to out for output

    • .type set to Coding

  • .parameter[1]

    • .use set to in for input

    • .type set to Observation

  • .parameter[2]

    • .use set to in for input

    • .type set to ProcedureRequest ServiceRequest

The input Observation must have

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

ProcedureRequest

ServiceRequest does not contain ehealth-reuseCriteria specifying a max age of the height Observation. This max age, although stated for reuse, is used for the height Observation use in an BMI calculation also.

code=N, system=http://hl7.org/fhir/v3/ObservationInterpretation, display=Normal

The height Observation has not exceeded the max age specified in ehealth-reuseCriteria in the referenced

ProcedureRequest

ServiceRequest.

code=L, system=http://hl7.org/fhir/v3/ObservationInterpretation, display=Low

The height Observation has exceeded the max age specified in ehealth-reuseCriteria in the referenced

ProcedureRequest

ServiceRequest.

Library for Calculating Body Mass Index

...

  • .type set to logic-library

  • .parameter[0]

    • .use set to out for output

    • .type set to Quantity

  • .parameter[1]

    • .use set to in for input

    • .type set to Observation

  • .parameter[2]

    • .use set to in for input

    • .type set to ProcedureRequest 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.

...