Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fixed compose, app.yml and AQL order #8

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
- ehrbase
image: ehrbase/ehrbase:next
ports:
- 8090:8080
- 8080:8080
networks:
- ehrbase-net
environment:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/bih/eos/services/EhrService.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private NativeQuery<Record2<String, Composition>> buildCompositionQueryEhr(long
whereStatements.append(" e/ehr_id/value = '").append(ehrToPerson.getEhrId()).append("' OR");
}
whereStatements = new StringBuilder(whereStatements.substring(0, whereStatements.length() - 2));
return Query.buildNativeQuery("SELECT e/ehr_id/value, c from EHR e CONTAINS Composition c WHERE " + whereStatements + " LIMIT " + offsetLimit + " OFFSET " + offset + " ORDER BY e/ehr_id/value DESC", String.class, Composition.class);
return Query.buildNativeQuery("SELECT e/ehr_id/value, c from EHR e CONTAINS Composition c WHERE " + whereStatements + " ORDER BY e/ehr_id/value DESC" + " LIMIT " + offsetLimit + " OFFSET " + offset, String.class, Composition.class);
}

private List<Record2<String, Composition>> executeAqlQuery(long offset, List<EHRToPerson> ehrIds) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spring:
datasource:
password: postgres
username: postgres
url: jdbc:postgresql://localhost:5433/postgres
url: jdbc:postgresql://localhost:5432/postgres

logging:
file:
Expand Down
Loading