diff --git a/android/quest/src/main/java/org/smartregister/fhircore/quest/navigation/OverflowMenuFactory.kt b/android/quest/src/main/java/org/smartregister/fhircore/quest/navigation/OverflowMenuFactory.kt index 1361bca57f..c4b233b8a3 100644 --- a/android/quest/src/main/java/org/smartregister/fhircore/quest/navigation/OverflowMenuFactory.kt +++ b/android/quest/src/main/java/org/smartregister/fhircore/quest/navigation/OverflowMenuFactory.kt @@ -63,6 +63,7 @@ enum class OverflowMenuHost(val overflowMenuItems: List) { listOf( OverflowMenuItem(R.id.client_visit, R.string.client_visit).apply { hidden = true }, OverflowMenuItem(R.id.guardian_visit, R.string.guardian_visit), + OverflowMenuItem(R.id.vl_collection, R.string.vl_collection), OverflowMenuItem(R.id.viral_load_results, R.string.viral_load_results), OverflowMenuItem(R.id.view_children, R.string.view_children_x), OverflowMenuItem(R.id.view_guardians, R.string.view_guardians_x), @@ -79,6 +80,8 @@ enum class OverflowMenuHost(val overflowMenuItems: List) { OverflowMenuItem(R.id.view_children, R.string.view_children_x), OverflowMenuItem(R.id.view_guardians, R.string.view_guardians_x), OverflowMenuItem(R.id.edit_profile, R.string.edit_profile), + OverflowMenuItem(R.id.vl_collection, R.string.vl_collection), + OverflowMenuItem(R.id.vl_results, R.string.viral_load_results), OverflowMenuItem(R.id.clinic_history, R.string.clinic_history), OverflowMenuItem(R.id.patient_transfer_out, R.string.transfer_out), OverflowMenuItem(R.id.patient_change_status, R.string.change_status), diff --git a/android/quest/src/main/java/org/smartregister/fhircore/quest/ui/patient/profile/PatientProfileViewModel.kt b/android/quest/src/main/java/org/smartregister/fhircore/quest/ui/patient/profile/PatientProfileViewModel.kt index b10c622ccf..1fed4f2d97 100644 --- a/android/quest/src/main/java/org/smartregister/fhircore/quest/ui/patient/profile/PatientProfileViewModel.kt +++ b/android/quest/src/main/java/org/smartregister/fhircore/quest/ui/patient/profile/PatientProfileViewModel.kt @@ -308,6 +308,22 @@ constructor( questionnaireType = QuestionnaireType.DEFAULT, populationResources = profile.populationResources, ) + R.id.vl_collection -> + QuestionnaireActivity.launchQuestionnaire( + event.context, + questionnaireId = VIRAL_LOAD_COLLECTION_FORM, + clientIdentifier = patientId, + questionnaireType = QuestionnaireType.DEFAULT, + populationResources = profile.populationResources, + ) + R.id.vl_results -> + QuestionnaireActivity.launchQuestionnaire( + event.context, + questionnaireId = VIRAL_LOAD_RESULTS_FORM, + clientIdentifier = patientId, + questionnaireType = QuestionnaireType.DEFAULT, + populationResources = profile.populationResources, + ) R.id.hiv_test_and_results -> QuestionnaireActivity.launchQuestionnaire( event.context, @@ -512,6 +528,7 @@ constructor( const val ANC_ENROLLMENT_FORM = "anc-patient-registration" const val EDIT_PROFILE_FORM = "patient-edit-profile" const val VIRAL_LOAD_RESULTS_FORM = "art-client-viral-load-test-results" + const val VIRAL_LOAD_COLLECTION_FORM = "art-client-viral-load-collection" const val HIV_TEST_AND_RESULTS_FORM = "exposed-infant-hiv-test-and-results" const val HIV_TEST_AND_NEXT_APPOINTMENT_FORM = "contact-and-community-positive-hiv-test-and-next-appointment" diff --git a/android/quest/src/main/res/values/ids.xml b/android/quest/src/main/res/values/ids.xml index 8f58dc8710..e1cb75c90f 100644 --- a/android/quest/src/main/res/values/ids.xml +++ b/android/quest/src/main/res/values/ids.xml @@ -27,4 +27,6 @@ + + diff --git a/android/quest/src/main/res/values/strings.xml b/android/quest/src/main/res/values/strings.xml index 4788da6523..84745b26ee 100644 --- a/android/quest/src/main/res/values/strings.xml +++ b/android/quest/src/main/res/values/strings.xml @@ -59,6 +59,7 @@ Remove This Person Change Status Transfer Out + Viral Load Collection Device to device sync