Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database schema and CRUD for Appointments #9

Open
2 of 11 tasks
moozeq opened this issue Jan 13, 2023 · 0 comments
Open
2 of 11 tasks

Database schema and CRUD for Appointments #9

moozeq opened this issue Jan 13, 2023 · 0 comments
Labels
8 8 SP BE Back-end S1 - Critical Issue with critical severity T1 - Feature Issue of feature type

Comments

@moozeq
Copy link
Owner

moozeq commented Jan 13, 2023

Description

Create basic back-end part for Appointments which are conducted under specific Study (#7) in specific Facility (#4) by User with a "doctor" Role (#3) to register specific Patient (#5) visit in facility.

Prerequisites

Acceptance criteria

  • Create database schema for Appointment class using sequelize-typescript with fields:
    • date
    • type - visit type, allowed values: drugAdminitration (drug administered during the visit), checkup (checkup for doctor to see if there are any adverse effects between drug administrations), followup (visit 1 month after completed study by patient), survivalCheck (visit 1 year after followup to register long-term effects)
    • description
    • adverseEffects[] - registered adverse effects based on the interview with the patient (Database schema and CRUD for AdverseEffects #8)
    • patient
    • doctor
    • facility
  • Add CRUD for Appointment but only accessible for authorized Users with "doctor" Role
  • Add association one-to-one for Appointment and Patient (Database schema and CRUD for Patients #5)
  • Add association one-to-one for Appointment and User(doctor who conducted the visit)
  • Add association one-to-one for Appointment and Facility (Database schema and predefined Facilities #4)
  • Add association one-to-many for Appointment and AdverseEffects (Database schema and CRUD for AdverseEffects #8)
@moozeq moozeq added 8 8 SP S1 - Critical Issue with critical severity T1 - Feature Issue of feature type labels Jan 13, 2023
@moozeq moozeq added this to the [Sprint #1] Basic ClinOps milestone Jan 13, 2023
@moozeq moozeq added the BE Back-end label Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8 8 SP BE Back-end S1 - Critical Issue with critical severity T1 - Feature Issue of feature type
Projects
None yet
Development

No branches or pull requests

1 participant