Skip to content

feat(jubilee): add Jubilee Benefit DocType to store member benefits#1182

Merged
av-dev2 merged 1 commit intoAakvatech-Limited:nurse-ot-modulefrom
av-dev2:feat_nurse_ot_module
Apr 23, 2026
Merged

feat(jubilee): add Jubilee Benefit DocType to store member benefits#1182
av-dev2 merged 1 commit intoAakvatech-Limited:nurse-ot-modulefrom
av-dev2:feat_nurse_ot_module

Conversation

@av-dev2
Copy link
Copy Markdown
Collaborator

@av-dev2 av-dev2 commented Apr 23, 2026

Add a new DocType 'Jubilee Benefit' under the Jubilee module to persist insurance benefit records retrieved from the Jubilee AuthorizeCard API response. Each benefit record captures the BenefitCode, BenefitName, and BenefitBalance returned in the authorization response's Benefits array, linked to the patient, appointment, and authorization number.

DocType fields:

  • benefit_code (Data): Jubilee numeric benefit code (e.g. 7905)
  • benefit_name (Small Text): human-readable benefit label
  • benefit_balance (Data): remaining balance string
  • card_no (Data): member card number
  • patient (Link → Patient)
  • patient_appointment (Link → Patient Appointment)
  • authorization_no (Data): from AuthorizeCard response
  • company (Link → Company)
  • posting_date (Date, default: Today)
  • posting_time (Time, default: Now)

Naming: autoname hash (same benefit code can exist across patients).
Permissions: System Manager (full CRUD), Healthcare Administrator (R/W).

Files added:

  • jubilee_benefit/init.py
  • jubilee_benefit/jubilee_benefit.json
  • jubilee_benefit/jubilee_benefit.py
  • jubilee_benefit/jubilee_benefit.js
  • jubilee_benefit/test_jubilee_benefit.py

Add a new DocType 'Jubilee Benefit' under the Jubilee module to persist
insurance benefit records retrieved from the Jubilee AuthorizeCard API
response. Each benefit record captures the BenefitCode, BenefitName,
and BenefitBalance returned in the authorization response's Benefits
array, linked to the patient, appointment, and authorization number.

DocType fields:
- benefit_code (Data): Jubilee numeric benefit code (e.g. 7905)
- benefit_name (Small Text): human-readable benefit label
- benefit_balance (Data): remaining balance string
- card_no (Data): member card number
- patient (Link → Patient)
- patient_appointment (Link → Patient Appointment)
- authorization_no (Data): from AuthorizeCard response
- company (Link → Company)
- posting_date (Date, default: Today)
- posting_time (Time, default: Now)

Naming: autoname hash (same benefit code can exist across patients).
Permissions: System Manager (full CRUD), Healthcare Administrator (R/W).

Files added:
- jubilee_benefit/__init__.py
- jubilee_benefit/jubilee_benefit.json
- jubilee_benefit/jubilee_benefit.py
- jubilee_benefit/jubilee_benefit.js
- jubilee_benefit/test_jubilee_benefit.py
@av-dev2 av-dev2 merged commit 2746a5d into Aakvatech-Limited:nurse-ot-module Apr 23, 2026
1 check failed
@codacy-production
Copy link
Copy Markdown

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant