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 0c8d1acab..1166a5eea 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 @@ -12,8 +12,7 @@ public class ResourceFilterUtil { private static final List ALLERGY_CODES = List.of("SN53.00", "14L..00"); - private static final String IMMUNIZATION_SNOMED_CODE = "2.16.840.1.113883.2.1.3.2.3.15"; - private static final String ALLERGY_SNOMED_CODE = "2.16.840.1.113883.2.1.6.2"; + private static final String CODE_SYSTEM_READ_CODE_V2 = "2.16.840.1.113883.2.1.6.2"; private static final String PATHOLOGY_CODE = "16488004"; private static final String SPECIMEN_CODE = "123038009"; private static final String BATTERY_VALUE = "BATTERY"; @@ -34,7 +33,7 @@ public static boolean isAllergyIntolerance(RCMRMT030101UK04CompoundStatement com return compoundStatement != null && hasCode(compoundStatement) && ALLERGY_CODES.contains(compoundStatement.getCode().getCode()) - && ALLERGY_SNOMED_CODE.equals(compoundStatement.getCode().getCodeSystem()) + && CODE_SYSTEM_READ_CODE_V2.equals(compoundStatement.getCode().getCodeSystem()) && compoundStatement.getComponent().size() == 1 && compoundStatement.getComponent().get(0).hasObservationStatement(); }