mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
fix(healthcare): patient vitals undefined (#21906)
This commit is contained in:
@@ -512,10 +512,10 @@ def get_children(doctype, parent, company, is_root=False):
|
|||||||
def get_patient_vitals(patient, from_date=None, to_date=None):
|
def get_patient_vitals(patient, from_date=None, to_date=None):
|
||||||
if not patient: return
|
if not patient: return
|
||||||
|
|
||||||
vitals = frappe.db.get_all('Vital Signs', {
|
vitals = frappe.db.get_all('Vital Signs', filters={
|
||||||
'docstatus': 1,
|
'docstatus': 1,
|
||||||
'patient': patient
|
'patient': patient
|
||||||
}, order_by='signs_date, signs_time')
|
}, order_by='signs_date, signs_time', fields=['*'])
|
||||||
|
|
||||||
if len(vitals):
|
if len(vitals):
|
||||||
return vitals
|
return vitals
|
||||||
|
|||||||
Reference in New Issue
Block a user