Observation Graph Control is configured to display the observations values as a graph against observation date time, age or any other concept for configured number of visits. |
"temperature": { "type": "observationGraph", "title": "Temperature", "config": { "yAxisConcepts": ["Temperature"], "xAxisConcept" : "observationDateTime", "numberOfVisits": 3 } } |
Key | Info | Mandatory |
---|---|---|
type | The name/id for the control that needs to be picked from the code. | Y (in Visit Page) |
title | Indicates the title that will be displayed on the dashboard/visit page for the section. | Y |
yAxisConcepts | Array of concepts for which observations need to be plotted on the graph. | Y |
xAxisConcepts | Concept on X Axis (observationDateTime, age or any concept). | Y |
numberOfVisits | Specifies the number of visits for which data has to be displayed. | N |
Graph Control Config becomes Chart With Reference Data Config with the addition of the 'referenceData' in the config section referring to the .csv file as shown below
"growthChart": { "type": "observationGraph", "title": "Growth Chart", "config": { "yAxisConcepts": [ "Weight" ], "referenceData": "growthChartReference.csv", "numberOfVisits": 20 } } |
Key | Info | Mandatory |
---|---|---|
yAxisConcepts | It can be any Numeric Concept name. | Y |
referenceData | It would be name of the csv file to be loaded. | Y |
numberOfVisits | It is the number of visits for which data has to be displayed. | N |
Gender, Age, Ref1, Ref2 M, 1, 10.5, 12.5 M, 2, 20.5, 22.5 F, 1, 9.5, 12 F, 2, 19.5, 22 |
In the example above: