Skip to content

Commit

Permalink
add support for sorting by encounterDatetime
Browse files Browse the repository at this point in the history
  • Loading branch information
hadijahkyampeire committed Jul 16, 2024
1 parent 40ac142 commit a9c8279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encounters/encounters.resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export function useInfiniteEncounters(patientUuid: string) {
return null;
}

let url = `${restBaseUrl}/encounter?patient=${patientUuid}&v=${encounterRepresentation}&limit=${pageSize}&totalCount=true`;
let url = `${restBaseUrl}/encounter?patient=${patientUuid}&v=${encounterRepresentation}&order=desc&limit=${pageSize}`;

if (pageIndex) {
url += `&startIndex=${pageIndex * pageSize}`;
Expand Down

0 comments on commit a9c8279

Please sign in to comment.