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 bcd6ca1c2..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,8 +129,15 @@ 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) { + if ( + Moment().diff(Moment(this.person.birthdate), 'months') <= 18 && + !( + this.patient.identifiers[0].identifierType.uuid === + this.cccIdentifierType + ) + ) { this.isHEIActive = true; } else { this.isHEIActive = false;