BBahmni 한국어 매뉴얼검색
한국어 번역 완료
한국어English

Network status alert for clinical data entry

About the feature :

This feature when configured alerts the users if they've lost internet connectivity or if the server is down.

This is important because if the user tries to save when the network is down the save would fail and the user might lose data.

When the system loses the connectivity with the Bahmni Server the following message would be shown.

The client side system would keep polling for the server and will keep displaying the offline status till the connection is not re-established.

Screen Shot 2016-09-17 at 3.49.19 PM.png

When the connection comes back, the following alert will be displayed.

image2016-9-17 16:6:44.png

Configuration for Network status alert

To switch off the network status alert, add the below configuration in clinical/app.json

Configuration
{
     "config": {
	      "networkConnectivity" : {
             "showNetworkStatusMessage": false
		}	
     }
}

To switch on the network status alert for different locales and a status check interval, add the below configuration in 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"}
   			]
		}	
     }
}
KeyDefault ValueDescription
"showNetworkStatusMessage"trueEnabled by default, can be disabled. If configured false will disable the status alert of network connectivity.
"networkStatusCheckInterval"5000 msThe 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

원문 보기 ↗