Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Duplicate patient records present in CSV export if patient has multiple policies associated with them #5500

Merged
merged 2 commits into from
May 25, 2023

Conversation

patelaryan7751
Copy link
Contributor

@patelaryan7751 patelaryan7751 commented May 21, 2023

WHAT

🤖 Generated by Copilot at ec1946e

This pull request enhances the data export functionality by allowing custom parsing of data for different export items and by preventing duplicate patients due to policy ID in the CSV export. It modifies src/Components/Common/Export.tsx and src/Components/Patient/ManagePatients.tsx to implement these features.

Proposed Changes

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

HOW

🤖 Generated by Copilot at ec1946e

  • Add parse property to ExportItem interface to allow custom data transformation before exporting (link)
  • Pass parse function from exportItems array to exportFile function and use it to process data if defined (link)
  • Define preventDuplicatePatientsDuetoPolicyId function to remove duplicate patients based on ID and merge policy IDs with semicolon (link)
  • Apply preventDuplicatePatientsDuetoPolicyId function as parse function for patient export items in ManagePatients.tsx to improve data quality and accuracy (link)

@patelaryan7751 patelaryan7751 requested a review from a team May 21, 2023 09:07
@patelaryan7751 patelaryan7751 requested a review from a team as a code owner May 21, 2023 09:07
@vercel
Copy link

vercel bot commented May 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2023 4:34am

@netlify
Copy link

netlify bot commented May 21, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit c4ceb76
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/646ee50fe297ed0008ae7860
😎 Deploy Preview https://deploy-preview-5500--care-egov-staging.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@nihal467
Copy link
Member

LGTM

@sonarcloud
Copy link

sonarcloud bot commented May 25, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@khavinshankar khavinshankar merged commit 52e03a7 into ohcnetwork:develop May 25, 2023
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.

Duplicate patient records present in CSV export if patient has multiple policies associated with them
3 participants