fix: Therapy Type and Therapy Plan field visibility in Patient Appointment

This commit is contained in:
Rucha Mahabal 2020-12-16 15:54:06 +05:30
parent f8d6726990
commit 5a8a52b9c6

View File

@ -23,9 +23,9 @@
"procedure_template", "procedure_template",
"get_procedure_from_encounter", "get_procedure_from_encounter",
"procedure_prescription", "procedure_prescription",
"therapy_plan",
"therapy_type", "therapy_type",
"get_prescribed_therapies", "get_prescribed_therapies",
"therapy_plan",
"practitioner", "practitioner",
"practitioner_name", "practitioner_name",
"department", "department",
@ -284,7 +284,7 @@
"report_hide": 1 "report_hide": 1
}, },
{ {
"depends_on": "eval:doc.patient;", "depends_on": "eval:doc.patient && doc.therapy_plan;",
"fieldname": "therapy_type", "fieldname": "therapy_type",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Therapy", "label": "Therapy",
@ -292,17 +292,16 @@
"set_only_once": 1 "set_only_once": 1
}, },
{ {
"depends_on": "eval:doc.patient && doc.__islocal;", "depends_on": "eval:doc.patient && doc.therapy_plan && doc.__islocal;",
"fieldname": "get_prescribed_therapies", "fieldname": "get_prescribed_therapies",
"fieldtype": "Button", "fieldtype": "Button",
"label": "Get Prescribed Therapies" "label": "Get Prescribed Therapies"
}, },
{ {
"depends_on": "eval: doc.patient && doc.therapy_type", "depends_on": "eval: doc.patient;",
"fieldname": "therapy_plan", "fieldname": "therapy_plan",
"fieldtype": "Link", "fieldtype": "Link",
"label": "Therapy Plan", "label": "Therapy Plan",
"mandatory_depends_on": "eval: doc.patient && doc.therapy_type",
"options": "Therapy Plan" "options": "Therapy Plan"
}, },
{ {
@ -348,7 +347,7 @@
} }
], ],
"links": [], "links": [],
"modified": "2020-05-21 03:04:21.400893", "modified": "2020-12-16 13:16:58.578503",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Healthcare", "module": "Healthcare",
"name": "Patient Appointment", "name": "Patient Appointment",