Skip to content

improve the claim form OP-2586#237

Open
Blue-B-code wants to merge 8 commits intoopenimis:developfrom
mngoe:feature-33756
Open

improve the claim form OP-2586#237
Blue-B-code wants to merge 8 commits intoopenimis:developfrom
mngoe:feature-33756

Conversation

@Blue-B-code
Copy link
Copy Markdown
Contributor

@Blue-B-code Blue-B-code commented Oct 1, 2025

When the user opens the claim form, they are faced with many fields to fill in. To make this task easier and improve the UI and UX, we proposed organizing these fields into subsections, as shown in the screenshots.

Capture d’écran du 2025-10-07 12-26-25 Capture d’écran du 2025-10-07 12-26-37 Capture d’écran du 2025-10-07 12-26-46

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Oct 7, 2025

@Blue-B-code Blue-B-code changed the title improve the claim form improve the claim form OP-2586 Oct 7, 2025
@meddhiakassab meddhiakassab self-requested a review December 21, 2025 21:59
@meddhiakassab
Copy link
Copy Markdown
Member

could you please resolve the merge conflicts?

Copy link
Copy Markdown

@Aya-OURAG-Speedykom Aya-OURAG-Speedykom left a comment

Choose a reason for hiding this comment

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

thanks for resolving the conflicts @Blue-B-code unfortunately, the new updated ClaimMasterPanel file contains JSX structure issues, such as missing closing tags (e.g., ), they might be due to merge conflict resolution, please check :

Image

Comment thread src/translations/fr.json Outdated
@sonarqubecloud
Copy link
Copy Markdown

<Grid container item spacing={2}>
{/* Section 2: Insuree Information */}
<Grid item xs={6}>
<Typography variant="h8" className={classes.sectionHeader}>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

actually typography variant="h8" doesn't exist in Material UI. Valid variants go up to h6. This won't crash but will render as default body text, so the section headers might not look as intended

</Grid>
)}

{(!!edited.visitType && edited.visitType == REFERRAL) || (!!edited.patientCondition && edited.patientCondition == REFERRAL) ? (
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@Blue-B-code the fields are indeed now grouped into sections, which improves the form's readability. However, I found some issues for example, Claim.referHealthFacility is duplicated. When we choose "Referral" as the visit type (or patient condition), the Refer Health Facility picker is rendered twice in the Visit Details section. This is also visible in the code, where the ControlledField with id="Claim.referHealthFacility" appears in two separate places within the same section. One of the two blocks should be removed I'd suggest keeping the first one, as its value logic (with the referFrom fallback) matches the original behavior.
Image

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.

4 participants