+
+
+
+
+
+
-->
+
diff --git a/src/app/patient-dashboard/common/locator-map/locator-map.component.ts b/src/app/patient-dashboard/common/locator-map/locator-map.component.ts
index 46b9f26b4..541bd2ab4 100644
--- a/src/app/patient-dashboard/common/locator-map/locator-map.component.ts
+++ b/src/app/patient-dashboard/common/locator-map/locator-map.component.ts
@@ -16,6 +16,10 @@ 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;
@@ -39,7 +43,15 @@ export class LocatorMapComponent implements OnInit, OnDestroy {
private personResourceService: PersonResourceService
) {}
- public ngOnInit() {
+ public ngOnInit(): void {}
+
+ public ngOnDestroy(): void {}
+
+ public showDialog() {
+ this.display = true;
+ }
+
+ /*public ngOnInit() {
this.subscriptions.push(
this.patientService.currentlyLoadedPatient.subscribe((patient) => {
if (patient) {
@@ -185,5 +197,5 @@ export class LocatorMapComponent implements OnInit, OnDestroy {
public resetValues(): void {
this.dataModel = null;
this.pdfAvailable = false;
- }
+ } */
}
diff --git a/src/app/patient-dashboard/common/locator-map/locator-map.css b/src/app/patient-dashboard/common/locator-map/locator-map.css
index 7e3aef70e..8de4801e2 100644
--- a/src/app/patient-dashboard/common/locator-map/locator-map.css
+++ b/src/app/patient-dashboard/common/locator-map/locator-map.css
@@ -4,3 +4,6 @@ img {
a img {
width: 200px;
}
+.edit-locator-dialog {
+ top: 170px !important;
+}
diff --git a/src/app/patient-dashboard/common/patient-dashboard.common.module.ts b/src/app/patient-dashboard/common/patient-dashboard.common.module.ts
index a0a05e65d..4c8ee52de 100644
--- a/src/app/patient-dashboard/common/patient-dashboard.common.module.ts
+++ b/src/app/patient-dashboard/common/patient-dashboard.common.module.ts
@@ -93,6 +93,7 @@ import { EditDemographicsComponent } from './patient-info/edit-demographics.comp
import { VisitPeriodComponent } from './visit/visit-period/visit-period.component';
import { LocatorMapComponent } from './locator-map/locator-map.component';
import { SecurePipe } from './locator-map/secure.pipe';
+import { LocatorMapDetailsComponent } from './locator-map/locator-map-details.component';
import { CohortMemberModule } from '../../patient-list-cohort/cohort-member/cohort-member.module';
import { EditHealtCenterComponent } from './patient-info/edit-healthcenter.component';
import { VisitEncountersListComponent } from './visit-encounters/visit-encounters-list.component';
@@ -213,6 +214,7 @@ import { UserDefaultPropertiesService } from 'src/app/user-default-properties/us
VisitSummaryComponent,
LocatorMapComponent,
SecurePipe,
+ LocatorMapDetailsComponent,
VisitEncountersListComponent,
VisitEncountersComponent,
VisitDetailsComponent,
@@ -270,6 +272,7 @@ import { UserDefaultPropertiesService } from 'src/app/user-default-properties/us
TodayVisitsComponent,
LocatorMapComponent,
SecurePipe,
+ LocatorMapDetailsComponent,
AgePipe,
VisitEncountersListComponent,
VisitEncountersComponent,
diff --git a/src/app/patient-dashboard/common/patient-encounters/patient-encounter-observations.component.html b/src/app/patient-dashboard/common/patient-encounters/patient-encounter-observations.component.html
index 6f1dc7513..263f178b2 100644
--- a/src/app/patient-dashboard/common/patient-encounters/patient-encounter-observations.component.html
+++ b/src/app/patient-dashboard/common/patient-encounters/patient-encounter-observations.component.html
@@ -64,9 +64,8 @@
Observations
diff --git a/src/app/patient-dashboard/common/patient-info/patient-info.component.css b/src/app/patient-dashboard/common/patient-info/patient-info.component.css
index 8ae442d25..289922b12 100644
--- a/src/app/patient-dashboard/common/patient-info/patient-info.component.css
+++ b/src/app/patient-dashboard/common/patient-info/patient-info.component.css
@@ -19,3 +19,9 @@
.edit_link:hover {
cursor: pointer;
}
+.spacing {
+ margin-right: 10px;
+}
+.smaller-icon {
+ font-size: 12px;
+}
diff --git a/src/app/patient-dashboard/common/patient-info/patient-info.component.html b/src/app/patient-dashboard/common/patient-info/patient-info.component.html
index 82fb0026f..642d890a3 100644
--- a/src/app/patient-dashboard/common/patient-info/patient-info.component.html
+++ b/src/app/patient-dashboard/common/patient-info/patient-info.component.html
@@ -69,7 +69,9 @@
Relationships
@@ -78,9 +80,13 @@ Relationships
+
-
Outreach Locator Map
+ Patient Location Details
+
+
+
diff --git a/src/app/patient-dashboard/common/patient-info/patient-info.component.ts b/src/app/patient-dashboard/common/patient-info/patient-info.component.ts
index 337d51def..7f08ad0a0 100644
--- a/src/app/patient-dashboard/common/patient-info/patient-info.component.ts
+++ b/src/app/patient-dashboard/common/patient-info/patient-info.component.ts
@@ -13,6 +13,7 @@ import { Subscription } from 'rxjs';
export class PatientInfoComponent implements OnInit, OnDestroy {
public patient: Patient;
public subs: Subscription[] = [];
+ public display = false;
constructor(
private appFeatureAnalytics: AppFeatureAnalytics,
diff --git a/src/app/patient-dashboard/patient-dashboard.routes.ts b/src/app/patient-dashboard/patient-dashboard.routes.ts
index 59d9d52fb..fddbe47ca 100644
--- a/src/app/patient-dashboard/patient-dashboard.routes.ts
+++ b/src/app/patient-dashboard/patient-dashboard.routes.ts
@@ -13,6 +13,7 @@ import { PatientMonthlyStatusComponent } from './hiv/patient-status-change/patie
import { FromentryGuard } from './common/formentry/formentry.guard';
import { FormCreationDataResolverService } from './common/formentry/form-creation-data-resolver.service';
import { LocatorMapComponent } from './common/locator-map/locator-map.component';
+import { LocatorMapDetailsComponent } from './common/locator-map/locator-map-details.component';
import { VisitEncountersComponent } from './common/visit-encounters/visit-encounters.component';
import { GeneralLandingPageComponent } from './general-landing-page/landing-page.component';
import { PatientSearchContainerComponent } from '../patient-search/patient-search-container.component';
@@ -146,6 +147,10 @@ export const routes = [
path: ':programClass/:program/locator-map',
component: LocatorMapComponent
},
+ {
+ path: ':programClass/:program/locator-map-details',
+ component: LocatorMapDetailsComponent
+ },
{
path: ':programClass/:program/program-manager',
component: ProgramManagerContainerComponent,
diff --git a/src/app/shared/ngamrs-shared.module.ts b/src/app/shared/ngamrs-shared.module.ts
index c98696108..6241b3075 100644
--- a/src/app/shared/ngamrs-shared.module.ts
+++ b/src/app/shared/ngamrs-shared.module.ts
@@ -76,6 +76,7 @@ import { KibanaVizComponent } from './kibana-viz/kibana-viz.component';
import { SnakeCaseToTitlePipe } from './pipes/snake-case-to-title.pipe';
import { ProgramSnapshotNegativesComponent } from '../patient-dashboard/hiv/program-snapshot-negatives/program-snapshot-negatives.component';
import { AngularMultiSelectModule } from 'angular2-multiselect-dropdown/angular2-multiselect-dropdown';
+import { LocatorPrettyViewerComponent } from '../patient-dashboard/common/formentry/locator-pretty-viewer/locator-pretty-viewer.component';
@NgModule({
imports: [
@@ -177,7 +178,8 @@ import { AngularMultiSelectModule } from 'angular2-multiselect-dropdown/angular2
MatIconModule,
MatExpansionModule,
MatTooltipModule,
- SnakeCaseToTitlePipe
+ SnakeCaseToTitlePipe,
+ LocatorPrettyViewerComponent
],
declarations: [
DisplayErrorComponent,
@@ -197,7 +199,7 @@ import { AngularMultiSelectModule } from 'angular2-multiselect-dropdown/angular2
PatientEncounterObservationsComponent,
PrettyEncounterViewerComponent,
CdmProgramSnapshotComponent,
-
+ LocatorPrettyViewerComponent,
SnakeCaseToTitlePipe
],
providers: [