Relays complete clinical session payload (pre, post, deltas, and notes) to upstream EHR or therapy webhooks.
Forwards full biometric assessment, pre/post comparative deltas, and session metadata to external therapy endpoints.
{
"webhookUrl": "https://api.therapy-ehr.regenesis.local/v1/sessions",
"sessionData": {
"sessionId": "SES-84920",
"clientId": "CL-8492",
"deltas": { "hr": -12, "hrv": 16, "stress": -2.8, "wellness": 18 },
"clinicalSummary": "Autonomic tone increased..."
}
}
Fetches the most recently recorded or active clinical session cached in server memory.
Returns the most recent cached session JSON payload with timestamp, pre/post biomarkers, and clinical narrative.
{
"sessionId": "SES-84920",
"clientId": "CL-8492",
"pre": { "hr": 82, "hrv": 28, "stress": 6.2, "bp": "130/86" },
"post": { "hr": 70, "hrv": 44, "stress": 3.4, "bp": "118/78" },
"deltas": { "hr": -12, "hrv": 16, "stress": -2.8, "wellness": 18 }
}
Emits structured DOM events to iframe parent for real-time therapy container synchronization.
Cross-document parent window communication dispatched across therapy workflow state transitions.
window.addEventListener('message', (event) => {
if (event.data?.type === 'REGENESIS_SESSION_COMPLETE') {
const { sessionId, deltas, post } = event.data.data;
console.log('Session Completed:', sessionId, deltas);
}
});