Skip to content

Commit 6d83f73

Browse files
committed
remove toLowerCase() from AQL query extraction
1 parent 76ddde8 commit 6d83f73

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected void doExecute(DelegateExecution execution) throws Exception
5050
Task leadingTask = getLeadingTaskFromExecutionVariables();
5151
cohorts.forEach(group ->
5252
{
53-
String aqlQuery = groupHelper.extractAqlQuery(group).toLowerCase();
53+
String aqlQuery = groupHelper.extractAqlQuery(group);
5454

5555
String groupId = group.getId();
5656
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)