{
 "actions": [],
 "allow_import": 1,
 "allow_rename": 1,
 "autoname": "field:healthcare_service_unit_name",
 "beta": 1,
 "creation": "2016-09-21 13:48:14.731437",
 "description": "Healthcare Service Unit",
 "doctype": "DocType",
 "document_type": "Setup",
 "editable_grid": 1,
 "engine": "InnoDB",
 "field_order": [
  "healthcare_service_unit_name",
  "is_group",
  "service_unit_type",
  "allow_appointments",
  "overlap_appointments",
  "service_unit_capacity",
  "inpatient_occupancy",
  "occupancy_status",
  "column_break_9",
  "company",
  "warehouse",
  "tree_details_section",
  "parent_healthcare_service_unit",
  "lft",
  "rgt",
  "old_parent"
 ],
 "fields": [
  {
   "fieldname": "healthcare_service_unit_name",
   "fieldtype": "Data",
   "hide_days": 1,
   "hide_seconds": 1,
   "in_global_search": 1,
   "in_list_view": 1,
   "label": "Service Unit",
   "reqd": 1,
   "unique": 1
  },
  {
   "bold": 1,
   "fieldname": "parent_healthcare_service_unit",
   "fieldtype": "Link",
   "hide_days": 1,
   "hide_seconds": 1,
   "ignore_user_permissions": 1,
   "in_list_view": 1,
   "label": "Parent Service Unit",
   "options": "Healthcare Service Unit"
  },
  {
   "bold": 1,
   "default": "0",
   "depends_on": "eval:doc.inpatient_occupancy != 1 && doc.allow_appointments != 1",
   "fieldname": "is_group",
   "fieldtype": "Check",
   "hide_days": 1,
   "hide_seconds": 1,
   "label": "Is Group"
  },
  {
   "bold": 1,
   "depends_on": "eval:doc.is_group != 1",
   "fieldname": "service_unit_type",
   "fieldtype": "Link",
   "hide_days": 1,
   "hide_seconds": 1,
   "label": "Service Unit Type",
   "options": "Healthcare Service Unit Type"
  },
  {
   "default": "0",
   "depends_on": "eval:doc.is_group != 1 && doc.inpatient_occupancy != 1",
   "fetch_from": "service_unit_type.allow_appointments",
   "fieldname": "allow_appointments",
   "fieldtype": "Check",
   "hide_days": 1,
   "hide_seconds": 1,
   "in_list_view": 1,
   "label": "Allow Appointments",
   "no_copy": 1,
   "read_only": 1
  },
  {
   "default": "0",
   "depends_on": "eval:doc.is_group != 1 && doc.allow_appointments == 1 && doc.inpatient_occupany != 1",
   "fetch_from": "service_unit_type.overlap_appointments",
   "fieldname": "overlap_appointments",
   "fieldtype": "Check",
   "hide_days": 1,
   "hide_seconds": 1,
   "label": "Allow Overlap",
   "no_copy": 1,
   "read_only": 1
  },
  {
   "bold": 1,
   "default": "0",
   "depends_on": "eval:doc.allow_appointments != 1 && doc.is_group != 1",
   "fetch_from": "service_unit_type.inpatient_occupancy",
   "fieldname": "inpatient_occupancy",
   "fieldtype": "Check",
   "hide_days": 1,
   "hide_seconds": 1,
   "in_list_view": 1,
   "label": "Inpatient Occupancy",
   "no_copy": 1,
   "read_only": 1,
   "search_index": 1
  },
  {
   "depends_on": "eval:doc.inpatient_occupancy == 1",
   "fieldname": "occupancy_status",
   "fieldtype": "Select",
   "hide_days": 1,
   "hide_seconds": 1,
   "label": "Occupancy Status",
   "no_copy": 1,
   "options": "Vacant\nOccupied",
   "read_only": 1
  },
  {
   "fieldname": "column_break_9",
   "fieldtype": "Column Break",
   "hide_days": 1,
   "hide_seconds": 1
  },
  {
   "bold": 1,
   "depends_on": "eval:doc.is_group != 1",
   "fieldname": "warehouse",
   "fieldtype": "Link",
   "hide_days": 1,
   "hide_seconds": 1,
   "label": "Warehouse",
   "no_copy": 1,
   "options": "Warehouse"
  },
  {
   "fieldname": "company",
   "fieldtype": "Link",
   "hide_days": 1,
   "hide_seconds": 1,
   "ignore_user_permissions": 1,
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Company",
   "options": "Company",
   "remember_last_selected_value": 1,
   "reqd": 1,
   "search_index": 1
  },
  {
   "fieldname": "lft",
   "fieldtype": "Int",
   "hidden": 1,
   "hide_days": 1,
   "hide_seconds": 1,
   "label": "lft",
   "no_copy": 1,
   "print_hide": 1,
   "search_index": 1
  },
  {
   "fieldname": "rgt",
   "fieldtype": "Int",
   "hidden": 1,
   "hide_days": 1,
   "hide_seconds": 1,
   "label": "rgt",
   "no_copy": 1,
   "print_hide": 1,
   "search_index": 1
  },
  {
   "fieldname": "old_parent",
   "fieldtype": "Link",
   "hidden": 1,
   "hide_days": 1,
   "hide_seconds": 1,
   "ignore_user_permissions": 1,
   "label": "Old Parent",
   "no_copy": 1,
   "options": "Healthcare Service Unit",
   "print_hide": 1,
   "report_hide": 1
  },
  {
   "collapsible": 1,
   "fieldname": "tree_details_section",
   "fieldtype": "Section Break",
   "hide_days": 1,
   "hide_seconds": 1,
   "label": "Tree Details"
  },
  {
   "depends_on": "eval:doc.overlap_appointments == 1",
   "fieldname": "service_unit_capacity",
   "fieldtype": "Int",
   "label": "Service Unit Capacity",
   "mandatory_depends_on": "eval:doc.overlap_appointments == 1",
   "non_negative": 1
  }
 ],
 "is_tree": 1,
 "links": [],
 "modified": "2021-08-19 14:09:11.643464",
 "modified_by": "Administrator",
 "module": "Healthcare",
 "name": "Healthcare Service Unit",
 "nsm_parent_field": "parent_healthcare_service_unit",
 "owner": "Administrator",
 "permissions": [
  {
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Nursing User",
   "share": 1
  },
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Healthcare Administrator",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Physician",
   "share": 1,
   "write": 1
  }
 ],
 "quick_entry": 1,
 "restrict_to_domain": "Healthcare",
 "search_fields": "healthcare_service_unit_name",
 "sort_field": "modified",
 "sort_order": "DESC",
 "title_field": "healthcare_service_unit_name",
 "track_changes": 1
}