oro-sdk-apis 1.35.0 → 1.38.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.
@@ -74,6 +74,56 @@ export declare enum TaskStatus {
74
74
  Blocked = "Blocked",
75
75
  Done = "Done"
76
76
  }
77
+ export declare enum ClosedReasonType {
78
+ /**
79
+ * A completed consultation
80
+ */
81
+ Completed = "Completed",
82
+ /**
83
+ * The conclusion was that what the patient submitted was not a disease
84
+ */
85
+ NotADisease = "NotADisease",
86
+ /**
87
+ * The consultation was not appropriate for virtual
88
+ */
89
+ NotAppropriateForVirtual = "NotAppropriateForVirtual",
90
+ /**
91
+ * Any other reason why the consultation was closed
92
+ */
93
+ Other = "Other",
94
+ /**
95
+ * A consultation that is required to be done in person
96
+ */
97
+ RequiresInPerson = "RequiresInPerson"
98
+ }
99
+ export interface ClosedConsultReasonInsertFields {
100
+ /**
101
+ * The uuid of the consultation
102
+ */
103
+ consult_uuid: string;
104
+ /**
105
+ * The reason why the consultation was closed
106
+ */
107
+ closed_reason_type: ClosedReasonType;
108
+ /**
109
+ * The description why the consultation was closed
110
+ */
111
+ closed_reason_description: string;
112
+ /**
113
+ * When the consultation was closed
114
+ */
115
+ created_at: string;
116
+ }
117
+ export interface ConsultClosedReason {
118
+ /**
119
+ * The reason why the consultation was closed
120
+ */
121
+ closedReasonType: ClosedReasonType;
122
+ /**
123
+ * The description why the consultation was closed
124
+ */
125
+ closedReasonDescription?: string;
126
+ }
77
127
  export interface ConsultRequest {
78
128
  uuidPractice: string;
79
129
  tagSpecialtyRequired: string;
@@ -96,6 +146,7 @@ export interface Consult {
96
146
  statusTask?: TaskStatus;
97
147
  hasTransmissions?: boolean;
98
148
  assignedAssistant?: ConsultAssignedAssistant[];
149
+ closeConsultReason?: ConsultClosedReason;
99
150
  shortId?: string;
100
151
  createdAt?: string;
101
152
  expiresAt?: string;
@@ -1,4 +1,4 @@
1
- import { APIService, ConsultService, DiagnosisService, GuardService, PracticeService, TellerService, VaultService, WorkflowService } from '../services';
1
+ import { APIService, ConsultService, DiagnosisService, GuardService, SearchService, PracticeService, TellerService, VaultService, WorkflowService } from '../services';
2
2
  /**
3
3
  * This interface represents a collection of service urls you need to initialize
4
4
  */
@@ -6,6 +6,7 @@ export interface ServiceCollectionRequest {
6
6
  tellerBaseURL?: string;
7
7
  vaultBaseURL?: string;
8
8
  guardBaseURL?: string;
9
+ searchBaseURL?: string;
9
10
  practiceBaseURL?: string;
10
11
  consultBaseURL?: string;
11
12
  workflowBaseURL?: string;
@@ -21,6 +22,7 @@ export interface ServiceCollection {
21
22
  consultService?: ConsultService;
22
23
  vaultService?: VaultService;
23
24
  guardService?: GuardService;
25
+ searchService?: SearchService;
24
26
  workflowService?: WorkflowService;
25
27
  diagnosisService?: DiagnosisService;
26
28
  }
@@ -371,7 +371,10 @@ export interface PracticePaymentIntent {
371
371
  numPlatformFeeAmount: number;
372
372
  idStripeInvoice: string;
373
373
  idStripePaymtIntent: string;
374
- stripeClientSecret: string;
374
+ /**
375
+ * This value is set only after the PracticePaymentIntent has been finalized and ready to be paid
376
+ */
377
+ stripeClientSecret?: string;
375
378
  dateCreatedAt?: Date;
376
379
  dateUpdateAt?: Date;
377
380
  }
@@ -0,0 +1,28 @@
1
+ export interface SearchRequest {
2
+ terms: Terms;
3
+ }
4
+ export interface SearchResponse {
5
+ results: SearchResult[];
6
+ }
7
+ export interface SearchResult {
8
+ consultUUID: string;
9
+ kind: string;
10
+ score: number;
11
+ }
12
+ export interface IndexRequest {
13
+ consultUUID: string;
14
+ terms: Terms;
15
+ }
16
+ export declare type Terms = Term[];
17
+ export interface Term {
18
+ kind?: string;
19
+ value: string;
20
+ }
21
+ export declare enum IndexKind {
22
+ consultUuid = 0,
23
+ consultShortid = 1,
24
+ firstName = 2,
25
+ lastName = 3,
26
+ healthId = 4,
27
+ dob = 5
28
+ }