Prototype for an online patient referral system
- / - go project tree
- /auth - authentication files
- /lib - helpers
- /referralClient - client side
- /referralServer - server side
- /data - patient data, mock HIS
- Origin Hospital (Client)
- Doctor
- Central (Server)
- Patient
- Destination Hospital (Client)
- Hospital Staff
- Doctor
- CA (Handles Certificate Signing)
cd src
go run ./cmd/referralServer
# On another terminal
cd src
go run ./cmd/referralClientNote: request sending/managing is done at frontend
coherent-11-07-2022, remove organizations and practitioners
from https://synthea.mitre.org/downloads
Go to cert-gen directory
cd ./cert-gen
-
Generate root certificate
./ca-gen
-
Generate origin
cp client.cnf origin.cnf
vim origin.cnf
./client-csr-gen origin ./ca-sign origin
-
Generate dest
cp client.cnf dest.cnf
vim dest.cnf
./client-csr-gen dest ./ca-sign dest
-
Generate central
cp client.cnf central.cnf
vim central.cnf
./client-csr-gen central ./ca-sign central
Move ceritificates to auth
cd .. mkdir auth mv cert-gen/.crt cert-gen/.key cert-gen/*.csr auth/
Then replace the test data's serial numbers with saved serial numbers (fillTestData)
After that download the coherent dataset here https://synthea.mitre.org/downloads and move into his/
Patients' citizen ID can be gotten from his data: form '000-00-0000'