feat: add real-time patient vital signs monitoring dashboard web interface and configuration

This commit is contained in:
2026-09-21 14:19:47 +05:30
parent ecd0fe0ca6
commit 68edb0b224
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ def get_http_client() -> httpx.AsyncClient:
return _http_client
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("/")
async def forward_vitals_to_api(vitals: NormalizedVitals) -> bool:
+1 -1
View File
@@ -8,7 +8,7 @@
"192.168.100.120": "CMS7000PLUS"
},
"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": "",
"retry_interval_seconds": 60,
"log_file": "hl7_forwarder.log",
+1 -1
View File
@@ -10,7 +10,7 @@ class Settings(BaseSettings):
monitor_model: str = "CMS7000PLUS"
device_models: dict = {}
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 = ""
retry_interval_seconds: int = 60
log_file: str = "hl7_forwarder.log"
+1
View File
@@ -3439,6 +3439,7 @@
// === Configuration ===
function getAppPrefix() {
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('/dashboard')) return p.substring(0, p.indexOf('/dashboard'));
return '';