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] 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 >