Skip to content

Commit

Permalink
Merge pull request #2 from samply/refactor/use-eucaim-transformer
Browse files Browse the repository at this point in the history
refactor: use new eucaim result transformer
  • Loading branch information
TKussel authored Sep 26, 2023
2 parents c44a238 + 48b0a8f commit c193f43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ import {

import {
CqlTranslatorService,
MeasureTransformerService,
} from '@samply/lens-core/cql';

import {
EucaimResultTransformerService
} from '@samply/lens-core/eucaim'

import { SearchBarModule } from '@samply/lens-components/search-bar';
import { CriteriaCatalogueModule } from '@samply/lens-components/criteria-catalogue';
import { ResultSummaryBarModule } from '@samply/lens-components/result-summary-bar';
Expand Down Expand Up @@ -57,7 +60,7 @@ const routes: Routes = [{ path: '', component: MainComponent }];
},
{
provide: RESULT_TRANSFORMER_TOKEN,
useClass: MeasureTransformerService
useClass: EucaimResultTransformerService
},
{
provide: CATALOGUE_FETCHER_TOKEN,
Expand Down
5 changes: 3 additions & 2 deletions src/app/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ export class MainComponent {
}
]

public summaryBar = new ResultRenderer('Ergebnisse', [{ key: 'sites' }, { key: 'patients' }], ResultSummaryBarComponent, { headers: this.summaryBarHeaders, clickDisabled: true, showNegotiationButton: true });
public summaryBar = new ResultRenderer('Ergebnisse', [{ key: 'collections' }, { key: 'patients'}], ResultSummaryBarComponent, { headers: this.summaryBarHeaders, clickDisabled: true, showNegotiationButton: true });

public diagrams: ResultRenderer[] = [
new ResultRenderer("Patients per collection", [{ key: "sites", subset: '*' }], PieChartComponent, { headers: this.siteHeaders, clickDisabled: true }),
new ResultRenderer("Studies per collection", [{ key: "collections", subset: 'studies' }], PieChartComponent, { headers: this.siteHeaders, clickDisabled: true}),
// new ResultRenderer("Subjects per collection", [{ key: "collections", subset: 'subjects' }], PieChartComponent, { headers: this.siteHeaders, clickDisabled: true}),
new ResultRenderer("", [{ key: 'patients', subset: 'sites' }], ResultTableComponent, { headers: this.siteHeaders, clickDisabled: true, displayProperties: ["wide-diagram"] }),
]

Expand Down

0 comments on commit c193f43

Please sign in to comment.