Skip to content

Commit

Permalink
Added SpO2 field in community log update for nurses (ohcnetwork#8907)
Browse files Browse the repository at this point in the history
  • Loading branch information
noufalrahim authored and UdaySagar-Git committed Dec 3, 2024
1 parent 02b0d6f commit bb6aacc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,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 @@ -835,6 +836,7 @@
"log_updates": "Log Updates",
"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
27 changes: 26 additions & 1 deletion src/components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import request from "@/Utils/request/request";
import { formatDateTime } from "@/Utils/utils";
import { scrollTo } from "@/Utils/utils";

import RangeAutocompleteFormField from "../Form/FormFields/RangeAutocompleteFormField";
import TextFormField from "../Form/FormFields/TextFormField";

export const DailyRounds = (props: any) => {
Expand Down Expand Up @@ -702,6 +703,31 @@ 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",
},
]}
/>
</>
)}

Expand Down Expand Up @@ -819,7 +845,6 @@ export const DailyRounds = (props: any) => {
/>
</>
)}

{state.form.rounds_type === "COMMUNITY_NURSES_LOG" && (
<div className="md:col-span-2" data-scribe-ignore>
<hr className="my-4 md:col-span-2" />
Expand Down

0 comments on commit bb6aacc

Please sign in to comment.