-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.py
More file actions
24 lines (17 loc) · 670 Bytes
/
Copy pathdata.py
File metadata and controls
24 lines (17 loc) · 670 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
'''ARRAY LAYOUT:
*row = person
*column = info
hashcode, first name, last name, birth year, birth month, birth day, gender, weight, height, blood type, [medical conditions], [current medication], DNR, *medical history, address, [emergency contact], insurance, last update
*medical history will either be a list or textfile, will add late
'''
info=open('med_info.txt','r')
info=info.read()
database=[]
patient=info.split("\n")
for entry in patient:
database.append(entry.split(","))
for i in range(len(database)):
for j in range(len(database[i])):
if ";" in database[i][j]:
database[i][j] = database[i][j].split(";")
print(database)