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

Added SpO2 in community nurse log update form #8916

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@
"hi__record_not_fetched_title": "This record hasn't been fetched yet",
"hi__waiting_for_record": "Waiting for the Host HIP to send the record.",
"hide": "Hide",
"high": "High",
"home_facility": "Home Facility",
"hubs": "Hub Facilities",
"i_declare": "I hereby declare that:",
Expand Down Expand Up @@ -793,6 +794,7 @@
"log_report": "Log Report",
"login": "Login",
"longitude_invalid": "Longitude must be between -180 and 180",
"low": "Low",
"lsg": "Lsg",
"make_multiple_beds_label": "Do you want to make multiple beds?",
"manage_bed_presets": "Manage Presets of Bed",
Expand Down
50 changes: 24 additions & 26 deletions src/components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -821,31 +821,6 @@ export const DailyRounds = (props: any) => {
]}
/>

<RangeAutocompleteFormField
{...field("ventilator_spo2")}
unit="%"
start={0}
end={100}
step={1}
thresholds={[
{
value: 0,
className: "text-danger-500",
label: "Low",
},
{
value: 90,
className: "text-primary-500",
label: "Normal",
},
{
value: 100,
className: "text-danger-500",
label: "High",
},
]}
/>

<SelectFormField
{...field("rhythm")}
placeholder={t("HEARTBEAT_RHYTHM__UNKNOWN")}
Expand Down Expand Up @@ -876,7 +851,30 @@ export const DailyRounds = (props: any) => {
/>
</>
)}

<RangeAutocompleteFormField
{...field("ventilator_spo2")}
unit="%"
start={0}
end={100}
step={1}
thresholds={[
{
value: 0,
className: "text-danger-500",
label: t("low"),
},
{
value: 90,
className: "text-primary-500",
label: t("normal"),
},
{
value: 100,
className: "text-danger-500",
label: t("high"),
},
]}
/>
{state.form.rounds_type === "COMMUNITY_NURSES_LOG" && (
<div className="md:col-span-2">
<hr className="my-4 md:col-span-2" />
Expand Down
Loading