Enhance search appointments endpoint to include patient uuid.

Description

Currently the appointments search endpoint defined within AppointmentsController accepts only startDate and an endDate and both the fields are mandatory.

The endpoint is to be modified to -

  1. Add an optional field to search by patient UUID.

  2. Add an optional field to limit the number of search results.

  3. Make endDate non mandatory.

 

Sample curl with all fields



Acceptance criteria:

  1. Should filter search result by patient if uuid is passed.

  2. Should limit the number of search results when limit is passed.

  3. If limit is not passed and

    1. endDate is passed - Should behave as is and not limit.

    2. endDate is not passed - Should use a default limit.

  4. The search result should be ordered by start date.

 

Status

Assignee

Sukreet Roy choudhury

Reporter

Sukreet Roy choudhury

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None
Configure