Skip to content

Commit

Permalink
POC-737: Development of MOH Registers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Mutai committed May 22, 2024
1 parent 69e9cf5 commit 3841c24
Show file tree
Hide file tree
Showing 43 changed files with 2,410 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/app/data-analytics-dashboard/hiv/data-analytics-hiv.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ import { TxMmdReportComponent } from './datim-reports/tx-mmd-report.component';
import { TxRttReportComponent } from './datim-reports/tx-rtt-report.component';
import { AhdReportComponent } from './ahd-report/ahd-report.component';
import { PlhivNcdV2ReportComponent } from './plhiv-ncd-v2-report/plhiv-ncd-v2-report.component';
import { RegistersComponent } from './registers/registers.component';
import { HeiRegisterComponent } from './registers/hei-register/hei-register.component';
import { AncRegisterComponent } from './registers/anc-register/anc-register.component';
import { NutritionRegisterComponent } from './registers/nutrition-register/nutrition-register.component';
import { MaternityRegisterComponent } from './registers/maternity-register/maternity-register.component';
import { HtsrefferallinkageRegisterComponent } from './registers/htsrefferallinkage-register/htsrefferallinkage-register.component';
import { PncRegisterComponent } from './registers/pnc-register/pnc-register.component';
import { DefaultertracingRegisterComponent } from './registers/defaultertracing-register/defaultertracing-register.component';
import { PrepdailyRegisterComponent } from './registers/prepdaily-register/prepdaily-register.component';
import { CntdailyRegisterComponent } from './registers/cntdaily-register/cntdaily-register.component';

@NgModule({
imports: [
Expand Down Expand Up @@ -71,7 +81,8 @@ import { PlhivNcdV2ReportComponent } from './plhiv-ncd-v2-report/plhiv-ncd-v2-re
MOH412HIVDataAnalyticsComponent,
MOH412HIVDataAnalyticsPatientListComponent,
DataAnalyticsMonthlyReportComponent,
TxReportsDashboardComponent
TxReportsDashboardComponent,
RegistersComponent
],
declarations: [
AdminDashboardClinicFlowComponent,
Expand All @@ -97,7 +108,17 @@ import { PlhivNcdV2ReportComponent } from './plhiv-ncd-v2-report/plhiv-ncd-v2-re
TxMmdReportComponent,
TxRttReportComponent,
PlhivNcdV2ReportComponent,
AhdReportComponent
AhdReportComponent,
RegistersComponent,
HeiRegisterComponent,
AncRegisterComponent,
NutritionRegisterComponent,
MaternityRegisterComponent,
HtsrefferallinkageRegisterComponent,
PncRegisterComponent,
DefaultertracingRegisterComponent,
PrepdailyRegisterComponent,
CntdailyRegisterComponent
],
providers: [
DataAnalyticsDashboardService,
Expand Down
100 changes: 100 additions & 0 deletions src/app/data-analytics-dashboard/hiv/data-analytics-hiv.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ import { AhdReportComponent } from './ahd-report/ahd-report.component';
import { AhdMonthlyReportPatientlistComponent } from 'src/app/hiv-care-lib/ahd-monthly-report/ahd-monthly-report-patientlist/ahd-monthly-report-patientlist.component';
import { PlhivNcdV2ReportPatientListComponent } from 'src/app/hiv-care-lib/plhiv-ncd-v2-report/plhiv-ncd-v2-report-patient-list/plhiv-ncd-v2-report-patient-list.component';
import { PlhivNcdV2ReportComponent } from './plhiv-ncd-v2-report/plhiv-ncd-v2-report.component';
import { RegistersComponent } from './registers/registers.component';
import { HeiRegisterComponent } from './registers/hei-register/hei-register.component';
import { AncRegisterComponent } from './registers/anc-register/anc-register.component';
import { NutritionRegisterComponent } from './registers/nutrition-register/nutrition-register.component';
import { MaternityRegisterComponent } from './registers/maternity-register/maternity-register.component';
import { HtsrefferallinkageRegisterComponent } from './registers/htsrefferallinkage-register/htsrefferallinkage-register.component';
import { PncRegisterComponent } from './registers/pnc-register/pnc-register.component';
import { DefaultertracingRegisterComponent } from './registers/defaultertracing-register/defaultertracing-register.component';
import { PrepdailyRegisterComponent } from './registers/prepdaily-register/prepdaily-register.component';
import { CntdailyRegisterComponent } from './registers/cntdaily-register/cntdaily-register.component';

const routes: Routes = [
{
Expand Down Expand Up @@ -359,6 +369,96 @@ const routes: Routes = [
}
]
},
{
path: 'registers',
children: [
{
path: '',
component: RegistersComponent
},
{
path: 'hei-register',
children: [
{
path: '',
component: HeiRegisterComponent
}
]
},
{
path: 'anc-register',
children: [
{
path: '',
component: AncRegisterComponent
}
]
},
{
path: 'nutrition-register',
children: [
{
path: '',
component: NutritionRegisterComponent
}
]
},
{
path: 'maternity-register',
children: [
{
path: '',
component: MaternityRegisterComponent
}
]
},
{
path: 'htsrefferallinkage-register',
children: [
{
path: '',
component: HtsrefferallinkageRegisterComponent
}
]
},
{
path: 'pnc-register',
children: [
{
path: '',
component: PncRegisterComponent
}
]
},
{
path: 'defaultertracing-register',
children: [
{
path: '',
component: DefaultertracingRegisterComponent
}
]
},
{
path: 'prepdaily-register',
children: [
{
path: '',
component: PrepdailyRegisterComponent
}
]
},
{
path: 'cntdaily-register',
children: [
{
path: '',
component: CntdailyRegisterComponent
}
]
}
]
},
{
path: 'dqa',
children: [
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<h4 class="component-title text-success">
<span class="fa fa-table"></span>{{reportName}}
</h4>

<div class="loader" *ngIf="isLoading">
<span><i class="fa fa-spinner fa-spin"></i>Loading...</span>
</div>

<p-tabView>
<div>
<p-tabPanel header="Monthly" leftIcon="fa-calendar-o">
<report-filters
[enabledControls]="enabledControls"
[monthString]="_month"
(onMonthChange)="onMonthChange($event)"
[reportName]="reportName"
(generateReport)="generateReport()"
>
</report-filters>
</p-tabPanel>
</div>
</p-tabView>

<div class="alert alert-danger fade in" *ngIf="showInfoMessage">
<a href="#" class="close" data-dismiss="alert">&times;</a>
<h4 *ngIf="!statusError">
<strong><span class="glyphicon glyphicon-warning-sign"></span> </strong> An
error occurred while trying to load the report. Please try again.
</h4>
<p>
<small>{{ errorMessage }}</small>
</p>
</div>
<div *ngIf="!isReleased" class="alert alert-warning">
<strong>Viewing a Draft Version of the Report for the chosen month. </strong>
This report is likely to change without warning.
</div>
<div>
<p-tabView>
<p-tabPanel
header="Report View"
leftIcon="fa-file-pdf-o"
[selected]="currentViewBelow === 'pdf'"
>
<!-- <app-tx-ml-report-view
[SummaryData]="txnewReportSummaryData"
[sectionDefs]="columnDefs"
(CellSelection)="onIndicatorSelected($event)"
[reportDetails]="params"
[reportHeader]="reportName"
></app-tx-ml-report-view> -->
</p-tabPanel>
</p-tabView>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { AncRegisterComponent } from './anc-register.component';

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

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

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

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

0 comments on commit 3841c24

Please sign in to comment.