Skip to content

Commit

Permalink
remove unused endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kajambiya committed Mar 13, 2024
1 parent 28e8e0e commit 66f027a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ export function getAllLocations(): Observable<{ uuid: string; display: string }[
);
}

export function getEncounterProviders(): Observable<{ uuid: string; display: string }[]> {
return openmrsObservableFetch(`/ws/rest/v1/provider?v=custom:(uuid,display)`).pipe(
map(({ data }) => data['results']),
);
}

export async function getPreviousEncounter(patientUuid: string, encounterType: string) {
const query = `patient=${patientUuid}&_sort=-_lastUpdated&_count=1&type=${encounterType}`;
let response = await openmrsFetch(`/ws/fhir2/R4/Encounter?${query}`);
Expand Down

0 comments on commit 66f027a

Please sign in to comment.