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

Remove the two lines of factor on the progress report related to C-Section #1344

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
33 changes: 3 additions & 30 deletions client/src/elm/Backend/PrenatalActivity/Utils.elm
Original file line number Diff line number Diff line change
Expand Up @@ -424,36 +424,6 @@ generateRiskFactorAlertData language currentDate measurements factor =
trans (Translate.RiskFactorAlert alert)
in
case factor of
FactorNumberOfCSections ->
measurements.obstetricHistoryStep2
|> Maybe.andThen
(\measurement ->
let
signs =
Tuple.second measurement |> .value |> .previousDelivery
in
if EverySet.member Backend.Measurement.Model.CSectionInPast signs then
Just (transAlert factor)

else
Nothing
)

FactorCSectionInPreviousDelivery ->
measurements.obstetricHistoryStep2
|> Maybe.andThen
(\measurement ->
let
signs =
Tuple.second measurement |> .value |> .previousDelivery
in
if EverySet.member Backend.Measurement.Model.CSectionInPreviousDelivery signs then
Just (transAlert factor)

else
Nothing
)

FactorCSectionReason ->
getMeasurementValueFunc measurements.obstetricHistoryStep2
|> Maybe.andThen
Expand Down Expand Up @@ -672,6 +642,9 @@ generateRiskFactorAlertData language currentDate measurements factor =
Nothing
)

_ ->
Nothing


getEncounterTrimesterData : NominalDate -> Maybe NominalDate -> Maybe PregnancyTrimester
getEncounterTrimesterData encounterDate maybeLmpDate =
Expand Down