@tellescope/types-models 1.162.0 → 1.164.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/src/index.ts CHANGED
@@ -694,6 +694,7 @@ export type EnduserInsurance = {
694
694
 
695
695
  export type EnduserDiagnosis = {
696
696
  id?: string, // if created in Tellescope
697
+ createdAt?: Date,
697
698
  externalId?: string,
698
699
  active?: boolean,
699
700
  start?: string,
@@ -1520,6 +1521,7 @@ export type FormFieldOptions = FormFieldValidation & {
1520
1521
  stripeKey?: string, // publishable key of custom stripe API keys
1521
1522
  dataSource?: string, // e.g. Canvas for Allergies
1522
1523
  canvasDocumentCoding?: Pick<CanvasCoding, 'system' | 'code'>
1524
+ esignatureTermsCompanyName?: string,
1523
1525
  }
1524
1526
  export type MultipleChoiceOptions = Pick<FormFieldOptions, 'choices' | 'radio' | 'other'>
1525
1527
 
@@ -2128,7 +2130,7 @@ export interface CalendarEvent_updatesDisabled {}
2128
2130
  export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_required, CalendarEvent_updatesDisabled {
2129
2131
  reason?: string, // reason for booking, patient-entered
2130
2132
  cancelReason?: string,
2131
- attendees: UserIdentity[],
2133
+ attendees: (UserIdentity & { joinLinkToken?: string })[],
2132
2134
  color?: string,
2133
2135
  enableVideoCall?: boolean,
2134
2136
  type?: string,
@@ -2343,6 +2345,7 @@ export interface AppointmentLocation extends AppointmentLocation_readonly, Appoi
2343
2345
  tags?: string[],
2344
2346
  }
2345
2347
 
2348
+ // also includes per-template customizations, but naming is based on original purpose
2346
2349
  export interface BookingRestrictions {
2347
2350
  templateId: string,
2348
2351
  restrictions: {
@@ -2351,7 +2354,8 @@ export interface BookingRestrictions {
2351
2354
  tagsPortal?: string[],
2352
2355
  hoursBefore?: number | '',
2353
2356
  hoursAfter?: number | '',
2354
- }
2357
+ shouldOpenJoinLink?: boolean,
2358
+ },
2355
2359
  }
2356
2360
  export type AppointmentTerm = {
2357
2361
  title: string,
@@ -2950,6 +2954,7 @@ export interface PortalCustomization extends PortalCustomization_readonly, Porta
2950
2954
  showStripePortalLink?: boolean,
2951
2955
  hideCancellatation?: boolean,
2952
2956
  hiddenEventTitles?: string[],
2957
+ hiddenFormIds?: string[],
2953
2958
  }
2954
2959
  export const MOBILE_BOTTOM_NAVIGATION_DISABLED_POSITION = 1000
2955
2960
  export const DEFAULT_PATIENT_PORTAL_BOTTOM_NAVIGATION_POSITIONS: { [K in PortalPage]: number } = {
@@ -3686,7 +3691,10 @@ export type AutomationTriggerEvents = {
3686
3691
  'Form Group Incomplete': AutomationTriggerEventBuilder<"Form Group Incomplete", { groupId: string, intervalInMS: number }, {}>,
3687
3692
  'Message Opened': AutomationTriggerEventBuilder<"Message Opened", { templateIds?: string[] }, {}>,
3688
3693
  'Message Link Clicked': AutomationTriggerEventBuilder<"Message Link Clicked", { templateIds?: string[] }, {}>,
3689
- 'Healthie Note Locked': AutomationTriggerEventBuilder<"Healthie Note Locked", { healthieFormIds?: string[] }, {}>,
3694
+ 'Healthie Note Locked': AutomationTriggerEventBuilder<"Healthie Note Locked", {
3695
+ healthieFormIds?: string[],
3696
+ answersCondition?: Record<string, any>,
3697
+ }, {}>,
3690
3698
  'Database Entry Added': AutomationTriggerEventBuilder<"Database Entry Added", { databaseId: string }, {}>,
3691
3699
  'Form Started': AutomationTriggerEventBuilder<"Form Started", { formIds?: string[] }, {}>,
3692
3700
  }
@@ -4224,7 +4232,30 @@ export interface IntegrationLog_required {}
4224
4232
  export interface IntegrationLog_updatesDisabled {}
4225
4233
  export interface IntegrationLog extends IntegrationLog_readonly, IntegrationLog_required, IntegrationLog_updatesDisabled {}
4226
4234
 
4235
+
4236
+ export interface EnduserEligibilityResult_readonly extends ClientRecord {}
4237
+ export interface EnduserEligibilityResult_updatesDisabled {}
4238
+ export interface EnduserEligibilityResult_required {
4239
+ title: string,
4240
+ type: string,
4241
+ status: string,
4242
+ externalId: string,
4243
+ source: string,
4244
+ enduserId: string,
4245
+ }
4246
+ export interface EnduserEligibilityResult extends EnduserEligibilityResult_readonly, EnduserEligibilityResult_required, EnduserEligibilityResult_updatesDisabled {
4247
+ statusText?: string,
4248
+ results?: {
4249
+ title: string,
4250
+ is_covered: boolean,
4251
+ requires_prior_authorization: boolean,
4252
+ copay: string,
4253
+ copayDescription: string,
4254
+ }[]
4255
+ }
4256
+
4227
4257
  export type ModelForName_required = {
4258
+ enduser_eligibility_results: EnduserEligibilityResult_required,
4228
4259
  integration_logs: IntegrationLog_required,
4229
4260
  allergy_codes: AllergyCode_required,
4230
4261
  diagnosis_codes: DiagnosisCode_required,
@@ -4312,6 +4343,7 @@ export type ModelForName_required = {
4312
4343
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
4313
4344
 
4314
4345
  export interface ModelForName_readonly {
4346
+ enduser_eligibility_results: EnduserEligibilityResult_readonly,
4315
4347
  integration_logs: IntegrationLog_readonly,
4316
4348
  allergy_codes: AllergyCode_readonly,
4317
4349
  diagnosis_codes: DiagnosisCode_readonly,
@@ -4399,6 +4431,7 @@ export interface ModelForName_readonly {
4399
4431
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
4400
4432
 
4401
4433
  export interface ModelForName_updatesDisabled {
4434
+ enduser_eligibility_results: EnduserEligibilityResult_updatesDisabled,
4402
4435
  integration_logs: IntegrationLog_updatesDisabled,
4403
4436
  allergy_codes: AllergyCode_updatesDisabled,
4404
4437
  diagnosis_codes: DiagnosisCode_updatesDisabled,
@@ -4486,6 +4519,7 @@ export interface ModelForName_updatesDisabled {
4486
4519
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
4487
4520
 
4488
4521
  export interface ModelForName extends ModelForName_required, ModelForName_readonly {
4522
+ enduser_eligibility_results: EnduserEligibilityResult,
4489
4523
  integration_logs: IntegrationLog,
4490
4524
  allergy_codes: AllergyCode,
4491
4525
  diagnosis_codes: DiagnosisCode,
@@ -4583,6 +4617,7 @@ export interface UserActivityInfo {
4583
4617
  export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
4584
4618
 
4585
4619
  export const modelNameChecker: { [K in ModelName] : true } = {
4620
+ enduser_eligibility_results: true,
4586
4621
  integration_logs: true,
4587
4622
  allergy_codes: true,
4588
4623
  diagnosis_codes: true,
@@ -5441,4 +5476,28 @@ export type TwilioQueue = {
5441
5476
  currentSize: number,
5442
5477
  friendlyName: string,
5443
5478
  averageWaitTime: number,
5479
+ }
5480
+
5481
+ export type DevelopHealthRunBenefitVerificationBaseArguments = {
5482
+ drugs: {
5483
+ name: string,
5484
+ dosage: string,
5485
+ quantity: number,
5486
+ }[],
5487
+ drug_history: {
5488
+ currently_taking_drugs: {
5489
+ name: string,
5490
+ }[],
5491
+ previously_taken_drugs: {
5492
+ name: string,
5493
+ }[],
5494
+ },
5495
+ diagnoses: {
5496
+ code: string, // ICD-10
5497
+ }[],
5498
+ mock_result?: {
5499
+ status: string, // e.g. "completed",
5500
+ case: string, // e.g. "drugs_covered__prior_auth_required__has_copay"
5501
+ },
5502
+ use_patient_plan_fund_source_check?: boolean,
5444
5503
  }