그래프 제어
목적
화면 예시

구성
구성 예시
Add to clinical/dashboard.json for it to appear on the patient dashboard
"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 |
참조 데이터가 포함된 그래프 제어
아래와 같이 구성 섹션에 .csv 파일을 가리키는 'referenceData'를 추가하면 그래프 제어 구성이 참조 데이터 포함 차트 구성으로 바뀝니다.
화면 예시

구성
구성 예시
"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. It has to be a single value. It can't be multiple values or empty. (Required) | Y |
| referenceData | It would be name of the csv file to be loaded. The csv file has to be in the same folder as this config file. (Required**) **If the referenceData is not mentioned, the config will become Graph Control Config. Then, Graph Control Config specifications are applicable. | Y |
| numberOfVisits | It is the number of visits for which data has to be displayed. | N |
참조 데이터 CSV 파일 예시
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위 예시에서:
- 첫 번째 행은 헤더 행입니다. 나이와 성별 열 이름에는 항상 'Age', 'Gender' 레이블이 있어야 합니다. 나이와 성별 열은 필수입니다. 나이는 항상 월 단위로 간주합니다(일수를 나타내려면 소수를 사용할 수 있음). 그 밖의 열은 각각의 참조선에 대응합니다.
목차
원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0