Skip to content

Commit

Permalink
Merge pull request #31 from samply/fix/diagnosisDiagramCodes
Browse files Browse the repository at this point in the history
hack: this commit will fix the issue with wrong coding at some site. …
  • Loading branch information
patrickskowronekdkfz authored Jan 10, 2024
2 parents 2422ab6 + 861cc0d commit 578b9ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lib/src/components/results/ChartComponent.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@
): { labels: string[]; data: number[] } => {
const groupedChartData: { label: string; value: number }[] =
labels.reduce((acc, label) => {
// This is a hack! This will help with the wrong coding of ICD10
label = label.replaceAll("_", ".")
/**
* see if the label contains the divider
* if not, add it to the accumulator with a .% at the end
Expand Down

0 comments on commit 578b9ce

Please sign in to comment.