brotherton-erpnext/erpnext/healthcare/web_form/lab_test/lab_test.json
Anoop 23481cc484
feat: Laboratory Module Enhancements (#22416)
* feat: option to add organism count in descriptive tests
print format to accommodate descriptive test changes
fix: refactoring, clean up wip

* lab test - result based on secondary uom, result format options
lab test print - consider result format options, result legend and worksheet instructions

* feat: option to allow results blank in lab test if configured via lab test template

* fix: rename child doctypes, rename related links

* fix: field display depends on, cleanup - rename fields and variables

* fix: get from encounter popup layout, code cleanup and minor fixes

* fix: sms send dialog bug

* fix: lab test get from encounter html class name typo corrected

* fix: lab test organisms depends on condition

* fix: reorder fields - depends on fields brought together

* fix: PR review feedback, removed : separator, result formatting applied to result UOM

* fix: child table js removed

* fix: internal field require_result_value hidden, secondary uom result field type set to data

* fix: Use ORM methods instead of db.sql, code cleanup, style

* fix: create item price for lab test template if billable, code cleanup

* fix: patch rename doctypes before fields, deleted renamed child doctypes

* fix: secondary uom result calc - warn user if calculation fails

* fix: patch to insert entries into renamed child tables

* fix: codacy issues

* fix: patch duplicate error as items are already migrated in v12 migrate
organisms child table field name updated

* fix: patch a bit lenghty, added comments

* fix: patch

* fix: require_result_value flag marked hidden

* fix: code cleanup-up

* fix: patch - lab_test rename field, lab_test_group_template select option corrected

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
2020-07-23 15:00:54 +05:30

460 lines
9.5 KiB
JSON

{
"accept_payment": 0,
"allow_comments": 1,
"allow_delete": 0,
"allow_edit": 1,
"allow_incomplete": 0,
"allow_multiple": 1,
"allow_print": 1,
"amount": 0.0,
"amount_based_on_field": 0,
"creation": "2017-06-06 16:12:33.052258",
"currency": "INR",
"doc_type": "Lab Test",
"docstatus": 0,
"doctype": "Web Form",
"idx": 0,
"introduction_text": "Lab Test",
"is_standard": 1,
"login_required": 1,
"max_attachment_size": 0,
"modified": "2020-06-22 12:59:49.126398",
"modified_by": "Administrator",
"module": "Healthcare",
"name": "lab-test",
"owner": "Administrator",
"payment_button_label": "Buy Now",
"print_format": "Lab Test Print",
"published": 1,
"route": "lab-test",
"route_to_success_link": 0,
"show_attachments": 0,
"show_in_grid": 0,
"show_sidebar": 1,
"sidebar_items": [],
"success_url": "/lab-test",
"title": "Lab Test",
"web_form_fields": [
{
"allow_read_on_all_link_options": 0,
"fieldname": "lab_test_name",
"fieldtype": "Data",
"hidden": 0,
"label": "Test Name",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "department",
"fieldtype": "Link",
"hidden": 0,
"label": "Department",
"max_length": 0,
"max_value": 0,
"options": "Medical Department",
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "column_break_26",
"fieldtype": "Column Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "company",
"fieldtype": "Link",
"hidden": 0,
"label": "Company",
"max_length": 0,
"max_value": 0,
"options": "Company",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "status",
"fieldtype": "Select",
"hidden": 0,
"label": "Status",
"max_length": 0,
"max_value": 0,
"options": "Draft\nCompleted\nApproved\nRejected\nCancelled",
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "submitted_date",
"fieldtype": "Datetime",
"hidden": 0,
"label": "Submitted Date",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "sb_first",
"fieldtype": "Section Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "patient",
"fieldtype": "Link",
"hidden": 0,
"label": "Patient",
"max_length": 0,
"max_value": 0,
"options": "Patient",
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "patient_name",
"fieldtype": "Data",
"hidden": 0,
"label": "Patient Name",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "patient_age",
"fieldtype": "Data",
"hidden": 0,
"label": "Age",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "patient_sex",
"fieldtype": "Link",
"hidden": 0,
"label": "Gender",
"max_length": 0,
"max_value": 0,
"options": "Gender",
"read_only": 0,
"reqd": 1,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "inpatient_record",
"fieldtype": "Link",
"hidden": 0,
"label": "Inpatient Record",
"max_length": 0,
"max_value": 0,
"options": "Inpatient Record",
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "report_preference",
"fieldtype": "Data",
"hidden": 0,
"label": "Report Preference",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "email",
"fieldtype": "Data",
"hidden": 1,
"label": "Email",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "mobile",
"fieldtype": "Data",
"hidden": 1,
"label": "Mobile",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "c_b",
"fieldtype": "Column Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "practitioner",
"fieldtype": "Link",
"hidden": 0,
"label": "Requesting Practitioner",
"max_length": 0,
"max_value": 0,
"options": "Healthcare Practitioner",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "practitioner_name",
"fieldtype": "Data",
"hidden": 0,
"label": "Requesting Practitioner",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "requesting_department",
"fieldtype": "Link",
"hidden": 0,
"label": "Requesting Department",
"max_length": 0,
"max_value": 0,
"options": "Medical Department",
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "employee",
"fieldtype": "Link",
"hidden": 0,
"label": "Employee (Lab Technician)",
"max_length": 0,
"max_value": 0,
"options": "Employee",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "employee_name",
"fieldtype": "Data",
"hidden": 0,
"label": "Lab Technician Name",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "employee_designation",
"fieldtype": "Data",
"hidden": 0,
"label": "Lab Technician Designation",
"max_length": 0,
"max_value": 0,
"read_only": 1,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "sb_normal",
"fieldtype": "Section Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "lab_test_html",
"fieldtype": "HTML",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "normal_test_items",
"fieldtype": "Table",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"options": "Normal Test Result",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "sb_descriptive",
"fieldtype": "Section Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "descriptive_test_items",
"fieldtype": "Table",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"options": "Descriptive Test Result",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"depends_on": "special_toggle",
"fieldname": "organisms_section",
"fieldtype": "Section Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "organisms",
"fieldtype": "Table",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"options": "Organism Test Result",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "sb_sensitivity",
"fieldtype": "Section Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "sensitivity_test_items",
"fieldtype": "Table",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"options": "Sensitivity Test Result",
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "sb_comments",
"fieldtype": "Section Break",
"hidden": 0,
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "lab_test_comment",
"fieldtype": "Text",
"hidden": 0,
"label": "Comments",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "sb_customresult",
"fieldtype": "Section Break",
"hidden": 0,
"label": "Custom Result",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
},
{
"allow_read_on_all_link_options": 0,
"fieldname": "custom_result",
"fieldtype": "Text Editor",
"hidden": 0,
"label": "Custom Result",
"max_length": 0,
"max_value": 0,
"read_only": 0,
"reqd": 0,
"show_in_filter": 0
}
]
}