@arbol-ai/sdk 2.18.0 → 3.0.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/README.md +19 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.js +10 -0
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +396 -0
- package/dist/models.js +5 -1
- package/dist/nuevaEps/affiliations/models.d.ts +6 -5
- package/dist/nuevaEps/connections/models.d.ts +18 -18
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +16 -232
- package/dist/{visoft/tools → orsovision/agencies}/client.d.ts +13 -19
- package/dist/{visoft/tools → orsovision/agencies}/client.js +2 -2
- package/dist/orsovision/agencies/index.d.ts +5 -0
- package/dist/orsovision/agencies/models.d.ts +107 -0
- package/dist/orsovision/appointments/client.d.ts +39 -0
- package/dist/orsovision/appointments/client.js +29 -0
- package/dist/orsovision/appointments/index.d.ts +5 -0
- package/dist/orsovision/appointments/models.d.ts +206 -0
- package/dist/orsovision/appointments/models.js +9 -0
- package/dist/orsovision/availability/client.d.ts +32 -0
- package/dist/orsovision/availability/client.js +19 -0
- package/dist/orsovision/availability/index.d.ts +5 -0
- package/dist/orsovision/availability/models.d.ts +239 -0
- package/dist/orsovision/availability/models.js +15 -0
- package/dist/orsovision/client.d.ts +27 -0
- package/dist/orsovision/client.js +50 -0
- package/dist/orsovision/clinic/client.d.ts +34 -0
- package/dist/{visoft/specialtyRules → orsovision/clinic}/client.js +3 -3
- package/dist/orsovision/clinic/index.d.ts +5 -0
- package/dist/orsovision/clinic/models.d.ts +89 -0
- package/dist/orsovision/contracts/client.d.ts +69 -0
- package/dist/orsovision/contracts/client.js +18 -0
- package/dist/orsovision/contracts/index.d.ts +5 -0
- package/dist/orsovision/contracts/models.d.ts +108 -0
- package/dist/orsovision/index.d.ts +5 -0
- package/dist/orsovision/index.js +4 -0
- package/dist/orsovision/models.d.ts +227 -0
- package/dist/orsovision/patients/client.d.ts +52 -0
- package/dist/orsovision/patients/client.js +34 -0
- package/dist/orsovision/patients/index.d.ts +5 -0
- package/dist/orsovision/patients/models.d.ts +297 -0
- package/dist/orsovision/patients/models.js +3 -0
- package/dist/orsovision/services/client.d.ts +74 -0
- package/dist/orsovision/services/client.js +18 -0
- package/dist/orsovision/services/index.d.ts +5 -0
- package/dist/orsovision/services/index.js +4 -0
- package/dist/orsovision/services/models.d.ts +105 -0
- package/dist/orsovision/services/models.js +3 -0
- package/dist/orsovision/tools/client.d.ts +44 -0
- package/dist/{raiz/roles → orsovision/tools}/client.js +3 -3
- package/dist/orsovision/tools/index.d.ts +5 -0
- package/dist/orsovision/tools/index.js +4 -0
- package/dist/orsovision/tools/models.d.ts +101 -0
- package/dist/orsovision/tools/models.js +3 -0
- package/dist/raiz/agents/models.d.ts +1 -0
- package/dist/raiz/client.d.ts +0 -4
- package/dist/raiz/client.js +0 -10
- package/dist/raiz/conversations/client.d.ts +7 -3
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +22 -0
- package/dist/raiz/organization/client.d.ts +40 -40
- package/dist/raiz/organization/client.js +10 -10
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/reports/client.d.ts +3 -3
- package/dist/raiz/reports/client.js +2 -2
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/somos/appointments/client.d.ts +40 -0
- package/dist/somos/appointments/client.js +29 -0
- package/dist/somos/appointments/index.d.ts +5 -0
- package/dist/somos/appointments/index.js +4 -0
- package/dist/somos/appointments/models.d.ts +301 -0
- package/dist/somos/appointments/models.js +9 -0
- package/dist/somos/availability/client.d.ts +33 -0
- package/dist/somos/availability/client.js +19 -0
- package/dist/somos/availability/index.d.ts +5 -0
- package/dist/somos/availability/index.js +4 -0
- package/dist/somos/availability/models.d.ts +340 -0
- package/dist/somos/availability/models.js +15 -0
- package/dist/somos/client.d.ts +29 -0
- package/dist/somos/client.js +55 -0
- package/dist/somos/clinic/client.d.ts +33 -0
- package/dist/somos/clinic/client.js +18 -0
- package/dist/somos/clinic/index.d.ts +5 -0
- package/dist/somos/clinic/index.js +4 -0
- package/dist/somos/clinic/models.d.ts +89 -0
- package/dist/somos/clinic/models.js +3 -0
- package/dist/somos/contracts/client.d.ts +74 -0
- package/dist/somos/contracts/client.js +18 -0
- package/dist/somos/contracts/index.d.ts +5 -0
- package/dist/somos/contracts/index.js +4 -0
- package/dist/somos/contracts/models.d.ts +107 -0
- package/dist/somos/contracts/models.js +3 -0
- package/dist/somos/groups/client.d.ts +67 -0
- package/dist/{visoft → somos}/groups/client.js +2 -2
- package/dist/somos/groups/index.d.ts +5 -0
- package/dist/somos/groups/index.js +4 -0
- package/dist/somos/groups/models.d.ts +117 -0
- package/dist/somos/groups/models.js +3 -0
- package/dist/somos/index.d.ts +5 -0
- package/dist/somos/index.js +4 -0
- package/dist/somos/models.d.ts +227 -0
- package/dist/somos/models.js +3 -0
- package/dist/somos/patients/client.d.ts +51 -0
- package/dist/somos/patients/client.js +34 -0
- package/dist/somos/patients/index.d.ts +5 -0
- package/dist/somos/patients/index.js +4 -0
- package/dist/somos/patients/models.d.ts +327 -0
- package/dist/somos/patients/models.js +3 -0
- package/dist/somos/services/client.d.ts +117 -0
- package/dist/somos/services/client.js +26 -0
- package/dist/somos/services/index.d.ts +5 -0
- package/dist/somos/services/index.js +4 -0
- package/dist/somos/services/models.d.ts +272 -0
- package/dist/somos/services/models.js +3 -0
- package/dist/somos/specialtyRules/client.d.ts +44 -0
- package/dist/somos/specialtyRules/client.js +18 -0
- package/dist/somos/specialtyRules/index.d.ts +5 -0
- package/dist/somos/specialtyRules/index.js +4 -0
- package/dist/somos/specialtyRules/models.d.ts +54 -0
- package/dist/somos/specialtyRules/models.js +3 -0
- package/dist/{raiz/roles → somos/tools}/client.d.ts +14 -12
- package/dist/{visoft/agencies → somos/tools}/client.js +3 -3
- package/dist/somos/tools/index.d.ts +5 -0
- package/dist/somos/tools/index.js +4 -0
- package/dist/somos/tools/models.d.ts +101 -0
- package/dist/somos/tools/models.js +3 -0
- package/dist/visoft/appointments/client.d.ts +20 -194
- package/dist/visoft/appointments/client.js +5 -4
- package/dist/visoft/appointments/index.d.ts +1 -0
- package/dist/visoft/appointments/models.d.ts +391 -0
- package/dist/visoft/appointments/models.js +15 -0
- package/dist/visoft/availability/client.d.ts +10 -164
- package/dist/visoft/availability/client.js +9 -9
- package/dist/visoft/availability/index.d.ts +2 -2
- package/dist/visoft/availability/models.d.ts +154 -64
- package/dist/visoft/availability/models.js +10 -8
- package/dist/visoft/client.d.ts +6 -8
- package/dist/visoft/client.js +15 -20
- package/dist/visoft/clinic/client.d.ts +30 -0
- package/dist/visoft/clinic/client.js +18 -0
- package/dist/visoft/{specialtyRules → clinic}/index.d.ts +1 -0
- package/dist/visoft/clinic/index.js +4 -0
- package/dist/visoft/clinic/models.d.ts +13 -0
- package/dist/visoft/clinic/models.js +3 -0
- package/dist/visoft/clinics/client.d.ts +2 -31
- package/dist/visoft/clinics/client.js +1 -8
- package/dist/visoft/clinics/index.d.ts +2 -2
- package/dist/visoft/clinics/models.d.ts +13 -24
- package/dist/visoft/connections/client.d.ts +17 -74
- package/dist/visoft/connections/client.js +10 -11
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +93 -1
- package/dist/visoft/connections/models.js +6 -0
- package/dist/visoft/contracts/client.d.ts +14 -49
- package/dist/visoft/contracts/client.js +2 -2
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +43 -7
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +311 -139
- package/dist/visoft/patients/client.d.ts +24 -264
- package/dist/visoft/patients/client.js +7 -6
- package/dist/visoft/patients/index.d.ts +1 -0
- package/dist/visoft/patients/models.d.ts +737 -0
- package/dist/visoft/patients/models.js +15 -0
- package/dist/visoft/professionals/client.d.ts +56 -0
- package/dist/visoft/professionals/client.js +18 -0
- package/dist/visoft/professionals/index.d.ts +5 -0
- package/dist/visoft/professionals/index.js +4 -0
- package/dist/visoft/professionals/models.d.ts +54 -0
- package/dist/visoft/professionals/models.js +3 -0
- package/dist/visoft/serviceCatalogs/client.d.ts +45 -0
- package/dist/visoft/serviceCatalogs/client.js +18 -0
- package/dist/visoft/serviceCatalogs/index.d.ts +5 -0
- package/dist/visoft/serviceCatalogs/index.js +4 -0
- package/dist/visoft/serviceCatalogs/models.d.ts +68 -0
- package/dist/visoft/serviceCatalogs/models.js +3 -0
- package/dist/visoft/services/client.d.ts +25 -61
- package/dist/visoft/services/client.js +2 -2
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +52 -15
- package/package.json +9 -3
- package/dist/raiz/members/client.d.ts +0 -102
- package/dist/raiz/members/client.js +0 -35
- package/dist/raiz/members/index.d.ts +0 -5
- package/dist/raiz/members/models.d.ts +0 -48
- package/dist/raiz/members/models.js +0 -10
- package/dist/raiz/roles/index.d.ts +0 -5
- package/dist/raiz/roles/models.d.ts +0 -32
- package/dist/visoft/agencies/client.d.ts +0 -58
- package/dist/visoft/agencies/index.d.ts +0 -5
- package/dist/visoft/agencies/models.d.ts +0 -29
- package/dist/visoft/groups/client.d.ts +0 -69
- package/dist/visoft/groups/index.d.ts +0 -5
- package/dist/visoft/groups/models.d.ts +0 -39
- package/dist/visoft/specialtyRules/client.d.ts +0 -50
- package/dist/visoft/tools/index.d.ts +0 -5
- package/dist/visoft/tools/models.d.ts +0 -37
- /package/dist/{raiz/members → orsovision/agencies}/index.js +0 -0
- /package/dist/{raiz/roles → orsovision/agencies}/models.js +0 -0
- /package/dist/{raiz/roles → orsovision/appointments}/index.js +0 -0
- /package/dist/{visoft/agencies → orsovision/availability}/index.js +0 -0
- /package/dist/{visoft/groups → orsovision/clinic}/index.js +0 -0
- /package/dist/{visoft/agencies → orsovision/clinic}/models.js +0 -0
- /package/dist/{visoft/specialtyRules → orsovision/contracts}/index.js +0 -0
- /package/dist/{visoft/groups → orsovision/contracts}/models.js +0 -0
- /package/dist/{visoft/tools → orsovision}/models.js +0 -0
- /package/dist/{visoft/tools → orsovision/patients}/index.js +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import type { VisoftToolResult } from "../models.js";
|
|
2
|
+
import { type VisoftCorrectPatientBody, type VisoftCreatePatientBody, type VisoftLookupPatientBody, type VisoftPatientLookupResponse, type VisoftPatientRegistrationResponse, type VisoftPatientResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -11,280 +10,41 @@ export interface Client {
|
|
|
11
10
|
/**
|
|
12
11
|
* Correct a patient's details
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
13
|
+
* Change only the fields named in the call; every other field keeps its
|
|
14
|
+
* stored value (gender identity and sexual orientation included). The change
|
|
15
|
+
* is verified by a fresh read before it is answered. PATIENT_NOT_FOUND: SIIPS
|
|
16
|
+
* has no such patient. PATIENT_NOT_SAVED: SIIPS answered but the fresh read
|
|
17
|
+
* did not show the change. A correction whose outcome is unknown answers
|
|
18
|
+
* OUTCOME_UNKNOWN and is never repeated automatically.
|
|
19
19
|
*/
|
|
20
20
|
correct(request: CorrectRequest, options?: RequestOptions): Promise<CorrectResponse>;
|
|
21
21
|
/**
|
|
22
22
|
* Register a patient
|
|
23
23
|
*
|
|
24
|
-
* Register a patient
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
24
|
+
* Register a patient in the clinic's SIIPS at one of its cost centres, then
|
|
25
|
+
* read the record back to prove it saved. A patient SIIPS already has is
|
|
26
|
+
* answered with alreadyExisted:true and nothing written. PATIENT_NOT_SAVED:
|
|
27
|
+
* SIIPS answered but a fresh read did not show the record; read before trying
|
|
28
|
+
* again. A registration whose outcome is unknown answers OUTCOME_UNKNOWN and
|
|
29
|
+
* is never repeated automatically.
|
|
29
30
|
*/
|
|
30
31
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
31
32
|
/**
|
|
32
33
|
* Look up a patient
|
|
33
34
|
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* connection's clinic sets this tool's rules, parameters and accepted values:
|
|
40
|
-
* visoft.tools.list answers them for the connection, and every call is
|
|
41
|
-
* checked against them.
|
|
35
|
+
* SIIPS's record of the patient with that document number, and, when history
|
|
36
|
+
* asks for it, the patient's agenda (each appointment with the reference
|
|
37
|
+
* visoft.appointments.cancel takes) and admissions. found:false is an answer,
|
|
38
|
+
* not a failure. The record is cached for five minutes (refresh reads SIIPS
|
|
39
|
+
* again); the agenda is read for every call.
|
|
42
40
|
*/
|
|
43
41
|
lookup(request: LookupRequest, options?: RequestOptions): Promise<LookupResponse>;
|
|
44
42
|
}
|
|
45
43
|
export declare function createClient(options: ClientOptions): Client;
|
|
46
44
|
export declare function bind(transport: Transport): Client;
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
55
|
-
* meaning, accepted values and whether it is required.
|
|
56
|
-
*/
|
|
57
|
-
agency?: string;
|
|
58
|
-
/**
|
|
59
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
60
|
-
* meaning, accepted values and whether it is required.
|
|
61
|
-
*/
|
|
62
|
-
birthDate?: string;
|
|
63
|
-
/**
|
|
64
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
65
|
-
* default).
|
|
66
|
-
*/
|
|
67
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
68
|
-
/**
|
|
69
|
-
* The connection to run on. Optional when the organization has one Visoft
|
|
70
|
-
* connection; required when it has several. Another organization's connection
|
|
71
|
-
* is NOT_FOUND.
|
|
72
|
-
*/
|
|
73
|
-
connectionId?: string;
|
|
74
|
-
/**
|
|
75
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
76
|
-
* meaning, accepted values and whether it is required.
|
|
77
|
-
*/
|
|
78
|
-
documentNumber: string;
|
|
79
|
-
/**
|
|
80
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
81
|
-
* meaning, accepted values and whether it is required.
|
|
82
|
-
*/
|
|
83
|
-
email?: string;
|
|
84
|
-
/**
|
|
85
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
86
|
-
* meaning, accepted values and whether it is required.
|
|
87
|
-
*/
|
|
88
|
-
firstName1?: string;
|
|
89
|
-
/**
|
|
90
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
91
|
-
* meaning, accepted values and whether it is required.
|
|
92
|
-
*/
|
|
93
|
-
firstName2?: string;
|
|
94
|
-
/**
|
|
95
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
96
|
-
* meaning, accepted values and whether it is required.
|
|
97
|
-
*/
|
|
98
|
-
lastName1?: string;
|
|
99
|
-
/**
|
|
100
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
101
|
-
* meaning, accepted values and whether it is required.
|
|
102
|
-
*/
|
|
103
|
-
lastName2?: string;
|
|
104
|
-
/**
|
|
105
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
106
|
-
* meaning, accepted values and whether it is required.
|
|
107
|
-
*/
|
|
108
|
-
phoneMobile?: string;
|
|
109
|
-
/**
|
|
110
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
111
|
-
* meaning, accepted values and whether it is required.
|
|
112
|
-
*/
|
|
113
|
-
phoneOffice?: string;
|
|
114
|
-
/**
|
|
115
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
116
|
-
* meaning, accepted values and whether it is required.
|
|
117
|
-
*/
|
|
118
|
-
sex?: string;
|
|
119
|
-
}
|
|
120
|
-
export interface CorrectResponse {
|
|
121
|
-
/**
|
|
122
|
-
* The tool's clinical answer. ok:false is a conversational refusal the Agent
|
|
123
|
-
* reads (error, errorCode, ai_hint), not a failure.
|
|
124
|
-
*/
|
|
125
|
-
data: VisoftToolResult;
|
|
126
|
-
error: null;
|
|
127
|
-
metadata: ResponseMetadata;
|
|
128
|
-
success: true;
|
|
129
|
-
}
|
|
130
|
-
export interface CreateRequest {
|
|
131
|
-
/**
|
|
132
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
133
|
-
* meaning, accepted values and whether it is required.
|
|
134
|
-
*/
|
|
135
|
-
address?: string;
|
|
136
|
-
/**
|
|
137
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
138
|
-
* meaning, accepted values and whether it is required.
|
|
139
|
-
*/
|
|
140
|
-
agency?: string;
|
|
141
|
-
/**
|
|
142
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
143
|
-
* meaning, accepted values and whether it is required.
|
|
144
|
-
*/
|
|
145
|
-
birthDate: string;
|
|
146
|
-
/**
|
|
147
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
148
|
-
* default).
|
|
149
|
-
*/
|
|
150
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
151
|
-
/**
|
|
152
|
-
* The connection to run on. Optional when the organization has one Visoft
|
|
153
|
-
* connection; required when it has several. Another organization's connection
|
|
154
|
-
* is NOT_FOUND.
|
|
155
|
-
*/
|
|
156
|
-
connectionId?: string;
|
|
157
|
-
/**
|
|
158
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
159
|
-
* meaning, accepted values and whether it is required.
|
|
160
|
-
*/
|
|
161
|
-
country?: string;
|
|
162
|
-
/**
|
|
163
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
164
|
-
* meaning, accepted values and whether it is required.
|
|
165
|
-
*/
|
|
166
|
-
departmentCode?: string;
|
|
167
|
-
/**
|
|
168
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
169
|
-
* meaning, accepted values and whether it is required.
|
|
170
|
-
*/
|
|
171
|
-
documentNumber: string;
|
|
172
|
-
/**
|
|
173
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
174
|
-
* meaning, accepted values and whether it is required.
|
|
175
|
-
*/
|
|
176
|
-
documentType?: string;
|
|
177
|
-
/**
|
|
178
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
179
|
-
* meaning, accepted values and whether it is required.
|
|
180
|
-
*/
|
|
181
|
-
email?: string;
|
|
182
|
-
/**
|
|
183
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
184
|
-
* meaning, accepted values and whether it is required.
|
|
185
|
-
*/
|
|
186
|
-
eps?: string;
|
|
187
|
-
/**
|
|
188
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
189
|
-
* meaning, accepted values and whether it is required.
|
|
190
|
-
*/
|
|
191
|
-
firstName1: string;
|
|
192
|
-
/**
|
|
193
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
194
|
-
* meaning, accepted values and whether it is required.
|
|
195
|
-
*/
|
|
196
|
-
firstName2?: string;
|
|
197
|
-
/**
|
|
198
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
199
|
-
* meaning, accepted values and whether it is required.
|
|
200
|
-
*/
|
|
201
|
-
intent?: string;
|
|
202
|
-
/**
|
|
203
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
204
|
-
* meaning, accepted values and whether it is required.
|
|
205
|
-
*/
|
|
206
|
-
lastName1: string;
|
|
207
|
-
/**
|
|
208
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
209
|
-
* meaning, accepted values and whether it is required.
|
|
210
|
-
*/
|
|
211
|
-
lastName2?: string;
|
|
212
|
-
/**
|
|
213
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
214
|
-
* meaning, accepted values and whether it is required.
|
|
215
|
-
*/
|
|
216
|
-
municipalityCode?: string;
|
|
217
|
-
/**
|
|
218
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
219
|
-
* meaning, accepted values and whether it is required.
|
|
220
|
-
*/
|
|
221
|
-
phoneMobile?: string;
|
|
222
|
-
/**
|
|
223
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
224
|
-
* meaning, accepted values and whether it is required.
|
|
225
|
-
*/
|
|
226
|
-
regimen?: string;
|
|
227
|
-
/**
|
|
228
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
229
|
-
* meaning, accepted values and whether it is required.
|
|
230
|
-
*/
|
|
231
|
-
sex: string;
|
|
232
|
-
/**
|
|
233
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
234
|
-
* meaning, accepted values and whether it is required.
|
|
235
|
-
*/
|
|
236
|
-
specialty?: string;
|
|
237
|
-
}
|
|
238
|
-
export interface CreateResponse {
|
|
239
|
-
/**
|
|
240
|
-
* The tool's clinical answer. ok:false is a conversational refusal the Agent
|
|
241
|
-
* reads (error, errorCode, ai_hint), not a failure.
|
|
242
|
-
*/
|
|
243
|
-
data: VisoftToolResult;
|
|
244
|
-
error: null;
|
|
245
|
-
metadata: ResponseMetadata;
|
|
246
|
-
success: true;
|
|
247
|
-
}
|
|
248
|
-
export interface LookupRequest {
|
|
249
|
-
/**
|
|
250
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
251
|
-
* meaning, accepted values and whether it is required.
|
|
252
|
-
*/
|
|
253
|
-
documentNumber: string;
|
|
254
|
-
/**
|
|
255
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
256
|
-
* meaning, accepted values and whether it is required.
|
|
257
|
-
*/
|
|
258
|
-
agency?: string;
|
|
259
|
-
/**
|
|
260
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
261
|
-
* meaning, accepted values and whether it is required.
|
|
262
|
-
*/
|
|
263
|
-
includePast?: boolean;
|
|
264
|
-
/**
|
|
265
|
-
* As the connection's clinic defines it: visoft.tools.list answers its
|
|
266
|
-
* meaning, accepted values and whether it is required.
|
|
267
|
-
*/
|
|
268
|
-
pastDays?: number;
|
|
269
|
-
/**
|
|
270
|
-
* The connection to run on. Optional when the organization has one Visoft
|
|
271
|
-
* connection; required when it has several. Another organization's connection
|
|
272
|
-
* is NOT_FOUND.
|
|
273
|
-
*/
|
|
274
|
-
connectionId?: string;
|
|
275
|
-
/**
|
|
276
|
-
* The channel the conversation happens on: voice, whatsapp or web (the
|
|
277
|
-
* default).
|
|
278
|
-
*/
|
|
279
|
-
channel?: "voice" | "web" | "whatsapp";
|
|
280
|
-
}
|
|
281
|
-
export interface LookupResponse {
|
|
282
|
-
/**
|
|
283
|
-
* The tool's clinical answer. ok:false is a conversational refusal the Agent
|
|
284
|
-
* reads (error, errorCode, ai_hint), not a failure.
|
|
285
|
-
*/
|
|
286
|
-
data: VisoftToolResult;
|
|
287
|
-
error: null;
|
|
288
|
-
metadata: ResponseMetadata;
|
|
289
|
-
success: true;
|
|
290
|
-
}
|
|
45
|
+
export type CorrectRequest = VisoftCorrectPatientBody;
|
|
46
|
+
export type CorrectResponse = VisoftPatientResponse;
|
|
47
|
+
export type CreateRequest = VisoftCreatePatientBody;
|
|
48
|
+
export type CreateResponse = VisoftPatientRegistrationResponse;
|
|
49
|
+
export type LookupRequest = VisoftLookupPatientBody;
|
|
50
|
+
export type LookupResponse = VisoftPatientLookupResponse;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { VisoftPatientLookupResponseCodec, } from "./models.js";
|
|
4
5
|
export function createClient(options) {
|
|
5
6
|
return bind(new Transport(options));
|
|
6
7
|
}
|
|
@@ -16,19 +17,19 @@ const CorrectOperation = {
|
|
|
16
17
|
route: "/v1/visoft/patients/correct",
|
|
17
18
|
body: "flat",
|
|
18
19
|
response: null,
|
|
19
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
21
|
};
|
|
21
22
|
const CreateOperation = {
|
|
22
23
|
method: "POST",
|
|
23
24
|
route: "/v1/visoft/patients",
|
|
24
25
|
body: "flat",
|
|
25
26
|
response: null,
|
|
26
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
27
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
27
28
|
};
|
|
28
29
|
const LookupOperation = {
|
|
29
|
-
method: "
|
|
30
|
+
method: "POST",
|
|
30
31
|
route: "/v1/visoft/patients/lookup",
|
|
31
|
-
|
|
32
|
-
response:
|
|
33
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
32
|
+
body: "flat",
|
|
33
|
+
response: VisoftPatientLookupResponseCodec,
|
|
34
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
34
35
|
};
|
|
@@ -2,3 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, CorrectRequest, CorrectResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, } from "./client.js";
|
|
5
|
+
export type { VisoftAdmission, VisoftAppointment, VisoftCorrectPatientBadGatewayError, VisoftCorrectPatientBadGatewayFailure, VisoftCorrectPatientBody, VisoftCorrectPatientNotFoundError, VisoftCorrectPatientNotFoundFailure, VisoftCorrectPatientUnprocessableContentError, VisoftCorrectPatientUnprocessableContentFailure, VisoftCreatePatientBadGatewayError, VisoftCreatePatientBadGatewayFailure, VisoftCreatePatientBody, VisoftCreatePatientUnprocessableContentError, VisoftCreatePatientUnprocessableContentFailure, VisoftCredentialsRejectedError, VisoftLookupPatientBadGatewayError, VisoftLookupPatientBody, VisoftPatient, VisoftPatientHistory, VisoftPatientLookup, VisoftPatientLookupResponse, VisoftPatientNotFoundFailure, VisoftPatientNotSavedFailure, VisoftPatientRegistration, VisoftPatientRegistrationResponse, VisoftPatientResponse, } from "./models.js";
|