@tellescope/types-models 1.221.0 → 1.222.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CLAUDE.md ADDED
@@ -0,0 +1,30 @@
1
+ # Tellescope Types - Models
2
+
3
+ ## Purpose
4
+ Core TypeScript type definitions for Tellescope's healthcare data models, defining structure and relationships for all healthcare entities.
5
+
6
+ ## Key Features
7
+ - Patient management types (Enduser, relationships, observations, medications)
8
+ - Care management types (CarePlan, tasks, journeys, automation calendar events)
9
+ - Clinical data types (Vital, forms, encounters, diagnoses)
10
+ - Provider types (User, Organization, teams, roles)
11
+ - Communication types (Email, SMS, chat)
12
+
13
+ ## Entry Points
14
+ - **Main**: `src/` - All healthcare data model type definitions
15
+ - **Core Models**: Patient-centric data architecture with required audit fields
16
+
17
+ ## Critical Safety Notes
18
+ - 🔒 Patient-centric design - most data links to `enduserId`
19
+ - ✅ Safe to add new type definitions and extend existing interfaces
20
+
21
+ ## Usage Example
22
+ ```typescript
23
+ import { Enduser, EnduserObservation, CarePlan } from '@tellescope/types-models'
24
+
25
+ const patient: Enduser = {
26
+ id: '...',
27
+ fname: 'John',
28
+ lname: 'Doe',
29
+ dateOfBirth: '12-20-2001', // MM-DD-YYYY
30
+ }
@@ -1731,6 +1731,7 @@ export type FormCustomization = {
1731
1731
  multiPagePublicQuestions?: boolean;
1732
1732
  hideBg?: boolean;
1733
1733
  portalShowThanksAfterSubmission?: boolean;
1734
+ maxWidth?: number;
1734
1735
  };
1735
1736
  export interface Form_readonly extends ClientRecord {
1736
1737
  numFields: number;
@@ -3845,6 +3846,10 @@ export type AnalyticsQueryOptions = {
3845
3846
  overrideGlobalRange?: boolean;
3846
3847
  groupByCareTeam?: boolean;
3847
3848
  };
3849
+ export type AnalyticsAggregationRequest = {
3850
+ modelName: string;
3851
+ aggregation: any[];
3852
+ };
3848
3853
  export type AnalyticsFrameGroupingCategory = {
3849
3854
  category: string;
3850
3855
  keys: string[];
@@ -4124,6 +4129,7 @@ export type AutomationTriggerEvents = {
4124
4129
  'Vital Update': AutomationTriggerEventBuilder<"Vital Update", {
4125
4130
  configurationIds: string[];
4126
4131
  classifications: string[];
4132
+ ignoreDelayedReadings?: boolean;
4127
4133
  }, {}>;
4128
4134
  'SMS Reply': AutomationTriggerEventBuilder<"SMS Reply", {
4129
4135
  templateIds: string[];