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

Developments starting August 11, 2024 #1278

Merged
merged 140 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
73f7cd3
Update contrib modules
anvmn Aug 11, 2024
1458e1b
Update Ramsey version [ci skip]
anvmn Aug 12, 2024
1040ba6
Patch restful module for better support of PHP 8
anvmn Aug 12, 2024
9a8c988
Update PHP version
anvmn Aug 12, 2024
5cba133
Revert circleci php version
anvmn Aug 12, 2024
beff635
PHP 8 compatible syntax
anvmn Aug 12, 2024
c44e720
Revert PHP 8 related changes
anvmn Aug 12, 2024
4f2942d
Fix logic that counts form tasks
anvmn Aug 12, 2024
a5327de
Comments [ci skip]
anvmn Aug 13, 2024
c1ca154
Merge pull request #1275 from TIP-Global-Health/issue-1274
anvmn Aug 13, 2024
38e4778
Merge pull request #1277 from TIP-Global-Health/issue-1276
anvmn Aug 13, 2024
46785ef
Downgrade problematic modules [ci skip]
anvmn Aug 13, 2024
6ef4b7e
Exclude Family planning as a triggering measurement type
anvmn Aug 14, 2024
8aa6ae2
Merge pull request #1280 from TIP-Global-Health/issue-1279
anvmn Aug 14, 2024
c1c2bfd
add missing translations
Diama1 Aug 31, 2024
9c9accc
fix
Diama1 Sep 2, 2024
891e0a6
Fix styling [ci skip]
anvmn Sep 2, 2024
d8c9684
Site dependant validator [ci skip]
anvmn Sep 2, 2024
8507b1a
Site dependant input
anvmn Sep 2, 2024
b73d39c
A fix
anvmn Sep 2, 2024
6a9207d
Merge pull request #1292 from TIP-Global-Health/issue-1291
anvmn Sep 2, 2024
81bba93
Merge branch 'develop' into issue-1293
anvmn Sep 2, 2024
e227519
Merge pull request #1294 from TIP-Global-Health/issue-1293
anvmn Sep 5, 2024
0eac444
Additional option for education on backend [ci skip]
anvmn Sep 12, 2024
9a65421
Client side logic [ci skip]
anvmn Sep 12, 2024
402c98b
Merge pull request #1305 from TIP-Global-Health/issue-1303
anvmn Sep 13, 2024
2a36d6b
Drop range input and adjust display logic [ci skip]
anvmn Sep 17, 2024
6531e36
Correct default date
anvmn Sep 17, 2024
a963150
Merge branch 'main' into develop
anvmn Sep 17, 2024
b0e125d
Merge branch 'develop' into issue-1306
anvmn Sep 17, 2024
f306dff
Newborn Enrolment - set the birth date automatically at newborn regis…
anvmn Sep 18, 2024
f85f264
Merge pull request #1319 from TIP-Global-Health/issue-1306
anvmn Sep 18, 2024
f72ca8a
Drop RH negative question [ci skip]
anvmn Sep 18, 2024
3e03f30
Properly viewing RH Factor at report
anvmn Sep 18, 2024
f055226
Satisfy coder
anvmn Sep 18, 2024
854ed30
Drop unneeded comments
anvmn Sep 18, 2024
7ba4c04
Merge pull request #1322 from TIP-Global-Health/issue-1314
anvmn Sep 18, 2024
cd9c738
rephrase the text
Diama1 Sep 18, 2024
57b45d1
Do not show Patient info task [ci skip]
anvmn Sep 19, 2024
b2f5e83
Add 'known as positive' option for partner HIV test [ci skip]
anvmn Sep 19, 2024
29c26e2
make ubudehe question optional
Diama1 Sep 19, 2024
869148a
Adjust forms [ci skip]
anvmn Sep 19, 2024
77ee833
change the fbf entitlement by Ubudehe
Diama1 Sep 19, 2024
0f711ad
Develo health education display and logic
anvmn Sep 19, 2024
8efdc58
Satisfy coder
anvmn Sep 19, 2024
40e5889
Adjust display and logic [ci skip]
anvmn Sep 19, 2024
ecc515d
Properly determine if task is completed
anvmn Sep 19, 2024
ee33bdd
Fixes
anvmn Sep 19, 2024
ad390f8
Merge pull request #1324 from TIP-Global-Health/issue-1309
anvmn Sep 19, 2024
c7bd192
Increase Circle CI timeout
anvmn Sep 22, 2024
9f24b81
Add option on backend [ci skip]
anvmn Sep 22, 2024
4126aed
Update client side view and logic [ci skip]
anvmn Sep 22, 2024
ab4bc63
Style
anvmn Sep 22, 2024
6359768
Drop empty line [ci skip]
anvmn Sep 22, 2024
0a10192
A fix
anvmn Sep 22, 2024
9ef2ebc
Satisfy coder
anvmn Sep 22, 2024
cec3869
More fixes
anvmn Sep 22, 2024
2b494e8
Rename pane and add signs
anvmn Sep 22, 2024
5bc62b4
Adjust logic
anvmn Sep 22, 2024
9a1ffb2
Add comment [ci skip]
anvmn Sep 22, 2024
30414f0
Merge pull request #1329 from TIP-Global-Health/issue-1323
anvmn Sep 23, 2024
aa387af
Merge pull request #1331 from TIP-Global-Health/issue-1325
anvmn Sep 23, 2024
3e90c9a
Merge pull request #1332 from TIP-Global-Health/issue-1330
anvmn Sep 23, 2024
6d1d2bc
Merge pull request #1333 from TIP-Global-Health/issue-1326
anvmn Sep 23, 2024
80d81d7
Merge pull request #1334 from TIP-Global-Health/issue-1314-fix-01
anvmn Sep 23, 2024
3c6eb0a
removed unnecessary condition
Diama1 Sep 23, 2024
134b341
fix
Diama1 Sep 23, 2024
7e7a298
Merge pull request #1328 from TIP-Global-Health/issue-1307
anvmn Sep 23, 2024
cb7cfca
bump mysql version
AronNovak Sep 24, 2024
3d4a13d
Merge pull request #1342 from TIP-Global-Health/1335-circleci-speed-o…
anvmn Sep 24, 2024
bd5390c
Apply fixes [ci skip]
anvmn Sep 25, 2024
6a081fb
Drop 3 questions and related fields on form
anvmn Sep 25, 2024
f3ceaee
Merge branch 'develop' into issue-1336
anvmn Sep 25, 2024
241c287
Capitalize
anvmn Sep 26, 2024
94ecdbc
Merge pull request #1346 from TIP-Global-Health/issue-1336
anvmn Sep 26, 2024
0510673
Add new field into which data will be migrated [ci skip]
anvmn Sep 26, 2024
f1940e1
Fixes [ci skip]
anvmn Sep 26, 2024
2015ae9
Expose with Restful [ci skip]
anvmn Sep 26, 2024
14ac0f4
Migration logic [ci skip]
anvmn Sep 26, 2024
e605f6d
A fix [ci skip]
anvmn Sep 26, 2024
801d3a5
Addapt client side
anvmn Sep 26, 2024
da776f6
Fixes [ci skip]
anvmn Sep 26, 2024
b64ec48
Satisfy coder
anvmn Sep 29, 2024
aefbacb
More fixes
anvmn Sep 29, 2024
ee56f51
Merge pull request #1345 from TIP-Global-Health/issue-1314-fix-02
anvmn Sep 29, 2024
9d6fa0f
Update High Risk alerts source [ci skip]
anvmn Sep 29, 2024
ad39e17
Drop risk alerts (that were displayed for CHW only)
anvmn Sep 29, 2024
9e0abec
Merge branch 'develop' into issue-1337
anvmn Sep 29, 2024
35d1b53
Satisfy coder
anvmn Sep 29, 2024
8c5aad9
Add new fields to CT [ci skip]
anvmn Sep 29, 2024
335eb80
Revert previous commint (meant for another branch)
anvmn Sep 29, 2024
894bb74
Add new fields to CT [ci skip]
anvmn Sep 29, 2024
7a950f2
Expose with Restful [ci skip]
anvmn Sep 29, 2024
9020a0b
Expose fields with Restful [ci skip]
anvmn Sep 29, 2024
e6ce9c3
Encode and Decode infra [ci skip]
anvmn Sep 29, 2024
60ca850
Translate [ci skip]
anvmn Sep 29, 2024
37891cd
Fix translations [ci skip]
anvmn Sep 29, 2024
522ad30
Add migration logic on backend [ci skip]
anvmn Sep 30, 2024
4655662
Fixes and docs [ci skip]
anvmn Sep 30, 2024
2e26d48
Add migration flag value [ci skip]
anvmn Sep 30, 2024
88d1e83
Addapt logic and view on client side [ci skip]
anvmn Sep 30, 2024
5c96525
Style
anvmn Sep 30, 2024
df8e4c7
A fix [ci skip]
anvmn Sep 30, 2024
bf7cf54
Update DB version to make sure client update version before upload
anvmn Sep 30, 2024
7ac6b4d
Update client/src/elm/Backend/Measurement/Model.elm
anvmn Sep 30, 2024
ca27f87
Merge pull request #1347 from TIP-Global-Health/issue-1337
anvmn Oct 1, 2024
729aa0e
Logic and view of new pane [ci skip]
anvmn Oct 1, 2024
731d341
Style
anvmn Oct 1, 2024
d58ff74
Drop unneeded code [ci skip]
anvmn Oct 1, 2024
ff91a47
Drop debugging [ci skip]
anvmn Oct 1, 2024
1684d52
Merge pull request #1348 from TIP-Global-Health/issues-1338/39/40/41
anvmn Oct 1, 2024
eeccbc8
Merge pull request #1350 from TIP-Global-Health/issue-1327
anvmn Oct 1, 2024
5de4cf4
Merge branch 'main' into develop
anvmn Oct 6, 2024
8c2d911
Keep legacy values for 'uterine-myonma' and 'mental-health-history' […
anvmn Oct 10, 2024
c9c9b3e
Support for legacy values when displaying alerts [ci skip]
anvmn Oct 10, 2024
7a6d222
Implement https://github.com/TIP-Global-Health/eheza-app/issues/1330#…
anvmn Oct 10, 2024
f8f8767
Add HIV signs field to Partner Test CT [ci skip]
anvmn Oct 10, 2024
7567495
Expose with Restful [ci skip]
anvmn Oct 10, 2024
88e20ad
Extend model, encode and decode [ci skip]
anvmn Oct 10, 2024
414660e
Additional questions when reported to be known as positive [ci skip]
anvmn Oct 10, 2024
80fa884
WIP [ci skip]
anvmn Oct 11, 2024
b16108a
Logic fixes [ci skip]
anvmn Oct 11, 2024
d3bb86f
Alter logic to take into account Partner HIV inputs [ci skip]
anvmn Oct 11, 2024
16dc982
Fixes [ci skip]
anvmn Oct 11, 2024
197838f
A fix [ci skip]
anvmn Oct 11, 2024
d2d0bda
Add progress report entries
anvmn Oct 11, 2024
09faa3f
add translations
Diama1 Oct 12, 2024
77dea97
add the rest of the translation
Diama1 Oct 13, 2024
be67623
additional translations
Diama1 Oct 13, 2024
9785b57
Merge pull request #1352 from TIP-Global-Health/issue-1349
anvmn Oct 13, 2024
f329b36
Merge pull request #1353 from TIP-Global-Health/issue-1349-actual
anvmn Oct 13, 2024
51d0489
Merge pull request #1356 from TIP-Global-Health/issue-1355
anvmn Oct 13, 2024
d75c91f
Implement https://github.com/TIP-Global-Health/eheza-app/issues/1340#…
anvmn Oct 13, 2024
defda53
Revert https://github.com/TIP-Global-Health/eheza-app/pull/1280
anvmn Oct 13, 2024
1109792
Obstetrical Diagnosis => Obstetric Diagnosis [ci skip]
anvmn Oct 13, 2024
02e43cd
Fix typo [ci skip]
anvmn Oct 13, 2024
74649df
Add conditions during prevoius pregnancy [ci skip]
anvmn Oct 13, 2024
b2d114c
Add Medical History pane
anvmn Oct 13, 2024
e60e937
A fix [ci skip]
anvmn Oct 13, 2024
ddbea80
Merge pull request #1357 from TIP-Global-Health/issue-1354
anvmn Oct 13, 2024
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: 1 addition & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ additional_hostnames: []
additional_fqdns: []
database:
type: mariadb
version: "10.2"
version: "10.5"
use_dns_when_possible: true
composer_version: "1"
web_environment: []
Expand Down
2 changes: 1 addition & 1 deletion ci-scripts/circleci_wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

CMD="$*"

TIMEOUT=3700
TIMEOUT=4300
INTERVAL=240
$CMD &
CMD_PID=$!
Expand Down
55 changes: 38 additions & 17 deletions client/src/assets/scss/_new.scss
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ div.page-pincode {
background: $color-light-background;
border: 2px solid $color-white;
margin-bottom: 0;
margin-top: auto;
margin-top: 25px;
width: 100%;
}

Expand Down Expand Up @@ -644,26 +644,36 @@ button.ui.primary.button.individual-assessment {
}
}

button.ui.primary.button.group-assessment .icon {
background-image: url(#{$img-path}icon-group-encounter.svg);
}

button.ui.primary.button.group-assessment,
button.ui.primary.button.individual-assessment {

.icon {
background-image: url(#{$img-path}icon-individual-encounter.svg);
background-size: 40px 40px;
margin-left: 55px;
margin-top: 8px;
height: 40px;
width: 40px;
img {
float: left;
margin-left: 20px;
}

.text {
width: 57%;
}

.icon-back {
margin-left: 57px;
}
}

button.ui.primary.button.group-assessment img {
height: 40px;
width: 50px;
margin-top: 8px;
}

button.ui.primary.button.individual-assessment img {
height: 40px;
width: 40px;
margin-right: 10px;
margin-top: 10px;
}

div.page-person-create {
margin: 0 auto;
padding: 0 35px 35px 35px;
Expand Down Expand Up @@ -1911,17 +1921,20 @@ div.page-activity.stock-management {
}
}

.label.successive-abortions {
margin-top: 30px
}

&.medical,
&.social {

.alert img {
margin-top: -10px;
}
}

&.medical {

.checkbox-select-input {
margin-bottom: 50px;
}
}
}

.form.examination {
Expand Down Expand Up @@ -3071,6 +3084,13 @@ div.page-report.clinical .ui.unstackable.items {
}
}

.vaccination-history {

.pane-content {
padding-left: 0;
}
}

.chw-activities {

.heading,
Expand Down Expand Up @@ -4041,7 +4061,8 @@ div.page-activity.well-child,
div.page-report.acute-illness,
div.page-report.well-child,
div.page-report.child-scoreboard,
div.page-activity.patient-record {
div.page-activity.patient-record,
div.page-report.clinical {

.heading {
border-bottom: 1px solid $color-text;
Expand Down
36 changes: 8 additions & 28 deletions client/src/elm/Activity/Utils.elm
Original file line number Diff line number Diff line change
Expand Up @@ -454,34 +454,14 @@ expectMotherActivity currentDate offlineSession motherId activity =
case participant.adultActivities of
MotherActivities ->
if List.member offlineSession.session.clinicType [ Achi, Fbf ] then
let
isBreastfeeding =
getMotherMeasurementData2 motherId offlineSession
|> LocalData.map
(.current
>> .lactation
>> Maybe.map (Tuple.second >> .value >> EverySet.member Breastfeeding)
>> Maybe.withDefault False
)
|> LocalData.withDefault False

entitledByUbudehe =
Dict.get motherId offlineSession.mothers
|> Maybe.map
(\mother ->
case mother.ubudehe of
Just Ubudehe1 ->
True

Just Ubudehe2 ->
True

_ ->
False
)
|> Maybe.withDefault False
in
isBreastfeeding && entitledByUbudehe
getMotherMeasurementData2 motherId offlineSession
|> LocalData.map
(.current
>> .lactation
>> Maybe.map (Tuple.second >> .value >> EverySet.member Breastfeeding)
>> Maybe.withDefault False
)
|> LocalData.withDefault False

else
False
Expand Down
118 changes: 78 additions & 40 deletions client/src/elm/Backend/Measurement/Decoder.elm
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ decodePrenatalHealthEducationSign =
"mastitis" ->
succeed EducationMastitis

"grief" ->
succeed EducationGrief

"hiv-partner-presence" ->
succeed EducationHIVPartnerPresence

"none" ->
succeed NoPrenatalHealthEducationSigns

Expand Down Expand Up @@ -641,6 +647,7 @@ decodePartnerHIVTestValue =
)
(Just prerequisitesDefaultRDT)
|> optional "test_result" (nullable decodeTestResult) Nothing
|> optional "hiv_signs" (nullable (decodeEverySet decodePrenatalHIVSign)) Nothing


decodeViralLoadStatus : Decoder ViralLoadStatus
Expand Down Expand Up @@ -950,6 +957,9 @@ decodeTestExecutionNote =
"run-confirmed-by-lab-tech" ->
succeed TestNoteRunConfirmedByLabTech

"not-present" ->
succeed TestNoteNotPresent

_ ->
fail <|
note
Expand Down Expand Up @@ -1919,57 +1929,68 @@ decodeLmpDateNotConfidentReason =
)


decodeMedicalHistory : Decoder MedicalHistory
decodeMedicalHistory =
decodePrenatalMeasurement decodeMedicalHistoryValue


decodeMedicalHistoryValue : Decoder MedicalHistoryValue
decodeMedicalHistoryValue =
succeed MedicalHistoryValue
|> required "medical_history" (decodeEverySet decodeMedicalHistorySign)
|> optional "physical_condition_history"
(decodeEverySet decodeMedicalHistoryPhysicalCondition)
(EverySet.singleton MigrateMedicalHistoryPhysicalCondition)
|> optional "infectious_disease_history"
(decodeEverySet decodeMedicalHistoryInfectiousDisease)
(EverySet.singleton NoMedicalHistoryInfectiousDisease)
|> optional "mental_health_issues"
(decodeEverySet decodeMedicalHistoryMentalHealthIssue)
(EverySet.singleton NoMedicalHistoryMentalHealthIssue)


decodeMedicalHistorySign : Decoder MedicalHistorySign
decodeMedicalHistorySign =
string
|> andThen
(\s ->
case s of
"uterine-myonma" ->
succeed UterineMyoma

"diabetes" ->
succeed Diabetes

"cardiac-disease" ->
succeed CardiacDisease

"renal-disease" ->
succeed RenalDisease

"hypertension-before-pregnancy" ->
succeed HypertensionBeforePregnancy

"tuberculosis-past" ->
succeed TuberculosisPast

"tuberculosis-present" ->
succeed TuberculosisPresent

"asthma" ->
succeed Asthma

"bowed-legs" ->
succeed BowedLegs
medicalHistorySignFromString s
|> Maybe.map succeed
|> Maybe.withDefault (s ++ " is not a recognized MedicalHistorySign" |> fail)
)

"hiv" ->
succeed HIV

"mental-health-history" ->
succeed MentalHealthHistory
decodeMedicalHistoryPhysicalCondition : Decoder MedicalHistoryPhysicalCondition
decodeMedicalHistoryPhysicalCondition =
string
|> andThen
(\s ->
medicalHistoryPhysicalConditionFromString s
|> Maybe.map succeed
|> Maybe.withDefault (s ++ " is not a recognized MedicalHistoryPhysicalCondition" |> fail)
)

"none" ->
succeed NoMedicalHistorySigns

_ ->
fail <| s ++ " is not a recognized MedicalHistorySign"
decodeMedicalHistoryInfectiousDisease : Decoder MedicalHistoryInfectiousDisease
decodeMedicalHistoryInfectiousDisease =
string
|> andThen
(\s ->
medicalHistoryInfectiousDiseaseFromString s
|> Maybe.map succeed
|> Maybe.withDefault (s ++ " is not a recognized MedicalHistoryInfectiousDisease" |> fail)
)


decodeMedicalHistory : Decoder MedicalHistory
decodeMedicalHistory =
field "medical_history" (decodeEverySet decodeMedicalHistorySign)
|> decodePrenatalMeasurement
decodeMedicalHistoryMentalHealthIssue : Decoder MedicalHistoryMentalHealthIssue
decodeMedicalHistoryMentalHealthIssue =
string
|> andThen
(\s ->
medicalHistoryMentalHealthIssueFromString s
|> Maybe.map succeed
|> Maybe.withDefault (s ++ " is not a recognized MedicalHistoryMentalHealthIssue" |> fail)
)


decodeMedicationSign : Decoder MedicationSign
Expand Down Expand Up @@ -2316,6 +2337,9 @@ decodePreviousDeliverySign =
|> andThen
(\s ->
case s of
"c-section-in-past" ->
succeed CSectionInPast

"c-section-in-previous-delivery" ->
succeed CSectionInPreviousDelivery

Expand Down Expand Up @@ -2377,14 +2401,28 @@ decodeObstetricHistorySign =
)


decodeObstetricHistoryStep2Sign : Decoder ObstetricHistoryStep2Sign
decodeObstetricHistoryStep2Sign =
string
|> andThen
(\sign ->
obstetricHistoryStep2SignFromString sign
|> Maybe.map succeed
|> Maybe.withDefault (sign ++ " is not a recognized ObstetricHistoryStep2Sign" |> fail)
)


decodeObstetricHistoryStep2 : Decoder ObstetricHistoryStep2
decodeObstetricHistoryStep2 =
succeed ObstetricHistoryStep2Value
|> required "c_sections" decodeInt
|> optional "c_sections" decodeInt -1
|> optional "c_section_reason" (nullable (decodeEverySet decodeCSectionReason)) Nothing
|> required "previous_delivery" (decodeEverySet decodePreviousDeliverySign)
|> required "previous_delivery_period" (decodeEverySet decodePreviousDeliveryPeriod)
|> required "obstetric_history" (decodeEverySet decodeObstetricHistorySign)
|> optional "obstetric_history_step2"
(decodeEverySet decodeObstetricHistoryStep2Sign)
(EverySet.singleton MigrateObstetricHistoryStep2Sign)
|> decodePrenatalMeasurement


Expand Down
Loading