From fb04f7b7b97bf8e9dba87f1760e742d6d32d7c64 Mon Sep 17 00:00:00 2001
From: Faith Kamau <121166087+hiqedme@users.noreply.github.com>
Date: Sun, 21 Jul 2024 22:31:27 +0300
Subject: [PATCH 1/2] POC-763: Enabled verification on Prep clients (#1766)
Co-authored-by: Alfred Mutai <124869802+Alfred-Mutai@users.noreply.github.com>
---
.../common/patient-banner/patient-banner.component.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/patient-dashboard/common/patient-banner/patient-banner.component.html b/src/app/patient-dashboard/common/patient-banner/patient-banner.component.html
index 249cabc65..7451cc5e9 100644
--- a/src/app/patient-dashboard/common/patient-banner/patient-banner.component.html
+++ b/src/app/patient-dashboard/common/patient-banner/patient-banner.component.html
@@ -301,7 +301,7 @@
From eeed8d46a28d38dc5a300095181076a1a00b2f58 Mon Sep 17 00:00:00 2001
From: Faith Kamau <121166087+hiqedme@users.noreply.github.com>
Date: Wed, 24 Jul 2024 11:10:24 +0300
Subject: [PATCH 2/2] Corrections: added verification (#1767)
* Corrections: added verification
* Corrections: added verification
---
.../patient-banner.component.html | 84 +++++++++++--------
.../patient-banner.component.ts | 12 +++
2 files changed, 59 insertions(+), 37 deletions(-)
diff --git a/src/app/patient-dashboard/common/patient-banner/patient-banner.component.html b/src/app/patient-dashboard/common/patient-banner/patient-banner.component.html
index 7451cc5e9..3ce2edc41 100644
--- a/src/app/patient-dashboard/common/patient-banner/patient-banner.component.html
+++ b/src/app/patient-dashboard/common/patient-banner/patient-banner.component.html
@@ -82,24 +82,29 @@
UPI:
{{ searchIdentifiers?.upi }}
-
-
- Verify Patient
-
+
+
+
+ Verify Patient
UPI:
{{ searchIdentifiers?.upi }}
-
-
- Verify Patient
-
+
+
+
+ Verify Patient
) {
+ _.filter(
+ enrolledPrograms,
+ ({ concept }) => concept.uuid === '23e234c3-5d8a-46ca-8465-3b746143dd68'
+ ).length > 0
+ ? (this.isVerifiable = false)
+ : (this.isVerifiable = true);
+ }
private getHIVPatient(enrolledPrograms: Array) {
_.filter(enrolledPrograms, ({ baseRoute }) => baseRoute === 'hiv').length >