-
Notifications
You must be signed in to change notification settings - Fork 0
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
[APF] Changes for QRT users #37
Comments
This card is currently blocked due to this platform dependency https://app.zenhub.com/workspaces/avni-product-635b73bded85e50018871ae6/issues/gh/avniproject/avni-server/509 |
@nupoorkhandelwal Moving this to Ready now as the release has happened. |
Regarding this task: "Script to update individual subject_type table to have High Risk concept as the sync concept 1 " - need to modify the script to make it applicable for encounter, program_enrolment, program_encounter, entity_approval_status tables as well - only then it will sync correctly for the existing catchment(meaning to work as expected with the already existing data). Script link: https://github.com/avniproject/apfodishanutrition/blob/main/migrations/Scripts%20to%20add%20High%20Risk%20for%20QRT |
added program_enrolment, program_encounter. |
need more clarification how to set sync_concept_1_value like based on latest_encounter or any other condition |
latest value of high_risk condition of the individual need to be taken(need to consider all cases of wherever it is configured to get updated - registeration, enrolment, encounter) and need to update that value in sync_concept_1 column in the above mentioned tables. |
Added steps and script for update statement. |
Initial rules configured for Adding decision "High Risk"
Child enrolment - default high risk as "No"
Remove access to sync/view other subject types ie. HH, AWC and Village for QRT users group and remove individual registration permission
Script to update individual subject_type table to have High Risk concept as the sync concept 1.
Script to update sync settings for all the users except in user group - Poshan to have sync settings - High risk -Yes and No both
Script to update sync settings for all the users in user group - QRT to have sync settings - High risk -Yes
Details of data change to be done to handle new requirement
Presupposition for making the data change:
Logical steps to make the required data change
Program encounters - If there is a non-empty array on encounter type 'ANC' for concept "High Risk Conditions", then add an observation "High Risk" = "yes". If not, add "High Risk" = no.
for child Weight for Height Status == "SAM" or Weight for age Status == "Severely Underweight"
Program enrolment - Populate the latest (by encounter date time) value of "High Risk" in program encounters of type ANC to the program enrolment
for child take child Followup
Program enrolment - If High risk not available then set as High risk no
Individual - Populate the latest (by enrolment date time) value of High Risk from program enrolment into observations of registration
Individual - If High risk not available then set as High risk no
Sync attributes - Populate sync attributes of all individual, program_enrolment and program_encounter tables with the "High Risk" observation on individual. Here, do not limit to specific programs or encounter types or voided
For user and sync setting
Changes to rules
for pregnancy
add "High Risk" in decisions rule in pregnancy_enrollment and ANC encounter
for child
add "High Risk" in decisions rule in chilld_enrollment and Child Followup encounter
Implementation tasks:
The text was updated successfully, but these errors were encountered: