Added support for hcx communication #5473
Closed
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.
WHAT
🤖 Generated by Copilot at 4f5ca89
The pull request adds a new feature for managing HCX claims and communications in the frontend. It introduces a new
ClaimCard
component that displays the claim details and allows the user to toggle the communication view. It also adds new actions, types, and API endpoints for interacting with the HCX server. It updates the UI and functionality of the existingDischargeModal
andFileUpload
components to use the new feature. It also makes some minor style and configuration changes invite.config.ts
anduseConfig.ts
.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at 4f5ca89
enable_hcx: true
in theuseConfig
hook (link)ClaimCard
component to render claim information and communication in a compact and interactive design (link)ClaimDetailCard
component withClaimCard
component inConsultationClaims
andDischargeModal
components (link, link, link)ClaimDetailCard
component toClaimCardInfo
and move it tosrc/Components/HCX/ClaimCardInfo.tsx
(link)ClaimCardInfo
component to remove unnecessarydiv
wrappers, addCareIcon
component to toggle communication view, and changeflex
direction (link, link, link)ClaimCardCommunication
component to render messages and responses related to a claim, and allow adding, deleting, and submitting responses (link)SendCommunicationModal
component to render a modal dialog for uploading supporting documents and sending communication to HCX server (link)HCXCommunicationModel
interface to define the shape of the communication object (link)communications
object toHCXActions
to define actions for creating, reading, updating, deleting, and listing communications (link)sendCommunication
function toHCXActions
to dispatch request to HCX server with communication id as payload (link)src/Redux/api.tsx
(link)FileUpload
component to acceptcommunicationId
prop and filter file uploads by communication (link, link, link, link, link)CareIcon
,ConsultationClaims
,FileUpload
, andvite.config.ts
(link, link, link, link)vite.config.ts
(link, link, link)