fix: vital signs title field
This commit is contained in:
parent
30314f18f7
commit
2888e12dfc
@ -247,6 +247,7 @@
|
||||
},
|
||||
{
|
||||
"allow_on_submit": 1,
|
||||
"columns": 5,
|
||||
"fieldname": "title",
|
||||
"fieldtype": "Data",
|
||||
"hidden": 1,
|
||||
@ -258,7 +259,7 @@
|
||||
],
|
||||
"is_submittable": 1,
|
||||
"links": [],
|
||||
"modified": "2020-04-27 23:18:08.278064",
|
||||
"modified": "2020-05-17 22:23:24.632286",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Healthcare",
|
||||
"name": "Vital Signs",
|
||||
|
@ -19,8 +19,8 @@ class VitalSigns(Document):
|
||||
delete_vital_signs_from_medical_record(self)
|
||||
|
||||
def set_title(self):
|
||||
self.title = _('{0} on {1} {2}').format(self.patient_name or self.patient,
|
||||
frappe.utils.format_date(self.signs_date), frappe.utils.format_time(self.signs_time))[:100]
|
||||
self.title = _('{0} on {1}').format(self.patient_name or self.patient,
|
||||
frappe.utils.format_date(self.signs_date))[:100]
|
||||
|
||||
def insert_vital_signs_to_medical_record(doc):
|
||||
subject = set_subject_field(doc)
|
||||
|
Loading…
Reference in New Issue
Block a user