Skip to content

Commit

Permalink
POC-570:remove program snapshot tag after patient has made clinical v…
Browse files Browse the repository at this point in the history
…isit (AMPATH#1687)

* remove program snapshot tag after patient has made clinical visit

* fixed pre-appoinment-reminder tag on program snapshot

* POC-570:fixed pre-appoinment-reminder tag on program snapshot

* Update src/app/patient-dashboard/hiv/program-snapshot/hiv-program-snapshot.component.ts

---------

Co-authored-by: Drizzentic <[email protected]>
  • Loading branch information
2 people authored and sainingo committed Dec 14, 2023
1 parent 13829a7 commit f75a463
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@
</div>
<div
class="alert-div"
*ngIf="hasPredictedScore"
*ngIf="
hasPredictedScore &&
patientData?.encounter_datetime < prediction.prediction_generated_date
"
style="display: inline-block"
>
<p [ngClass]="getPredictionAlertColorCoded(prediction.predicted_risk)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ export class HivProgramSnapshotComponent implements OnInit {
if (
result &&
result.predicted_prob_disengage &&
result.predicted_risk
result.predicted_risk &&
result.observed_rtc_date === null
) {
this.hasPredictedScore = true;
this.prediction = result;
Expand Down

0 comments on commit f75a463

Please sign in to comment.