feat(jubilee): add Jubilee Verify Services button and benefit selection dialog#1185
Merged
av-dev2 merged 1 commit intoAakvatech-Limited:nurse-ot-modulefrom Apr 23, 2026
Merged
Conversation
…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
Not up to standards ⛔
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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():
verify_services_btn():
Code formatting: