Skip to content

Commit

Permalink
Merge pull request #8147 from coronasafe/develop
Browse files Browse the repository at this point in the history
Merge Develop to staging v24.29.0 | Fixing priority issues
  • Loading branch information
khavinshankar authored Jul 13, 2024
2 parents 9e31ccd + ae23c51 commit 77de44f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ let makePayload = (state: VentilatorParameters.state) => {
DictUtils.setOptionalNumber("ventilator_tidal_volume", state.ventilator_tidal_volume, payload)
DictUtils.setOptionalNumber(
"ventilator_oxygen_modality_oxygen_rate",
state.ventilator_interface === UNKNOWN &&
state.ventilator_interface === OXYGEN_SUPPORT &&
state.ventilator_oxygen_modality !== HIGH_FLOW_NASAL_CANNULA
? state.ventilator_oxygen_modality_oxygen_rate
: None,
Expand Down
5 changes: 1 addition & 4 deletions src/Components/Facility/DischargeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,15 @@ const DischargeModal = ({
useEffect(() => {
setPreDischargeForm((prev) => ({
...prev,
new_discharge_reason,
discharge_notes: referred_to
? "Patient Shifted to another facility."
: "",
discharge_date,
death_datetime,
referred_to_external: !referred_to?.id ? referred_to?.name : null,
referred_to: referred_to?.id ? referred_to.id : null,
}));

setFacility(referred_to);
}, [referred_to, new_discharge_reason, discharge_date, death_datetime]);
}, [referred_to]);

const discharge_reason =
new_discharge_reason ?? preDischargeForm.new_discharge_reason;
Expand Down

0 comments on commit 77de44f

Please sign in to comment.