@tellescope/types-models 1.221.0 → 1.223.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
+ }
@@ -356,6 +356,8 @@ export interface Organization extends Organization_readonly, Organization_requir
356
356
  customAutoreplyMessage?: string;
357
357
  externalCalendarEventPlaceholderTitle?: string;
358
358
  externalCalendarEventPlaceholderDescription?: string;
359
+ customZoomEmailTemplate?: string;
360
+ customZoomEmailSubject?: string;
359
361
  customVoicemailText?: string;
360
362
  hasConnectedOpenAI?: boolean;
361
363
  hasConnectedHealthie?: boolean;
@@ -1731,6 +1733,7 @@ export type FormCustomization = {
1731
1733
  multiPagePublicQuestions?: boolean;
1732
1734
  hideBg?: boolean;
1733
1735
  portalShowThanksAfterSubmission?: boolean;
1736
+ maxWidth?: number;
1734
1737
  };
1735
1738
  export interface Form_readonly extends ClientRecord {
1736
1739
  numFields: number;
@@ -3183,6 +3186,7 @@ export interface EnduserObservation extends EnduserObservation_readonly, Enduser
3183
3186
  dontTrigger?: boolean;
3184
3187
  showWithPlotsByUnit?: string[];
3185
3188
  invalidationReason?: string;
3189
+ excludeFromVitalCountLookback?: boolean;
3186
3190
  }
3187
3191
  export type BlockType = 'h1' | 'h2' | 'html' | 'image' | 'youtube' | 'pdf' | 'iframe' | 'content-link';
3188
3192
  export type ContentBlockBuilder<BLOCK extends BlockType, INFO extends object> = {
@@ -3845,6 +3849,10 @@ export type AnalyticsQueryOptions = {
3845
3849
  overrideGlobalRange?: boolean;
3846
3850
  groupByCareTeam?: boolean;
3847
3851
  };
3852
+ export type AnalyticsAggregationRequest = {
3853
+ modelName: string;
3854
+ aggregation: any[];
3855
+ };
3848
3856
  export type AnalyticsFrameGroupingCategory = {
3849
3857
  category: string;
3850
3858
  keys: string[];
@@ -4124,6 +4132,7 @@ export type AutomationTriggerEvents = {
4124
4132
  'Vital Update': AutomationTriggerEventBuilder<"Vital Update", {
4125
4133
  configurationIds: string[];
4126
4134
  classifications: string[];
4135
+ ignoreDelayedReadings?: boolean;
4127
4136
  }, {}>;
4128
4137
  'SMS Reply': AutomationTriggerEventBuilder<"SMS Reply", {
4129
4138
  templateIds: string[];