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

Get view of facility's patient impact over time during disaster #41

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

Comments

@malak-coforma
Copy link
Contributor

malak-coforma commented Aug 4, 2022

Description

Endpoint acme/disasterPatientStatus/history
Method GET
Roles Government Systems Coordinator, Facility System Administrator

Get data that would allow a user to see the change in patient impact over time during a specific disaster.

Arbitrarily choose to report on changes daily for the past 3 months or start date, which ever is sooner.

User Story

As a Government Systems Coordinator or Facility System Administrator
I want to see the change in patient impact over time during a specific disaster
So that I can evaluate if facilities are meeting standards of care during disasters
Because some disasters can last a long time.

Request Body

{
  "facilityNpi": int,
  "disasterId": int,
}

Response Body

200

[
  {
    "reportingData": date,
    "unaffected": int,
    "injured": int,
    "illInFacility": int,
    "illNotInFacility": int,
    "deceased": int,
    "isolated": int,
  },
  ...
]

400

If request body sent is syntactically invalid.

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

403

This endpoint is not authorized for roles who are not Government Systems Coordinators or Facility System Administrators.

Acceptance Criteria

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

Tech Notes

Overall schema plan (Lucidchart)

Image

@malak-coforma malak-coforma added this to the Patient Impact API milestone Aug 4, 2022
@malak-coforma malak-coforma changed the title Get view of patient impact over time during disaster Get view of facility's patient impact over time during disaster Aug 10, 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