Skip to content

Commit

Permalink
Merge branch 'AMPATH:master' into POC-599
Browse files Browse the repository at this point in the history
  • Loading branch information
Angie-540 authored Dec 13, 2023
2 parents a3ccc32 + 44f627e commit 3626c81
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ export class PreAppointmentOutreachComponent implements OnInit {
width: 100,
field: 'rescheduled_date'
},
{
headerName: 'No. of Failed Phone Attempts',
width: 100,
field: 'number_of_failed_phone_attempts'
},
{
headerName: 'Contact Reached',
width: 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,33 @@
:host.toast.toast-warning {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=') !important;
}

/* Custom toast class for ml custom notification type */
::ng-deep .ngx-toastr-custom-type {
position: relative;
overflow: hidden;
margin: 0 0 6px;
padding: 15px 15px 15px 50px;
width: 300px;
border-radius: 3px 3px 3px 3px;
background-position: 15px center;
background-repeat: no-repeat;
background-size: 24px;
box-shadow: 0 0 12px #999999;
color: #271e1e;
background-color: #ffff00;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=') !important;
}

/* Additional styles for toastr */
.ngx-toastr-custom-type .toast-title {
font-weight: bold;
}

.ngx-toastr-custom-type .toast-close-button {
position: absolute;
top: 0;
right: 0;
padding: 8px;
cursor: pointer;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
patient-reminders .panel-body {
padding: 0px !important;
}

:host.toast.alert-ml {
background-color: #ffff00;
border-color: #bdaaad;
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,15 @@ export class PatientRemindersComponent implements OnInit, OnDestroy {
this.toastrConfig
);
}

if (reminder.type === 'ml') {
toast = this.toastrService.show(reminder.message, reminder.title, {
extendedTimeOut: 0,
timeOut: 0,
positionClass: 'toast-bottom-right',
closeButton: true,
toastClass: 'ngx-toastr-custom-type'
});
}
if (reminder.type === 'info') {
toast = this.toastrService.info(
reminder.message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,18 @@
>
{{reminder.message}}
</div>
<div
*ngIf="reminder.type === 'ml' && reminder.display.banner === true"
class="alert alert-danger alert-dismissable"
style="padding: 10px !important; margin-bottom: 3px !important"
>
<a
class="close"
data-dismiss="alert"
aria-label="close"
style="right: 0px; !important"
>&times;</a
>
{{reminder.message}}
</div>
</div>
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 3626c81

Please sign in to comment.