Sie sind auf Seite 1von 2

Health Diary Database

POSSIBLE ADDITIONAL FEATURES: BMI CALCULATOR, ALLERGY HISTORY

1. User (contains users’ personal information, role, notification-related ids, activation status)
a. ID (primary, generate using uniqid(“hd@”,true) in PHP )
b. Email (unique – not null)
c. Password (SHA1 hash – not null)
d. FirstName (not null)
e. LastName (not null)
f. Sex ( 1 – male / 0 - female)
g. Date of birth (TEXT) (yyyy-dd-mm)
h. Height (in meters)
i. Weight (in kg)
j. isObserver (0 – false/ 1 - true)
k. isActive (0 – inactive/ 1 - active)
l. isUpdated (0 – inactive/ 1 - active)
m. UpdatedTimeStamp (yyMMddhhmmss)
2. ChronicDisease (contains information about users’ chronic conditions)
a. ID (int – autoincrement – primary key)
b. UserID (foreign key[User] – not null)
c. ConditionName (not null)
d. Note
e. isActive
f. isUpdated
g. UpdatedTimeStamp
3. Permission (contains relationship between patient-observer)
a. ID (int – autoincrement – primary key)
b. PatientID (foreign key[User] – not null)
c. ObserverID (foreign key[User] – not null)
d. isActive
e. isUpdated
f. UpdatedTimeStamp
4. Blood Pressure & Heartrate
a. ID (int – autoincrement – primary key)
b. PatientID
c. Systolic
d. Diastolic
e. HeartRate
f. Condition (RESTED/POST-EXERCISE)
g. isActive
h. isUpdated
i. UpdatedTimeStamp
5. Weight
a. ID (int – autoincrement – primary key)
b. PatientID
c. Weight
d. BMI
e. isUpdated
f. isActive
g. UpdatedTimeStamp
6. Blood Sugar
a. ID (int – autoincrement – primary key)
b. PatientID
c. RecordType (NORMAL-FASTING)
d. SugarLevel
e. isActive
f. isUpdated
g. UpdatedTimeStamp
7. Prescription
a. ID (int – autoincrement – primary key)
b. PatientID
c. Name
d. Condition
e. ValidFromDate
f. ValidToDate
g. isReminding
h. isActive
i. isUpdated
j. UpdatedTimeStamp
8. Medicine (details of prescription)
a. ID (int – autoincrement – primary key)
b. PresID
c. MedicineName
d. ActiveIngredient (nullable)
e. Dosage
f. isAllergic (hidden – for possible future updates)
g. isActive
h. isUpdated
i. UpdatedTimeStamp
9. Remind (might not need to be synchronized / possible local-only content)
a. ID (int – autoincrement – primary key)
b. MedID
c. TimeRemind
d. isActive ?
e. isUpdated ?
f. UpdatedTimeStamp ?

Das könnte Ihnen auch gefallen