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

Cholera Use Case V4 #29

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Cholera Use Case V4 #29

wants to merge 3 commits into from

Conversation

AsinineFatuity
Copy link
Collaborator

@AsinineFatuity AsinineFatuity commented Feb 7, 2024

  • Write tests for tasks, targets, forms and contact summaries
  • Fixed notable issues from demo (see caption below of ticket)
    image
    image

We didn't manage to lump together household_member and household_contact type as it prevented creation of new households and even members. The work around was to name them same way in contact summaries for now as we investigate the issue further.

@AsinineFatuity AsinineFatuity added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Feb 7, 2024
@paulpascal
Copy link
Collaborator

paulpascal commented Mar 7, 2024

Hi @esthermmoturi can you add me as a reviewer?
Thanks

@AsinineFatuity
Copy link
Collaborator Author

Hi @paulpascal I can't find you on the dropdown for suggested reviewers. I hope you being assigned by Mariachana helps still with that

@IreneAchola IreneAchola mentioned this pull request Mar 12, 2024
@AsinineFatuity
Copy link
Collaborator Author

@paulpascal may you review this. I am closing the other outdated PRs

@paulpascal
Copy link
Collaborator

Thanks @AsinineFatuity

Copy link
Collaborator

@paulpascal paulpascal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Impressive and clean work @AsinineFatuity !

Just left some feedback.

cc: @antonykhaemba @esthermmoturi

<label ref="jr:itext('/data/inputs/contact:label')"/>
<group appearance="field-list" ref="/data/inputs/contact/init">
<select1 ref="/data/inputs/contact/init/conduct_registration">
<label ref="jr:itext('/data/inputs/contact/init/conduct_registration:label')"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was not able to find this section the design

<input ref="/data/repeat/child/n_age">
<label ref="jr:itext('/data/repeat/child/n_age:label')"/>
</input>
<input ref="/data/repeat/child/phone">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think phone number is relevant only for >= 18 years old according to the design

<input ref="/death_report/patient_death_details/place_of_death_other">
<label ref="jr:itext('/death_report/patient_death_details/place_of_death_other:label')"/>
</input>
<input appearance="multiline" ref="/death_report/patient_death_details/death_information">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was not able to see this section in the design.
Is it this a malaria related question is missing.

<bind nodeset="/data/household_member/person_age_years" type="string" calculate="floor( difference-in-months( ../dob_iso, today() ) div 12 )"/>
<bind nodeset="/data/household_member/person_age_months" type="string" calculate="floor(difference-in-months( ../dob_iso, today() ))"/>
<bind nodeset="/data/household_member/n_age" readonly="true()" type="string" relevant="false()"/>
<bind nodeset="/data/household_member/phone" type="tel" relevant=" /data/household_member/person_age_years &gt;=10" jr:constraintMsg="Please make sure the number is not already in use by another person and is in the format 07XX XXX XXX" constraint="1"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think phone number is relevant only for >= 18 years old according to the design

return allFields;
}

function getMostRecentReport(reports, form) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is already available in cht-nootils.

I suggest using it ? Like Utils.getMostRecentReport. (The Utils object is globally accessible)

You can check here to see more utility functions

@@ -0,0 +1,16 @@
module.exports = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, maybe you can make use of this in the whole project (not only for tests) ?
What about having constant containing all forms too?

expect(referralsGiven).to.have.lengthOf(1);
expect(referralsGiven[0].value).to.nested.include({pass: 1, total: 1});
});
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have like to see a case when the target does not increment ?

"context": {
"place": false,
"person": true,
"expression": "!contact.date_of_death && !summary.muted && ageInYears(contact) > 0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this by design please ? Are under 5 also concerned by this form?

BTW I am not able to see the Under 5 Assessment Form?

const { chpTargets, chaTargets, dsoTargets } = require('./app_targets');
module.exports = [...chpTargets, ...chaTargets, ...dsoTargets];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would have like to see some test against the other targets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants