Browse Source

Jan 11 : [FIX] Bug Fixed 'medical_lab_management'

pull/231/head
AjmalCybro 2 years ago
parent
commit
311cd45fb7
  1. 2
      medical_lab_management/__manifest__.py
  2. 5
      medical_lab_management/models/lab_patient.py
  3. 2
      medical_lab_management/report/lab_patient_card.xml
  4. BIN
      medical_lab_management/static/description/assets/screenshots/hero.gif
  5. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-1.png
  6. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-10.png
  7. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-11.png
  8. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-12.png
  9. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-13.png
  10. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-14.png
  11. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-2.png
  12. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-3.png
  13. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-4.png
  14. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-5.png
  15. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-6.png
  16. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-7.png
  17. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-8.png
  18. BIN
      medical_lab_management/static/description/assets/screenshots/screenshot-9.png
  19. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-1.png
  20. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-10.png
  21. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-11.png
  22. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-12.png
  23. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-13.png
  24. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-14.png
  25. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-2.png
  26. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-3.png
  27. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-4.png
  28. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-5.png
  29. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-6.png
  30. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-7.png
  31. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-8.png
  32. BIN
      medical_lab_management/static/description/assets/screenshots/screenshots-9.png
  33. 86
      medical_lab_management/static/description/index.html
  34. 3
      medical_lab_management/views/lab_test_type.xml

2
medical_lab_management/__manifest__.py

@ -21,7 +21,7 @@
{
'name': "Medical Lab Management",
'version': '16.0.1.0.0',
'version': '16.0.1.1.0',
'summary': """Manage Medical Lab Operations.""",
'description': """Manage Medical Lab General Operations, Odoo15, Odoo 15""",
'author': "Cybrosys Techno Solutions",

5
medical_lab_management/models/lab_patient.py

@ -44,7 +44,7 @@ class LabPatient(models.Model):
[('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')
age = fields.Char(string='Age', compute='compute_age', store=True)
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')],
@ -56,13 +56,14 @@ class LabPatient(models.Model):
phone = fields.Char(string="Phone", required=True)
email = fields.Char(string="Email", required=True)
@api.depends('dob')
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'
data.age = str(delta.years) + ' ' + 'years'
else:
data.age = ''

2
medical_lab_management/report/lab_patient_card.xml

@ -3,7 +3,6 @@
<data>
<template id="report_patient_label">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<t t-foreach="docs" t-as="o">
<div class="page">
<div class="oe_structure"/>
@ -54,7 +53,6 @@
</div>
<p style="page-break-after:always"></p>
</t>
</t>
</t>
</template>
</data>

BIN
medical_lab_management/static/description/assets/screenshots/hero.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 KiB

After

Width:  |  Height:  |  Size: 245 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-10.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-11.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-12.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-13.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-14.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshot-9.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
medical_lab_management/static/description/assets/screenshots/screenshots-9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

86
medical_lab_management/static/description/index.html

@ -118,69 +118,43 @@
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center" style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Community &amp; Enterprise Support.</span>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Available in Odoo 15.0 Community and Enterprise.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Available in Odoo 16.0 Community and Enterprise.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Manage Patients.</span>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Manage each patients in detail.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage Patients.</span>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center" style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Issue Patient Card.</span>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Gives a patient report.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Issue Patient Card.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Manage Referrals of Patients.</span>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Manages refered persons of each patients.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage Referrals of Patients.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Manage Appointments.</span>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Manages appointments for each patients.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage Appointments.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Mail Notification For Appointments.</span>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Gives a notification mail when appointment is confirmed.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Mail Notification For Appointments.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Manage Lab Requests.</span>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Manage lab requests of each patients.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage Lab Requests.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Print Lab Test Result Of Patient.</span>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Detailed Lab Report of each patients.</p>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Print Lab Test Result Of Patient.</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
@ -188,7 +162,7 @@
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png" />
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Screenshots
</h2>
@ -201,7 +175,7 @@
Create Patients</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
It creates each patients for lab test.</p>
<img src="assets/screenshots/screenshot-1.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
@ -209,62 +183,62 @@
Go to Laboratory -> Patient -> Print -> Patient Card</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Issues Patient card
</p>
<img src="assets/screenshots/screenshot-2.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Create Appointments</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Go to Laboratory -> Appointments->Create Appointments.</p>
<img src="assets/screenshots/screenshot-3.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Mail Notification For Appointments</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> When we confirm the appointment the appointment details will be sent through E-Mail</p>
<img src="assets/screenshots/screenshot-4.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-4.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Lab Request</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">creates lab request of each patients </p>
<img src="assets/screenshots/screenshot-5.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Lab Test Result</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Issues Lab Test Result Report</p>
<img src="assets/screenshots/screenshot-6.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-6.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Create invoice for lab test.</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Invoices are created for each lab test.</p>
<img src="assets/screenshots/screenshot-7.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-7.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
You can see today's appointments here</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> Here,we can view today's appointments of all patients..</p>
<img src="assets/screenshots/screenshot-8.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-8.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Go to Laboratory -> Configuration -> Lab test..</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> Create Lab tests..</p>
<img src="assets/screenshots/screenshot-9.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-9.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Go to Laboratory -> Configuration -> Test Contents.</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> Create Lab test contents.</p>
<img src="assets/screenshots/screenshot-10.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-10.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Go to Laboratory -> Configuration -> Testing Unit.</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> Create Lab test units..</p>
<img src="assets/screenshots/screenshot-11.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-11.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
@ -272,10 +246,10 @@
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> We can add referral physician details..</p>
</div>
<div>
<img src="assets/screenshots/screenshot-12.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-12.png" class="img-thumbnail">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> There are two type of User Access</p>
<img src="assets/screenshots/screenshot-13.png" class="img-thumbnail">
<img src="assets/screenshots/screenshot-14.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-13.png" class="img-thumbnail">
<img src="assets/screenshots/screenshots-14.png" class="img-thumbnail">
</div>
</div>
</div>

3
medical_lab_management/views/lab_test_type.xml

@ -30,7 +30,7 @@
</group>
<notebook>
<page string="Lab Test Type" style="overflow-x:scroll;">
<group>
<field name="test_lines" nolabel="1">
<tree string="Lab Test Type" editable="bottom">
<field name="test_content" />
@ -38,7 +38,6 @@
<field name="interval"/>
</tree>
</field>
</group>
</page>
</notebook>
</sheet>

Loading…
Cancel
Save