Versions Compared

Key

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

...

Expand
titleUpdate Behaviour

[[Lab Report]]

Matched on: [[Lab Report.External ID]] as derived from ORC-3.1 or OBR-3.1

When matched: Associated [[Lab Result]] entries are individually matched. Note: if a [[Lab Result]] that was previously provided with the [[Lab Report]] is omitted from this [[Lab Report]], the [[Lab Result]] will be left unmodified. It will not be deleted.

Particular care should be given to panels: if a panel is provided with a status of R then all [[Lab Result]] entries previously stored for the corresponding [[Lab Report]] will be marked as deleted, regardless of whether they were previously included in the panel being redacted or whether they are provided in the current message. If the message contains multiple panels where some but not all have a status of R, then PKB will first delete all results associated with the report ID before following the usual create or update workflow for lab results provided in panels that do not have a status of R.

When not matched: New [[Lab Report]] created.

[[Lab Result]]

Matched on: Results are matched on the test ID (OBX-3, or OBR-4 for textual reports). The test ID is matched only on the first and third components (code and code system), and matching is case sensitive.

When matched: If PKB detects a meaningful difference between the provided and existing lab result content, then the existing [[Lab Result]] is replaced in its entirety with the values provided in this message. A partial update is not performed.

Note: that the existence of more than one version of a given lab result is what determines whether PKB displays a correction indicator in the web interface. The correction indicator is not driven by the status value declared by the sender (e.g. OBX-11), and sending more than one message for a given lab order is not guaranteed to trigger the correction indicator since PKB dedupes updates that do not meaningfully change the content of the lab result.

When not matched: New [[Lab Result]] created.

[[Local Test Type]]

Matched on: The test type is identified by the Source Organisation (to ensure no namespace clashes) along with test code, test coding system and units (all matched case sensitively).

When matched: If an existing [[Local Test Type]] is found, it will be updated with the latest Test Name and Service Name if they differ if it differs from what is currently stored. In this way, callers are able to update the display name for their local test types.

When not matched: A new [[Local Test Type]] is created.

[[Measurement Report]]

Matched on: [[Measurement Report.External ID]] as derived from ORC-3.1 or OBR-3.1

When matched: Unlike lab results, measurements in a report are not individually matched for corrections. However, similar to lab reports, if a panel has status R, then any measurements with a matching report ID will be deleted.

When not matched: New [[Measurement Report]] created.

[[Measurement]]

Matched on: There is no unique identifier on a [[Measurement]] submitted via HL7, so they cannot be updated individually.

When matched: N/A

When not matched: New [[Measurement]] created.

...