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-475:draft #1719

Draft
wants to merge 37 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ac6f07f
suggested traker changes
hiqedme Aug 1, 2023
d52a469
added patient tracker
hiqedme Aug 15, 2023
7db416f
POC-475: added patient tracker
hiqedme Aug 16, 2023
59907d6
Viral Load and Treatment Changes Tracker
Angie-540 Sep 5, 2023
c973227
interface
Angie-540 Sep 19, 2023
65a794e
ahd-events
Angie-540 Sep 22, 2023
ed48b15
ahd-events
Angie-540 Sep 22, 2023
ab31915
ahd-summary
Angie-540 Sep 26, 2023
5467955
ahd-summary
Angie-540 Sep 26, 2023
1c76bfe
ahd-events
Angie-540 Sep 26, 2023
8eceaa8
Merge branch 'master' of https://github.com/Angie-540/ng2-amrs
Angie-540 Oct 6, 2023
ad4d001
ahd-events
Angie-540 Sep 29, 2023
dacc1fe
ahd-events
Angie-540 Sep 29, 2023
2384778
ahd-events
Angie-540 Sep 29, 2023
08c40ae
ahd-events
Angie-540 Sep 29, 2023
a1da786
ahd-summary
Angie-540 Oct 3, 2023
3612ef0
ahd-summary
Angie-540 Oct 3, 2023
d42bf48
ahd-events
Angie-540 Oct 5, 2023
5479ef9
ahd events
Angie-540 Oct 6, 2023
49614cd
POC-475: added AHD component to summary
Angie-540 Oct 6, 2023
c2fe16b
suggested traker changes
hiqedme Aug 1, 2023
544657a
added patient tracker
hiqedme Aug 15, 2023
d6e6f7f
POC-475: added an array
Angie-540 Oct 6, 2023
cb54446
suggested traker changes
hiqedme Aug 1, 2023
52f174f
added patient tracker
hiqedme Aug 15, 2023
0066445
POC-475: added patient tracker
hiqedme Aug 16, 2023
3204a90
POC-475: resolved conflict
hiqedme Oct 6, 2023
3622468
Merge branch 'Angie-540-POC-475' into POC-475
hiqedme Oct 6, 2023
e84895a
isheiactive
Angie-540 Oct 6, 2023
efdd86e
Merge branch 'POC-475' of https://github.com/hiqedme/ng2-amrs into PO…
Angie-540 Oct 6, 2023
1452169
Merge pull request #25 from Angie-540/POC-475
hiqedme Oct 6, 2023
1f46903
uniquedates
Angie-540 Oct 9, 2023
37f7fb5
display dates
Angie-540 Oct 9, 2023
8c5230d
start and end dates
Angie-540 Oct 9, 2023
659cd1f
UI
Angie-540 Oct 16, 2023
3e992de
conditional rendering
Angie-540 Oct 17, 2023
86a88ef
POC-475: modified columns under patient tracker
Angie-540 Oct 17, 2023
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
904 changes: 452 additions & 452 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,58 +1,8 @@
<p-dialog
header="Locator-Map"
[(visible)]="display"
styleClass="edit-identifier-dialog"
class="edit_link"
>
<div class="container-fluid"></div>
</p-dialog>

<!--<div class="loader" *ngIf="loading">
<div class="loader" *ngIf="loading">
<span><i class="fa fa-spinner fa-spin"> </i>Loading...</span>
</div>
<div class="row">
<div class="col-md-12">
<div
*ngIf="imageSaved"
class="alert alert-success alert-dismissible"
role="alert">
<button
type="button"
class="close"
data-dismiss="alert"
aria-label="Close"
>
<span aria-hidden="true">&times;</span>
</button>
Image saved successfully
</div>
<div
*ngIf="imageUploadFailed"
class="alert alert-danger alert-dismissible"
role="alert"
>
<button
type="button"
class="close"
data-dismiss="alert"
aria-label="Close"
>
<span aria-hidden="true">&times;</span>
</button>
Image not saved try again;
</div>
<div> -->
<!-- [singleFile]="singleFileInput"
<lib-file-uploader
[(ngModel)]="dataModel"
[srcUrl]="pdfUrl"
(uploadData)="onFileChange($event)"
(liveCamera)="liveCamera()"
(_onClear)="clearPhoto()"
(fileChanged)="uploadFile($event)"
></lib-file-uploader>
</div>
</div>
<div class="col-md-12"></div>
<div *ngIf="dataModel" class="col-md-12">
<span
><b>Last Updated : </b>
Expand All @@ -71,4 +21,4 @@
style="display: block"
></pdf-viewer>
</div>
</div> -->
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ import { PatientService } from '../../services/patient.service';
styleUrls: ['./locator-map.css']
})
export class LocatorMapComponent implements OnInit, OnDestroy {
public display = false;
public addDialog = false;
public showSuccessAlert = false;
public showErrorAlert = false;
public dataModel: string;
public mapInfo: any;
public lastUpdatedDate: string;
Expand All @@ -43,15 +39,7 @@ export class LocatorMapComponent implements OnInit, OnDestroy {
private personResourceService: PersonResourceService
) {}

public ngOnInit(): void {}

public ngOnDestroy(): void {}

public showDialog() {
this.display = true;
}

/*public ngOnInit() {
public ngOnInit() {
this.subscriptions.push(
this.patientService.currentlyLoadedPatient.subscribe((patient) => {
if (patient) {
Expand Down Expand Up @@ -197,5 +185,5 @@ export class LocatorMapComponent implements OnInit, OnDestroy {
public resetValues(): void {
this.dataModel = null;
this.pdfAvailable = false;
} */
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ <h5 class="info_section_title">Relationships</h5>

<hr class="intro-divider patient-info-divider" />

<div class="row patient-info-row">
<div class="row patient-info-row" id="locator-map">
<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12">
<h5 class="info_section_title">Patient Location Details</h5>
</div>
<locator-map></locator-map>
<locator-map-details></locator-map-details>
<locator-map></locator-map>
</div>

<hr class="intro-divider patient-info-divider" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* .header {
display: flex;
justify-content: space-between;
} */
/*
table tbody tr,
table thead tr{
display: flex;
flex-direction: row;

} */
table tbody tr td,
table thead tr th {
width: 50%;
}

/* table tbody tr td{
background-color: blue;
} */

/* .ahd {
max-width: 100%;
} */
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<div>
<div>
<table
class="table table-hover table-striped table-responsive"
*ngIf="tbStartdates.length > 0 || tbEnddates[0] != null"
>
<thead>
<tr>
<th>TB Treatment Start Date</th>
<th>TB Treatment End Date</th>
</tr>
</thead>
<tbody>
<tr>
<td *ngFor="let startDate of tbStartdates">
{{ startDate | date: 'dd-MM-yyyy' }}
</td>
<td *ngFor="let endDate of tbEnddates">
{{ endDate | date: 'dd-MM-yyyy' }}
</td>
</tr>
</tbody>
</table>

<table
class="table table-hover table-striped table-responsive"
*ngIf="
cryptococallStartDates[0] != null || cryptococallEndDates[0] != null
"
>
<thead>
<tr>
<th>Cryptococcal Treatment Start Date :</th>
<th>Cryptococcal Treatment End Date :</th>
</tr>
</thead>
<tbody>
<tr>
<td *ngFor="let startDate of cryptococallStartDates">
{{ startDate | date: 'dd-MM-yyyy' }}
</td>
<td *ngFor="let endDate of cryptococallEndDates">
{{ endDate | date: 'dd-MM-yyyy' }}
</td>
</tr>
</tbody>
</table>

<table
class="table table-hover table-striped table-responsive"
*ngIf="pcpStartDates[0] != null || pcpEndDates[0] != null"
>
<thead>
<tr>
<th>PCP Treatment Start Date</th>
<th>PCP Treatment End Date</th>
</tr>
</thead>
<tbody>
<tr>
<td *ngFor="let startDate of pcpStartDates">
{{ startDate | date: 'dd-MM-yyyy' }}
</td>
<td *ngFor="let endDate of pcpEndDates">
{{ endDate | date: 'dd-MM-yyyy' }}
</td>
</tr>
</tbody>
</table>

<table
class="table table-hover table-striped table-responsive"
*ngIf="
toxoplasmosisStartDates[0] != null || toxoplasmosisEndDates[0] != null
"
>
<thead>
<tr>
<th>Toxoplasmosis Treatment Start Date</th>
<th>Toxoplasmosis Treatment End Date</th>
</tr>
</thead>
<tbody>
<tr>
<td *ngFor="let startDate of toxoplasmosisStartDates">
{{ startDate | date: 'dd-MM-yyyy' }}
</td>
<td *ngFor="let startDate of toxoplasmosisEndDates">
{{ endDate | date: 'dd-MM-yyyy' }}
</td>
</tr>
</tbody>
</table>

<table
class="table table-hover table-striped table-responsive"
*ngIf="kaposisStartDates[0] != null || kaposisEndDates[0] != null"
>
<thead>
<tr>
<th>Kaposis Sarcoma Treatment Start Date</th>
<th>Kaposis Sarcoma Treatment End Date</th>
</tr>
</thead>
<tbody>
<tr>
<td *ngFor="let startDate of kaposisStartDates">
{{ startDate | date: 'dd-MM-yyyy' }}
</td>
<td *ngFor="let startDate of kaposisEndDates">
{{ endDate | date: 'dd-MM-yyyy' }}
</td>
</tr>
</tbody>
</table>
</div>

<div
*ngIf="
kaposisStartDates[0] == null &&
kaposisEndDates[0] == null &&
toxoplasmosisStartDates[0] == null &&
toxoplasmosisEndDates[0] == null &&
tbStartdates.length == 0 &&
tbEnddates[0] == null &&
pcpStartDates[0] == null &&
pcpEndDates[0] == null &&
cryptococallStartDates[0] == null &&
cryptococallEndDates[0] == null
"
>
<p class="mx-8">NO AHD SUMMARY DATA!</p>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { AhdEventsSummaryComponent } from './ahd-events-summary.component';

describe('AhdEventsSummaryComponent', () => {
let component: AhdEventsSummaryComponent;
let fixture: ComponentFixture<AhdEventsSummaryComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [AhdEventsSummaryComponent]
}).compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(AhdEventsSummaryComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Loading