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

Restructured Consent Records #7946

Merged
merged 11 commits into from
Jun 7, 2024
Merged

Restructured Consent Records #7946

merged 11 commits into from
Jun 7, 2024

Conversation

shivankacker
Copy link
Member

@shivankacker shivankacker commented May 30, 2024

Dependant on ohcnetwork/care#2209 and ohcnetwork/care#2251

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

@shivankacker shivankacker requested a review from a team as a code owner May 30, 2024 19:03
Copy link

vercel bot commented May 30, 2024

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 Jun 7, 2024 6:49am

Copy link

netlify bot commented May 30, 2024

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 0c5dbbb
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/6662ad4b6434870008d6b180
😎 Deploy Preview https://deploy-preview-7946--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 configuration.

Copy link

cypress bot commented May 30, 2024

Passing run #2716 ↗︎

0 124 0 0 Flakiness 0

Details:

Restructured Consent Records
Project: CARE Commit: 1ca8767a7c
Status: Passed Duration: 03:24 💡
Started: Jun 6, 2024 5:08 PM Ended: Jun 6, 2024 5:11 PM

Review all test suite changes for PR #7946 ↗︎

@shivankacker
Copy link
Member Author

Cypress failing due to unavailable endpoints. Should work after backend PR is merged

@nihal467
Copy link
Member

nihal467 commented May 31, 2024

@skks1212 @gigincg

Bug

image

  • as per issue, if all existing uploaded files are archived and no active file are present, the consent missing badge should appear in the consultation, but in the PR, it is not behaving as expect

image
image

  • when user uploads a .xlsx file, the process will get completed, but preview mode will fail. In existing consultation file upload, .xlsx format doesn't have preview. So, as a solution, it's better to restrict upload on consent to support only images and pdf formats

Additional Enhancement for Better User Experience

  • Add a edit button for users, in case they want to modify the file name

image

  • once a file is archived, you should replace upload by user name with the username who archived it
    image
  • since you are replacing username based on the above comment, add the created by and at details in the more details pop-up

image

  • currently, in the more info pop-up everything is center aligned, doesn't look good, as a mockup i tried playing around with the UI, can you look into the scope making the pop-up UI better

@nihal467
Copy link
Member

nihal467 commented Jun 4, 2024

@skks1212
image

we are not able to upload a file to the consent

@nihal467
Copy link
Member

nihal467 commented Jun 4, 2024

@skks1212
image
image

  • the page is properly responsive in multiple screen

image

  • more info page pop-up is failing responsive view

@nihal467
Copy link
Member

nihal467 commented Jun 4, 2024

LGTM

@shivankacker
Copy link
Member Author

Cypress tests failing likely due to new endpoint not present during testing

Copy link
Member

@gigincg gigincg left a comment

Choose a reason for hiding this comment

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

Mentioning a few improvements that can be taken up as a separate issue

src/Components/Patient/PatientConsentRecords.tsx Outdated Show resolved Hide resolved
});

const fileManager = useFileManager({
type: "CONSENT_RECORD",
onArchive: async () => {
refetch();
refetchFiles();
Copy link
Member

Choose a reason for hiding this comment

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

Explore the possibility of Joining Applicable Files with the Consent Records on the backend

archiveFile={fileManager.archiveFile}
editFile={fileManager.editFile}
showArchive={showArchived}
files={files?.results.filter(
Copy link
Member

Choose a reason for hiding this comment

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

Explore the possibility to Associate Files to consentRecord State, rather than using a separate state for consent and files

Consent Records Missing
</span>
{!consentFilesLoading &&
!consentRecordsLoading &&
Copy link
Member

Choose a reason for hiding this comment

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

Can be rendered when consentRecords Load, and the Card can be further enriched with files ones that's available in the state

src/Utils/useFileUpload.tsx Outdated Show resolved Hide resolved
src/Utils/useFileUpload.tsx Outdated Show resolved Hide resolved
src/Components/Patient/PatientConsentRecordBlock.tsx Outdated Show resolved Hide resolved
@shivankacker
Copy link
Member Author

@nihal467 is some testing left on this PR? It is ready to merge

@nihal467
Copy link
Member

nihal467 commented Jun 7, 2024

LGTM

@gigincg gigincg dismissed khavinshankar’s stale review June 7, 2024 06:49

Dismissing to Merge

@gigincg gigincg merged commit ed7b307 into develop Jun 7, 2024
23 of 27 checks passed
@gigincg gigincg deleted the consent-restructure branch June 7, 2024 06:49
Copy link

github-actions bot commented Jun 7, 2024

@skks1212 Your efforts have helped advance digital healthcare and TeleICU systems. 🚀 Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement to the Patient consent
5 participants