display checking case insensitive

This commit is contained in:
Grahame Grieve 2023-03-28 07:45:14 +11:00
parent d43d6ce19a
commit 8101ae8a3b
1 changed files with 10 additions and 0 deletions

View File

@ -698,5 +698,15 @@ public class CodeSystemUtilities {
}
return list;
}
public static boolean checkDisplay(CodeSystem cs, ConceptDefinitionComponent cd, String display) {
List<String> displays = getDisplays(cs, cd);
for (String s : displays) {
if (s.equalsIgnoreCase(display)) {
return true;
}
}
return false;
}
}