Added properties on indicator (set) as a consequence of the indicator calculation cache.

live
Eric Hoekstra 1 year ago
parent da007e70d3
commit 4080de0fbf

@ -39,4 +39,3 @@ get:
$ref: '../zoo-api.yaml#/components/responses/NoAccess' $ref: '../zoo-api.yaml#/components/responses/NoAccess'
'404': '404':
description: The provided `setKey` doesn't refer to a valid program. description: The provided `setKey` doesn't refer to a valid program.

@ -173,6 +173,9 @@ properties:
required: required:
- segments - segments
properties: properties:
calculated:
description: The timestamp on which the bar was calculated. This can be different from the reference date. Mainly for debugging purposes.
$ref: ../schemas/dateTime.yaml
legend: legend:
description: |- description: |-
*OPTIONAL* A short *HTML* (dutch) description of the entity+measurement date represented by this bar. *OPTIONAL* A short *HTML* (dutch) description of the entity+measurement date represented by this bar.

@ -30,6 +30,46 @@ properties:
format: number format: number
minimum: 0.0 minimum: 0.0
maximum: 1.0 maximum: 1.0
bars:
description: Describes the bars in the indicators used in the indicatorGroups.
schema:
type: array
items:
type: object
properties:
calculated:
type: object
properties:
from:
description: Timestamp of the oldest indicator calculation in the set.
$ref: ../schemas/dateTime.yaml
to:
description: Timestamp of the newest indicator calculation in the set.
$ref: ../schemas/dateTime.yaml
population:
type: object
properties:
entity:
type: string
enum:
- gp
- tag
tag:
description: The name of a care group or other population, but never a practice.
type: string
unid:
description: For internal use by Zoo.
type: integer
snapshotId:
description: For internal use by Zoo.
type: integer
refDate:
description: |-
Reference date for which the indicators are calculated on the population.
$ref: '../schemas/dateTime.yaml'
title:
description: Title for use in the GUI as a legend for bar.
type: string
chapters: chapters:
description: |- description: |-
Each chapter has a title and contains 1 or more indicators. Each chapter has a title and contains 1 or more indicators.
@ -62,3 +102,6 @@ properties:
type: array type: array
items: items:
$ref: 'Indicator.yaml' $ref: 'Indicator.yaml'
cache:
description: If true, the indicator set was retrieved from the API cache. This attribute is only for debugging purposes.
type: boolean
Loading…
Cancel
Save