Here is a draft software specification document for the Medicus proof of concept:
Medicus Proof of Concept Software Specification
1. Introduction
Medicus is a proof of concept for an electronic medical records (EMR) system to be used in Luxembourg. It will allow doctors, patients, pharmacies, and care professionals to access medical records and appointment information.
This document provides the software specification for the initial proof of concept, which will focus on the doctor and patient use cases.
2. Use Cases
The main actors and use cases for the proof of concept are:
Patients
- Create user account
- Search for doctor
- Book appointment with doctor
- View own medical records
Doctors
- Create user account
- View calendar and appointments
- Search for patients
- Add new patients
- Book appointments for patients
- View and update drug list
- Access patient medical records
- Create prescriptions, bills, track medical conditions
3. Architecture
The system will use a microservice architecture with separate frontend and backend services. Key components include:
- Common User Interface - Used by individual patients to book appointments, access records
- Doctor User Interface - Used by doctors to manage patients, appointments, records
- Login Service - Shared login page that handles authentication
- Common Database - Holds common data like users, drugs, fees
- Doctor Databases - Isolated database for each doctor with patient data
- Appointment Service - Manages appointment bookings across databases
- Patient Service - Provides access to patient records
- Prescription Service - Handles creation of prescriptions
4. Database Design
There will be two main types of databases:
Common Database
This holds data commonly accessed by all users:
- Users table - Basic user account info
- Drugs table - List of drugs
- Fees table - Pricing info
- Appointments table - Appointments booked by patients
Doctor Database
One instance created for each doctor user account:
- Users table - Patient data for that doctor
- Appointments table - Appointments for that doctor
- MedicalRecords table - Health records for patients
- Prescriptions table - Prescriptions written by doctor
When