Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Get recent patient statuses #34

Open
malak-coforma opened this issue Aug 4, 2022 · 0 comments
Open

Get recent patient statuses #34

malak-coforma opened this issue Aug 4, 2022 · 0 comments

Comments

@malak-coforma
Copy link
Contributor

malak-coforma commented Aug 4, 2022

Description

Endpoint acme/patientStatus/list
Method GET
Roles EHR Maintainer, Government Systems Coordinator

Get the ten most recent patient statuses.

Arbitrarily cap to 10 most recent statuses, we can get feedback on whether pagination is desired by the client or not.

Request Body

{
  "facilityNpi": int,
  "patientIdFromFacility": int,
}

Response Body

200

[
  {
    "date": date,
    "patientId": string,
    "disasterName": string,
    "patientStatus": string,
    "facilityLocation": string,
  }
]

400

If request body sent is syntactically invalid.

403

This endpoint is not authorized for roles who are not EHR maintainers or Government Systems Coordinators.

422

If request body sent is not processable (missing or malformed data).

Acceptance Criteria

  1. Returns 200 with response body when well-formatted data is sent by an EHR Maintainer or Government Systems Coordinator.
  2. Returns 400 if request body is malformed.
  3. Returns 403 if request is made by a role other than an EHR Maintainer or Government Systems Coordinator.
  4. Returns 422 if request body is missing required data.
  5. Returns 422 if the request body contains data that doesn't make sense.

Tech Notes

Overall schema plan (Lucidchart)

Image

@malak-coforma malak-coforma added this to the Patient Impact API milestone Aug 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant