-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
186 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/app/clinic-dashboard/hts/monthly-schedule/monthly-schedule.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import { Component, OnDestroy, OnInit, Input } from '@angular/core'; | ||
import { Subscription } from 'rxjs'; | ||
import { Router, ActivatedRoute, Params } from '@angular/router'; | ||
import { | ||
CalendarEvent, | ||
CalendarEventAction, | ||
CalendarEventTimesChangedEvent, | ||
CalendarMonthViewDay | ||
} from 'angular-calendar'; | ||
import { MonthlyScheduleBaseComponent } from '../../../clinic-schedule-lib/monthly-schedule/monthly-schedule.component'; | ||
import { SelectDepartmentService } from './../../../shared/services/select-department.service'; | ||
import { ClinicDashboardCacheService } from '../../services/clinic-dashboard-cache.service'; | ||
import { AppFeatureAnalytics } from '../../../shared/app-analytics/app-feature-analytics.service'; | ||
import { PatientProgramResourceService } from '../../../etl-api/patient-program-resource.service'; | ||
import { LocalStorageService } from '../../../utils/local-storage.service'; | ||
import { MonthlyScheduleResourceService } from '../../../etl-api/monthly-scheduled-resource.service'; | ||
@Component({ | ||
selector: 'hts-monthly-schedule', | ||
templateUrl: | ||
'../../../clinic-schedule-lib/monthly-schedule/monthly-schedule.component.html' | ||
}) | ||
export class HtsMonthlyScheduleComponent | ||
extends MonthlyScheduleBaseComponent | ||
implements OnInit, OnDestroy { | ||
public routeSub: Subscription = new Subscription(); | ||
public myDepartment = 'HTS'; | ||
|
||
constructor( | ||
public monthlyScheduleResourceService: MonthlyScheduleResourceService, | ||
public clinicDashboardCacheService: ClinicDashboardCacheService, | ||
public router: Router, | ||
public route: ActivatedRoute, | ||
public appFeatureAnalytics: AppFeatureAnalytics, | ||
public localstorageService: LocalStorageService, | ||
public patientProgramService: PatientProgramResourceService, | ||
public selectDepartmentService: SelectDepartmentService | ||
) { | ||
super( | ||
monthlyScheduleResourceService, | ||
clinicDashboardCacheService, | ||
router, | ||
route, | ||
appFeatureAnalytics, | ||
localstorageService, | ||
patientProgramService | ||
); | ||
} | ||
|
||
public ngOnInit() { | ||
this.selectDepartmentService.setDepartment(this.myDepartment); | ||
this.route.parent.parent.params.subscribe((params) => { | ||
this.clinicDashboardCacheService.setCurrentClinic( | ||
params['location_uuid'] | ||
); | ||
}); | ||
} | ||
|
||
public ngOnDestroy() { | ||
this.routeSub.unsubscribe(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/app/data-analytics-dashboard/hts/data-analytics-hts.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { PatientProgramEnrollmentModule } from '../../patients-program-enrollment/patients-program-enrollment.module'; | ||
import { DataEntryStatisticsModule } from '../../data-entry-statistics/data-entry-statistics.module'; | ||
import { ChangeDepartmentModule } from '../change-department/change-department.module'; | ||
import { DataAnalyticsHivModule } from '../hiv/data-analytics-hiv.module'; | ||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
PatientProgramEnrollmentModule, | ||
DataEntryStatisticsModule, | ||
ChangeDepartmentModule, | ||
DataAnalyticsHivModule | ||
], | ||
exports: [], | ||
declarations: [], | ||
providers: [] | ||
}) | ||
export class DataAnalyticsHtsModule {} |
48 changes: 48 additions & 0 deletions
48
src/app/data-analytics-dashboard/hts/data-analytics-hts.routes.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { ModuleWithProviders } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
import { DataEntryStatisticsComponent } from '../../data-entry-statistics/data-entry-statistics.component'; | ||
import { DataEntryStatisticsPatientListComponent } from '../../data-entry-statistics/data-entry-statistics-patient-list.component'; | ||
import { PatientsProgramEnrollmentComponent } from '../../patients-program-enrollment/patients-program-enrollment.component'; | ||
import { ProgramEnrollmentPatientListComponent } from '../../patients-program-enrollment/program-enrollent-patient-list.component'; | ||
import { ChangeDepartmentComponent } from '../change-department/change-department.component'; | ||
import { AdminDashboardClinicFlowComponent } from '../hiv/clinic-flow/admin-dashboard-clinic-flow'; | ||
const routes: Routes = [ | ||
{ | ||
path: 'clinic-flow', | ||
component: AdminDashboardClinicFlowComponent | ||
}, | ||
{ | ||
path: 'program-enrollment', | ||
children: [ | ||
{ | ||
path: '', | ||
component: PatientsProgramEnrollmentComponent | ||
}, | ||
{ | ||
path: 'patient-list', | ||
component: ProgramEnrollmentPatientListComponent | ||
} | ||
] | ||
}, | ||
{ | ||
path: 'data-entry-statistics', | ||
children: [ | ||
{ | ||
path: '', | ||
component: DataEntryStatisticsComponent | ||
}, | ||
{ | ||
path: 'patient-list', | ||
component: DataEntryStatisticsPatientListComponent | ||
} | ||
] | ||
}, | ||
{ | ||
path: 'select-department', | ||
component: ChangeDepartmentComponent | ||
} | ||
]; | ||
|
||
export const DataAnalyticsDashboardOncologyRouting: ModuleWithProviders = RouterModule.forChild( | ||
routes | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters