From bbffd5005026c150b42bd1bf8224e085b2e3c710 Mon Sep 17 00:00:00 2001 From: Adrian Clay Date: Thu, 19 Oct 2023 18:21:55 +0100 Subject: [PATCH] Refactor: Reduce duplicate code by having ResourceFilterUtil delegate (#337) --- .../nhs/adaptors/pss/translator/util/ResourceFilterUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gp2gp-translator/src/main/java/uk/nhs/adaptors/pss/translator/util/ResourceFilterUtil.java b/gp2gp-translator/src/main/java/uk/nhs/adaptors/pss/translator/util/ResourceFilterUtil.java index 1166a5eea..8cc34ccaf 100644 --- a/gp2gp-translator/src/main/java/uk/nhs/adaptors/pss/translator/util/ResourceFilterUtil.java +++ b/gp2gp-translator/src/main/java/uk/nhs/adaptors/pss/translator/util/ResourceFilterUtil.java @@ -25,8 +25,7 @@ public static boolean isDocumentReference(RCMRMT030101UK04NarrativeStatement nar } public static boolean isBloodPressure(RCMRMT030101UK04CompoundStatement compoundStatement) { - return compoundStatement != null && BATTERY_VALUE.equals(compoundStatement.getClassCode().get(0)) - && BloodPressureValidatorUtil.containsValidBloodPressureTriple(compoundStatement); + return compoundStatement != null && BloodPressureValidatorUtil.isBloodPressureWithBatteryAndBloodPressureTriple(compoundStatement); } public static boolean isAllergyIntolerance(RCMRMT030101UK04CompoundStatement compoundStatement) {