Skip to content

Commit

Permalink
fix: rendering of query summary
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Nov 29, 2023
1 parent 9af6079 commit d6d301a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 29 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions packages/rare-diseases/src/runtime/domains/query/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export type ConceptsCount<CONCEPT = any> = ConceptCount<CONCEPT>[];
export type RDQuerySummary = {
id: string,
numPatients: number,
siteDistribution: ConceptsCount<Coding>,
genderDistribution: ConceptsCount<Coding>,
ageDistribution: ConceptsCount<MinMaxRange>,

hpoTermDistribution: ConceptsCount<Coding>,
diagnosisCategoryDistribution: ConceptsCount<Coding>

distributions: {
site: ConceptsCount<Coding>,
gender: ConceptsCount<Coding>,
age: ConceptsCount<MinMaxRange>,
hpoTerm: ConceptsCount<Coding>,
diseaseCategory: ConceptsCount<Coding>
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ export default defineNuxtComponent({
},
},
setup() {
const handleLabelClicked = (label: LegendItem) => {
console.log(label);
};
return {
handleLabelClicked,
};
},
});
</script>
Expand All @@ -39,7 +32,7 @@ export default defineNuxtComponent({
</h6>
<QuerySummaryDistributionDoughnut
style="max-height: 390px"
:items="props.data.siteDistribution"
:items="props.data.distributions.site"
/>
</div>
</div>
Expand All @@ -50,7 +43,7 @@ export default defineNuxtComponent({
</h6>
<QuerySummaryDistributionDoughnut
style="max-height: 390px"
:items="props.data.genderDistribution"
:items="props.data.distributions.gender"
/>
</div>
</div>
Expand All @@ -61,7 +54,7 @@ export default defineNuxtComponent({
</h6>
<QuerySummaryDistributionBar
style="max-height: 390px"
:items="props.data.ageDistribution"
:items="props.data.distributions.age"
/>
</div>
</div>
Expand All @@ -75,7 +68,7 @@ export default defineNuxtComponent({
Verteilung von HPOTermen
</h6>
<QuerySummaryDistributionBar
:items="props.data.hpoTermDistribution"
:items="props.data.distributions.hpoTerm"
/>
</div>
</div>
Expand All @@ -84,19 +77,11 @@ export default defineNuxtComponent({
<h6 class="text-center">
Verteilung von Diagnose Kategorien
</h6>
<QuerySummaryDistributionBar :items="props.data.diagnosisCategoryDistribution" />
<QuerySummaryDistributionBar :items="props.data.distributions.diseaseCategory" />
</div>
</div>
</div>
</div>
<div>
<h5>Diagnose Kategorien pro Variante</h5>
<div class="row" />
</div>
<div>
<h5>HPO Terme pro Variante</h5>
<div class="row" />
</div>
</template>
</QuerySummaryEntity>
</template>

0 comments on commit d6d301a

Please sign in to comment.