Skip to content

Commit 1068203

Browse files
committed
remove toLowerCase() from AQL query extraction
1 parent d957d49 commit 1068203

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dsf-bpe-process-feasibility/src/main/java/org/highmed/dsf/bpe/ConstantsFeasibility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public interface ConstantsFeasibility
2020
// (if I already know the cohort size in my MeDIC)
2121
int MIN_PARTICIPATING_MEDICS = 3;
2222
int MIN_COHORT_DEFINITIONS = 1;
23-
String FEASIBILITY_QUERY_PREFIX = "select count";
23+
String FEASIBILITY_QUERY_PREFIX = "SELECT COUNT";
2424

2525
String CODESYSTEM_HIGHMED_FEASIBILITY = "http://highmed.org/fhir/CodeSystem/feasibility";
2626
String CODESYSTEM_HIGHMED_FEASIBILITY_VALUE_PARTICIPATING_MEDIC_CORRELATION_KEY = "medic-correlation-key";

dsf-bpe-process-feasibility/src/main/java/org/highmed/dsf/bpe/service/CheckQueries.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ protected void doExecute(DelegateExecution execution) throws Exception
4848
Map<String, String> queries = new HashMap<>();
4949

5050
Task leadingTask = getLeadingTaskFromExecutionVariables();
51-
cohorts.forEach(group -> {
52-
String aqlQuery = groupHelper.extractAqlQuery(group).toLowerCase();
51+
cohorts.forEach(group ->
52+
{
53+
String aqlQuery = groupHelper.extractAqlQuery(group);
5354

5455
String groupId = group.getId();
5556
if (!aqlQuery.startsWith(ConstantsFeasibility.FEASIBILITY_QUERY_PREFIX))

dsf-bpe-process-feasibility/src/main/java/org/highmed/dsf/bpe/service/ModifyQueries.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ private Map<String, String> modifyQueries(Map<String, String> queries)
6464
protected String replaceSelectCountWithSelectMpiId(String value)
6565
{
6666
// TODO Implement correct replacement for default id query
67-
return value.replace("select count(e)", "select e" + ehrIdColumnPath + " as EHRID");
67+
return value.replace("SELECT COUNT(e)", "SELECT e" + ehrIdColumnPath + " as EHRID");
6868
}
6969
}

0 commit comments

Comments
 (0)