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

Edited the nursing care section to a table under nursing tab of patient #8579

Conversation

Sahil-Sinha-11
Copy link

@Sahil-Sinha-11 Sahil-Sinha-11 commented Sep 21, 2024

Proposed Changes

@ohcnetwork/care-fe-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

@Sahil-Sinha-11 Sahil-Sinha-11 requested a review from a team as a code owner September 21, 2024 09:15
Copy link

netlify bot commented Sep 21, 2024

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit 436d4bd
🔍 Latest deploy log https://app.netlify.com/sites/care-ohc/deploys/66ee8eb5ff317d00082275ce
😎 Deploy Preview https://deploy-preview-8579--care-ohc.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.

Comment on lines +74 to +80
const groupedByDate: any = {};
dataToDisplay.forEach((item: any) => {
if (!groupedByDate[item.date]) {
groupedByDate[item.date] = [];
}
groupedByDate[item.date].push(item);
});
Copy link
Member

Choose a reason for hiding this comment

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

Can we keep the logic too similar to what's present in the Routine table at least?

Ideally let's have a reusable component for this, as it could be re-used in couple of other places as well eventually.

Let's also avoid the usage of any

Copy link
Author

Choose a reason for hiding this comment

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

Hey @rithviknishad, I tired to make a reusable component but the model of nursing care procedures is different and I am not able to extract data in the same way as in Routine , could you please guide me how can I proceed.

Copy link
Member

Choose a reason for hiding this comment

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

You can pass the list of fields as a prop

Copy link
Author

@Sahil-Sinha-11 Sahil-Sinha-11 Sep 24, 2024

Choose a reason for hiding this comment

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

hey @rithviknishad , the Routine section has fields and subfields but the NURSING_CARE_PROCEDURES have only field , so using the same component is not looking good. I cat still use some conditions but that is not looking Ideal. Should I proceed with the component or leave it separately?

Copy link
Member

Choose a reason for hiding this comment

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

you can simply skip defining sub-fields for procedures right?

Copy link
Author

Choose a reason for hiding this comment

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

Hey @rithviknishad I made a new PR with the changes . #8608 .

Copy link
Member

Choose a reason for hiding this comment

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

Also discard changes made to the lockfile.

@rithviknishad
Copy link
Member

Also, not all tasks mentioned in the issue is solved. Drop a comment once ready for review.

@rithviknishad
Copy link
Member

Closing as duplicate of #8608

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.

Enhancements to Nursing tab UI
3 participants