From 3893ba2201dfa4291aba7defb905e11b905221d1 Mon Sep 17 00:00:00 2001 From: Rob Hausam Date: Wed, 31 Jul 2024 09:31:17 -0500 Subject: [PATCH] FHIR-41554 - Update invariants to remove handling of 'registered' and 'cancelled' statuses, as those statuses are not allowed in the observation lab/path results profile. --- input/fsh/invariants/ips-2.fsh | 4 ++-- input/fsh/invariants/ips-3.fsh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/input/fsh/invariants/ips-2.fsh b/input/fsh/invariants/ips-2.fsh index 41db9603..5908f13e 100644 --- a/input/fsh/invariants/ips-2.fsh +++ b/input/fsh/invariants/ips-2.fsh @@ -1,4 +1,4 @@ Invariant: ips-2 -Description: "If observation status is other then \"registered\" or \"cancelled\", at least one of these Observation elements shall be provided: \"value\", \"dataAbsentReason\", \"hasMember\" or \"component\"" +Description: "At least one of these Observation elements shall be provided: \"value\", \"dataAbsentReason\", \"hasMember\" or \"component\"" Severity: #error -Expression: "(status in ('registered'|'cancelled')) or value.exists() or hasMember.exists() or component.exists() or dataAbsentReason.exists()" +Expression: "value.exists() or hasMember.exists() or component.exists() or dataAbsentReason.exists()" diff --git a/input/fsh/invariants/ips-3.fsh b/input/fsh/invariants/ips-3.fsh index b4ba6a58..2a253466 100644 --- a/input/fsh/invariants/ips-3.fsh +++ b/input/fsh/invariants/ips-3.fsh @@ -1,4 +1,4 @@ Invariant: ips-3 -Description: "If observation has components and observation status is other than \"registered\" or \"cancelled\", at least one of these Observation.component elements shall be provided: \"value\" or \"dataAbsentReason\"" +Description: "If observation has components, at least one of these Observation.component elements shall be provided: \"value\" or \"dataAbsentReason\"" Severity: #error -Expression: "component.exists() implies (status in ('registered'|'cancelled')) or component.value.exists() or component.dataAbsentReason.exists()" +Expression: "component.exists() implies (component.value.exists() or component.dataAbsentReason.exists())"