Skip to content

#19012 create wireframe for investigation wise research#19623

Merged
buddhika75 merged 3 commits intodevelopmentfrom
19012-create-wireframe-for-investigation-wise-research
Apr 4, 2026
Merged

#19012 create wireframe for investigation wise research#19623
buddhika75 merged 3 commits intodevelopmentfrom
19012-create-wireframe-for-investigation-wise-research

Conversation

@DhaneshKaushan
Copy link
Copy Markdown
Contributor

@DhaneshKaushan DhaneshKaushan commented Mar 31, 2026

Summary by CodeRabbit

  • New Features

    • Added multiple action buttons (Process, Print All, Download, PDF) to the report toolbar and enhanced the results table with expanded columns and pagination.
  • UI/UX Improvements

    • Redesigned page layout and rebuilt the filter area with additional selector controls for institution/site/department/lab/investigation/parameter/age/result/gender/diagnosis/visit type (note: several controls are currently placeholders and not yet wired to backend actions).

Signed-off-by: Dhanesh Kaushan <dhaneshkaushan@gmail.com>
… 19012-create-wireframe-for-investigation-wise-research
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 31, 2026

Walkthrough

Restructured the investigation-wise report XHTML: body and composition classes added, filter section rebuilt into panel-based form with new date/select/autocomplete inputs (many unbound), multiple action buttons added, and the results table replaced with a paginated dataTable with explicit columns and empty cell placeholders.

Changes

Cohort / File(s) Summary
Report Page UI Redesign
src/main/webapp/reports/lab/investigation_wise_report.xhtml
Reworked page layout and styling (added class="w-100 border" to body and included composition). Replaced original filter inputs and AJAX bindings with a new <h:form> containing panel groups and many new controls (date pickers, selects, autocompletes) that lack backing value/methods. Replaced single “Process” button with a horizontal group of action buttons (Process, Print All, Download, PDF) that specify icons/values but no action handlers. Removed prior summary grid and placeholder table; added bordered header-like panelGrid and a paginated p:dataTable id="invesWiseTable" with explicit columns (MRN, Visit Type, Lab Department, Gender, Name, Diagnosis, Age, Investigation, Result, Remarks) whose cell bodies are currently empty/placeholders.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: creating a wireframe for investigation-wise reporting by restructuring the XHTML layout and replacing controller-bound components with new form elements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 19012-create-wireframe-for-investigation-wise-research

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
src/main/webapp/reports/lab/investigation_wise_report.xhtml (1)

262-273: DataTable missing value attribute.

The p:dataTable lacks a value attribute, which defines the data source. While this may render an empty table in some PrimeFaces versions, it could cause issues in others. For a cleaner wireframe, consider adding an empty value binding or removing var="var" until data is wired.

♻️ Suggested approach for wireframe
 <p:dataTable
     id="invesWiseTable"
-    var="var"
-    rowIndexVar="n"
+    value="#{null}"
     paginator="true"
     paginatorPosition="bottom"
     rows="10"

Or alternatively, add emptyMessage for better UX:

 <p:dataTable
     id="invesWiseTable"
     var="var"
     rowIndexVar="n"
+    value="#{reportController.investigationWiseData}"
     paginator="true"
     paginatorPosition="bottom"
     rows="10"
-    rendered="true"
+    emptyMessage="No records found"

Please verify the page renders correctly with the current dataTable configuration.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/main/webapp/reports/lab/investigation_wise_report.xhtml` around lines 262
- 273, The p:dataTable with id "invesWiseTable" is missing a value binding (it
currently has var="var" but no value), which can break rendering; fix by adding
an appropriate value binding to the backing bean (e.g., bind to a
List/Collection property on your view bean used for this report) or remove the
var attribute until data is available, and optionally add an emptyMessage to
improve UX; locate the p:dataTable element (id="invesWiseTable") and either set
value to the bean property or remove var="var" and add emptyMessage to handle
no-data cases.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/main/webapp/reports/lab/investigation_wise_report.xhtml`:
- Around line 125-145: Fix the typo in the select item labels for the Age and
Result dropdowns: change the f:selectItem with itemValue="GT" inside the
p:selectOneMenu components identified by id="sAge" and id="sRst" so their
itemLabel reads "Greater than" instead of "Grater than"; update both occurrences
to ensure consistent user-facing text.
- Around line 95-99: Fix the typo in the select item label for the lab dropdown:
locate the p:selectOneMenu with id="sLab" and change the f:selectItem whose
itemValue="P" and itemLabel="Pathelogy" to use the correct spelling "Pathology"
so the displayed option reads "Pathology".
- Around line 163-167: The p:autoComplete component with id "acDiagnosisItem"
contains an invalid EL in the attribute completeMethod="#" — remove the
completeMethod="#" attribute from the <p:autoComplete id="acDiagnosisItem" ...>
tag (or replace it with the correct method reference if a completion method is
required) so the component no longer uses the invalid EL syntax; keep other
attributes (id, inputStyleClass, styleClass, value, var, itemLabel, itemValue)
unchanged.

---

Nitpick comments:
In `@src/main/webapp/reports/lab/investigation_wise_report.xhtml`:
- Around line 262-273: The p:dataTable with id "invesWiseTable" is missing a
value binding (it currently has var="var" but no value), which can break
rendering; fix by adding an appropriate value binding to the backing bean (e.g.,
bind to a List/Collection property on your view bean used for this report) or
remove the var attribute until data is available, and optionally add an
emptyMessage to improve UX; locate the p:dataTable element (id="invesWiseTable")
and either set value to the bean property or remove var="var" and add
emptyMessage to handle no-data cases.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8b4d9fe7-aa0c-428f-a585-3a829bfa4485

📥 Commits

Reviewing files that changed from the base of the PR and between 78a2035 and c35dc25.

📒 Files selected for processing (1)
  • src/main/webapp/reports/lab/investigation_wise_report.xhtml

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

♻️ Duplicate comments (1)
src/main/webapp/reports/lab/investigation_wise_report.xhtml (1)

105-109: ⚠️ Potential issue | 🟠 Major

Remove the placeholder completeMethod="#" from both autocompletes.

PrimeFaces expects completeMethod to resolve to a method expression; # is only a literal string, so these autocompletes are not validly configured. For a wireframe placeholder, omit completeMethod until the real backend method exists. (primefaces.github.io)

Minimal placeholder fix
 <p:autoComplete id="acInvestigationItem" inputStyleClass="w-100"
                 styleClass="w-100" value=""
-                completeMethod="#" var="ix"
+                var="ix"
                 itemLabel=""
                 itemValue="" />
@@
 <p:autoComplete id="acDiagnosisItem" inputStyleClass="w-100"
                 styleClass="w-100" value=""
-                completeMethod="#" var="ix"
+                var="ix"
                 itemLabel=""
                 itemValue="" />

Based on learnings, this is "wireframe/UI-only work" and "backend logic and proper method bindings will be implemented in a later phase."

Also applies to: 163-167

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/main/webapp/reports/lab/investigation_wise_report.xhtml` around lines 105
- 109, The p:autoComplete components (e.g., the one with
id="acInvestigationItem") currently include a placeholder completeMethod="#"
which is invalid; remove the completeMethod="#" attribute from these
autocomplete tags (also apply the same removal to the other autocomplete at the
same pattern around lines 163-167) so the components are wireframe-only until a
real backend method is implemented; do not replace with a dummy string—simply
omit the completeMethod attribute.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/main/webapp/reports/lab/investigation_wise_report.xhtml`:
- Around line 9-13: Remove the redundant outer h:body wrapper's class attributes
because Facelets ignores markup outside <ui:composition>; keep the styling on
the <ui:composition> element instead. Locate the outer <h:body class="w-100
border"> and delete the class="w-100 border" (or remove the entire <h:body>
wrapper if it's unused), ensuring the <ui:composition
template="/reports/index.xhtml" class="w-100 border"> remains as the rendered
wrapper.
- Around line 184-206: The four p:commandButton elements (the ones with
value="Process", value="Print All", value="Download", and value="PDF") are
missing action attributes and will submit the form by default; add action="null"
to each of these p:commandButton tags to explicitly prevent submission and match
the wireframe pattern used elsewhere (e.g., the pattern used in
turn_around_time_details.xhtml), leaving backend method bindings to be added in
a later PR.

---

Duplicate comments:
In `@src/main/webapp/reports/lab/investigation_wise_report.xhtml`:
- Around line 105-109: The p:autoComplete components (e.g., the one with
id="acInvestigationItem") currently include a placeholder completeMethod="#"
which is invalid; remove the completeMethod="#" attribute from these
autocomplete tags (also apply the same removal to the other autocomplete at the
same pattern around lines 163-167) so the components are wireframe-only until a
real backend method is implemented; do not replace with a dummy string—simply
omit the completeMethod attribute.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 082cae6e-1433-42c8-949a-ebdd317d6e1e

📥 Commits

Reviewing files that changed from the base of the PR and between c35dc25 and b05df60.

📒 Files selected for processing (1)
  • src/main/webapp/reports/lab/investigation_wise_report.xhtml

@buddhika75 buddhika75 merged commit 34006b1 into development Apr 4, 2026
3 checks passed
@buddhika75 buddhika75 deleted the 19012-create-wireframe-for-investigation-wise-research branch April 4, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants