{
 "actions": [],
 "allow_events_in_timeline": 1,
 "allow_import": 1,
 "allow_rename": 1,
 "autoname": "naming_series:",
 "beta": 1,
 "creation": "2017-01-23 14:03:49.084370",
 "description": "Patient",
 "doctype": "DocType",
 "document_type": "Document",
 "engine": "InnoDB",
 "field_order": [
  "basic_info",
  "naming_series",
  "first_name",
  "middle_name",
  "last_name",
  "patient_name",
  "sex",
  "blood_group",
  "dob",
  "age_html",
  "image",
  "column_break_14",
  "status",
  "uid",
  "inpatient_record",
  "inpatient_status",
  "report_preference",
  "mobile",
  "phone",
  "email",
  "invite_user",
  "user_id",
  "address_contacts",
  "address_html",
  "column_break_22",
  "contact_html",
  "customer_details_section",
  "customer",
  "customer_group",
  "territory",
  "column_break_24",
  "default_currency",
  "default_price_list",
  "language",
  "personal_and_social_history",
  "occupation",
  "column_break_25",
  "marital_status",
  "sb_relation",
  "patient_relation",
  "allergy_medical_and_surgical_history",
  "allergies",
  "medication",
  "column_break_20",
  "medical_history",
  "surgical_history",
  "risk_factors",
  "tobacco_past_use",
  "tobacco_current_use",
  "alcohol_past_use",
  "alcohol_current_use",
  "column_break_32",
  "surrounding_factors",
  "other_risk_factors",
  "more_info",
  "patient_details"
 ],
 "fields": [
  {
   "fieldname": "basic_info",
   "fieldtype": "Section Break",
   "label": "Patient Demographics",
   "oldfieldtype": "Section Break",
   "options": "fa fa-user"
  },
  {
   "fieldname": "inpatient_status",
   "fieldtype": "Select",
   "in_preview": 1,
   "label": "Inpatient Status",
   "no_copy": 1,
   "options": "\nAdmission Scheduled\nAdmitted\nDischarge Scheduled",
   "read_only": 1
  },
  {
   "fieldname": "inpatient_record",
   "fieldtype": "Link",
   "label": "Inpatient Record",
   "no_copy": 1,
   "options": "Inpatient Record",
   "read_only": 1
  },
  {
   "fieldname": "naming_series",
   "fieldtype": "Select",
   "label": "Series",
   "options": "HLC-PAT-.YYYY.-",
   "print_hide": 1,
   "report_hide": 1,
   "set_only_once": 1
  },
  {
   "bold": 1,
   "fieldname": "patient_name",
   "fieldtype": "Data",
   "in_global_search": 1,
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Full Name",
   "no_copy": 1,
   "read_only": 1,
   "search_index": 1
  },
  {
   "fieldname": "sex",
   "fieldtype": "Link",
   "in_preview": 1,
   "label": "Gender",
   "options": "Gender",
   "reqd": 1
  },
  {
   "bold": 1,
   "fieldname": "blood_group",
   "fieldtype": "Select",
   "in_preview": 1,
   "label": "Blood Group",
   "no_copy": 1,
   "options": "\nA Positive\nA Negative\nAB Positive\nAB Negative\nB Positive\nB Negative\nO Positive\nO Negative"
  },
  {
   "bold": 1,
   "fieldname": "dob",
   "fieldtype": "Date",
   "in_preview": 1,
   "label": "Date of birth",
   "no_copy": 1
  },
  {
   "fieldname": "age_html",
   "fieldtype": "HTML",
   "label": "Age",
   "no_copy": 1,
   "print_hide": 1,
   "read_only": 1,
   "report_hide": 1
  },
  {
   "fieldname": "status",
   "fieldtype": "Select",
   "in_filter": 1,
   "in_list_view": 1,
   "label": "Status",
   "no_copy": 1,
   "options": "Active\nDisabled",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "fieldname": "image",
   "fieldtype": "Attach Image",
   "hidden": 1,
   "in_preview": 1,
   "label": "Image",
   "no_copy": 1,
   "print_hide": 1,
   "width": "50%"
  },
  {
   "fieldname": "column_break_14",
   "fieldtype": "Column Break"
  },
  {
   "description": "If \"Link Customer to Patient\" is checked in Healthcare Settings and an existing Customer is not selected then, a Customer will be created for this Patient for recording transactions in Accounts module.",
   "fieldname": "customer",
   "fieldtype": "Link",
   "ignore_user_permissions": 1,
   "label": "Customer",
   "no_copy": 1,
   "options": "Customer",
   "set_only_once": 1
  },
  {
   "fieldname": "report_preference",
   "fieldtype": "Select",
   "label": "Report Preference",
   "options": "\nEmail\nPrint"
  },
  {
   "bold": 1,
   "fieldname": "mobile",
   "fieldtype": "Data",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Mobile",
   "no_copy": 1,
   "options": "Phone"
  },
  {
   "bold": 1,
   "fieldname": "email",
   "fieldtype": "Data",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Email",
   "no_copy": 1,
   "options": "Email"
  },
  {
   "fieldname": "phone",
   "fieldtype": "Data",
   "in_filter": 1,
   "label": "Phone",
   "no_copy": 1,
   "options": "Phone"
  },
  {
   "collapsible": 1,
   "fieldname": "sb_relation",
   "fieldtype": "Section Break",
   "label": "Patient Relation"
  },
  {
   "fieldname": "patient_relation",
   "fieldtype": "Table",
   "label": "Patient Relation",
   "options": "Patient Relation"
  },
  {
   "collapsible": 1,
   "fieldname": "allergy_medical_and_surgical_history",
   "fieldtype": "Section Break",
   "label": "Allergies, Medical and Surgical History"
  },
  {
   "fieldname": "allergies",
   "fieldtype": "Small Text",
   "ignore_xss_filter": 1,
   "label": "Allergies",
   "no_copy": 1
  },
  {
   "fieldname": "medication",
   "fieldtype": "Small Text",
   "ignore_xss_filter": 1,
   "label": "Medication",
   "no_copy": 1
  },
  {
   "fieldname": "column_break_20",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "medical_history",
   "fieldtype": "Small Text",
   "ignore_xss_filter": 1,
   "label": "Medical History",
   "no_copy": 1
  },
  {
   "fieldname": "surgical_history",
   "fieldtype": "Small Text",
   "ignore_xss_filter": 1,
   "label": "Surgical History",
   "no_copy": 1
  },
  {
   "collapsible": 1,
   "fieldname": "personal_and_social_history",
   "fieldtype": "Section Break",
   "label": "Personal and Social History"
  },
  {
   "fieldname": "occupation",
   "fieldtype": "Data",
   "ignore_xss_filter": 1,
   "label": "Occupation",
   "no_copy": 1
  },
  {
   "fieldname": "column_break_25",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "marital_status",
   "fieldtype": "Select",
   "label": "Marital Status",
   "no_copy": 1,
   "options": "\nSingle\nMarried\nDivorced\nWidow"
  },
  {
   "collapsible": 1,
   "fieldname": "risk_factors",
   "fieldtype": "Section Break",
   "label": "Risk Factors"
  },
  {
   "fieldname": "tobacco_past_use",
   "fieldtype": "Data",
   "ignore_xss_filter": 1,
   "label": "Tobacco Consumption (Past)",
   "no_copy": 1
  },
  {
   "fieldname": "tobacco_current_use",
   "fieldtype": "Data",
   "ignore_xss_filter": 1,
   "label": "Tobacco Consumption (Present)",
   "no_copy": 1
  },
  {
   "fieldname": "alcohol_past_use",
   "fieldtype": "Data",
   "ignore_xss_filter": 1,
   "label": "Alcohol Consumption (Past)",
   "no_copy": 1
  },
  {
   "fieldname": "alcohol_current_use",
   "fieldtype": "Data",
   "ignore_user_permissions": 1,
   "label": "Alcohol Consumption (Present)",
   "no_copy": 1
  },
  {
   "fieldname": "column_break_32",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "surrounding_factors",
   "fieldtype": "Small Text",
   "ignore_xss_filter": 1,
   "label": "Occupational Hazards and Environmental Factors",
   "no_copy": 1
  },
  {
   "fieldname": "other_risk_factors",
   "fieldtype": "Small Text",
   "ignore_xss_filter": 1,
   "label": "Other Risk Factors",
   "no_copy": 1
  },
  {
   "collapsible": 1,
   "collapsible_depends_on": "patient_details",
   "fieldname": "more_info",
   "fieldtype": "Section Break",
   "label": "More Information",
   "oldfieldtype": "Section Break",
   "options": "fa fa-file-text"
  },
  {
   "description": "Additional information regarding the patient",
   "fieldname": "patient_details",
   "fieldtype": "Text",
   "ignore_xss_filter": 1,
   "label": "Patient Details",
   "no_copy": 1
  },
  {
   "fieldname": "default_currency",
   "fieldtype": "Link",
   "label": "Billing Currency",
   "options": "Currency"
  },
  {
   "fieldname": "last_name",
   "fieldtype": "Data",
   "label": "Last Name",
   "no_copy": 1
  },
  {
   "fieldname": "first_name",
   "fieldtype": "Data",
   "label": "First Name",
   "no_copy": 1,
   "oldfieldtype": "Data",
   "reqd": 1
  },
  {
   "fieldname": "middle_name",
   "fieldtype": "Data",
   "label": "Middle Name (optional)",
   "no_copy": 1
  },
  {
   "collapsible": 1,
   "fieldname": "customer_details_section",
   "fieldtype": "Section Break",
   "label": "Customer Details"
  },
  {
   "fieldname": "customer_group",
   "fieldtype": "Link",
   "label": "Customer Group",
   "options": "Customer Group"
  },
  {
   "fieldname": "territory",
   "fieldtype": "Link",
   "label": "Territory",
   "options": "Territory"
  },
  {
   "fieldname": "column_break_24",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "default_price_list",
   "fieldtype": "Link",
   "label": "Default Price List",
   "options": "Price List"
  },
  {
   "fieldname": "language",
   "fieldtype": "Link",
   "label": "Print Language",
   "options": "Language"
  },
  {
   "depends_on": "eval:!doc.__islocal",
   "fieldname": "address_contacts",
   "fieldtype": "Section Break",
   "label": "Address and Contact",
   "options": "fa fa-map-marker"
  },
  {
   "fieldname": "address_html",
   "fieldtype": "HTML",
   "label": "Address HTML",
   "no_copy": 1,
   "read_only": 1
  },
  {
   "fieldname": "column_break_22",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "contact_html",
   "fieldtype": "HTML",
   "label": "Contact HTML",
   "no_copy": 1,
   "read_only": 1
  },
  {
   "allow_in_quick_entry": 1,
   "default": "1",
   "fieldname": "invite_user",
   "fieldtype": "Check",
   "label": "Invite as User",
   "no_copy": 1,
   "read_only_depends_on": "eval: doc.user_id"
  },
  {
   "fieldname": "user_id",
   "fieldtype": "Read Only",
   "label": "User ID",
   "no_copy": 1,
   "options": "User"
  },
  {
   "allow_in_quick_entry": 1,
   "bold": 1,
   "fieldname": "uid",
   "fieldtype": "Data",
   "in_standard_filter": 1,
   "label": "Identification Number (UID)",
   "unique": 1
  }
 ],
 "icon": "fa fa-user",
 "image_field": "image",
 "links": [],
 "max_attachments": 50,
 "modified": "2021-03-14 13:21:09.759906",
 "modified_by": "Administrator",
 "module": "Healthcare",
 "name": "Patient",
 "name_case": "Title Case",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Physician",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Laboratory User",
   "share": 1,
   "write": 1
  },
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Nursing User",
   "share": 1,
   "write": 1
  }
 ],
 "quick_entry": 1,
 "restrict_to_domain": "Healthcare",
 "search_fields": "patient_name,mobile,email,phone,uid",
 "show_name_in_global_search": 1,
 "sort_field": "modified",
 "sort_order": "ASC",
 "title_field": "patient_name",
 "track_changes": 1
}