add gender and birthday
This commit is contained in:
parent
49446bff75
commit
48fec746fd
1 changed files with 3 additions and 1 deletions
|
@ -32,12 +32,14 @@ def hashptid(mrn, hosp='NTUH'):
|
|||
PATIENTS = []
|
||||
|
||||
|
||||
for p in Patient.objects.all():
|
||||
for p in Patient.objects.all().order_by('medical_records'):
|
||||
md5, hash = hashptid(p.medical_records)
|
||||
print (p.medical_records, hash)
|
||||
PATIENTS.append({
|
||||
'ChartNo': p.medical_records,
|
||||
'hash': hash,
|
||||
'gender': p.gender,
|
||||
'birthday': p.birthday,
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue