-
Notifications
You must be signed in to change notification settings - Fork 444
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
Adjusted SpO2 thresholds and labels in DailyRounds component to match medical standards #9118
Adjusted SpO2 thresholds and labels in DailyRounds component to match medical standards #9118
Conversation
WalkthroughThe changes made in the 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
🧹 Outside diff range and nitpick comments (1)
src/components/Patient/DailyRounds.tsx (1)
777-792
: LGTM! SpO2 thresholds now align with medical standards.The updated SpO2 thresholds and labels accurately reflect the medical classification of hypoxemia:
- <95%: Normal
- 91-94%: Mild Hypoxemia
- 86-90%: Moderate Hypoxemia
- ≤85%: Severe Hypoxemia
Consider adding ARIA labels to improve accessibility for screen readers:
<TextFormField {...field("ventilator_spo2")} labelSuffix="%" type="number" min={0} max={100} + aria-label="SpO2 measurement in percentage" thresholds={[ { value: 0, className: "text-danger-500", label: "Severe Hypoxemia", + aria-label: "SpO2 below 86% indicates severe hypoxemia" }, { value: 86, className: "text-danger-500", label: "Moderate Hypoxemia", + aria-label: "SpO2 between 86% and 90% indicates moderate hypoxemia" }, { value: 91, className: "text-warning-400", label: "Mild Hypoxemia", + aria-label: "SpO2 between 91% and 94% indicates mild hypoxemia" }, { value: 95, className: "text-primary-500", label: "Normal", + aria-label: "SpO2 95% or above is normal" }, ]} />
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.
keep texts in i18n locale files
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.
Why was things changed for resp
field? Changes only need to be there for SpO2 field right?
my bad, fixed it |
LGTM |
@AdityaJ2305 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! 🙌 |
Hey @rithviknishad, I noticed the spo2 field component now appears twice, but previously it was just one instance. The other instance seems to have been added by another PR Should I raise a new PR tagging the same issue number to address this? cc: @Jacobjeevan |
Go ahead and raise an issue. Remove the Textformfield and ensure thresholds labels in RangeAutocompleteFormField match the latest changes. |
… medical standards (ohcnetwork#9118)
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
@rithviknishad
Merge Checklist
Summary by CodeRabbit
New Features
ventilator_spo2
input field to enhance clarity, now displaying "Severe Hypoxemia," "Moderate Hypoxemia," "Mild Hypoxemia," and "Normal."Bug Fixes