diff --git a/packages/demo/public/catalogues/catalogue-dktk.json b/packages/demo/public/catalogues/catalogue-dktk.json index b117e957..31684a01 100644 --- a/packages/demo/public/catalogues/catalogue-dktk.json +++ b/packages/demo/public/catalogues/catalogue-dktk.json @@ -7186,7 +7186,7 @@ "name": "Klassifikation von Tumoren", "childCategories": [ { - "key": "year_of_primary_diagnosis", + "key": "year_of_diagnosis", "name": "Diagnosejahr", "system": "", "fieldType": "number", @@ -7194,7 +7194,7 @@ "criteria": [] }, { - "key": "age_at_primary_diagnosis", + "key": "age_at_diagnosis", "name": "Alter bei Erstdiagnose", "system": "", "fieldType": "number", diff --git a/packages/demo/src/AppCCP.svelte b/packages/demo/src/AppCCP.svelte index f7caa232..21989d60 100644 --- a/packages/demo/src/AppCCP.svelte +++ b/packages/demo/src/AppCCP.svelte @@ -1,7 +1,13 @@
@@ -183,7 +192,10 @@

CCP Explorer

@@ -191,23 +203,32 @@ - - - + measures={[ + dktkPatientsMeasure, + dktkDiagnosisMeasure, + dktkSpecimenMeasure, + dktkPatientsMeasure, + dktkMedicationStatementsMeasure, + ]} + /> + +
@@ -247,11 +267,10 @@ title="Diagnose" catalogueGroupCode="diagnosis" chartType="bar" - indexAxis='y' - clickToAddState={true} - groupingDivider='.' - groupingLabel='.%' - filterRegex='^[CD].*' + indexAxis="y" + groupingDivider="." + groupingLabel=".%" + filterRegex="^[CD].*" xAxisTitle="Anzahl der Diagnosen" yAxisTitle="ICD-10-Codes" /> @@ -261,7 +280,6 @@ title="Alter bei Erstdiagnose" catalogueGroupCode="age_at_diagnosis" chartType="bar" - clickToAddState={true} groupRange={10} xAxisTitle="Alter" yAxisTitle="Anzahl der Primärdiagnosen" @@ -273,7 +291,6 @@ catalogueGroupCode="75186-7" chartType="pie" displayLegends={true} - clickToAddState={true} headers={vitalStateHeaders} />
@@ -282,7 +299,6 @@ title="Therapieart" catalogueGroupCode="therapy_of_tumor" chartType="bar" - clickToAddState={true} headers={therapyHeaders} tooltips={therapyTooltips} yAxisTitle="Anzahl der Therapien" @@ -293,7 +309,6 @@ title="Systemische Therapien" catalogueGroupCode="medicationStatements" chartType="bar" - clickToAddState={true} tooltips={systemicTherapyTooltips} yAxisTitle="Anzahl der Therapien" /> @@ -303,7 +318,6 @@ title="Proben" catalogueGroupCode="sample_kind" chartType="bar" - clickToAddState={true} xAxisTitle="Probentypen" yAxisTitle="Probenanzahl" tooltips={specimenHeaders} diff --git a/packages/lib/src/components/results/ChartComponent.wc.svelte b/packages/lib/src/components/results/ChartComponent.wc.svelte index 1bc6ee69..7930908a 100644 --- a/packages/lib/src/components/results/ChartComponent.wc.svelte +++ b/packages/lib/src/components/results/ChartComponent.wc.svelte @@ -355,7 +355,7 @@ */ if (isNaN(parseInt(label))) return label; - return `${parseInt(label)} - ${parseInt(label) + groupRange}`; + return `${parseInt(label)} - ${parseInt(label) + groupRange - 1}`; }); } @@ -417,12 +417,10 @@ */ values = [ { - name: `${label} - ${ - parseInt(label) + 9 - }`, + name: `${label}`, value: { min: parseInt(label), - max: parseInt(label) + 9, + max: parseInt(label) + groupRange - 1, }, queryBindId: uuidv4(), },