/
demo draft.txt
137 lines (92 loc) · 1.98 KB
/
demo draft.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
Database collections
Casual Treatment
> id
> patient_id
> dateOfTreatment
> diagnosis:diseases
> medications:meds
> labtest: labtests
Admissions
> id
> patiend_id
> admissiion_date
> initialDiagnosis: diseases
> finalDiagnosis: diseases
> medical_unit: medical_units[1,2,3,4, icu]
> labtest : labtests
// Day wise treatment
Discharges
> id
> patiend_id
> admission_id
> follow_up true/false
> follow_up_date
Followups
> id
> patiend_id
> medication
> labtests
Medications
Operations
Diseases/Disgnosis
-----------------------------
ROLES:
{
Hospital Login
> Verify Births
> Create Death Events
> Create Check-in Account
> Casual Treatmnent
> Admission
> Discharge
> Create Doctor Account
> Prescribe meds
> Assign tests
> Create Nurse Account
> Follow doctors instructions
> by giving dosage
> Create Lab Account
> Create Test
> Assign Reports to PatientID
> Create Pharmacy Account
> Assign meds
}
{
Patient
> Sign up
> View my timeline
> view my tests/reports
> view my admissions
> view my shortTermAdmissions
> view my medications
> view my diagnosis/diseases
> settings
}
// Changes
Add Gender to Patient collections
The Gender however is present in the UIDAI db
Quick Emergency Care
id, checkInDate, checkOutDate, diagnosis, medications:, labtests:\
Full-stay Admission
id, checkInDate, checkOutDate, diagnosis, treatment:ObjectId(treatments)
Follow Up
Have seperate collection for quickCheckins, admissions, and followups.
also have a relation between treatment collection with quickCheckins, admissions etc
treatment:
id, prescriptionDate, diagnosis,
patientDiagnosis
id
diseases:[a,b,c,d ... zN]
status/ active or inactive
diagnosis date
Treatment:{
_id
treatmentDate
checkin : Schema.ObjectId('checkins')
treatmentHospital
treatmentBy
}
vitals : treatment
labtests : treatment
diseases : treatment
medications : treatment