사용자 정의 컨트롤
목적
- 출생 증명서. 환자 모니터링 도구.
구성
샘플 구성
Config
"customControl": {
"type": "custom",
"config": {
"title": "Title of the Control",
"template": "<directive-name></directive-name>"
}
}주요 필드 표
| Key | Information | Mandatory | |
|---|---|---|---|
| type | type of the section or control.type should be "custom" | Yes | |
| config | key | Information | Mandatory |
| title | title to be displayed | Yes | |
| template | the directive to be used to show the control | Yes |
Bahmni에서는 구현 담당자가 자체 사용자 정의 표시 컨트롤을 만들 수 있습니다.
방문 대시보드의 사용자 정의 컨트롤
여러 방문 탭에 사용자 정의 표시 컨트롤을 표시하려면 visit.json(openmrs/apps/clinical/visit.json)에 다음 설정을 추가해야 합니다.
출생 증명서를 구성하는 다음 예제를 살펴보십시오.
"birthCertificate": {
"title": "Birth Certificate",
"printing": {
"title": "Bahmni",
"header": "Certificate",
"logo": "../images/bahmniLogo.png"
},
"sections": {
"Birth Certificate": {
"type": "custom",
"config": {
"title": "Birth Certificate",
"template": "<birth-certificate></birth-certificate>"
}
}
}
}| Key | Information | |
|---|---|---|
| title | Title of the visit tab. | Y |
| printing | Add printing section to enable the print button on visit page. | Y |
| title - Title in print out. | ||
| header - Header in print out. | ||
| logo - Logo to display in print out. | ||
| type | "custom" (Required and should always be custom) | Y |
| config | configuration for the custom display control. | |
| title - title of the custom directive | Y | |
| template - the directive which you want to show. | Y |
환자 대시보드의 사용자 정의 컨트롤
여러 대시보드 탭에 사용자 정의 표시 컨트롤을 표시하려면 dashboard.json(openmrs/apps/clinical/dashboard.json)의 sections 아래에 다음 설정을 추가해야 합니다.
출생 증명서를 구성하는 다음 예제를 살펴보십시오.
"General": {
"translationKey": "DASHBOARD_TAB_GENERAL_KEY",
"sections": {
"Birth Certificate": {
"type": "custom",
"config": {
"title": "Birth Certificate",
"template": "<birth-certificate></birth-certificate>"
}
}
}
}| Key | Information | Mandatory | |
|---|---|---|---|
| type* | "custom" (Required and should always be custom) | Y | |
| config | key | Information | |
| title | title of the custom directive | Y | |
| template | the directive which you want to show | Y |
Bahmni는 애플리케이션과 구성 사이의 기본 연결을 제공하는 customDisplayControl 모듈을 제공합니다.
요구사항에 따라 "openmrs/apps/customDisplayControl/js/customControl.js" 파일에 새 지시문을 추가할 수 있습니다. 새 사용자 정의 지시문은 기존 파일에만 만들어야 합니다.
새 지시문은 같은 모듈("bahmni.common.displaycontrol.custom") 아래에 있어야 합니다. 새 지시문의 범위에는 patient, visitUuid 및 config가 있습니다.
목차
목차
하위 문서
원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0