diff --git a/examples/qoc_indicatorset.1.json b/examples/qoc_indicatorset.1.json index f64ddbd..3041567 100644 --- a/examples/qoc_indicatorset.1.json +++ b/examples/qoc_indicatorset.1.json @@ -1,125 +1,127 @@ { - "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 - } - ] - } - ] - } - ] - ] - } - ] + "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%", + "kind": "deviation" + }, + "xHigh": { + "pos": 8.2, + "legend": "8.2%", + "kind": "deviation" + }, + "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 9d77e63..7462f00 100644 --- a/schemas/Indicator.yaml +++ b/schemas/Indicator.yaml @@ -25,25 +25,66 @@ properties: type: number example: 1 xMin: - description: Numeric value of the far left of the bar. + description: |- + Numeric value of the far left of the bar; represents a percentage (i.e. 0-100). + Most indicators range from 0% to 100%, but for some, where the values to be shown represent only a small percentage, + the bar is 'zoomed in'; it represents only a slice of the total range. type: number example: 10.0 default: 0 xMax: - description: Numeric value of the far right of the bar. + description: |- + Numeric value of the far right of the bar; represents a percentage (i.e. 0-100). + Most indicators range from 0% to 100%, but for some, where the values to be shown represent only a small percentage, + the bar is 'zoomed in'; it represents only a slice of the total range. type: number - example: 80.0 + example: 20.0 default: 100.0 xLow: description: |- - *OPTIONAL* If present, draw a bar at this position indicating that this indicator can fall below this lower bound, but if it does, that is noteworthy. For example, because that is beyond 3 standard deviations of the dutch average, or, its a goal set by the practice, the insurer, or the care group and thus falling below it means the goal is not met. - type: number - example: 20.0 + *OPTIONAL* If present, draw a marker at this position indicating a lower bound. Values can be below it, but that is noteworthy, for example + because that deviates far from national averages, or this bound represents a goal set by the practice/insurer/care group and falling below it + means the goal is not met. + type: object + properties: + pos: + description: The percentage at which the marker is to be drawn. + type: number + example: 14.0 + legend: + description: A very short (dutch, *HTML*) description of what this marker represents. + type: string + example: "14%" + kind: + description: |- + What kind of bound is represented.
deviationgoal