feat: add real-time patient vital signs monitoring dashboard web interface and configuration
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ def get_http_client() -> httpx.AsyncClient:
|
|||||||
return _http_client
|
return _http_client
|
||||||
|
|
||||||
def get_cloud_base_url() -> str:
|
def get_cloud_base_url() -> str:
|
||||||
url = getattr(settings, "cloud_api_url", None) or os.getenv("CLOUD_API_URL") or "https://contectfiveparamonitor.onrender.com"
|
url = getattr(settings, "cloud_api_url", None) or os.getenv("CLOUD_API_URL") or "https://services-api.a2zhealth.in/v1/contec-monitor"
|
||||||
return url.rstrip("/")
|
return url.rstrip("/")
|
||||||
|
|
||||||
async def forward_vitals_to_api(vitals: NormalizedVitals) -> bool:
|
async def forward_vitals_to_api(vitals: NormalizedVitals) -> bool:
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
"192.168.100.120": "CMS7000PLUS"
|
"192.168.100.120": "CMS7000PLUS"
|
||||||
},
|
},
|
||||||
"target_api_url": "https://services-api.a2zhealth.in/v1/contec-monitor",
|
"target_api_url": "https://services-api.a2zhealth.in/v1/contec-monitor",
|
||||||
"cloud_api_url": "https://contectfiveparamonitor.onrender.com",
|
"cloud_api_url": "https://services-api.a2zhealth.in/v1/contec-monitor",
|
||||||
"api_token": "",
|
"api_token": "",
|
||||||
"retry_interval_seconds": 60,
|
"retry_interval_seconds": 60,
|
||||||
"log_file": "hl7_forwarder.log",
|
"log_file": "hl7_forwarder.log",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class Settings(BaseSettings):
|
|||||||
monitor_model: str = "CMS7000PLUS"
|
monitor_model: str = "CMS7000PLUS"
|
||||||
device_models: dict = {}
|
device_models: dict = {}
|
||||||
target_api_url: str = "https://services-api.a2zhealth.in/v1/contec-monitor"
|
target_api_url: str = "https://services-api.a2zhealth.in/v1/contec-monitor"
|
||||||
cloud_api_url: str = "https://contectfiveparamonitor.onrender.com"
|
cloud_api_url: str = "https://services-api.a2zhealth.in/v1/contec-monitor"
|
||||||
api_token: str = ""
|
api_token: str = ""
|
||||||
retry_interval_seconds: int = 60
|
retry_interval_seconds: int = 60
|
||||||
log_file: str = "hl7_forwarder.log"
|
log_file: str = "hl7_forwarder.log"
|
||||||
|
|||||||
@@ -3439,6 +3439,7 @@
|
|||||||
// === Configuration ===
|
// === Configuration ===
|
||||||
function getAppPrefix() {
|
function getAppPrefix() {
|
||||||
const p = window.location.pathname;
|
const p = window.location.pathname;
|
||||||
|
if (p.includes('/v1/contec-monitor')) return '/v1/contec-monitor';
|
||||||
if (p.includes('/api/')) return p.substring(0, p.indexOf('/api/'));
|
if (p.includes('/api/')) return p.substring(0, p.indexOf('/api/'));
|
||||||
if (p.includes('/dashboard')) return p.substring(0, p.indexOf('/dashboard'));
|
if (p.includes('/dashboard')) return p.substring(0, p.indexOf('/dashboard'));
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
Reference in New Issue
Block a user