moving pipes into their own module.

This commit is contained in:
Jason Kulatunga 2023-01-16 09:01:05 -08:00
parent 18f8b36a39
commit c5e2991c33
6 changed files with 44 additions and 17 deletions

View File

@ -215,8 +215,6 @@ a CDN or minimal Nginx deployment.
### How do I change the default encryption key and admin credentials
- FASTEN_ISSUER_JWT_KEY
- FASTEN_COUCHDB_ADMIN_USERNAME
- FASTEN_COUCHDB_ADMIN_PASSWORD
### Generate JWT for local use

View File

@ -29,6 +29,7 @@ import {AuthService} from './services/auth.service';
import { PatientProfileComponent } from './pages/patient-profile/patient-profile.component';
import { MedicalHistoryComponent } from './pages/medical-history/medical-history.component';
import { ReportLabsComponent } from './pages/report-labs/report-labs.component';
import {PipesModule} from './pipes/pipes.module';
@NgModule({
@ -57,7 +58,8 @@ import { ReportLabsComponent } from './pages/report-labs/report-labs.component';
ChartsModule,
NgxDropzoneModule,
HighlightModule,
MomentModule
MomentModule,
PipesModule
],
providers: [
{

View File

@ -13,7 +13,7 @@ export class CodingComponent implements OnInit {
ngOnInit(): void {
this.has_additional_info = !!(this.coding.code || this.coding.system)
this.has_additional_info = !!(this.coding?.code || this.coding?.system)
}
}

View File

@ -31,14 +31,12 @@ import {ListDeviceComponent} from './list-generic-resource/list-device.component
import {ListDiagnosticReportComponent} from './list-generic-resource/list-diagnostic-report.component';
import {ListGoalComponent} from './list-generic-resource/list-goal.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 { MomentModule } from 'ngx-moment';
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 { 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 { ReportLabsObservationComponent } from './report-labs-observation/report-labs-observation.component';
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 { DiagnosticReportComponent } from './fhir/resources/diagnostic-report/diagnostic-report.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({
imports: [
@ -71,11 +72,13 @@ import { PractitionerComponent } from './fhir/resources/practitioner/practitione
BrowserModule,
NgxDatatableModule,
NgbModule,
NgbCollapseModule,
FormsModule,
MomentModule,
TreeModule,
ChartsModule,
HighlightModule,
PipesModule
],
declarations: [
ComponentsSidebarComponent,
@ -109,9 +112,7 @@ import { PractitionerComponent } from './fhir/resources/practitioner/practitione
ListFallbackResourceComponent,
ToastComponent,
ReportHeaderComponent,
FhirPathPipe,
ReportMedicalHistoryEditorComponent,
FilterPipe,
ReportMedicalHistoryConditionComponent,
ReportLabsObservationComponent,
LoadingSpinnerComponent,
@ -167,14 +168,23 @@ import { PractitionerComponent } from './fhir/resources/practitioner/practitione
ToastComponent,
ReportHeaderComponent,
ReportMedicalHistoryEditorComponent,
FhirPathPipe,
FilterPipe,
ReportMedicalHistoryConditionComponent,
ReportLabsObservationComponent,
LoadingSpinnerComponent,
BinaryComponent,
FhirResourceComponent,
FhirResourceOutletDirective
FhirResourceOutletDirective,
FallbackComponent,
ImmunizationComponent,
BadgeComponent,
TableComponent,
CodingComponent,
AllergyIntoleranceComponent,
MedicationComponent,
MedicationRequestComponent,
ProcedureComponent,
DiagnosticReportComponent,
PractitionerComponent
]
})

View File

@ -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 {}

View File

@ -1,7 +1,2 @@
import { RelatedPersonModel } from './related-person-model';
describe('RelatedPersonModel', () => {
it('should create an instance', () => {
expect(new RelatedPersonModel({})).toBeTruthy();
});
});