Skip to content

Commit

Permalink
Poc 759 (AMPATH#1758)
Browse files Browse the repository at this point in the history
* POC-759 added an extra check for PLHIV >18 months

* POC-759 added an extra check for PLHIV >18 months
  • Loading branch information
hiqedme authored Jun 18, 2024
1 parent 75d60d9 commit c5ef9b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 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,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;
Expand Down

0 comments on commit c5ef9b7

Please sign in to comment.