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

Add Consultation Specific route for Doctor Notes #6851

Merged
merged 18 commits into from
Dec 20, 2023

Conversation

Pranshu1902
Copy link
Contributor

@Pranshu1902 Pranshu1902 commented Dec 12, 2023

WHAT

🤖[deprecated] Generated by Copilot at 126b14e

This pull request adds a new feature to the consultation module, which allows doctors to view and edit notes for a specific consultation. It modifies the PatientNotesSlideover component to show the notes for a given consultationId, and adds a new route and component ConsultationDoctorNotes for the same purpose. It also passes the consultationId as a prop to the ConsultationDetails component.

Proposed Changes

To open the route:

  1. Go to patient dashboard
  2. Click on Doctor Notes
  3. Click on the window maximize icon
    image

Page view:
image

@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

🤖[deprecated] Generated by Copilot at 126b14e

  • Add a new component to display and add doctor notes for a consultation (link)
  • Pass the consultationId as a prop to the ConsultationDetails component (link) and the PatientNotesSlideover component (link)
  • Use the consultationId to fetch and render the patient notes for a consultation in the PatientNotesList component (link)
  • Update the link to the ConsultationDoctorNotes component in the PatientNotesSlideover component by adding the consultationId as a parameter in the URL (link)
  • Import the ConsultationDoctorNotes component and add a new route for it in the ConsultationRoutes module, using the facilityId, patientId and consultationId as parameters in the URL (link,link)

@Pranshu1902 Pranshu1902 requested a review from a team as a code owner December 12, 2023 11:54
Copy link

vercel bot commented Dec 12, 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 Dec 19, 2023 9:22am

Copy link

netlify bot commented Dec 12, 2023

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 244cfb6
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/658160b7ca65650008758aca
😎 Deploy Preview https://deploy-preview-6851--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.

@Pranshu1902 Pranshu1902 marked this pull request as draft December 12, 2023 11:55
@Pranshu1902 Pranshu1902 marked this pull request as ready for review December 12, 2023 12:20
Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

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

Reduce actions are not supposed to be used in newer PRs. Use useQuery/request

src/Components/Facility/PatientNotesList.tsx Outdated Show resolved Hide resolved
src/Components/Facility/PatientNotesList.tsx Outdated Show resolved Hide resolved
src/Redux/actions.tsx Outdated Show resolved Hide resolved
src/Components/Facility/PatientNotesList.tsx Outdated Show resolved Hide resolved
src/Components/Facility/ConsultationDoctorNotes/index.tsx Outdated Show resolved Hide resolved
src/Components/Facility/models.tsx Outdated Show resolved Hide resolved
@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit 23af9e0 into ohcnetwork:develop Dec 20, 2023
34 of 36 checks passed
Copy link

@Pranshu1902 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌.

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