Skip to content

Commit

Permalink
fix Flavor activation
Browse files Browse the repository at this point in the history
  • Loading branch information
cerbeor committed Nov 5, 2024
1 parent 1432ac2 commit e4d1d93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,8 @@ public PatientReported processPatient(Tenant tenant, HL7Reader reader, List<Proc
String patientNameMiddle = reader.getValue(5, 3);
String nameType = reader.getValue(5, 7);
if (processingFlavorSet.contains(ProcessingFlavor.APPLESAUCE)) {
if (patientNameFirst.toUpperCase().contains("BABY BOY") || patientNameFirst.toUpperCase().contains("BABY GIRL")) {
if (patientNameFirst.toUpperCase().contains("BABY BOY") || patientNameFirst.toUpperCase().contains("BABY GIRL") ||
patientNameFirst.toUpperCase().contains("BABY")) {
nameType = "NB";
} else if (patientNameFirst.toUpperCase().contains("TEST")) {
nameType = "TEST";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public static Set<ProcessingFlavor> getProcessingStyle(String label) {
|| label.endsWith("_" + key)
|| label.indexOf("_" + key + "_") > 0) {
processingFlavorSet.add(ps);
} else if (label.equals(key)) {
processingFlavorSet.add(ps);
}
}
}
Expand Down

0 comments on commit e4d1d93

Please sign in to comment.