Skip to content

Commit

Permalink
Poc 535 (AMPATH#1671)
Browse files Browse the repository at this point in the history
* 2.17.1

* POC-535
  • Loading branch information
drizzentic authored Sep 29, 2023
1 parent d0cded1 commit 662bff3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
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

0 comments on commit 662bff3

Please sign in to comment.