Skip to content

Commit

Permalink
added vl category
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqedme committed Mar 30, 2023
1 parent da9598e commit bb83bc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ export class ContactListComponent implements OnInit {
width: 150
},
{
field: 'reported_test_date',
headerName: 'Reported test date',
width: 150
},

{
field: 'modified_fm_status',
field: 'test_result_value',
headerName: 'Current test results',
width: 150
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
>
</p>
</div>
<div class="alert-div " *ngIf="patientData?.vl_1" style="display: inline-block">
<div class="alert-div " style="display: inline-block">

<p [ngClass]="getViralLoadCategory(patientData?.vl_1)">
<span class="hiv-alert label" style="background-color: black;font-size: 16px;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class HivProgramSnapshotComponent implements OnInit {

public getViralLoadCategory(latestViralLoad: any) {
switch (true) {
case latestViralLoad < 50:
case latestViralLoad < 50 && latestViralLoad != null:
this.viralLoadCategory = 'LDL';

break;
Expand All @@ -252,8 +252,8 @@ export class HivProgramSnapshotComponent implements OnInit {
this.viralLoadCategory = 'Suspected Treatment Failure';
break;
default:
this.viralLoadCategory = 'Undefined';
console.log('no viral load ' + latestViralLoad);
this.viralLoadCategory = 'N/A';

break;
}
}
Expand Down

0 comments on commit bb83bc7

Please sign in to comment.