API Reference

Context Keys Reference

Open in Claude

Available context subscription keys

Context keys identify which entity data to track within a specific workflow event. Use them with sdk.ehr.context.onChange() to receive real-time updates.

Usage

// Format: 'eventType:entityType'
sdk.ehr.context.onChange('chart_open:patient', (prev, curr) => {
  if (!prev && curr) console.log('Patient opened');
  if (prev && !curr) console.log('Patient closed');
  if (prev && curr) console.log('Patient data updated');
});

For detailed usage patterns, see Context guide.

Available Keys

Loading from CDN...

On this page