moving pipes into their own module.
This commit is contained in:
parent
18f8b36a39
commit
c5e2991c33
|
@ -215,8 +215,6 @@ a CDN or minimal Nginx deployment.
|
||||||
|
|
||||||
### How do I change the default encryption key and admin credentials
|
### How do I change the default encryption key and admin credentials
|
||||||
- FASTEN_ISSUER_JWT_KEY
|
- FASTEN_ISSUER_JWT_KEY
|
||||||
- FASTEN_COUCHDB_ADMIN_USERNAME
|
|
||||||
- FASTEN_COUCHDB_ADMIN_PASSWORD
|
|
||||||
|
|
||||||
|
|
||||||
### Generate JWT for local use
|
### Generate JWT for local use
|
||||||
|
|
|
@ -29,6 +29,7 @@ import {AuthService} from './services/auth.service';
|
||||||
import { PatientProfileComponent } from './pages/patient-profile/patient-profile.component';
|
import { PatientProfileComponent } from './pages/patient-profile/patient-profile.component';
|
||||||
import { MedicalHistoryComponent } from './pages/medical-history/medical-history.component';
|
import { MedicalHistoryComponent } from './pages/medical-history/medical-history.component';
|
||||||
import { ReportLabsComponent } from './pages/report-labs/report-labs.component';
|
import { ReportLabsComponent } from './pages/report-labs/report-labs.component';
|
||||||
|
import {PipesModule} from './pipes/pipes.module';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
@ -57,7 +58,8 @@ import { ReportLabsComponent } from './pages/report-labs/report-labs.component';
|
||||||
ChartsModule,
|
ChartsModule,
|
||||||
NgxDropzoneModule,
|
NgxDropzoneModule,
|
||||||
HighlightModule,
|
HighlightModule,
|
||||||
MomentModule
|
MomentModule,
|
||||||
|
PipesModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,7 +13,7 @@ export class CodingComponent implements OnInit {
|
||||||
|
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.has_additional_info = !!(this.coding.code || this.coding.system)
|
this.has_additional_info = !!(this.coding?.code || this.coding?.system)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,14 +31,12 @@ import {ListDeviceComponent} from './list-generic-resource/list-device.component
|
||||||
import {ListDiagnosticReportComponent} from './list-generic-resource/list-diagnostic-report.component';
|
import {ListDiagnosticReportComponent} from './list-generic-resource/list-diagnostic-report.component';
|
||||||
import {ListGoalComponent} from './list-generic-resource/list-goal.component';
|
import {ListGoalComponent} from './list-generic-resource/list-goal.component';
|
||||||
import { ListFallbackResourceComponent } from './list-fallback-resource/list-fallback-resource.component';
|
import { ListFallbackResourceComponent } from './list-fallback-resource/list-fallback-resource.component';
|
||||||
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
import {NgbCollapseModule, NgbModule} from '@ng-bootstrap/ng-bootstrap';
|
||||||
import { ToastComponent } from './toast/toast.component';
|
import { ToastComponent } from './toast/toast.component';
|
||||||
import { MomentModule } from 'ngx-moment';
|
import { MomentModule } from 'ngx-moment';
|
||||||
import { ReportHeaderComponent } from './report-header/report-header.component';
|
import { ReportHeaderComponent } from './report-header/report-header.component';
|
||||||
import { FhirPathPipe } from '../pipes/fhir-path.pipe';
|
|
||||||
import { ReportMedicalHistoryEditorComponent } from './report-medical-history-editor/report-medical-history-editor.component';
|
import { ReportMedicalHistoryEditorComponent } from './report-medical-history-editor/report-medical-history-editor.component';
|
||||||
import { TreeModule } from '@circlon/angular-tree-component';
|
import { TreeModule } from '@circlon/angular-tree-component';
|
||||||
import {FilterPipe} from '../pipes/filter.pipe';
|
|
||||||
import { ReportMedicalHistoryConditionComponent } from './report-medical-history-condition/report-medical-history-condition.component';
|
import { ReportMedicalHistoryConditionComponent } from './report-medical-history-condition/report-medical-history-condition.component';
|
||||||
import { ReportLabsObservationComponent } from './report-labs-observation/report-labs-observation.component';
|
import { ReportLabsObservationComponent } from './report-labs-observation/report-labs-observation.component';
|
||||||
import { ChartsModule } from 'ng2-charts';
|
import { ChartsModule } from 'ng2-charts';
|
||||||
|
@ -64,6 +62,9 @@ import { MedicationRequestComponent } from './fhir/resources/medication-request/
|
||||||
import { ProcedureComponent } from './fhir/resources/procedure/procedure.component';
|
import { ProcedureComponent } from './fhir/resources/procedure/procedure.component';
|
||||||
import { DiagnosticReportComponent } from './fhir/resources/diagnostic-report/diagnostic-report.component';
|
import { DiagnosticReportComponent } from './fhir/resources/diagnostic-report/diagnostic-report.component';
|
||||||
import { PractitionerComponent } from './fhir/resources/practitioner/practitioner.component';
|
import { PractitionerComponent } from './fhir/resources/practitioner/practitioner.component';
|
||||||
|
import {FhirPathPipe} from '../pipes/fhir-path.pipe';
|
||||||
|
import {FilterPipe} from '../pipes/filter.pipe';
|
||||||
|
import {PipesModule} from '../pipes/pipes.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -71,11 +72,13 @@ import { PractitionerComponent } from './fhir/resources/practitioner/practitione
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
NgxDatatableModule,
|
NgxDatatableModule,
|
||||||
NgbModule,
|
NgbModule,
|
||||||
|
NgbCollapseModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
MomentModule,
|
MomentModule,
|
||||||
TreeModule,
|
TreeModule,
|
||||||
ChartsModule,
|
ChartsModule,
|
||||||
HighlightModule,
|
HighlightModule,
|
||||||
|
PipesModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ComponentsSidebarComponent,
|
ComponentsSidebarComponent,
|
||||||
|
@ -109,9 +112,7 @@ import { PractitionerComponent } from './fhir/resources/practitioner/practitione
|
||||||
ListFallbackResourceComponent,
|
ListFallbackResourceComponent,
|
||||||
ToastComponent,
|
ToastComponent,
|
||||||
ReportHeaderComponent,
|
ReportHeaderComponent,
|
||||||
FhirPathPipe,
|
|
||||||
ReportMedicalHistoryEditorComponent,
|
ReportMedicalHistoryEditorComponent,
|
||||||
FilterPipe,
|
|
||||||
ReportMedicalHistoryConditionComponent,
|
ReportMedicalHistoryConditionComponent,
|
||||||
ReportLabsObservationComponent,
|
ReportLabsObservationComponent,
|
||||||
LoadingSpinnerComponent,
|
LoadingSpinnerComponent,
|
||||||
|
@ -167,14 +168,23 @@ import { PractitionerComponent } from './fhir/resources/practitioner/practitione
|
||||||
ToastComponent,
|
ToastComponent,
|
||||||
ReportHeaderComponent,
|
ReportHeaderComponent,
|
||||||
ReportMedicalHistoryEditorComponent,
|
ReportMedicalHistoryEditorComponent,
|
||||||
FhirPathPipe,
|
|
||||||
FilterPipe,
|
|
||||||
ReportMedicalHistoryConditionComponent,
|
ReportMedicalHistoryConditionComponent,
|
||||||
ReportLabsObservationComponent,
|
ReportLabsObservationComponent,
|
||||||
LoadingSpinnerComponent,
|
LoadingSpinnerComponent,
|
||||||
BinaryComponent,
|
BinaryComponent,
|
||||||
FhirResourceComponent,
|
FhirResourceComponent,
|
||||||
FhirResourceOutletDirective
|
FhirResourceOutletDirective,
|
||||||
|
FallbackComponent,
|
||||||
|
ImmunizationComponent,
|
||||||
|
BadgeComponent,
|
||||||
|
TableComponent,
|
||||||
|
CodingComponent,
|
||||||
|
AllergyIntoleranceComponent,
|
||||||
|
MedicationComponent,
|
||||||
|
MedicationRequestComponent,
|
||||||
|
ProcedureComponent,
|
||||||
|
DiagnosticReportComponent,
|
||||||
|
PractitionerComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
|
|
||||||
|
// Pipes
|
||||||
|
import {FhirPathPipe} from './fhir-path.pipe';
|
||||||
|
import {FilterPipe} from './filter.pipe';
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [
|
||||||
|
|
||||||
|
FhirPathPipe,
|
||||||
|
FilterPipe,
|
||||||
|
],
|
||||||
|
imports: [
|
||||||
|
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
FhirPathPipe,
|
||||||
|
FilterPipe
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class PipesModule {}
|
|
@ -1,7 +1,2 @@
|
||||||
import { RelatedPersonModel } from './related-person-model';
|
import { RelatedPersonModel } from './related-person-model';
|
||||||
|
|
||||||
describe('RelatedPersonModel', () => {
|
|
||||||
it('should create an instance', () => {
|
|
||||||
expect(new RelatedPersonModel({})).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in New Issue