diff --git a/medical_lab_management/README.rst b/medical_lab_management/README.rst new file mode 100644 index 000000000..fc1a2749a --- /dev/null +++ b/medical_lab_management/README.rst @@ -0,0 +1,42 @@ +Medical Lab Management v15 +========================== +Helps You To Manage Medical Lab Operations. + + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Anusha P P @ cybrosys + Niyas Raphy @ cybrosys + V14 Muhammad P @ cybrosys + V15 Mily Shajan @ cybrosys + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ + diff --git a/medical_lab_management/__init__.py b/medical_lab_management/__init__.py new file mode 100644 index 000000000..627a7d13f --- /dev/null +++ b/medical_lab_management/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models diff --git a/medical_lab_management/__manifest__.py b/medical_lab_management/__manifest__.py new file mode 100644 index 000000000..291d720a7 --- /dev/null +++ b/medical_lab_management/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': "Medical Lab Management", + 'version': '15.0.1.0.0', + 'summary': """Manage Medical Lab Operations.""", + 'description': """Manage Medical Lab General Operations, Odoo15, Odoo 15""", + 'author': "Cybrosys Techno Solutions", + 'maintainer': 'Cybrosys Techno Solutions', + 'company': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'category': 'Industries', + 'depends': ['base', 'mail', 'account','contacts'], + 'data': [ + 'security/lab_users.xml', + 'security/ir.model.access.csv', + 'views/res_partner.xml', + 'views/lab_patient_view.xml', + 'views/test_unit_view.xml', + 'views/lab_test_type.xml', + 'views/lab_test_content_type.xml', + 'views/physician_specialty.xml', + 'views/physician_details.xml', + 'views/lab_request.xml', + 'views/lab_appointment.xml', + 'views/account_invoice.xml', + 'report/report.xml', + 'report/lab_test_report.xml', + 'report/lab_patient_card.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/medical_lab_management/doc/RELEASE_NOTES.md b/medical_lab_management/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..8b2cc0528 --- /dev/null +++ b/medical_lab_management/doc/RELEASE_NOTES.md @@ -0,0 +1,8 @@ +## Module + +#### 10.08.2021 +#### Version 15.0.1.0.0 +#### ADD +Initial Commit + + diff --git a/medical_lab_management/models/__init__.py b/medical_lab_management/models/__init__.py new file mode 100644 index 000000000..dbb0454a3 --- /dev/null +++ b/medical_lab_management/models/__init__.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import physician_speciality +from . import res_partner +from . import lab_patient +from . import testing_unit +from . import lab_test_type +from . import lab_test_content_type +from . import lab_appointment +from . import lab_request +from . import account_invoice + + diff --git a/medical_lab_management/models/account_invoice.py b/medical_lab_management/models/account_invoice.py new file mode 100644 index 000000000..03de99157 --- /dev/null +++ b/medical_lab_management/models/account_invoice.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields, api + + +class LabRequestInvoices(models.Model): + _inherit = 'account.move' + + is_lab_invoice = fields.Boolean(string="Is Lab Invoice") + lab_request = fields.Many2one('lab.appointment', string="Lab Appointment", help="Source Document") + + def action_invoice_paid(self): + res = super(LabRequestInvoices, self).action_invoice_paid() + lab_app_obj = self.env['lab.appointment'].search([('id', '=', self.lab_request.id)]) + for obj in lab_app_obj: + obj.write({'state': 'invoiced'}) + return res diff --git a/medical_lab_management/models/lab_appointment.py b/medical_lab_management/models/lab_appointment.py new file mode 100644 index 000000000..7c6ce0990 --- /dev/null +++ b/medical_lab_management/models/lab_appointment.py @@ -0,0 +1,189 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +import datetime +from odoo.exceptions import UserError +from odoo import fields, models, api, _ + + +class Appointment(models.Model): + _name = 'lab.appointment' + _inherit = ['mail.thread'] + _rec_name = 'name' + _description = "Appointment" + _order = 'appointment_date' + + user_id = fields.Many2one('res.users', 'Responsible', readonly=True) + patient_id = fields.Many2one('lab.patient', string='Patient', required=True, select=True, + help='Patient Name') + name = fields.Char(string='Appointment ID', readonly=True, default=lambda self: _('New')) + date = fields.Datetime(string='Requested Date', default=lambda s: fields.Datetime.now(), + help="This is the date in which patient appointment is noted") + appointment_date = fields.Datetime(string='Appointment Date', default=lambda s: fields.Datetime.now(), + help="This is the appointment date") + physician_id = fields.Many2one('res.partner', string='Referred By', select=True) + comment = fields.Text(string='Comments') + appointment_lines = fields.One2many('lab.appointment.lines', 'test_line_appointment', string="Test Request") + + request_count = fields.Integer(compute="_compute_state", string='# of Requests', copy=False, default=0) + inv_count = fields.Integer(compute="_compute_state", string='# of Invoices', copy=False, default=0) + state = fields.Selection([ + ('draft', 'Draft'), + ('confirm', 'Confirmed'), + ('request_lab', 'Lab Requested'), + ('completed', 'Test Result'), + ('to_invoice', 'To Invoice'), + ('invoiced', 'Done'), + ('cancel', 'Cancelled'), + ], string='Status', readonly=True, copy=False, index=True, track_visibility='onchange', default='draft', + ) + + priority = fields.Selection([ + ('0', 'Low'), + ('1', 'Normal'), + ('2', 'High') + ], size=1) + + _defaults = { + 'priority': '0', + } + + @api.model + def create(self, vals): + if vals: + vals['name'] = self.env['ir.sequence'].next_by_code('lab.appointment') or _('New') + result = super(Appointment, self).create(vals) + return result + + def _compute_state(self): + for obj in self: + obj.request_count = self.env['lab.request'].search_count([('app_id', '=', obj.id)]) + obj.inv_count = self.env['account.move'].search_count([('lab_request', '=', obj.id)]) + + def create_invoice(self): + invoice_obj = self.env["account.move"] + invoice_line_obj = self.env["account.move.line"] + journal = self.env['account.journal'].search([('type', '=', 'sale')], limit=1) + prd_account_id = journal.default_account_id.id + for lab in self: + lab.write({'state': 'to_invoice'}) + if lab.patient_id: + curr_invoice = { + 'partner_id': lab.patient_id.patient.id, + 'state': 'draft', + 'move_type': 'out_invoice', + 'invoice_date': str(datetime.datetime.now()), + 'invoice_origin': "Lab Test# : " + lab.name, + 'lab_request': lab.id, + 'is_lab_invoice': True, + } + + inv_ids = invoice_obj.create(curr_invoice) + inv_id = inv_ids.id + + if inv_ids: + journal = self.env['account.journal'].search([('type', '=', 'sale')], limit=1) + prd_account_id = journal.default_account_id.id + list_value = [] + if lab.appointment_lines: + for line in lab.appointment_lines: + list_value.append((0,0, { + 'name': line.lab_test.lab_test, + 'price_unit': line.cost, + 'quantity': 1.0, + 'account_id': prd_account_id, + 'move_id': inv_id, + })) + print(list_value) + inv_ids.write({'invoice_line_ids': list_value}) + + self.write({'state': 'invoiced'}) + view_id = self.env.ref('account.view_move_form').id + return { + 'view_mode': 'form', + 'res_model': 'account.move', + 'view_id': view_id, + 'type': 'ir.actions.act_window', + 'name': _('Lab Invoices'), + 'res_id': inv_id + } + + def action_request(self): + if self.appointment_lines: + for line in self.appointment_lines: + data = self.env['lab.test'].search([('lab_test', '=', line.lab_test.lab_test)]) + self.env['lab.request'].create({'lab_request_id': self.name, + 'app_id': self.id, + 'lab_requestor': self.patient_id.id, + 'lab_requesting_date': self.appointment_date, + 'test_request': line.lab_test.id, + 'request_line': [(6, 0, [x.id for x in data.test_lines])], + }) + self.state = 'request_lab' + else: + raise UserError(_('Please Select Lab Test.')) + + def confirm_appointment(self): + + message_body = "Dear " + self.patient_id.patient.name + "," + "
Your Appointment Has been Confirmed " \ + + "
Appointment ID : " + self.name + "
Date : " + str(self.appointment_date) + \ + '

Thank you' + + template_obj = self.env['mail.mail'] + template_data = { + 'subject': 'Appointment Confirmation', + 'body_html': message_body, + 'email_from': self.env.user.company_id.email, + 'email_to': self.patient_id.email + } + template_id = template_obj.create(template_data) + template_obj.send(template_id) + self.write({'state': 'confirm'}) + + def cancel_appointment(self): + return self.write({'state': 'cancel'}) + + +class LabAppointmentLines(models.Model): + _name = 'lab.appointment.lines' + _description = 'Lab Appointment ' + + lab_test = fields.Many2one('lab.test', string="Test") + cost = fields.Float(string="Cost") + requesting_date = fields.Date(string="Date") + test_line_appointment = fields.Many2one('lab.appointment', string="Appointment") + + @api.onchange('lab_test') + def cost_update(self): + if self.lab_test: + self.cost = self.lab_test.test_cost + + +class LabPatientInherit(models.Model): + _inherit = 'lab.patient' + + app_count = fields.Integer(compute="_compute_state", string='# of Appointments', copy=False, default=0) + + def _compute_state(self): + for obj in self: + obj.app_count = self.env['lab.appointment'].search_count([('patient_id', '=', obj.id)]) + diff --git a/medical_lab_management/models/lab_patient.py b/medical_lab_management/models/lab_patient.py new file mode 100644 index 000000000..851ced606 --- /dev/null +++ b/medical_lab_management/models/lab_patient.py @@ -0,0 +1,79 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from dateutil.relativedelta import relativedelta +from odoo import models, fields, api, _ + + +class LabPatient(models.Model): + _name = 'lab.patient' + _rec_name = 'patient' + _description = 'Patient' + + patient = fields.Many2one('res.partner', string='Partner', required=True) + patient_image = fields.Binary(string='Photo') + patient_id = fields.Char(string='Patient ID', readonly=True) + name = fields.Char(string='Patient ID', default=lambda self: _('New')) + title = fields.Selection([ + ('ms', 'Miss'), + ('mister', 'Mister'), + ('mrs', 'Mrs'), + ], string='Title', default='mister', required=True) + emergency_contact = fields.Many2one( + 'res.partner', string='Emergency Contact') + gender = fields.Selection( + [('m', 'Male'), ('f', 'Female'), + ('ot', 'Other')], 'Gender', required=True) + dob = fields.Date(string='Date Of Birth', required=True) + age = fields.Char(string='Age', compute='compute_age') + blood_group = fields.Selection( + [('A+', 'A+ve'), ('B+', 'B+ve'), ('O+', 'O+ve'), ('AB+', 'AB+ve'), + ('A-', 'A-ve'), ('B-', 'B-ve'), ('O-', 'O-ve'), ('AB-', 'AB-ve')], + 'Blood Group') + visa_info = fields.Char(string='Visa Info', size=64) + id_proof_number = fields.Char(string='ID Proof Number') + note = fields.Text(string='Note') + date = fields.Datetime(string='Date Requested', default=lambda s: fields.Datetime.now(), invisible=True) + phone = fields.Char(string="Phone", required=True) + email = fields.Char(string="Email", required=True) + + def compute_age(self): + for data in self: + if data.dob: + dob = fields.Datetime.from_string(data.dob) + date = fields.Datetime.from_string(data.date) + delta = relativedelta(date, dob) + data.age = str(delta.years) + ' years' + else: + data.age = '' + + @api.model + def create(self, vals): + sequence = self.env['ir.sequence'].next_by_code('lab.patient') + vals['name'] = sequence or _('New') + result = super(LabPatient, self).create(vals) + return result + + @api.onchange('patient') + def detail_get(self): + self.phone = self.patient.phone + self.email = self.patient.email diff --git a/medical_lab_management/models/lab_request.py b/medical_lab_management/models/lab_request.py new file mode 100644 index 000000000..f0867e0be --- /dev/null +++ b/medical_lab_management/models/lab_request.py @@ -0,0 +1,128 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +import datetime +from odoo import models, fields, api, _ +from odoo.exceptions import ValidationError + + +class LabRequest(models.Model): + _name = 'lab.request' + _inherit = ['mail.thread'] + _rec_name = 'lab_request_id' + _description = 'Lab Request' + + name = fields.Char(string='Lab Test', size=16, readonly=True, required=True, help="Lab result ID", default=lambda *a: '#') + lab_request_id = fields.Char(string='Appointment ID', help="Lab appointment ID") + app_id = fields.Many2one('lab.appointment', string='Appointment') + lab_requestor = fields.Many2one('lab.patient', string='Patient', required=True, select=True, + help='Patient Name') + test_request = fields.Many2one('lab.test', string='Test') + lab_requesting_date = fields.Datetime(string='Requested Date') + comment = fields.Text('Comment') + request_line = fields.One2many('lab.test.attribute', 'test_request_reverse', string="Test Lines") + state = fields.Selection([ + ('draft', 'Draft'), + ('sample_collection', 'Sample Collected'), + ('test_in_progress', 'Test In Progress'), + ('completed', 'Completed'), + ('cancel', 'Cancelled'), + + ], string='Status', readonly=True, copy=False, index=True, track_visibility='onchange', default='draft') + + @api.model + def create(self, vals): + sequence = self.env['ir.sequence'].next_by_code('lab.request') + vals['name'] = sequence or '/' + return super(LabRequest, self).create(vals) + + def set_to_sample_collection(self): + return self.write({'state': 'sample_collection'}) + + def set_to_test_in_progress(self): + return self.write({'state': 'test_in_progress'}) + + def cancel_lab_test(self): + return self.write({'state': 'cancel'}) + + def set_to_test_completed(self): + if not self.request_line: + raise ValidationError(_("No Result Lines Entered !")) + req_obj = self.env['lab.request'].search_count([('app_id', '=', self.app_id.id), + ('id', '!=', self.id)]) + req_obj_count = self.env['lab.request'].search_count([('app_id', '=', self.app_id.id), + ('id', '!=', self.id), + ('state', '=', 'completed')]) + if req_obj == req_obj_count: + app_obj = self.env['lab.appointment'].search([('id', '=', self.app_id.id)]) + app_obj.write({'state': 'completed'}) + return self.write({'state': 'completed'}) + + def print_lab_test(self): + return self.env.ref('medical_lab_management.print_lab_test').report_action(self) + + def lab_invoice_create(self): + invoice_obj = self.env["account.move"] + invoice_line_obj = self.env["account.move.line"] + for lab in self: + if lab.lab_requestor: + curr_invoice = { + 'partner_id': lab.lab_requestor.patient.id, + 'account_id': lab.lab_requestor.patient.property_account_receivable_id.id, + 'state': 'draft', + 'type': 'out_invoice', + 'date_invoice': datetime.datetime.now(), + 'origin': "Lab Test# : " + lab.name, + 'target': 'new', + 'lab_request': lab.id, + 'is_lab_invoice': True + } + + inv_ids = invoice_obj.create(curr_invoice) + inv_id = inv_ids.id + + if inv_ids: + journal = self.env['account.journal'].search([('type', '=', 'sale')], limit=1) + prd_account_id = journal.default_credit_account_id.id + if lab.test_request: + curr_invoice_line = { + 'name': "Charge for lab test", + 'price_unit': lab.test_request.test_cost or 0, + 'quantity': 1.0, + 'account_id': prd_account_id, + 'invoice_id': inv_id, + } + + invoice_line_obj.create(curr_invoice_line) + + self.write({'state': 'invoiced'}) + form_view_ref = self.env.ref('account.view_move_form', False) + tree_view_ref = self.env.ref('account.view_move_tree', False) + + return { + 'domain': "[('id', '=', " + str(inv_id) + ")]", + 'name': 'Lab Invoices', + 'view_mode': 'form', + 'res_model': 'account.move', + 'type': 'ir.actions.act_window', + 'views': [(tree_view_ref.id, 'tree'), (form_view_ref.id, 'form')], + } diff --git a/medical_lab_management/models/lab_test_content_type.py b/medical_lab_management/models/lab_test_content_type.py new file mode 100644 index 000000000..82b588d80 --- /dev/null +++ b/medical_lab_management/models/lab_test_content_type.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class LabTestContentType(models.Model): + _name = 'lab.test.content_type' + _rec_name = 'content_type_name' + _description = "Content" + + content_type_name = fields.Char(string="Name", required=True, help="Content type name") + content_type_code = fields.Char(string="Code") + parent_test = fields.Many2one('lab.test', string="Test Category") + + + + diff --git a/medical_lab_management/models/lab_test_type.py b/medical_lab_management/models/lab_test_type.py new file mode 100644 index 000000000..474e3241a --- /dev/null +++ b/medical_lab_management/models/lab_test_type.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class LabTestType(models.Model): + _name = 'lab.test' + _description = "Lab Test" + _rec_name = 'lab_test' + _inherit = ['mail.thread'] + + lab_test = fields.Char(string="Test Name", required=True, help="Name of lab test ") + lab_test_code = fields.Char(string="Test Code", required=True) + test_lines = fields.One2many('lab.test.attribute', 'test_line_reverse', string="Attribute") + test_cost = fields.Float(string="Cost", required=True) + + +class LabTestAttribute(models.Model): + _name = 'lab.test.attribute' + _description = "Lab Test Attributes" + + test_content = fields.Many2one('lab.test.content_type', string="Content") + result = fields.Char(string="Result") + unit = fields.Many2one('test.unit', string="Unit") + interval = fields.Char(string="Reference Intervals") + test_line_reverse = fields.Many2one('lab.test', string="Attribute") + test_request_reverse = fields.Many2one('lab.request', string="Request") diff --git a/medical_lab_management/models/physician_speciality.py b/medical_lab_management/models/physician_speciality.py new file mode 100644 index 000000000..09a226902 --- /dev/null +++ b/medical_lab_management/models/physician_speciality.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class PhysicianSpeciality(models.Model): + _name = 'physician.speciality' + _description = 'Medical Specialty' + + code = fields.Char(string='ID') + name = fields.Char(string='Specialty', help='Name of the specialty', required=True) + + _sql_constraints = [ + ('name_uniq', 'UNIQUE(name)', 'Name must be unique!'), + ] diff --git a/medical_lab_management/models/res_partner.py b/medical_lab_management/models/res_partner.py new file mode 100644 index 000000000..c05b92464 --- /dev/null +++ b/medical_lab_management/models/res_partner.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class ResPartnerPatient(models.Model): + _inherit = 'res.partner' + _description = "Patient" + + is_patient = fields.Boolean(string='Is Patient') + is_physician = fields.Boolean(string='Is Physician') + speciality = fields.Many2one('physician.speciality', string='Speciality') + hospital = fields.Many2one('res.partner', string='Hospital') + + diff --git a/medical_lab_management/models/testing_unit.py b/medical_lab_management/models/testing_unit.py new file mode 100644 index 000000000..9855c4a47 --- /dev/null +++ b/medical_lab_management/models/testing_unit.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Anusha P P @ cybrosys and Niyas Raphy @ cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class TestingUnit(models.Model): + _name = 'test.unit' + _rec_name = 'code' + _description = "Test Unit" + + unit = fields.Char(string="Unit", required=True) + code = fields.Char(string="code", required=True) diff --git a/medical_lab_management/report/lab_patient_card.xml b/medical_lab_management/report/lab_patient_card.xml new file mode 100644 index 000000000..0d7686092 --- /dev/null +++ b/medical_lab_management/report/lab_patient_card.xml @@ -0,0 +1,63 @@ + + + + + + \ No newline at end of file diff --git a/medical_lab_management/report/lab_test_report.xml b/medical_lab_management/report/lab_test_report.xml new file mode 100644 index 000000000..0c2731485 --- /dev/null +++ b/medical_lab_management/report/lab_test_report.xml @@ -0,0 +1,50 @@ + + + + + + + diff --git a/medical_lab_management/report/report.xml b/medical_lab_management/report/report.xml new file mode 100644 index 000000000..762539ba5 --- /dev/null +++ b/medical_lab_management/report/report.xml @@ -0,0 +1,23 @@ + + + + + Lab Test Result + lab.request + qweb-pdf + medical_lab_management.report_patient_labtest + medical_lab_management.report_patient_labtest + + + + + + \ No newline at end of file diff --git a/medical_lab_management/security/ir.model.access.csv b/medical_lab_management/security/ir.model.access.csv new file mode 100644 index 000000000..d694f8b26 --- /dev/null +++ b/medical_lab_management/security/ir.model.access.csv @@ -0,0 +1,19 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_lab_request_user,lab.request,model_lab_request,group_lab_management_user,1,1,1,1 +access_lab_patient_user,lab.patient,model_lab_patient,group_lab_management_user,1,1,1,1 +access_lab_appointment_user,lab.appointment,model_lab_appointment,group_lab_management_user,1,1,1,1 +access_test_unit_user,test.unit,model_test_unit,group_lab_management_user,1,0,0,0 +access_lab_physician_user,physician.speciality,model_physician_speciality,group_lab_management_user,1,1,1,1 +access_lab_test_user,lab.test,model_lab_test,group_lab_management_user,1,0,0,0 +access_lab_appointment_line_user,lab.appointment.lines,model_lab_appointment_lines,group_lab_management_user,1,1,1,1 +access_lab_test_content_type_user,lab.test.content_type,model_lab_test_content_type,group_lab_management_user,1,0,0,0 +access_lab_test_attribute_user,lab.test.attribute,model_lab_test_attribute,group_lab_management_user,1,1,1,1 +access_lab_request_technician,lab.request,model_lab_request,group_lab_management_technician,1,1,1,1 +access_lab_patient_technician,lab.patient,model_lab_patient,group_lab_management_technician,1,1,1,1 +access_lab_appointment_technician,lab.appointment,model_lab_appointment,group_lab_management_technician,1,1,1,1 +access_test_unit_technician,test.unit,model_test_unit,group_lab_management_technician,1,1,1,1 +access_lab_physician_technician,physician.speciality,model_physician_speciality,group_lab_management_technician,1,0,0,0 +access_lab_test_technician,lab.test,model_lab_test,group_lab_management_technician,1,1,1,1 +access_lab_test_content_type_technician,lab.test.content_type,model_lab_test_content_type,group_lab_management_technician,1,1,1,1 +access_lab_appointment_line_technician,lab.appointment.lines,model_lab_appointment_lines,group_lab_management_technician,1,1,1,1 +access_lab_test_attribute_technician,lab.test.attribute,model_lab_test_attribute,group_lab_management_technician,1,1,1,1 \ No newline at end of file diff --git a/medical_lab_management/security/lab_users.xml b/medical_lab_management/security/lab_users.xml new file mode 100644 index 000000000..28cf8cee3 --- /dev/null +++ b/medical_lab_management/security/lab_users.xml @@ -0,0 +1,20 @@ + + + + Lab Management + + + + Lab User + + + + + + Lab Manager + + + + + + \ No newline at end of file diff --git a/medical_lab_management/static/description/assets/icons/check.png b/medical_lab_management/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/check.png differ diff --git a/medical_lab_management/static/description/assets/icons/chevron.png b/medical_lab_management/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/chevron.png differ diff --git a/medical_lab_management/static/description/assets/icons/cogs.png b/medical_lab_management/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/cogs.png differ diff --git a/medical_lab_management/static/description/assets/icons/consultation.png b/medical_lab_management/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/consultation.png differ diff --git a/medical_lab_management/static/description/assets/icons/ecom-black.png b/medical_lab_management/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/ecom-black.png differ diff --git a/medical_lab_management/static/description/assets/icons/education-black.png b/medical_lab_management/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/education-black.png differ diff --git a/medical_lab_management/static/description/assets/icons/hotel-black.png b/medical_lab_management/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/hotel-black.png differ diff --git a/medical_lab_management/static/description/assets/icons/license.png b/medical_lab_management/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/license.png differ diff --git a/medical_lab_management/static/description/assets/icons/lifebuoy.png b/medical_lab_management/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/lifebuoy.png differ diff --git a/medical_lab_management/static/description/assets/icons/logo.png b/medical_lab_management/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/logo.png differ diff --git a/medical_lab_management/static/description/assets/icons/manufacturing-black.png b/medical_lab_management/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/manufacturing-black.png differ diff --git a/medical_lab_management/static/description/assets/icons/pos-black.png b/medical_lab_management/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/pos-black.png differ diff --git a/medical_lab_management/static/description/assets/icons/puzzle.png b/medical_lab_management/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/puzzle.png differ diff --git a/medical_lab_management/static/description/assets/icons/restaurant-black.png b/medical_lab_management/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/restaurant-black.png differ diff --git a/medical_lab_management/static/description/assets/icons/service-black.png b/medical_lab_management/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/service-black.png differ diff --git a/medical_lab_management/static/description/assets/icons/trading-black.png b/medical_lab_management/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/trading-black.png differ diff --git a/medical_lab_management/static/description/assets/icons/training.png b/medical_lab_management/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/training.png differ diff --git a/medical_lab_management/static/description/assets/icons/update.png b/medical_lab_management/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/update.png differ diff --git a/medical_lab_management/static/description/assets/icons/user.png b/medical_lab_management/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/user.png differ diff --git a/medical_lab_management/static/description/assets/icons/wrench.png b/medical_lab_management/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/medical_lab_management/static/description/assets/icons/wrench.png differ diff --git a/medical_lab_management/static/description/assets/modules/approval_image.png b/medical_lab_management/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/medical_lab_management/static/description/assets/modules/approval_image.png differ diff --git a/medical_lab_management/static/description/assets/modules/budget_image.png b/medical_lab_management/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/medical_lab_management/static/description/assets/modules/budget_image.png differ diff --git a/medical_lab_management/static/description/assets/modules/export_image.png b/medical_lab_management/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/medical_lab_management/static/description/assets/modules/export_image.png differ diff --git a/medical_lab_management/static/description/assets/modules/magento_image.png b/medical_lab_management/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/medical_lab_management/static/description/assets/modules/magento_image.png differ diff --git a/medical_lab_management/static/description/assets/modules/pos_image.png b/medical_lab_management/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/medical_lab_management/static/description/assets/modules/pos_image.png differ diff --git a/medical_lab_management/static/description/assets/modules/shopify_image.png b/medical_lab_management/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/medical_lab_management/static/description/assets/modules/shopify_image.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/appointment3.png b/medical_lab_management/static/description/assets/screenshots/appointment3.png new file mode 100644 index 000000000..acf9fd8c8 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/appointment3.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/checked.png b/medical_lab_management/static/description/assets/screenshots/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/checked.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/cr_patient1.png b/medical_lab_management/static/description/assets/screenshots/cr_patient1.png new file mode 100644 index 000000000..02fa5c634 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/cr_patient1.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/cybrosys.png b/medical_lab_management/static/description/assets/screenshots/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/cybrosys.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/draft invoice7.png b/medical_lab_management/static/description/assets/screenshots/draft invoice7.png new file mode 100644 index 000000000..d19ab47af Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/draft invoice7.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/hero.gif b/medical_lab_management/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..b39609164 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/hero.gif differ diff --git a/medical_lab_management/static/description/assets/screenshots/lab report6.png b/medical_lab_management/static/description/assets/screenshots/lab report6.png new file mode 100644 index 000000000..9102df29f Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/lab report6.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/lab test9.png b/medical_lab_management/static/description/assets/screenshots/lab test9.png new file mode 100644 index 000000000..88173c691 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/lab test9.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/lab user1.png b/medical_lab_management/static/description/assets/screenshots/lab user1.png new file mode 100644 index 000000000..6ff00785e Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/lab user1.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/lab user2.png b/medical_lab_management/static/description/assets/screenshots/lab user2.png new file mode 100644 index 000000000..11b979032 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/lab user2.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/lab_request5.png b/medical_lab_management/static/description/assets/screenshots/lab_request5.png new file mode 100644 index 000000000..3206a27f1 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/lab_request5.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/mail.png b/medical_lab_management/static/description/assets/screenshots/mail.png new file mode 100644 index 000000000..cc9ae70c8 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/mail.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/patient_card2.png b/medical_lab_management/static/description/assets/screenshots/patient_card2.png new file mode 100644 index 000000000..321f3ab5d Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/patient_card2.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/physician12.png b/medical_lab_management/static/description/assets/screenshots/physician12.png new file mode 100644 index 000000000..ca61123d5 Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/physician12.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/test content10.png b/medical_lab_management/static/description/assets/screenshots/test content10.png new file mode 100644 index 000000000..947ce13db Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/test content10.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/testing unit11.png b/medical_lab_management/static/description/assets/screenshots/testing unit11.png new file mode 100644 index 000000000..d75bf01aa Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/testing unit11.png differ diff --git a/medical_lab_management/static/description/assets/screenshots/today appo8.png b/medical_lab_management/static/description/assets/screenshots/today appo8.png new file mode 100644 index 000000000..d3bcd490a Binary files /dev/null and b/medical_lab_management/static/description/assets/screenshots/today appo8.png differ diff --git a/medical_lab_management/static/description/banner.png b/medical_lab_management/static/description/banner.png new file mode 100644 index 000000000..b19e4c65c Binary files /dev/null and b/medical_lab_management/static/description/banner.png differ diff --git a/medical_lab_management/static/description/icon.png b/medical_lab_management/static/description/icon.png new file mode 100644 index 000000000..ed26f91b2 Binary files /dev/null and b/medical_lab_management/static/description/icon.png differ diff --git a/medical_lab_management/static/description/index.html b/medical_lab_management/static/description/index.html new file mode 100644 index 000000000..1ecfaf919 --- /dev/null +++ b/medical_lab_management/static/description/index.html @@ -0,0 +1,845 @@ + +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Medical Lab Management

+

+ Manage Lab Activities +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This app helps the user to systematically perform the activities of a Medical Laboratory. + The app simplifies the activities like Patient Management, Appointment Management, Test Requests Management, Lab Results Management, and so on.

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Community & Enterprise Support

+

+ Available in Odoo 15.0 Community and Enterprise.

+
+
+
+
+ +
+
+

+ Manage Patients

+

+ Manage each patients in detail.

+
+
+ +
+
+ +
+
+

+ Issue Patient Card

+

+ Gives a patient report.

+
+
+ +
+
+ +
+
+

+ Manage Referrals of Patients

+

+ Manages refered persons of each patients.

+
+
+ +
+
+ +
+
+

+ Manage Appointments

+

+ Manages appointments for each patients.

+
+
+ +
+
+ +
+
+

+ Mail Notification For Appointments

+

+ Gives a notification mail when appointment is confirmed

+
+
+ +
+
+ +
+
+

+ Manage Lab Requests

+

+ Manage lab requests of each patients.

+
+
+ +
+
+ +
+
+

+ Print Lab Test Result Of Patient

+

+ Detailed Lab Report of each patients

+
+
+
+ +
+
+

+ Screenshots +

+
+
+

+ Create Patients.

+

+ It creates each patients for lab test. +

+ +
+ +
+ + +

+ Go to Laboratory -> Patient -> Print -> Patient Card.

+

+ Issues Patient card . +

+ +
+ +
+

+ Create Appointments

+ +

+ Go to Laboratory -> Appointments->Create Appointments. +

+ +
+ + +
+

+ Mail Notification For Appointments

+ +

+ When we confirm the appointment the appointment details will be sent through E-Mail. +

+ +
+ + +
+

+ Lab Request

+ +

+ creates lab request of each patients +

+ +
+ + +
+

+ Lab Test Result

+ +

+ Issues Lab Test Result Report

+ + +
+ +
+ +

Create invoice for lab test. +

+ +

+ Invoices are created for each lab test. +

+ + +
+ +
+ +

You can see today's appointments here. +

+ + +

+ Here,we can view today's appointments of all patients. +

+ + +
+ +
+ +

Go to Laboratory -> Configuration -> Lab test.. +

+ + +

+ Create Lab tests. +

+ + + +
+ + +
+

Go to Laboratory -> Configuration -> Test Contents. +

+

+ Create Lab test contents. +

+ + +
+ + +
+

Go to Laboratory -> Configuration -> Testing Unit. +

+

+ Create Lab test units. +

+ + +
+ +
+

Referral Physician . +

+

+ We can add referral physician details. +

+ + +
+ +
+ +

+ There are two type of User Access +

+ + + + +
+ + + +
+ + + + + + + + + + + + + + + + + + +
+
+

Suggested Products

+
+ + +
+
+ + + +
+
+
+

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+ +
+
+ + + + + +
+
+
+

Need Help?

+
+
+
+ + +
+ +
+ +
+ +
+ WhatsApp +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/medical_lab_management/views/account_invoice.xml b/medical_lab_management/views/account_invoice.xml new file mode 100644 index 000000000..167560a3e --- /dev/null +++ b/medical_lab_management/views/account_invoice.xml @@ -0,0 +1,30 @@ + + + + + account.invoice.cust.invoice_form + account.move + + + + + + + + + + + account.invoice.cust.invoice_filter_form + account.move + + + + + + + + + + + + \ No newline at end of file diff --git a/medical_lab_management/views/lab_appointment.xml b/medical_lab_management/views/lab_appointment.xml new file mode 100644 index 000000000..8bcbe2878 --- /dev/null +++ b/medical_lab_management/views/lab_appointment.xml @@ -0,0 +1,231 @@ + + + + + Invoices + account.move + tree,form,kanban,graph,pivot + + [('is_lab_invoice','=',True)] + + +

+ Create Invoices. +

+
+
+ + + 1 + tree + + + + + 2 + form + + + + + + Appointment Kanban + lab.appointment + + + + +
+
+ +
    +
  • Name :
  • +
  • Lab Request ID :
  • +
  • Appointment Date :
  • +
+
+
+
+
+
+
+
+
+ + + lab.appointment.tree + lab.appointment + + + + + + + + + + + + lab.appointment.form + lab.appointment + + +
+
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+
+
+
+ + + lab.appointment.search + lab.appointment + + + + + + + + + + + + + + + + + + + + Appointments + ir.actions.act_window + lab.appointment + tree,form,kanban + + [] + {} + +

+ Create Appointments. +

+
+
+ + + + Appointments + ir.actions.act_window + lab.appointment + tree,form + + [('appointment_date', '>=',((datetime.date.today()- datetime.timedelta(days=0)).strftime('%Y-%m-%d 00:00:00'))), + ('appointment_date', '<=',((datetime.date.today()- datetime.timedelta(days=0)).strftime('%Y-%m-%d 23:59:59')))] + + {} + +

+ Create Appointments. +

+
+
+ + + Appointment + lab.appointment + ID + 3 + + + + + + + + + + + lab.patient.form + lab.patient + + + + + + + + + +
+
diff --git a/medical_lab_management/views/lab_patient_view.xml b/medical_lab_management/views/lab_patient_view.xml new file mode 100644 index 000000000..2aba9ee9f --- /dev/null +++ b/medical_lab_management/views/lab_patient_view.xml @@ -0,0 +1,159 @@ + + + + + + Patient Kanban + lab.patient + + + + + +
+
+ +
+
+ +
    +
  • Name :
  • +
  • Patient ID :
  • +
+
+
+
+
+
+
+
+
+ + + lab.patient.tree + lab.patient + + + + + + + + + + + + + + lab.patient.form + lab.patient + + +
+ +
+
+ +
+

+ +

+

+ + + + +
+ +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + lab.patient.search + lab.patient + + + + + + + + + + + + + + + + + + Patients + ir.actions.act_window + lab.patient + kanban,tree,form + + [] + {} + +

+ Create Patients. +

+
+
+ + + Patient + lab.patient + PID + 3 + + + + + + + +
+
diff --git a/medical_lab_management/views/lab_request.xml b/medical_lab_management/views/lab_request.xml new file mode 100644 index 000000000..ad9ace78f --- /dev/null +++ b/medical_lab_management/views/lab_request.xml @@ -0,0 +1,120 @@ + + + + + lab.request.tree + lab.request + + + + + + + + + + + + lab.request.form + lab.request + +
+
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + +
+
+
+
+ + lab.request.search + lab.request + + + + + + + + + + + + + + + + + Lab Request + ir.actions.act_window + lab.request + tree,form + + [] + {} + +

+ Create Lab request. +

+
+
+ + + Lab Request + lab.request + LR + 3 + + + + + +
+
diff --git a/medical_lab_management/views/lab_test_content_type.xml b/medical_lab_management/views/lab_test_content_type.xml new file mode 100644 index 000000000..5424b026e --- /dev/null +++ b/medical_lab_management/views/lab_test_content_type.xml @@ -0,0 +1,72 @@ + + + + + lab.test.content_type.tree + lab.test.content_type + + + + + + + + + + + lab.test.content_type.form + lab.test.content_type + + +
+ + + + + + + + +
+
+
+ + + lab.test.content_type.search + lab.test.content_type + + + + + + + + + + + + + + + + Test Contents + ir.actions.act_window + lab.test.content_type + tree,form + [] + + {} + +

+ Create Test Contents. +

+
+
+ + +
+
diff --git a/medical_lab_management/views/lab_test_type.xml b/medical_lab_management/views/lab_test_type.xml new file mode 100644 index 000000000..41be81746 --- /dev/null +++ b/medical_lab_management/views/lab_test_type.xml @@ -0,0 +1,102 @@ + + + + + lab.test.tree + lab.test + + + + + + + + + + + + lab.test.form + lab.test + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + lab.test.search + lab.test + + + + + + + + + + + + + + Lab Test + ir.actions.act_window + lab.test + tree,form + + [] + {} + +

+ Create Lab Tests. +

+
+
+ + + + + lab.test.attribute.form + lab.test.attribute + + +
+ + + + + + + + +
+
+
+
+
\ No newline at end of file diff --git a/medical_lab_management/views/physician_details.xml b/medical_lab_management/views/physician_details.xml new file mode 100644 index 000000000..93ba3e1a4 --- /dev/null +++ b/medical_lab_management/views/physician_details.xml @@ -0,0 +1,26 @@ + + + + + Physician + ir.actions.act_window + res.partner + tree,form + [('is_physician','=',1)] + {'default_customer':0, 'default_supplier':0 , 'default_is_physician':1} + + +

+ Click to add physician. +

+
+
+ + + +
+
diff --git a/medical_lab_management/views/physician_specialty.xml b/medical_lab_management/views/physician_specialty.xml new file mode 100644 index 000000000..a3d5e680c --- /dev/null +++ b/medical_lab_management/views/physician_specialty.xml @@ -0,0 +1,18 @@ + + + + + physician.speciality.form + physician.speciality + + +
+ + + + +
+
+
+
+
diff --git a/medical_lab_management/views/res_partner.xml b/medical_lab_management/views/res_partner.xml new file mode 100644 index 000000000..3981f0155 --- /dev/null +++ b/medical_lab_management/views/res_partner.xml @@ -0,0 +1,22 @@ + + + + + res.partner.form + res.partner + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/medical_lab_management/views/test_unit_view.xml b/medical_lab_management/views/test_unit_view.xml new file mode 100644 index 000000000..0d6e6fa69 --- /dev/null +++ b/medical_lab_management/views/test_unit_view.xml @@ -0,0 +1,71 @@ + + + + + test.unit.tree + test.unit + + + + + + + + + + test.unit.form + test.unit + + +
+ + + + + + + + + + +
+
+
+ + test.unit.search + test.unit + + + + + + + + + + + + Testing Units + ir.actions.act_window + test.unit + tree,form + + [] + {} + +

+ Create Testing Units. +

+
+
+ + +
+
\ No newline at end of file