I. Introduction
Healthcare depends on timely access to accurate patient information. In many clinics, appointments are booked by phone, histories are kept on paper or in disconnected systems, and prescriptions are handed over as printed slips. Patients who live far from a facility, or who cannot easily travel, face additional barriers. Telemedicine addresses part of this by allowing consultation through digital communication, and Electronic Health Records (EHRs) address another part by storing medical information in a structured, retrievable form. Combining the two in a single application lets a patient book a slot, attend a video consultation and receive a digital prescription without leaving the platform, while the doctor sees the relevant history in the same place.
Digitisation also concentrates risk. A platform that stores identities, diagnoses, allergies and prescriptions becomes an attractive target, and unauthorised access or careless sharing can harm patients1. The risk grows when institutions wish to use their data for analytics or machine learning, because the conventional approach of collecting records in one place conflicts with confidentiality obligations. Privacy-preserving techniques such as federated learning2 and differential privacy3 have been proposed to reduce this conflict, but they are rarely presented together with the everyday workflow of a working telemedicine application.
This paper presents MediVault, an enterprise telemedicine and EHR application developed as a B.Tech project. The core platform is implemented: registration and login, appointment management, WebRTC-based video consultation, electronic records, and digital prescriptions with PDF generation and QR support, packaged with Docker. We then specify a privacy-preserving clinical early-warning layer that adds consent management, pseudonymisation, differentially private search, medication-interaction alerts, deterioration-risk prediction and federated learning across simulated clinic nodes. The distinction between what exists and what is proposed matters, so every feature in this paper is labelled implemented or proposed. The contributions are deliberately scoped:
1) A layered architecture that integrates telemedicine, EHR and prescription workflows with role-based access control, and that places the proposed privacy and clinical layers around the same data model (Section V).
2) A concrete specification of the proposed early-warning layer: pseudonymisation, privacy-preserving search, interaction detection, risk scoring and federated learning, with the formulas and thresholds each depends on (Section VI).
3) A description of the implemented technology stack, data model, security configuration and deployment (Section VII).
4) An evaluation plan with defined test cases, non-functional targets and metrics, together with an explicit statement that results have not yet been recorded (Section VIII).
MediVault is an academic prototype. It has no regulatory certification, has not been used with real patient data, and does not replace clinical judgement. The remainder of the paper reviews related work, states the problem and gap, describes the architecture, methodology and implementation, presents the evaluation plan, and discusses limitations and future work.
II. Background and Related Work
A. Telemedicine and Electronic Health Records
An EHR is a digital record of a patient’s health information, typically covering demographics, history, diagnoses, allergies, medications, laboratory results and consultation notes. Its value lies in structured access: a clinician can retrieve a relevant history during a consultation instead of searching physical files. Telemedicine extends access by moving the consultation itself online, usually with real-time audio and video. Browser-native technologies such as WebRTC make this possible without separate client software, which lowers the barrier for patients. Telemedicine is most useful where distance, mobility or scheduling make physical visits difficult, and least suited to situations that need a physical examination, so a platform should support follow-up and routine consultation without presenting itself as a substitute for in-person care. Both technologies, however, shift the security burden from locked cabinets to authentication, authorisation, transport security and encryption at rest4.
B. Privacy and Security Mechanisms for Health Data
Four mechanisms recur in the health-data literature and are used in this work. Encryption protects data at rest and in transit. Role-based access control (RBAC) limits each user to the information their role needs. De-identification and pseudonymisation replace direct identifiers so that analytical records cannot be trivially linked to a person. Differential privacy provides a mathematical bound on what an output reveals about any single individual: a randomised mechanism M is ε-differentially private if, for all neighbouring datasets D, D′ and all output sets S,
Pr[M(D) ∈ S] ≤ eε Pr[M(D′) ∈ S], (1)
so a smaller ε gives stronger privacy at the cost of more noise5. No single mechanism is sufficient; layered protection is the usual recommendation.
C. Federated Learning in Healthcare
Federated learning (FL) trains a shared model without moving raw data. In the Federated Averaging scheme, a server sends the current global model to participants, each participant trains on local data, and the server averages the returned parameters weighted by local dataset size6. Rieke et al. discuss why this fits healthcare, where data is distributed across institutions and cannot easily be pooled, and also note remaining risks such as information leakage from model updates7. Abaoud et al. propose a privacy-preserving FL approach for healthcare that combines federated learning with differential privacy, secure multi-party computation and decentralised training, and evaluate it on healthcare datasets that include MIMIC-III and Synthea8. They report high accuracy and a low privacy-leakage value in their own comparison; those figures belong to that study and are not reproduced or claimed here. We use it as the conceptual basis for MediVault’s proposed FL component.
D. Clinical Decision Support and Explainability
Decision-support tools flag situations that deserve a clinician’s attention, such as a risky drug combination or a worsening trend in vital signs. Two design concerns follow. Alerts must be explainable, so that the clinician can see why one was raised and judge it; model-agnostic attribution methods such as SHAP quantify the contribution of each input feature to a prediction9. Alerts must also remain advisory: a system that acts without review would make clinical decisions it is not qualified to make. Human-in-the-loop designs, in which a person reviews or approves machine output, formalise this requirement10. MediVault therefore treats every alert as a suggestion that the doctor may acknowledge, dismiss or escalate.
E. Positioning
Table I summarises how the areas above relate to MediVault. Each line of work covers one aspect; the project’s contribution is not a new algorithm but the integration of a working telemedicine/EHR core with a specified privacy and clinical layer, and an honest account of what has been verified.
Table I: Related Approaches and Their Relevance to MediVault
|
Approach |
Main capability |
Limitation for this setting |
|
Conventional EHR11 |
Structured digital records |
Needs strong access and security controls |
|
Federated learning12 |
Training without pooling raw data |
Updates may leak information |
|
Differential privacy13 |
Bounded individual disclosure |
Noise reduces accuracy |
|
Private FL for health14 |
FL + DP + secure computation |
Evaluated on its own datasets |
|
Explainable models15 |
Per-feature attribution |
Explanations need clinical validation |
|
Human-in-the-loop16 |
Human review of machine output |
Needs workflow integration |
|
MediVault |
Integrated telemedicine, EHR and proposed privacy layer |
Core evaluated functionally only |
III. Problem Statement and Objectives
A. Problem Statement
Healthcare providers need reliable access to patient information for consultation and treatment, yet manual processes and disconnected applications make that access slow and incomplete. Patients who cannot travel have limited ways to consult a doctor. Sensitive data needs strong protection, and using it for analytics or collaborative learning creates additional privacy risk. Doctors would also benefit from help noticing medication conflicts and early warning signs without losing control of decisions. The problem addressed here is to design and build a telemedicine and EHR platform that (i) supports appointments, video consultation, records and prescriptions, (ii) restricts data access by role, (iii) specifies how analytics and learning can proceed without exposing raw patient records, and (iv) keeps clinical alerts advisory and explainable.
B. Objectives
1) Develop a web-based telemedicine and EHR platform with registration, authentication and role-based access.
2) Support online appointment scheduling and WebRTC video consultation between patients and doctors.
3) Maintain digital medical records and prescriptions, including PDF generation with QR support.
4) Apply and document security mechanisms: JWT authentication, RBAC, encryption and configuration hygiene.
5) Specify consent management, audit logging, pseudonymisation and differentially private search.
6) Specify medication-interaction detection, deterioration-risk prediction and federated learning across simulated clinic nodes, with explainable, reviewable alerts.
7) Report what has been implemented and what remains unverified.
IV. Research Gap and Motivation
The literature offers strong individual pieces: secure EHR practice, federated learning, differential privacy and explainable models. What is less visible is how these pieces attach to the ordinary workflow of a working telemedicine application, where a patient books, consults and receives a prescription. Table II lists the practical gaps targeted by MediVault and marks the status of each response. The gaps come from the limitations of the surveyed approaches and from the structure of conventional clinic workflows, not from a measured comparison.
Table II: Identified Gaps and the MediVault Response
|
Gap |
MediVault response |
Status |
|
Manual appointments and paper records |
Online booking and digital EHR |
Impl. |
|
Travel barriers to consultation |
WebRTC video consultation |
Impl. |
|
Paper prescriptions |
Digital prescriptions with PDF and QR |
Impl. |
|
Uncontrolled access to records |
JWT authentication and RBAC |
Impl. |
|
Weak control of data use |
Consent management, audit log |
Prop. |
|
Identifiable analytics data |
Keyed-hash pseudonymisation |
Prop. |
|
Raw data pooling for learning |
Federated learning with DP |
Prop. |
|
Unnoticed drug conflicts and deterioration |
Explainable, reviewable alerts |
Prop. |
V. Proposed System Architecture
A. Overview
MediVault follows a frontend–backend architecture. A React and TypeScript single-page application, built with Vite and styled with Material UI, talks to an Express.js backend over HTTP and WebSocket connections. The backend implements authentication and authorisation, appointment and record services, prescription generation and real-time signalling, and persists data in MongoDB through Mongoose. WebRTC carries the audio and video stream between patient and doctor, with Socket.io used for event signalling. Figure 1 shows the layers. Solid boxes are implemented in the repository; dashed boxes belong to the proposed privacy and clinical layers, which would sit beside the same database and API.
Figure 1: Layered architecture of MediVault. Solid grey boxes: implemented in the repository. Dashed orange boxes: proposed privacy and clinical layers (not yet implemented or evaluated).
B. Users and Roles
The platform distinguishes six roles. Patients register, search for doctors, book and manage appointments, join consultations and view their own records and prescriptions. Doctors manage their schedule, conduct consultations, create prescriptions and view records they are authorised to see. Nurses and clinic staff assist with appointments and vital signs within their permissions. Clinic administrators manage staff accounts, clinic information and, in the proposed design, consent policy and audit logs. Researchers are limited to de-identified or aggregate outputs. System administrators manage configuration, backups and technical access. The first three are central to the implemented core; the researcher role depends on the proposed privacy layer.
C. Modules
The core modules are (1) authentication and authorisation, (2) profile management, (3) appointment management, (4) video consultation, (5) EHR management and (6) prescription management. The proposed modules are (7) consent and audit management, (8) privacy-preserving search, (9) medication-interaction detection, (10) deterioration-risk prediction, (11) federated learning and (12) the doctor and administrator dashboards. Separating modules lets each be tested and replaced on its own and supports the maintainability target in Section VIII.
D. Deployment
The repository provides a Docker Compose configuration that starts the backend and frontend together: the backend API listens on port 5000 and the frontend is served through Nginx on port 80. The services can alternatively be run locally with npm. Configuration, including the database URI, token secrets and the encryption key, is supplied through environment variables so that secrets stay out of source control.
VI. Methodology and Workflow
This section describes the workflow of the implemented core and then the algorithms of the proposed early-warning layer. The latter are specified, not evaluated.
A. Core Clinical Workflow (Implemented)
A typical interaction proceeds as follows. A user registers and logs in; the backend verifies the credentials, issues a JWT and applies role-based permissions. A patient searches for a doctor and books an available slot; the system must reject a second booking of the same slot. At the appointment time, patient and doctor join a WebRTC video session, with Socket.io carrying signalling events. After the consultation the doctor records clinical notes and creates a prescription, which the platform can render as a PDF carrying a QR code. The patient can later view the record and prescription, and every step is restricted to authorised roles.
Figure 2: Implemented core workflow from login to prescription (sequence view).
B. Authorisation and Slot Integrity (Implemented)
Every protected request passes through token verification and a role check. Writing ρ(u) for the role of user u, P for the set of permitted (role, action, resource-type) triples, and scope(u, r) for the ownership or assignment relation between a user and a record, access is allowed only when
(2)
A patient can therefore read only their own record, a doctor only the records of patients assigned to them, and neither can reach administrator operations. For appointments, the requirement is that a doctor–slot pair can be held by at most one booking, so a concurrent second request is rejected rather than silently overwriting the first.
C. Consent and Audit (Proposed)
Consent is modelled as a per-patient set of permitted purposes, for example treatment, analytics and research. Before any use of a record outside direct care, the privacy layer checks that the purpose is permitted for that patient and denies the request otherwise. Every sensitive operation (login, record access, modification, consent change, search, alert review) writes an audit entry holding the actor, role, action, resource, purpose, result and timestamp. Consent changes are themselves audited, so the permission history can be reconstructed.
D. Pseudonymisation and De-identification (Proposed)
For analytics, direct identifiers are replaced by pseudonyms derived with a keyed hash. For a patient identifier i and a secret key K held only by the privacy service,
π(i) = Trunc(HMAC-SHA256K(i)), (3)
which is stable, so a patient’s analytical records still link together, but is not reversible without K. Quasi-identifiers such as age are generalised to bands, and free-text fields are encrypted. The pseudonymised record is stored in a separate analytics collection, and the transformation is audited. Pseudonymisation reduces, but does not eliminate, re-identification risk, so it is combined with consent checks and differential privacy rather than relied on alone.
E. Privacy-Preserving Search (Proposed)
A search request is authenticated, its permitted privacy mode is determined from the requester’s role, and patient consent filters are applied before the index is queried. For individual-level queries by authorised clinicians, fields the requester may not see are removed. For researchers, only aggregate answers are returned. A counting query q has sensitivity ∆q = 1 because adding or removing one patient changes the count by at most one, so the Laplace mechanism
(4)
satisfies Eq. (1). Each query spends part of a privacy budget; when the budget is exhausted further aggregate queries are refused. The query and result count are logged.
F. Medication-Interaction Detection (Proposed)
When a prescription is created, the engine retrieves the patient’s active medications A and compares the new drug m against each a ∈ A using a rule table that assigns an interaction weight w(m, a) ∈ [0, 1]. It also checks the patient’s allergy and contraindication lists. The severity score is
(5)
and an alert is raised when S(m) ≥ τint for a configured threshold. Duplicate-therapy detection is handled by the same lookup. The alert carries the conflicting pair and the rule source as evidence. The rule table is the main source of clinical correctness and must be curated and validated by qualified pharmacists or clinicians before any real use.
G. Deterioration-Risk Prediction (Proposed)
From a patient’s recent history the module builds a feature vector x containing latest vital signs, their short-term trends (for example the least-squares slope of heart rate or SpO2 over the recent window), diagnosis flags, medication count and appointment adherence. A trained classifier returns a risk score
r = fθ(x) ∈ [0, 1], (6)
and an alert is generated when r ≥ τrisk. The classifier is a candidate for a tree-based or logistic model; the choice and threshold must be set from validation data, with attention to the false-positive rate because excessive alerts reduce usefulness. For explanation, the per-feature attribution ϕj of each feature xj is computed with SHAP17, so the alert lists the features that pushed the score up, with their values. The score is an aid to review, not a diagnosis.
H. Alert Lifecycle (Proposed)
Figure 3 summarises the path from a triggering event to a reviewed alert. Alerts are displayed with severity, score, explanation, evidence references and a recommended action. The doctor can acknowledge, dismiss or escalate each alert, and the reviewer and time are recorded. The design target is that an alert can be reviewed in fewer than three clicks and appears within ten seconds of the triggering update.
Figure 3: Proposed alert lifecycle. Every alert is advisory and is closed only by a doctor’s decision.
I. Federated Learning with Differential Privacy (Proposed)
Two or three simulated clinic nodes each hold a local synthetic dataset. In round t the coordinator sends the global parameters wt to every node; node k trains locally on its nk samples and returns an update ∆k. To limit what an update reveals, the node clips it to norm C and adds Gaussian noise before sending:
(7)
The coordinator then applies Federated Averaging18,
(8)
records the round and model version, and repeats for the configured number of rounds. Only protected updates leave a node. The coordinator stores bucketed dataset sizes, the privacy budget spent and the last synchronisation time, never raw records. Figure 4 shows the exchange. Whether such updates provide a meaningful guarantee depends on the noise scale, the number of rounds and the accounting method, which are exactly what the planned experiments must measure.
Figure 4: Proposed federated learning round: global parameters out, clipped and noised updates back; raw records stay at each clinic.
J. Role of Human Oversight
Across the proposed layer, the system never changes a prescription, diagnosis or treatment. Interaction and risk alerts recommend review; consent decisions belong to the patient; privacy budgets are enforced by code and not by user discretion. This follows the human-in-the-loop principle19 and keeps responsibility for clinical decisions with qualified professionals.
VII. Implementation and Technologies
A. Technology Stack
Table III lists the technologies identified in the project repository. The proposed extensions would add a Python-based machine-learning service, with candidate libraries such as FastAPI, Scikit-learn, XGBoost, Flower and Opacus for learning, federated training and differentially private optimisation; these are proposals and not part of the confirmed stack.
Table III: Technology Stack of MediVault (Implemented)
|
Layer |
Technology |
Role |
|
Frontend |
React 19, TypeScript, Vite |
Views, state, API calls |
|
UI |
Material UI |
Components, styling |
|
Backend |
Node.js 18+, Express.js, TypeScript |
REST API, logic |
|
Database |
MongoDB, Mongoose |
Records, schemas |
|
Real time |
Socket.io, WebRTC |
Signalling, video |
|
Documents |
PDFKit |
Prescription PDF, QR |
|
Security |
JWT, AES-256, RBAC |
Auth, encryption, roles |
|
Deployment |
Docker, Docker Compose, Nginx |
Containers, serving |
|
Tooling |
Git, GitHub, npm |
Source control, packages |
B. Frontend and Backend
The frontend is organised as reusable React components with TypeScript typing, giving role-specific dashboards for patients and doctors. The backend exposes REST endpoints for authentication, profiles, appointments, records and prescriptions, applies middleware for token verification and role checks, and connects to MongoDB through Mongoose schemas that provide structure and validation. Socket.io events carry session signalling and notifications. The separation of interface, API, data and communication layers lets each be modified independently.
C. Data Model
MongoDB stores flexible documents, which suits records whose fields vary by encounter. Table IV summarises the proposed logical collections. The patient and record collections, appointments and prescriptions correspond to the core platform; the remaining collections support the proposed layers. The final schema may differ in names and fields.
Table IV: Proposed Logical Data Model
|
Collection |
Key fields |
|
Patients |
id, pseudonym id, age band, blood group, allergies, chronic conditions, consent status |
|
Medical records |
record id, patient, doctor, diagnosis, symptoms, notes, type |
|
Prescriptions |
medication, dosage, frequency, duration, status, dates |
|
Vitals |
blood pressure, heart rate, temperature, SpO2, time |
|
Medications |
drug class, contraindications, interaction rules, source |
|
Clinical alerts |
type, severity, score, explanation, evidence, status, reviewer |
|
Audit logs |
actor, role, action, resource, purpose, result, time |
|
Federated nodes |
clinic, dataset-size bucket, model version, privacy budget, last sync |
D. Security Configuration
Authentication uses JSON Web Tokens with separate secrets for access and refresh tokens, and the repository describes AES-256 encryption for health records using a key supplied by environment variable. Database connection strings, token secrets and the encryption key are kept in an environment file derived from an example file, and must never be committed to a public repository or reproduced in documentation. Access to records is intended to follow the minimum-necessary principle through RBAC. The repository’s encryption and architecture description should not be read as HIPAA certification or regulatory compliance; no such certification has been sought or obtained.
E. Threat Model and Mitigations
Table V relates the main threats to the mechanisms that address them. It is a design summary, not a penetration-test result: the mitigations marked as implemented are described in the repository, and none has been independently audited.
Table V: Threats and Mitigations
|
Threat |
Mitigation |
Status |
|
Unauthorised record access |
JWT authentication, RBAC (Eq. 2) |
Impl. |
|
Stolen database copy |
AES-256 encryption of health records |
Impl. |
|
Leaked secrets |
Environment variables, never committed |
Impl. |
|
Eavesdropping in transit |
TLS at the web server |
Target |
|
Re-identification from analytics data |
Pseudonyms, generalisation, DP |
Prop. |
|
Leakage via federated updates |
Clipping and Gaussian noise |
Prop. |
|
Unreviewed clinical action |
Advisory alerts, doctor decides |
Prop. |
|
Untraceable actions |
Timestamped audit log |
Prop. |
F. Prescriptions and Video Consultation
Digital prescriptions record medication, dosage, frequency, duration and instructions together with the prescribing doctor; PDFKit renders them into a PDF, and a QR code is supported for quick retrieval. Video consultation uses WebRTC for browser-to-browser media, which reduces dependence on a central media server for the stream itself. Consultation quality therefore depends on network conditions and device capability, which we list among the limitations.
G. Running the Application
The repository documents two ways to run the platform. For local development, the backend and frontend are started separately from their directories:
cd backend && npm install && npm run dev
cd frontend && npm install && npm run dev
For a containerised run, docker-compose up --build from the project root starts both services, and docker-compose down stops them. Before either, an environment file is created from the provided example and filled with the database URI, the two token secrets and the encryption key.
VIII. Evaluation Plan and Current Status
A. Evaluation Approach
The evaluation is functional and planned around the main modules. It is not yet a quantitative performance study: no latency, accuracy, privacy-leakage, usability or clinical-outcome measurements have been recorded, and none are claimed. Testing covers unit-level checks (authentication functions, input validation), integration checks (frontend, backend, database and communication services), functional checks of user-visible workflows, security checks (invalid logins, unauthorised access, exposure of configuration values) and performance checks under load.
B. Test Cases and Status
Table VI lists the defined test cases. Thirteen are defined, eight functional (TC) and five integration (IT). The expected results are specified, but the actual results have not yet been recorded, so all thirteen are reported as pending rather than passed.
Table VI: Defined Test Cases and Their Current Status
|
ID |
Scenario |
Status |
|
TC-01 |
User registration |
Pending |
|
TC-02 |
Valid login |
Pending |
|
TC-03 |
Invalid login rejected |
Pending |
|
TC-04 |
Appointment operations |
Pending |
|
TC-05 |
Authorised record access |
Pending |
|
TC-06 |
Video consultation workflow |
Pending |
|
TC-07 |
Prescription and PDF generation |
Pending |
|
TC-08 |
Database connection |
Pending |
|
IT-01 |
Frontend ↔ backend |
Pending |
|
IT-02 |
Backend ↔ MongoDB |
Pending |
|
IT-03 |
Authentication and access control |
Pending |
|
IT-04 |
Prescription → PDF |
Pending |
|
IT-05 |
Telemedicine communication |
Pending |
|
Total |
13 defined |
0 recorded |
C. Security Checks and Result Recording
The planned security checks are: invalid credentials must not grant access; protected endpoints must reject requests without a valid token or with the wrong role; sensitive configuration values must not appear in responses or in the public repository; user input must be validated; and sensitive health information must be handled according to the security design. To make results auditable, each executed test will be recorded with its identifier, date, environment, expected result, actual result, pass or fail verdict and a supporting screenshot or log. A test that was not executed stays marked pending. Failed tests will be kept in the record with the fix applied, so the history of defects is visible rather than overwritten.
D. Non-Functional Targets
Table VII lists the targets set in the requirement document. These are goals for demonstration and testing with synthetic data and are not measured results.
Table VII: Non-Functional Targets (Not Yet Measured)
|
Attribute |
Target |
|
Security |
HTTPS, encryption, secure key storage |
|
Privacy |
No raw identifiers in analytics or federated traffic |
|
Availability |
99% during demonstration and testing |
|
Search latency |
Within 2 s for 10,000 synthetic records |
|
Alert latency |
Within 10 s of a relevant update |
|
Scalability |
10,000 synthetic patients, 50,000 clinical events |
|
Usability |
Alert reviewed in fewer than three clicks |
|
Auditability |
Timestamped log of sensitive operations |
E. Planned Experiments for the Proposed Layer
Evaluation of the proposed layer will use synthetic or properly anonymised data only: 1,000–5,000 synthetic patients, 10,000–50,000 clinical events and two or three simulated clinic nodes. Synthetic generators such as Synthea20 can supply realistic but non-real records. Table VIII lists the planned metrics. Alert quality will be measured with precision, recall, F1-score, AUC-ROC, false-positive rate and detection delay; privacy with an estimate of leakage and the accuracy-versus-ε trade-off; and cost with query latency and communication volume in federated rounds. Results should be reported only after the experiments are complete.
Table VIII: Planned Evaluation Metrics for the Proposed Layer
|
Metric |
What it tells us |
|
Precision, recall, F1 |
Correctness and coverage of alerts |
|
AUC-ROC |
Ranking quality of the risk model |
|
False-positive rate |
Frequency of incorrect alerts |
|
Detection delay |
How early deterioration is flagged |
|
Privacy leakage |
Risk of revealing patient identity |
|
Accuracy vs. ε |
Cost of privacy in model quality |
|
Query latency |
Time to serve a search |
|
Communication cost |
Data exchanged per federated round |
F. What the Evidence Supports
At present the evidence is architectural and documentary: the repository implements the core modules and the design specifies the extensions. It supports the claim that the platform has the intended structure and technology stack. It does not support claims about correctness of every workflow, response time, alert accuracy, privacy guarantees, usability or clinical benefit, because those measurements have not been made.
IX. Discussion
A. Design Observations
Three design choices follow from the surveyed work. First, privacy mechanisms are layered: RBAC and encryption protect the operational record, while pseudonymisation, differential privacy and federated learning address secondary use, because no single technique covers both21. Second, alerts are advisory and explainable, so the clinician remains the decision maker22. Third, every sensitive operation is meant to leave an audit entry, which supports accountability and later review.
B. Comparison with Conventional Record Handling
Table IX contrasts conventional paper-based handling with the intended behaviour of MediVault. The right column describes designed functionality, not measured improvement.
Table IX: Conventional Handling versus MediVault (Design Intent)
|
Aspect |
Conventional |
MediVault |
|
Records |
Paper or separate files |
Digital EHR in one database |
|
Consultation |
In person or phone |
Remote video consultation |
|
Appointments |
Manual scheduling |
Online booking |
|
Prescriptions |
Paper slip |
Digital, PDF and QR |
|
Access |
Physical possession |
Role-based, token-authenticated |
|
Secondary use |
Ad hoc sharing |
Consent, pseudonyms, DP (proposed) |
C. Ethical, Legal and Practical Considerations
Medical software needs more than technical correctness. Real patient data must not be used without informed consent and ethical approval, and any deployment would need to satisfy the data-protection law of its jurisdiction. Interaction rules and risk thresholds need clinical validation, since a poor rule table or an uncalibrated model could mislead. Synthetic data may not capture every real-world situation, so performance on it cannot be assumed to carry over. Privacy techniques also have costs: noise lowers accuracy, and federated updates can still leak information if not protected23. Supervisor-group work on privacy-preserving retrieval of data held in vertical partitions is relevant context for the search design24, though it addresses a different setting.
X. Limitations and Future Scope
A. Limitations
The core platform has been built but its test results are not yet recorded, and no quantitative evaluation exists. The privacy and clinical layers are specified but not implemented, so no claim is made about their accuracy, latency or privacy guarantees. The medication rule table and risk model have not been clinically validated. Video consultation depends on a stable connection and device quality. Encryption and configuration choices have not been independently audited, and the project holds no regulatory certification. Synthetic evaluation data will limit generalisation, and the platform has not been used in a real clinic.
B. Future Scope
The first step is to execute and record the 13 defined tests and to extend them with security and load tests. Next comes implementation of consent management, audit logging and pseudonymisation, followed by the alert engines and the federated learning prototype, evaluated on synthetic data with the metrics in Table VIII. Longer-term directions include mobile applications, wearable and IoT vital-sign integration, clinical natural language processing for unstructured notes, knowledge graphs for medication relationships, tamper-evident consent and audit trails, homomorphic encryption for computation on protected data, federated learning across several hospitals, privacy-preserving cohort matching for trials, and doctor feedback to tune alert thresholds. Each of these needs careful validation before any clinical use.
XI. Conclusion
MediVault brings telemedicine, electronic records and digital prescriptions into one web-based platform and surrounds it with role-based access control and encryption. The core is implemented with React, TypeScript, Node.js, Express and MongoDB and is packaged for container deployment. The paper also specifies a privacy-preserving clinical early-warning layer, built from consent management, keyed-hash pseudonymisation, differentially private search, explainable interaction and risk alerts, and federated learning, and it states plainly that this layer is not yet built or evaluated. The evaluation is limited to a defined, still unrecorded set of functional and integration tests. Within that scope the work provides a clear architecture and a concrete roadmap: recorded functional results first, then measured experiments on synthetic data, and only then any claim about performance, privacy or clinical value.
Endnotes
1. I. Keshta and A. Odeh, “Security and privacy of electronic health records: Concerns and challenges,” Egyptian Informatics Journal, vol. 22, no. 2, pp. 177–183, 2021.
2. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Proc. 20th Int. Conf. Artif. Intell. Statist. (AISTATS), 2017, pp. 1273–1282; N. Rieke et al., “The future of digital health with federated learning,” npj Digital Medicine, vol. 3, Art. no. 119, 2020.
3. C. Dwork and A. Roth, “The algorithmic foundations of differential privacy,” Foundations and Trends in Theoretical Computer Science, vol. 9, no. 3–4, pp. 211–407, 2014.
4. I. Keshta and A. Odeh, “Security and privacy of electronic health records: Concerns and challenges,” Egyptian Informatics Journal, vol. 22, no. 2, pp. 177–183, 2021.
5. C. Dwork and A. Roth, “The algorithmic foundations of differential privacy,” Foundations and Trends in Theoretical Computer Science, vol. 9, no. 3–4, pp. 211–407, 2014.
6. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Proc. 20th Int. Conf. Artif. Intell. Statist. (AISTATS), 2017, pp. 1273–1282.
7. N. Rieke et al., “The future of digital health with federated learning,” npj Digital Medicine, vol. 3, Art. no. 119, 2020.
8. M. Abaoud, M. A. Almuqrin, and M. F. Khan, “Advancing federated learning through novel mechanism for privacy preservation in healthcare applications,” IEEE Access, vol. 11, pp. 83562–83579, 2023, doi: 10.1109/ACCESS.2023.3301162.
9. S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems (NeurIPS), 2017, pp. 4765–4774.
10. E. Mosqueira-Rey, E. Hernández-Pereira, D. Alonso-Ríos, J. Bobes-Bascarán, and Á. Fernández-Leal, “Human-in-the-loop machine learning: A state of the art,” Artificial Intelligence Review, vol. 56, pp. 3005–3054, 2023, doi: 10.1007/s10462-022-10246-w.
11. I. Keshta and A. Odeh, “Security and privacy of electronic health records: Concerns and challenges,” Egyptian Informatics Journal, vol. 22, no. 2, pp. 177–183, 2021.
12. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Proc. 20th Int. Conf. Artif. Intell. Statist. (AISTATS), 2017, pp. 1273–1282; N. Rieke et al., “The future of digital health with federated learning,” npj Digital Medicine, vol. 3, Art. no. 119, 2020.
13. C. Dwork and A. Roth, “The algorithmic foundations of differential privacy,” Foundations and Trends in Theoretical Computer Science, vol. 9, no. 3–4, pp. 211–407, 2014.
14. M. Abaoud, M. A. Almuqrin, and M. F. Khan, “Advancing federated learning through novel mechanism for privacy preservation in healthcare applications,” IEEE Access, vol. 11, pp. 83562–83579, 2023, doi: 10.1109/ACCESS.2023.3301162.
15. S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems (NeurIPS), 2017, pp. 4765–4774.
16. E. Mosqueira-Rey, E. Hernández-Pereira, D. Alonso-Ríos, J. Bobes-Bascarán, and Á. Fernández-Leal, “Human-in-the-loop machine learning: A state of the art,” Artificial Intelligence Review, vol. 56, pp. 3005–3054, 2023, doi: 10.1007/s10462-022-10246-w.
17. S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems (NeurIPS), 2017, pp. 4765–4774.
18. B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Proc. 20th Int. Conf. Artif. Intell. Statist. (AISTATS), 2017, pp. 1273–1282.
19. E. Mosqueira-Rey, E. Hernández-Pereira, D. Alonso-Ríos, J. Bobes-Bascarán, and Á. Fernández-Leal, “Human-in-the-loop machine learning: A state of the art,” Artificial Intelligence Review, vol. 56, pp. 3005–3054, 2023, doi: 10.1007/s10462-022-10246-w.
20. M. Abaoud, M. A. Almuqrin, and M. F. Khan, “Advancing federated learning through novel mechanism for privacy preservation in healthcare applications,” IEEE Access, vol. 11, pp. 83562–83579, 2023, doi: 10.1109/ACCESS.2023.3301162.
21. I. Keshta and A. Odeh, “Security and privacy of electronic health records: Concerns and challenges,” Egyptian Informatics Journal, vol. 22, no. 2, pp. 177–183, 2021; N. Rieke et al., “The future of digital health with federated learning,” npj Digital Medicine, vol. 3, Art. no. 119, 2020.
22. S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” in Advances in Neural Information Processing Systems (NeurIPS), 2017, pp. 4765–4774; E. Mosqueira-Rey, E. Hernández-Pereira, D. Alonso-Ríos, J. Bobes-Bascarán, and Á. Fernández-Leal, “Human-in-the-loop machine learning: A state of the art,” Artificial Intelligence Review, vol. 56, pp. 3005–3054, 2023, doi: 10.1007/s10462-022-10246-w.
23. N. Rieke et al., “The future of digital health with federated learning,” npj Digital Medicine, vol. 3, Art. no. 119, 2020.
24. G. V. Sonawane and N. Thoutam, “Design and analysis of three party protocol to retrieve private data by using vertical partitioned data,” International Journal of Electronics, Communication and Soft Computing, 2015.