임상 데이터 입력용 네트워크 상태 알림
기능 소개
이 기능을 구성하면 인터넷 연결이 끊기거나 서버가 중단됐을 때 사용자에게 알립니다.
네트워크가 중단된 상태에서 저장하려 하면 실패하여 데이터가 손실될 수 있으므로 중요합니다.
시스템과 Bahmni 서버의 연결이 끊기면 다음 메시지가 표시됩니다.
클라이언트 시스템은 서버를 계속 폴링하며 연결이 다시 설정될 때까지 오프라인 상태를 표시합니다.

연결이 복구되면 다음 알림이 표시됩니다.

네트워크 상태 알림 구성
네트워크 상태 알림을 끄려면 clinical/app.json에 아래 구성을 추가합니다.
Configuration
{
"config": {
"networkConnectivity" : {
"showNetworkStatusMessage": false
}
}
}여러 로케일 및 상태 확인 간격에 대해 네트워크 상태 알림을 켜려면 clinical/app.json에 아래 구성을 추가합니다.
Configuration
{
"config": {
"networkConnectivity" : {
"networkStatusCheckInterval": 5000,
"locales" : [
{ "locale" : "fr", "css" : "offline-language-french"},
{ "locale" : "es", "css" : "offline-language-spanish"},
{ "locale" : "pt", "css" : "offline-language-portuguese-brazil"}
]
}
}
}| Key | Default Value | Description |
|---|---|---|
| "showNetworkStatusMessage" | true | Enabled by default, can be disabled. If configured false will disable the status alert of network connectivity. |
| "networkStatusCheckInterval" | 5000 ms | The frequency in milliseconds to poll the server to check the status. |
| "locales" | "offline-language-english" | Key/Value pair of locales into which status message would be translated based on logged in locale.Key is the locale language and Value is css file that has translated messages of the locale language.Currently we support locales available at https://github.com/HubSpot/offline/tree/master/themes.To view translated messages for a locale from the set of locales in login page, check if its supported in above url and give corresponding css from that url as value and key as locale language. |
원문 정보
원문 보기 ↗Bahmni Wiki · CC BY-SA 4.0