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 31a4f19 commit 9ede6b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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 @@ -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;
Expand Down

0 comments on commit 9ede6b5

Please sign in to comment.