add gender and birthday

This commit is contained in:
Furen Xiao 2025-03-29 06:32:50 +08:00
parent 49446bff75
commit 48fec746fd

View file

@ -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,
})