Skip to content

feat(jubilee): add Jubilee Verify Services button and benefit selection dialog#1185

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 Verify Services button and benefit selection dialog#1185
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

Wire up the Jubilee service verification UI on the Patient Encounter form. When a practitioner clicks "Verify Services", a frappe.prompt dialog is shown allowing them to select a Jubilee Benefit (linked to the Jubilee Benefit DocType), displaying benefit_name and benefit_code as read-only fetched fields. The selected benefit_code is then passed to the verify_jubilee_services API endpoint.

Changes in patient_encounter.js:

jubilee_btns():

  • New function that initializes Jubilee-specific UI buttons on the Patient Encounter form
  • Called from setup, onload, and refresh lifecycle hooks alongside the existing nhif_btns() function

verify_services_btn():

  • Add frappe.prompt dialog with a Link field to Jubilee Benefit DocType, filtered by the current appointment
  • Display benefit_name and benefit_code as read-only fetched fields so the practitioner sees what they are selecting
  • On submit, call verify_jubilee_services with the selected benefit_code, then reload the form and show a success alert
  • Require jubilee_procedure field to be filled before verification, scrolling to and toggling it as mandatory if empty

Code formatting:

  • Fix prettier-applied formatting in reuse_lrpmt_items HTML template strings (template literal line breaks reformatted by linter)
  • Minor whitespace cleanup in insurance_coverage_plan message

…on dialog

Wire up the Jubilee service verification UI on the Patient Encounter
form. When a practitioner clicks "Verify Services", a frappe.prompt
dialog is shown allowing them to select a Jubilee Benefit (linked to
the Jubilee Benefit DocType), displaying benefit_name and benefit_code
as read-only fetched fields. The selected benefit_code is then passed
to the verify_jubilee_services API endpoint.

Changes in patient_encounter.js:

jubilee_btns():
- New function that initializes Jubilee-specific UI buttons on the
  Patient Encounter form
- Called from setup, onload, and refresh lifecycle hooks alongside
  the existing nhif_btns() function

verify_services_btn():
- Add frappe.prompt dialog with a Link field to Jubilee Benefit
  DocType, filtered by the current appointment
- Display benefit_name and benefit_code as read-only fetched fields
  so the practitioner sees what they are selecting
- On submit, call verify_jubilee_services with the selected
  benefit_code, then reload the form and show a success alert
- Require jubilee_procedure field to be filled before verification,
  scrolling to and toggling it as mandatory if empty

Code formatting:
- Fix prettier-applied formatting in reuse_lrpmt_items HTML template
  strings (template literal line breaks reformatted by linter)
- Minor whitespace cleanup in insurance_coverage_plan message
@av-dev2 av-dev2 merged commit 96f632c 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