Aditya Hase | f3c22f3 | 2019-01-22 18:22:20 +0530 | [diff] [blame] | 1 | from __future__ import unicode_literals |
| 2 | |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 3 | data = { |
| 4 | 'desktop_icons': [ |
| 5 | 'Patient', |
| 6 | 'Patient Appointment', |
Jamsheer | f926911 | 2018-07-16 18:08:53 +0530 | [diff] [blame] | 7 | 'Patient Encounter', |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 8 | 'Lab Test', |
| 9 | 'Healthcare', |
Jamsheer | 14c6ab0 | 2018-10-10 14:44:36 +0530 | [diff] [blame] | 10 | 'Vital Signs', |
| 11 | 'Clinical Procedure', |
| 12 | 'Inpatient Record', |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 13 | 'Accounts', |
| 14 | 'Buying', |
| 15 | 'Stock', |
| 16 | 'HR', |
| 17 | 'ToDo' |
| 18 | ], |
| 19 | 'default_portal_role': 'Patient', |
| 20 | 'restricted_roles': [ |
| 21 | 'Healthcare Administrator', |
| 22 | 'LabTest Approver', |
| 23 | 'Laboratory User', |
| 24 | 'Nursing User', |
| 25 | 'Physician', |
| 26 | 'Patient' |
| 27 | ], |
| 28 | 'custom_fields': { |
Jamsheer | ba11972 | 2018-07-06 15:58:13 +0530 | [diff] [blame] | 29 | 'Sales Invoice': [ |
| 30 | { |
| 31 | 'fieldname': 'patient', 'label': 'Patient', 'fieldtype': 'Link', 'options': 'Patient', |
| 32 | 'insert_after': 'naming_series' |
| 33 | }, |
| 34 | { |
| 35 | 'fieldname': 'patient_name', 'label': 'Patient Name', 'fieldtype': 'Data', 'fetch_from': 'patient.patient_name', |
| 36 | 'insert_after': 'patient', 'read_only': True |
| 37 | }, |
| 38 | { |
Jamsheer | 54ae74e | 2018-07-13 21:10:14 +0530 | [diff] [blame] | 39 | 'fieldname': 'ref_practitioner', 'label': 'Referring Practitioner', 'fieldtype': 'Link', 'options': 'Healthcare Practitioner', |
Jamsheer | ba11972 | 2018-07-06 15:58:13 +0530 | [diff] [blame] | 40 | 'insert_after': 'customer' |
| 41 | } |
| 42 | ], |
| 43 | 'Sales Invoice Item': [ |
| 44 | { |
| 45 | 'fieldname': 'reference_dt', 'label': 'Reference DocType', 'fieldtype': 'Link', 'options': 'DocType', |
| 46 | 'insert_after': 'edit_references' |
| 47 | }, |
| 48 | { |
| 49 | 'fieldname': 'reference_dn', 'label': 'Reference Name', 'fieldtype': 'Dynamic Link', 'options': 'reference_dt', |
| 50 | 'insert_after': 'reference_dt' |
| 51 | } |
| 52 | ] |
Rushabh Mehta | bc4e2cd | 2017-10-17 12:30:34 +0530 | [diff] [blame] | 53 | }, |
| 54 | 'on_setup': 'erpnext.healthcare.setup.setup_healthcare' |
Jamsheer | f926911 | 2018-07-16 18:08:53 +0530 | [diff] [blame] | 55 | } |