From ff6baf252dae57201c728fa48e033a3902572bf1 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 1 May 2023 05:05:48 +0200 Subject: [PATCH] [apidoc] Added a (work in progress) example JSON response for an indicator set --- examples/qoc_indicatorset.1.json | 125 +++++++++++++++++++++++++++++++ schemas/Indicator.yaml | 4 +- 2 files changed, 127 insertions(+), 2 deletions(-) create mode 100644 examples/qoc_indicatorset.1.json diff --git a/examples/qoc_indicatorset.1.json b/examples/qoc_indicatorset.1.json new file mode 100644 index 0000000..f64ddbd --- /dev/null +++ b/examples/qoc_indicatorset.1.json @@ -0,0 +1,125 @@ +{ + "key": "ZOO-dm", + "name": "Diabetes Mellitus type 2", + "refDate": "2023-07-01", + "chapters": [ + { + "title": "Opbouw DM ketenzorg patiƫnten", + "indicators": [ + [ + { + "key": "ZOO-dm-prevalentie-1", + "title": "Prevalentie DM", + "index": 1, + "xMin": 0, + "xMax": 10.5, + "xLow": { + "pos": 2.0, + "legend": "2.0%" + }, + "xHigh": { + "pos": 8.2, + "legend": "8.2%" + }, + "style": "met", + "bars": [ + { + "legend": "Praktijk 2023Q3", + "value": 2818, + "parts": [ + { + "style": "concern", + "width": 9.297374, + "value": 262 + } + ] + }, + { + "legend": "ZEL 2023Q3", + "value": 325123, + "parts": [ + { + "style": "good", + "width": 4.919984, + "value": 15996 + } + ] + } + ] + } + ], + [ + { + "key": "ZOO-dm-prevalentie$-1", + "title": "DM types", + "basedOn": "ZOO-dm-prevalentie-1", + "index": 2, + "xMin": 0, + "xMax": 100, + "style": "normal", + "legend": { + "cat1": "T1", + "cat2": "T2", + "problem1": "Beide", + "problem2": "Onbekend" + }, + "bars": [ + { + "legend": "Praktijk 2023Q3", + "value": 262, + "parts": [ + { + "style": "cat1", + "width": 11.068702, + "value": 29 + }, + { + "style": "cat2", + "width": 86.64122137, + "value": 227 + }, + { + "style": "problem1", + "width": 2.29007634, + "value": 6 + }, + { + "style": "problem2", + "width": 0, + "value": 0 + } + ] + }, + { + "legend": "ZEL 2023Q3", + "value": 15996, + "parts": [ + { + "style": "cat1", + "width": 9.00225056, + "value": 1440 + }, + { + "style": "cat2", + "width": 86.996749, + "value": 13916, + }, + { + "style": "problem1", + "width": 2.313078, + "value" 370 + }, + { + "style": "problem2", + "width": 1.68792198, + "value": 270 + } + ] + } + ] + } + ] + ] + } + ] +} diff --git a/schemas/Indicator.yaml b/schemas/Indicator.yaml index cb0d687..9d77e63 100644 --- a/schemas/Indicator.yaml +++ b/schemas/Indicator.yaml @@ -94,5 +94,5 @@ properties: value: description: |- The 'size' of the described ratio. Relative to the range of the bar (as described by `xMax`-`xMin`). - type: number - example: 20.5 \ No newline at end of file + type: number + example: 20.5 \ No newline at end of file