-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPatientRecords.sql
More file actions
27 lines (27 loc) · 778 Bytes
/
PatientRecords.sql
File metadata and controls
27 lines (27 loc) · 778 Bytes
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
CREATE TABLE PatientRecords (
PatientID INT PRIMARY KEY,
FirstName VARCHAR(255),
LastName VARCHAR(255),
DateOfBirth DATE,
Gender CHAR(1),
Address TEXT,
PhoneNumber VARCHAR(20),
Email VARCHAR(255),
EmergencyContactName VARCHAR(255),
EmergencyContactPhone VARCHAR(20),
PrimaryPhysicianID INT,
InsuranceProvider VARCHAR(255),
InsurancePolicyNumber VARCHAR(50),
MedicalHistory TEXT,
CurrentMedications TEXT,
Allergies TEXT,
TreatmentPlans TEXT,
AppointmentHistory TEXT,
LabResults TEXT,
ImagingResults TEXT,
PrescriptionHistory TEXT,
BillingInformation TEXT,
Notes TEXT,
-- ... additional columns as needed ...
FOREIGN KEY (PrimaryPhysicianID) REFERENCES Physicians(PhysicianID)
);