/Anamnaid

Platform to let patients fill anamnesia forms and submit them directly to their doctor

Primary LanguageJavaScript

Anamnaid

Let patients submit their anamnesia data digitally and so save paperwork and time.

Deployment

To deploy this project run

  npm start

Copy the .env.example to .env with

  cp .env.example .env

and fill the necessary information. For the database setup, import the database.sql and fill the database credentials into the .env.

Roadmap

  • Create client app for mobile (frontend)
  • Create webapp for managing submitted anamnesia data (for the doctors) (frontend)

API Reference

Login user and obtain user data

  GET /patient/login
Body parameter Type Description
session string JWT session token
email string User Email
password string User password

Return type is a JSON with the user data including the session token to authenticate against other API request like obtaining anamnesia data

Register user

  POST /patient/register
Body parameter Type Description
email string User email
password string User password
first_name string User first name
last_name string User last name

Login doctor and obtain user data

  GET /doctor/

TBD

Get anamnesia data related to a user

  GET /anamnesia/
Body parameter Type Description
session string JWT session token
doctor int Doctor id (optional)

Return type is a JSON with the user anamnesia data. If a doctor id is provided, only anamnesia data which was submitted to the provided doctor gets returned.

Add anamnesia data

  POST /anamnesia/
Body parameter Type Description
session string JWT session token
doctor string Doctor who is the receiver of the anamnesia form
content int Anamnesia form as JSON

Verify user account

  GET /verify/
Query parameter Type Description
token_verification string Token received via email

Changes the verified status of an account to verified.