Skip to content

Commit

Permalink
Refactor: Misleading variable name (#323)
Browse files Browse the repository at this point in the history
* Rename misleading variable
* Remove unused variable
  • Loading branch information
adrianclay authored Oct 4, 2023
1 parent ba38841 commit dc8f408
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

public class ResourceFilterUtil {
private static final List<String> 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";
Expand All @@ -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();
}
Expand Down

0 comments on commit dc8f408

Please sign in to comment.