-
Notifications
You must be signed in to change notification settings - Fork 492
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
Fix: Add review time to patient card. #9493
Fix: Add review time to patient card. #9493
Conversation
WalkthroughThe changes in Changes
Assessment against linked issues
Possibly related PRs
Suggested Labels
Suggested Reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/components/Patient/ManagePatients.tsx (1)
592-605
: LGTM! Consider enhancing null safetyThe changes improve the user experience by clearly distinguishing between missed and upcoming reviews with appropriate visual indicators and timing information.
Consider adding an additional null check for review_time to prevent potential runtime errors:
- patient.review_time && + patient.review_time && dayjs(patient.review_time).isValid() && !patient.last_consultation?.discharge_date && Number(patient.last_consultation?.review_interval) > 0
Duplicate of #9486 Request for issues to be assigned before working on them. |
Oh, ok. I’ll make sure to double-check in the future, but since it had two closed PRs, I assumed it was open for work. |
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
New Features
Bug Fixes