Manages adverse event reports (for example, a suspected reaction to a medication). The mobile app submits reports and looks up regulatory-authority information, while the PIMS (Practice Information Management System, the clinic-facing web app) lists reports for an organisation and updates their status.
Endpoints
POST /
- Auth:
requireMobileAuth - Body:
AdverseEventReport - Controller:
AdverseEventController.createFromMobile - Response:
201: keysmessage,500: keysmessage
GET /regulatory-authority/
- Auth:
requireMobileAuth - Controller:
AdverseEventController.getRegulatoryAuthorityInof
GET /organisation/:organisationId
- Auth:
requireWebAuth,withOrgPermissions() - Params:
organisationId - Controller:
AdverseEventController.listForOrg
GET /:id
- Auth:
requireWebAuth - Params:
id - Controller:
AdverseEventController.getById
PATCH /:id/status
- Params:
id - Body:
{ status: AdverseEventStatus } - Controller:
AdverseEventController.updateStatus