Skip to main content
Yosemite CrewDeveloper Docs

Adverse Event API

On this page

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: keys message, 500: keys message

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