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 535 #1671

Merged
merged 5 commits into from
Sep 29, 2023
Merged

Poc 535 #1671

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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-amrs",
"version": "2.17.0",
"version": "2.17.1",
"scripts": {
"ng": "ng",
"start": "ng serve --host 0.0.0.0 --port 3000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,16 @@ <h3 *ngIf="confirmingCancelVisit || confirmingEndVisit">
>To access clinical forms kindly fill Covid 19 Assessment Form</strong
>
</div>
<div
class="alert alert-danger"
*ngIf="isViremicHighVL"
style="margin-top: 10px"
>
<strong
>To access clinical forms kindly fill Enhanced Adherence Encounter
Form</strong
>
</div>
</div>
</div>
<span style="padding: 10px"></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class VisitDetailsComponent implements OnInit {
public retrospectiveAttributeTypeUuid =
'3bb41949-6596-4ff9-a54f-d3d7883a69ed';
public qualifiesForCovidScreening = false;
public isViremicHighVL = false;
public isRetrospectiveVisit = false;

public get visitEncounters(): any[] {
Expand Down Expand Up @@ -226,11 +227,32 @@ export class VisitDetailsComponent implements OnInit {
Array.isArray(visitType.encounterTypes.disallowedEncounters)
) {
visitType.encounterTypes.disallowedEncounters.forEach((e) => {
if (e.errors && e.errors.covidError != null) {
if (
e.errors &&
e.errors.covidError &&
e.errors.covidError != null
) {
this.qualifiesForCovidScreening = true;
}
});
}
// Check if their are allowed Viremia clinical encounters already capture in the allowed visits.
const viremiaEncounterFilter = visitType.encounterTypes.allowedEncounters.filter(
(encounterType) => {
return [
'8d5b2be0-c2cc-11de-8d13-0010c6dffd0f',
'4e7553b4-373d-452f-bc89-3f4ad9a01ce7',
'8d5b3108-c2cc-11de-8d13-0010c6dffd0f'
].includes(encounterType.uuid);
}
);

if (
Array.isArray(viremiaEncounterFilter) &&
viremiaEncounterFilter.length === 0
) {
this.isViremicHighVL = true;
}

if (
visitType &&
Expand Down
Loading