Skip to content

Commit

Permalink
POC-759 added an extra check for PLHIV >18 months
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqedme committed Jun 7, 2024
1 parent 75d60d9 commit 31a4f19
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/lab-order-search/lab-order-search-post.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,13 @@ export class LabOrderSearchPostComponent implements OnInit, OnChanges {
});
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 ===
'f2d6ff1a-8440-4d35-a150-1d4b5a930c5e'
)
) {
this.isHEIActive = true;
} else {
this.isHEIActive = false;
Expand Down

0 comments on commit 31a4f19

Please sign in to comment.