Skip to content

Commit

Permalink
Merge pull request #20 from samply/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
MatsJohansen87 authored Oct 30, 2023
2 parents a61fa82 + 0d51499 commit a77e157
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 51 deletions.
49 changes: 46 additions & 3 deletions packages/demo/public/options.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,60 @@
]
},
"therapy_of_tumor": {
"aggregations": ["medicationStatements"]
"aggregations": ["medicationStatements"],
"tooltips": {
"OP": "Operationen",
"ST": "Strahlentherapien",
"medicationStatements": "Systemische Therapien"
}
},
"medicationStatements": {
"hintText": [
"Art der systemischen oder abwartenden Therapie (ADT Basisdatensatz Versionen 2014, 2021)"
]
],
"tooltips":{
"CH": "Chemotherapie",
"HO": "Hormontherapie",
"IM": "Immun-/Antikörpertherapie",
"KM": "Knochenmarktransplantation",
"ZS": "zielgerichtete Substanzen",
"CI": "Chemo- + Immun-/Antikörpertherapie",
"CZ": "Chemotherapie + zielgerichtete Substanzen",
"CIZ": "Chemo- + Immun-/Antikörpertherapie + zielgerichtete Substanzen",
"IZ": "Immun-/Antikörpertherapie + zielgerichtete Substanzen",
"SZ": "Stammzelltransplantation (inklusive Knochenmarktransplantation)",
"AS": "Active Surveillance",
"WS": "Wait and see",
"WW": "Watchful Waiting",
"SO": "Sonstiges"
}
},
"sample_kind": {
"hintText": [
"Verteilung der Bioprobentypen der Patienten gemäß der ausgewählten Kriterien. Es werden auch Einträge angezeigt, die ggfs. außerhalb der Suchkriterien liegen."
]
],
"tooltips":{
"whole-blood": "Vollblut",
"bone-marrow": "Knochenmark",
"buffy-coat": "Buffycoat",
"dried-whole-blood": "Blutkarten Guthrie",
"peripheral-blood-cells": "Periphere mononukleäre Blutzellen (PBMC,",
"blood-plasma": "Plasma",
"blood-serum": "Serum",
"ascites": "Aszites",
"csf-liquor": "Liquor",
"saliva": "Speichel",
"stool-faeces": "Stuhl",
"urine": "Urin",
"swab": "Abstrich",
"liquid-other": "Flüssigprobe, Andere",
"tissue-ffpe": "Gewebe FFPE",
"tissue-frozen": "Gewebe schockgefroren",
"tissue-other": "Gewebe, Andere Konservierungsart",
"dna": "DNA",
"rna": "RNA",
"derivative-other": "Derivat, Andere"
}
}
}
}
46 changes: 1 addition & 45 deletions packages/demo/src/AppCCP.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,47 +150,6 @@
"Sys. T"
);
const therapyTooltips: Map<string, string> = new Map<string, string>()
.set("OP", "Operationen")
.set("ST", "Strahlentherapien")
.set("medicationStatements", "Systemische Therapien");
const systemicTherapyTooltips: Map<string, string> = new Map<string, string>()
.set("CH", "Chemotherapie")
.set("HO", "Hormontherapie")
.set("IM", "Immun- und Antikörpertherapie")
.set("KM", "Knochenmarkstransplantation")
.set("WS", "Wait and see")
.set("AS", "Active Surveillance")
.set("ZS", "Zielgerichtete Substanzen")
.set("SO", "Sonstiges")
.set("ST", "Strahlentherapie")
.set("OP", "Operation");
const specimenHeaders: Map<string, string> = new Map<string, string>()
.set("whole-blood", "Whole blood")
.set("bone-marrow", "Bone marrow")
.set("buffy-coat", "Buffy-Coat")
.set("dried-whole-blood", "Dried whole blood")
.set(
"peripheral-blood-cells-vital",
"Peripheral blood mononuclear cells (PBMCs, viable)"
)
.set("blood-plasma", "Plasma")
.set("blood-serum", "Serum")
.set("ascites", "Ascites")
.set("csf-liquor", "CSF/Liquor")
.set("saliva", "Saliva")
.set("stool-faeces", "Stool/Faeces")
.set("urine", "Urine")
.set("swab", "Swab")
.set("liquid-other", "Other liquid biosample/storage")
.set("tissue-ffpe", "Tissue FFPE")
.set("tissue-frozen", "Tissue frozen")
.set("tissue-other", "Other tissue storage")
.set("dna", "DNA")
.set("rna", "RNA")
.set("derivative-other", "Other derivative");
</script>


Expand Down Expand Up @@ -311,7 +270,6 @@
catalogueGroupCode="therapy_of_tumor"
chartType="bar"
headers={therapyHeaders}
tooltips={therapyTooltips}
xAxisTitle="Art der Therapie"
yAxisTitle="Anzahl der Therapien"
/>
Expand All @@ -321,7 +279,6 @@
title="Systemische Therapien"
catalogueGroupCode="medicationStatements"
chartType="bar"
tooltips={systemicTherapyTooltips}
xAxisTitle="Art der Therapie"
yAxisTitle="Anzahl der Therapien"
/>
Expand All @@ -333,7 +290,6 @@
chartType="bar"
xAxisTitle="Probentypen"
yAxisTitle="Probenanzahl"
tooltips={specimenHeaders}
/>
</div>
</div>
Expand All @@ -350,4 +306,4 @@
>
</div>
</footer>
<lens-options options={libraryOptions} catalogueData={mockCatalogueData}/>
<lens-options options={libraryOptions} catalogueData={mockCatalogueData}/>
6 changes: 3 additions & 3 deletions packages/lib/src/components/results/ChartComponent.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@
callbacks: {
title: (context: any) => {
const key = context[0].label || "";
let result = tooltips.get(key)
? tooltips.get(key)
: key;
let result = options.tooltips && options.tooltips[key]
? options.tooltips[key]
: key
return result;
},
},
Expand Down

0 comments on commit a77e157

Please sign in to comment.