Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC-538 #1673

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

POC-538 #1673

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,16 @@ <h3 *ngIf="confirmingCancelVisit || confirmingEndVisit">
(onEncounterEdit)="onEncounterSelected($event)"
></encounter-list>
<div *ngIf="visitWithNoEncounters">Patient yet to see provider</div>
<!-- <div
<div
class="alert alert-danger"
*ngIf="qualifiesForCovidScreening"
style="margin-top: 10px"
>
<strong
>To access clinical forms kindly fill Covid 19 Assessment Form</strong
>
</div>
<div
class="alert alert-danger"
*ngIf="isViremicHighVL"
style="margin-top: 10px"
Expand All @@ -164,7 +173,17 @@ <h3 *ngIf="confirmingCancelVisit || confirmingEndVisit">
>To access clinical forms kindly fill Enhanced Adherence Encounter
Form</strong
>
</div> -->
</div>
<div
class="alert alert-danger"
*ngIf="isAdultReturnVisitBeforeInitialVisit"
style="margin-top: 10px"
>
<strong
>You cannot fill a return visit form for a date earlier than the
initial visit!</strong
>
</div>
</div>
</div>
<span style="padding: 10px"></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class VisitDetailsComponent implements OnInit {
public qualifiesForCovidScreening = false;
public isViremicHighVL = false;
public isRetrospectiveVisit = false;
public isAdultReturnVisitBeforeInitialVisit = false;

public get visitEncounters(): any[] {
const mappedEncounters: Encounter[] = new Array<Encounter>();
Expand Down Expand Up @@ -230,10 +231,18 @@ export class VisitDetailsComponent implements OnInit {
if (
e.errors &&
e.errors.covidError &&
e.errors.covidError != null
e.errors.covidError != null &&
!this.isRetrospectiveVisit
) {
this.qualifiesForCovidScreening = true;
}
if (
e.errors &&
e.errors.isAdultReturnVisitBeforeInitialVisit != null &&
this.isRetrospectiveVisit
) {
this.isAdultReturnVisitBeforeInitialVisit = true;
}
});
}
// Check if their are allowed Viremia clinical encounters already capture in the allowed visits.
Expand All @@ -249,7 +258,8 @@ export class VisitDetailsComponent implements OnInit {

if (
Array.isArray(viremiaEncounterFilter) &&
viremiaEncounterFilter.length === 0
viremiaEncounterFilter.length === 0 &&
!this.isRetrospectiveVisit
) {
this.isViremicHighVL = true;
}
Expand Down
Loading