From 9ede6b570c7c96f58049acd1dba5fff7c92f9e2e Mon Sep 17 00:00:00 2001 From: Faith Kamau <121166087+hiqedme@users.noreply.github.com> Date: Fri, 7 Jun 2024 16:21:29 +0300 Subject: [PATCH] POC-759 added an extra check for PLHIV >18 months --- src/app/lab-order-search/lab-order-search-post.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/lab-order-search/lab-order-search-post.component.ts b/src/app/lab-order-search/lab-order-search-post.component.ts index 01f658bf8..3a7c7366b 100644 --- a/src/app/lab-order-search/lab-order-search-post.component.ts +++ b/src/app/lab-order-search/lab-order-search-post.component.ts @@ -129,12 +129,13 @@ export class LabOrderSearchPostComponent implements OnInit, OnChanges { this.patientIdentifers = identifiers; }); this.patient = this.order.patient; + this.person = new Person(this.order.patient.person); if ( Moment().diff(Moment(this.person.birthdate), 'months') <= 18 && !( this.patient.identifiers[0].identifierType.uuid === - 'f2d6ff1a-8440-4d35-a150-1d4b5a930c5e' + this.cccIdentifierType ) ) { this.isHEIActive = true;