EVOLUTION GRAPH FORMAT CODES
Definition of a GRAPH FORMAT (JSON) that will be used when generating an evolution graph for a PATIENT. This CODES are used by API function case_evolution_graph()
The goal of this CODE is to allow to specify a predefined GRAPH FORMAT (JSON) for different DATA_CODES.
For example, if we have a PATIENT that has been reporting his blood pressure, and those values are stored in a DATA_CODE called "BLOOD_PRESSURE", then we could define a GRAPH FORMAT so that when case_evolution_graph() is invoked it returns a graph representing the a superposition of three line graphs (with minimum, maximum and average values). In the case of other DATA_CODE it may be more interesting to draw a bar graph or change any of the supported graph properties
Property | Value | Comments |
---|---|---|
#CODE:ID_STANDARD_CODE | "#GRAPH_SUMMARY" | Constant value to identify CODE CATEGORY codes |
#CODE:ID_CODE | "MEDICATION_INTAKE" | The name of a DATA_CODE |
#CODE:ID_LANGUAGE | "ES"|"EN"|"CA"|"ZH" | Available languages. |
#CODE:CODE_DESCRIPTION | String representing a GRAPH FORMAT (JSON) | |
#CODE:IS_CLOB | 1 | The CODE_DESCRIPTION stored for GRAPH_SUMMARY is always CLOB |
AVAILABLE CODE LIST
The following is a list of all CODE DESCRIPTIONS stored in DB (only 'EN' are shown):
ID_STANDARD_CODE | ID_CODE | ID_LANGUAGE | CODE_DESCRIPTION |
---|---|---|---|
#GRAPH_SUMMARY | STEPS | EN | { "title": { "text": "", "font": "tahoma", "size": "24", "color": "#0000ff", "xPos": 300, "yPos": 20 }, "graph": { "width": 630, "height": 600, "areaXPos": 40, "areaYPos": 20, "areaWidth": 600, "areaHeight": 500, "grid": "true" }, "yAxis": { "min": 0, "max": "" }, "xAxis": { "font": "tahoma", "size": "10", "groupBy": "day", "fillGaps": "true", "ticks": "all", "dateFormat": "m-d" }, "legend": { "show": "true", "font": "tahoma", "size": "12", "xPos": 100, "yPos": 20 }, "seriesFormat": [{ "name":"STEPS", "text": "", "graphType": "bar", "groupFunction": "sum" } ] } |