Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abdm milestone 1 #121

Merged
merged 28 commits into from
Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5a941dd
feat: ABDM - Milestone 1
akashkrishna619 Mar 23, 2022
f917d6c
fix: ABHA creation using mobile
Sajinsr Mar 16, 2022
11d33aa
fix: Code cleanup and sandbox_config update
Sajinsr Mar 18, 2022
6cb8b27
fix: QR code scanning in ABHA address verification
akashkrishna619 Mar 18, 2022
184bc6e
fix: Health ID verification with Authentication
akashkrishna619 Mar 21, 2022
7889029
fix: Code cleanup with verification response shown in dialog
akashkrishna619 Mar 24, 2022
ad21236
fix: Remove unused file
ChillarAnand Mar 25, 2022
135f9f1
refactor: Clean up code
ChillarAnand Mar 25, 2022
26a3349
fix: Setup QR code scanner
akashkrishna619 Mar 25, 2022
6e9a39d
fix: Icon to search username, Save data to frm on abha creation by aa…
akashkrishna619 Mar 26, 2022
3af9d45
fix: Text changes
akashkrishna619 Mar 28, 2022
f101759
refactor: ABHA creation
akashkrishna619 Mar 30, 2022
c3d0105
fix: Remove mobile mode in ABHA creation
akashkrishna619 Mar 30, 2022
66b1de1
fix: Search with ABHA adress and verify
akashkrishna619 Mar 31, 2022
11bdba0
fix: Primary btn disables on error message, Route to patient form if …
akashkrishna619 Apr 18, 2022
6748c71
fix: Print consent form and ABHA card png
akashkrishna619 May 3, 2022
7987ae0
fix: Fix casing for abha card
ChillarAnand Apr 20, 2022
7344c15
test: Added tests for abdm aadhaar flow
ChillarAnand Apr 20, 2022
45f755d
refactor: Code clean up
ChillarAnand Apr 20, 2022
9f8f5c6
fix: Added responses package
ChillarAnand Apr 20, 2022
832bfe1
fix: Show ABHA card of existing patient on creation and linking
akashkrishna619 Apr 20, 2022
33c615c
fix: Remove regional from modules
ChillarAnand Apr 21, 2022
e88515f
fix: ABHA creation - modified print consent button
akashkrishna619 Apr 22, 2022
6d2ab06
fix: Create custom fields for abdm on after install of healthcare app
Jul 23, 2022
4a51198
fix: Renamed ABDM Integration to ABDM Settings
Aug 8, 2022
670c4d1
fix: Change in design
Aug 14, 2022
d9e0147
Merge branch 'develop' into abdm_milestone_1
ChillarAnand Nov 4, 2022
5e52781
chore: Clean up lint issues
ChillarAnand Nov 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
8 changes: 8 additions & 0 deletions healthcare/healthcare/doctype/abdm_request/abdm_request.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2022, healthcare and contributors
// For license information, please see license.txt

frappe.ui.form.on('ABDM Request', {
// refresh: function(frm) {

// }
});
107 changes: 107 additions & 0 deletions healthcare/healthcare/doctype/abdm_request/abdm_request.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2022-03-15 18:16:17.060579",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"request_name",
"request_date",
"column_break_3",
"status",
"url",
"section_break_4",
"request",
"traceback",
"column_break_6",
"response"
],
"fields": [
{
"fieldname": "request_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Request Name",
"read_only": 1
},
{
"default": "Now",
"fieldname": "request_date",
"fieldtype": "Datetime",
"label": "Request Date",
"read_only": 1
},
{
"fieldname": "status",
"fieldtype": "Select",
"in_list_view": 1,
"in_standard_filter": 1,
"label": "Status",
"options": "Requested\nGranted\nRevoked\nExpired\nDenied",
"read_only": 1
},
{
"fieldname": "section_break_4",
"fieldtype": "Section Break"
},
{
"fieldname": "request",
"fieldtype": "Code",
"label": "Request",
"read_only": 1
},
{
"fieldname": "column_break_6",
"fieldtype": "Column Break"
},
{
"fieldname": "response",
"fieldtype": "Code",
"label": "Response",
"read_only": 1
},
{
"fieldname": "column_break_3",
"fieldtype": "Column Break"
},
{
"fieldname": "url",
"fieldtype": "Data",
"label": "URL"
},
{
"fieldname": "traceback",
"fieldtype": "Code",
"label": "Traceback",
"read_only": 1
}
],
"in_create": 1,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-03-24 11:11:01.555036",
"modified_by": "Administrator",
"module": "Healthcare",
"name": "ABDM Request",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": [],
"track_changes": 1,
"track_seen": 1
}
9 changes: 9 additions & 0 deletions healthcare/healthcare/doctype/abdm_request/abdm_request.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2022, healthcare and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class ABDMRequest(Document):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2022, healthcare and Contributors
# See license.txt

# import frappe
import unittest


class TestABDMRequest(unittest.TestCase):
pass
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2022, healthcare and contributors
// For license information, please see license.txt

frappe.ui.form.on('ABDM Settings', {
// refresh: function(frm) {

// }
});
131 changes: 131 additions & 0 deletions healthcare/healthcare/doctype/abdm_settings/abdm_settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "format:{gateway_name}-{company}",
"creation": "2022-03-14 20:32:55.651045",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"gateway_name",
"default",
"column_break_2",
"company",
"authorization_section",
"auth_base_url",
"column_break_7",
"client_id",
"client_secret",
"consent_section_section",
"patient_aadhaar_consent",
"health_id_service_section",
"health_id_base_url",
"consent_management_section",
"consent_base_url"
],
"fields": [
{
"fieldname": "column_break_2",
"fieldtype": "Column Break"
},
{
"fieldname": "company",
"fieldtype": "Link",
"label": "Company",
"options": "Company"
},
{
"default": "0",
"fieldname": "default",
"fieldtype": "Check",
"label": "Default"
},
{
"fieldname": "client_id",
"fieldtype": "Data",
"label": "Client ID"
},
{
"fieldname": "client_secret",
"fieldtype": "Data",
"label": "Client Secret"
},
{
"fieldname": "auth_base_url",
"fieldtype": "Data",
"label": "Base URL"
},
{
"fieldname": "gateway_name",
"fieldtype": "Data",
"label": "Gateway Name"
},
{
"fieldname": "authorization_section",
"fieldtype": "Section Break",
"label": "Authorization"
},
{
"fieldname": "column_break_7",
"fieldtype": "Column Break"
},
{
"fieldname": "health_id_service_section",
"fieldtype": "Section Break",
"label": "Health ID Service"
},
{
"fieldname": "health_id_base_url",
"fieldtype": "Data",
"label": "Base URL"
},
{
"fieldname": "consent_management_section",
"fieldtype": "Section Break",
"label": "Consent Management"
},
{
"fieldname": "consent_base_url",
"fieldtype": "Data",
"label": "Base URL"
},
{
"collapsible": 1,
"fieldname": "consent_section_section",
"fieldtype": "Section Break",
"label": "Consent Section"
},
{
"description": "Patient Consent To Use Aadhaar For ABHA Creation",
"fieldname": "patient_aadhaar_consent",
"fieldtype": "Link",
"label": "Patient Aadhaar Consent",
"options": "Terms and Conditions"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2022-04-18 14:59:24.279125",
"modified_by": "Administrator",
"module": "Healthcare",
"name": "ABDM Settings",
"naming_rule": "By fieldname",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2022, healthcare and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class ABDMSettings(Document):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2022, healthcare and Contributors
# See license.txt

# import frappe
import unittest


class TestABDMSettings(unittest.TestCase):
pass
1 change: 1 addition & 0 deletions healthcare/healthcare/doctype/patient/patient.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright (c) 2016, ESS LLP and contributors
// For license information, please see license.txt
{% include 'healthcare/regional/india/abdm/js/patient.js' %}

frappe.ui.form.on('Patient', {
refresh: function (frm) {
Expand Down
8 changes: 8 additions & 0 deletions healthcare/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,17 @@
"on_submit": "healthcare.healthcare.utils.manage_invoice_submit_cancel",
"on_cancel": "healthcare.healthcare.utils.manage_invoice_submit_cancel",
},
"Payment Entry": {
"on_submit": "healthcare.healthcare.doctype.insurance_claim.insurance_claim.validate_payment_entry_and_set_claim_fields",
"on_submit": "healthcare.healthcare.doctype.insurance_claim.insurance_claim.update_claim_paid_amount",
"on_cancel": "healthcare.healthcare.doctype.insurance_claim.insurance_claim.update_claim_paid_amount",
},
"Company": {
"after_insert": "healthcare.healthcare.utils.create_healthcare_service_unit_tree_root"
},
"Patient": {
"after_insert": "healthcare.regional.india.abdm.utils.set_consent_attachment_details"
},
}

scheduler_events = {
Expand Down
2 changes: 1 addition & 1 deletion healthcare/modules.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Healthcare
Healthcare
1 change: 1 addition & 0 deletions healthcare/patches.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
healthcare.patches.v0_0.setup_abdm_custom_fields
11 changes: 11 additions & 0 deletions healthcare/patches/v0_0/setup_abdm_custom_fields.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import frappe


def execute():
company = frappe.get_all("Company", filters={"country": "India"})
if not company:
return

from healthcare.regional.india.abdm.setup import setup

setup()
Empty file.
Empty file.
Empty file.
Loading