Skip to content

Commit

Permalink
Remove WHERE EXISTS from query, as EHRbase 2.5 doesn't support it yet
Browse files Browse the repository at this point in the history
  • Loading branch information
askask committed Jul 22, 2024
1 parent b1d5a5f commit a40eb5a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export class PatientFilterService {
getAllDatasetCount(): Observable<number> {
return this.httpClient
.post<number>(`${this.baseUrl}/aql/size`, {
query: 'SELECT e/ehr_id/value as ehrId FROM EHR e WHERE EXISTS e/ehr_id/value',
// TODO: revert to use EXISTS when https://github.com/ehrbase/ehrbase/issues/1346 is resolved
// SELECT e/ehr_id/value as ehrId FROM EHR e WHERE EXISTS e/ehr_id/value
query: 'SELECT e/ehr_id/value as ehrId FROM EHR e',
})
.pipe(
tap((size) => {
Expand Down

0 comments on commit a40eb5a

Please sign in to comment.