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