@arbol-ai/sdk 5.57.0 → 5.59.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/dist/account/connections/models.d.ts +1 -1
- package/dist/gmedic/appointments/client.d.ts +7 -4
- package/dist/gmedic/appointments/index.d.ts +1 -1
- package/dist/gmedic/appointments/models.d.ts +59 -1
- package/dist/gmedic/availability/client.d.ts +8 -2
- package/dist/gmedic/availability/client.js +1 -1
- package/dist/gmedic/availability/index.d.ts +1 -1
- package/dist/gmedic/availability/models.d.ts +14 -1
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/models.d.ts +23 -0
- package/dist/oficlinic/appointments/client.d.ts +61 -38
- package/dist/oficlinic/appointments/index.d.ts +1 -1
- package/dist/oficlinic/appointments/models.d.ts +100 -38
- package/dist/oficlinic/patients/client.d.ts +7 -6
- package/dist/oficlinic/patients/models.d.ts +6 -4
- package/dist/raiz/agents/models.d.ts +2 -0
- package/dist/raiz/channels/models.d.ts +7 -7
- package/dist/raiz/conversations/client.d.ts +89 -44
- package/dist/raiz/conversations/client.js +3 -3
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +73 -2
- package/dist/raiz/conversations/models.js +6 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/models.d.ts +43 -0
- package/dist/raiz/organization/models.d.ts +2 -0
- package/dist/raiz/reports/client.d.ts +36 -28
- package/dist/raiz/reports/models.d.ts +18 -0
- package/dist/raiz/reports/models.js +1 -1
- package/dist/sanitas/affiliations/client.d.ts +9 -5
- package/dist/sanitas/affiliations/client.js +2 -2
- package/dist/sanitas/affiliations/index.d.ts +1 -1
- package/dist/sanitas/affiliations/models.d.ts +23 -12
- package/dist/sanitas/affiliations/models.js +7 -3
- package/dist/sanitas/models.d.ts +2 -1
- package/package.json +3 -3
|
@@ -10,8 +10,10 @@ export interface Client {
|
|
|
10
10
|
/**
|
|
11
11
|
* Create appointment
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* Create a patient appointment. For agents at clinics using colored booking
|
|
14
|
+
* windows, send bookingRoute with the verified payment route. The connector
|
|
15
|
+
* selects the appointment color and rechecks the entire interval. Reconcile
|
|
16
|
+
* unknown outcomes before repeating.
|
|
15
17
|
*/
|
|
16
18
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
17
19
|
/**
|
|
@@ -24,8 +26,9 @@ export interface Client {
|
|
|
24
26
|
/**
|
|
25
27
|
* Update appointment
|
|
26
28
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
+
* Update a patient appointment. For agents at clinics using colored booking
|
|
30
|
+
* windows, send the verified bookingRoute when changing the time. Reconcile
|
|
31
|
+
* unknown outcomes before repeating.
|
|
29
32
|
*/
|
|
30
33
|
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
31
34
|
}
|
|
@@ -2,4 +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, CreateRequest, CreateResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
-
export type { GmedicAppointmentNotFoundFailure, GmedicAppointmentsPage, GmedicAppointmentsPageResponse, GmedicCreateAppointmentBadGatewayError, GmedicCreateAppointmentBadGatewayFailure, GmedicCreateAppointmentBody, GmedicCreateAppointmentNotFoundError, GmedicCreateAppointmentNotFoundFailure, GmedicCreateAppointmentResult, GmedicCreateAppointmentResultResponse, GmedicCreateAppointmentServiceUnavailableError, GmedicCreateAppointmentServiceUnavailableFailure, GmedicListAppointmentsBadGatewayError, GmedicListAppointmentsBadGatewayFailure, GmedicListAppointmentsNotFoundError, GmedicListAppointmentsNotFoundFailure, GmedicListAppointmentsServiceUnavailableError, GmedicListAppointmentsServiceUnavailableFailure, GmedicUpdateAppointmentBadGatewayError, GmedicUpdateAppointmentBadGatewayFailure, GmedicUpdateAppointmentBody, GmedicUpdateAppointmentNotFoundError, GmedicUpdateAppointmentNotFoundFailure, GmedicUpdateAppointmentResult, GmedicUpdateAppointmentResultResponse, GmedicUpdateAppointmentServiceUnavailableError, GmedicUpdateAppointmentServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { GmedicAppointmentNotFoundFailure, GmedicAppointmentsPage, GmedicAppointmentsPageResponse, GmedicBookingInProgressFailure, GmedicCreateAppointmentBadGatewayError, GmedicCreateAppointmentBadGatewayFailure, GmedicCreateAppointmentBody, GmedicCreateAppointmentConflictError, GmedicCreateAppointmentConflictFailure, GmedicCreateAppointmentNotFoundError, GmedicCreateAppointmentNotFoundFailure, GmedicCreateAppointmentResult, GmedicCreateAppointmentResultResponse, GmedicCreateAppointmentServiceUnavailableError, GmedicCreateAppointmentServiceUnavailableFailure, GmedicListAppointmentsBadGatewayError, GmedicListAppointmentsBadGatewayFailure, GmedicListAppointmentsNotFoundError, GmedicListAppointmentsNotFoundFailure, GmedicListAppointmentsServiceUnavailableError, GmedicListAppointmentsServiceUnavailableFailure, GmedicUpdateAppointmentBadGatewayError, GmedicUpdateAppointmentBadGatewayFailure, GmedicUpdateAppointmentBody, GmedicUpdateAppointmentConflictError, GmedicUpdateAppointmentConflictFailure, GmedicUpdateAppointmentNotFoundError, GmedicUpdateAppointmentNotFoundFailure, GmedicUpdateAppointmentResult, GmedicUpdateAppointmentResultResponse, GmedicUpdateAppointmentServiceUnavailableError, GmedicUpdateAppointmentServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Empty, OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
2
|
+
import type { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* gMedic has no appointment with this id.
|
|
5
5
|
*/
|
|
@@ -145,6 +145,28 @@ export interface GmedicAppointmentsPageResponse {
|
|
|
145
145
|
metadata: ResponseMetadata;
|
|
146
146
|
success: true;
|
|
147
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Another appointment change is in progress. Check the agenda again before
|
|
150
|
+
* trying to book.
|
|
151
|
+
*/
|
|
152
|
+
export interface GmedicBookingInProgressFailure {
|
|
153
|
+
/**
|
|
154
|
+
* The failure code, stable across releases.
|
|
155
|
+
*/
|
|
156
|
+
code: "BOOKING_IN_PROGRESS";
|
|
157
|
+
/**
|
|
158
|
+
* No fields.
|
|
159
|
+
*/
|
|
160
|
+
data: Empty;
|
|
161
|
+
/**
|
|
162
|
+
* What went wrong, for people; it never contains input values.
|
|
163
|
+
*/
|
|
164
|
+
message: string;
|
|
165
|
+
/**
|
|
166
|
+
* Whether repeating the same request may succeed.
|
|
167
|
+
*/
|
|
168
|
+
retryable: false;
|
|
169
|
+
}
|
|
148
170
|
/**
|
|
149
171
|
* A failed answer.
|
|
150
172
|
*/
|
|
@@ -159,6 +181,11 @@ export interface GmedicCreateAppointmentBadGatewayError {
|
|
|
159
181
|
}
|
|
160
182
|
export type GmedicCreateAppointmentBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
|
|
161
183
|
export interface GmedicCreateAppointmentBody {
|
|
184
|
+
/**
|
|
185
|
+
* Verified payment route, required for agent scheduling at clinics using
|
|
186
|
+
* colored booking windows.
|
|
187
|
+
*/
|
|
188
|
+
bookingRoute?: "PRIVATE" | "AXA_PREPAID" | "AXA_ARL" | "PONAL_STARKEY" | "EPS_SURA";
|
|
162
189
|
connectionId?: string;
|
|
163
190
|
data: {
|
|
164
191
|
agendaId: string;
|
|
@@ -195,6 +222,19 @@ export interface GmedicCreateAppointmentBody {
|
|
|
195
222
|
viaEntryId?: string;
|
|
196
223
|
};
|
|
197
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* A failed answer.
|
|
227
|
+
*/
|
|
228
|
+
export interface GmedicCreateAppointmentConflictError {
|
|
229
|
+
data: null;
|
|
230
|
+
error: GmedicCreateAppointmentConflictFailure;
|
|
231
|
+
/**
|
|
232
|
+
* What every answer carries besides its data or error.
|
|
233
|
+
*/
|
|
234
|
+
metadata: ResponseMetadata;
|
|
235
|
+
success: false;
|
|
236
|
+
}
|
|
237
|
+
export type GmedicCreateAppointmentConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure | GmedicBookingInProgressFailure;
|
|
198
238
|
/**
|
|
199
239
|
* A failed answer.
|
|
200
240
|
*/
|
|
@@ -420,6 +460,11 @@ export interface GmedicUpdateAppointmentBadGatewayError {
|
|
|
420
460
|
}
|
|
421
461
|
export type GmedicUpdateAppointmentBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
|
|
422
462
|
export interface GmedicUpdateAppointmentBody {
|
|
463
|
+
/**
|
|
464
|
+
* Verified payment route, required for agent scheduling at clinics using
|
|
465
|
+
* colored booking windows.
|
|
466
|
+
*/
|
|
467
|
+
bookingRoute?: "PRIVATE" | "AXA_PREPAID" | "AXA_ARL" | "PONAL_STARKEY" | "EPS_SURA";
|
|
423
468
|
color?: "BLUE" | "RED" | "PINK" | "PURPLE" | "DARK_PURPLE" | "STEELE_BLUE" | "LIGHT_BLUE" | "TEAL" | "LIGHT_TEAL" | "GREEN" | "LIGHT_GREEN" | "YELLOW_GREEN" | "YELLOW" | "ORANGE" | "RED_ORANGE" | "LIGHT_BROWN" | "LIGHT_PURPLE" | "GREY" | "BLUE_GREY" | "YELLOW_GREY" | "BROWN";
|
|
424
469
|
connectionId?: string;
|
|
425
470
|
/**
|
|
@@ -439,6 +484,19 @@ export interface GmedicUpdateAppointmentBody {
|
|
|
439
484
|
startsAt?: Temporal.Instant;
|
|
440
485
|
status?: "SCHEDULED" | "ATTENDED" | "UNATTENDED" | "CANCELED" | "PENALIZED" | "CONFIRMED" | "DECLINED";
|
|
441
486
|
}
|
|
487
|
+
/**
|
|
488
|
+
* A failed answer.
|
|
489
|
+
*/
|
|
490
|
+
export interface GmedicUpdateAppointmentConflictError {
|
|
491
|
+
data: null;
|
|
492
|
+
error: GmedicUpdateAppointmentConflictFailure;
|
|
493
|
+
/**
|
|
494
|
+
* What every answer carries besides its data or error.
|
|
495
|
+
*/
|
|
496
|
+
metadata: ResponseMetadata;
|
|
497
|
+
success: false;
|
|
498
|
+
}
|
|
499
|
+
export type GmedicUpdateAppointmentConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure | GmedicBookingInProgressFailure;
|
|
442
500
|
/**
|
|
443
501
|
* A failed answer.
|
|
444
502
|
*/
|
|
@@ -10,8 +10,9 @@ export interface Client {
|
|
|
10
10
|
/**
|
|
11
11
|
* List availability
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* List available intervals. At clinics using colored booking windows, send
|
|
14
|
+
* the verified bookingRoute. Check the full duration within a returned
|
|
15
|
+
* interval and a compatible agenda.
|
|
15
16
|
*/
|
|
16
17
|
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
17
18
|
}
|
|
@@ -33,6 +34,11 @@ export interface ListRequest {
|
|
|
33
34
|
* another cursor.
|
|
34
35
|
*/
|
|
35
36
|
limit?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Verified payment route, required for agent scheduling at clinics using
|
|
39
|
+
* colored booking windows.
|
|
40
|
+
*/
|
|
41
|
+
bookingRoute?: "PRIVATE" | "AXA_PREPAID" | "AXA_ARL" | "PONAL_STARKEY" | "EPS_SURA";
|
|
36
42
|
/**
|
|
37
43
|
* The agenda id.
|
|
38
44
|
*/
|
|
@@ -13,7 +13,7 @@ export function bind(transport) {
|
|
|
13
13
|
const ListOperation = {
|
|
14
14
|
method: "GET",
|
|
15
15
|
route: "/v1/gmedic/availability",
|
|
16
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", agendaId: "agendaId", from: "from", to: "to", connectionId: "connectionId", startDate: "startDate", endDate: "endDate" },
|
|
16
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", bookingRoute: "bookingRoute", agendaId: "agendaId", from: "from", to: "to", connectionId: "connectionId", startDate: "startDate", endDate: "endDate" },
|
|
17
17
|
response: GmedicAvailabilityPageResponseCodec,
|
|
18
18
|
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
19
|
};
|
|
@@ -2,4 +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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { GmedicAvailabilityPage, GmedicAvailabilityPageResponse, GmedicListAvailabilityBadGatewayError, GmedicListAvailabilityBadGatewayFailure, GmedicListAvailabilityNotFoundError, GmedicListAvailabilityNotFoundFailure, GmedicListAvailabilityServiceUnavailableError, GmedicListAvailabilityServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { GmedicAvailabilityPage, GmedicAvailabilityPageResponse, GmedicListAvailabilityBadGatewayError, GmedicListAvailabilityBadGatewayFailure, GmedicListAvailabilityConflictError, GmedicListAvailabilityConflictFailure, GmedicListAvailabilityNotFoundError, GmedicListAvailabilityNotFoundFailure, GmedicListAvailabilityServiceUnavailableError, GmedicListAvailabilityServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { OutcomeUnknownFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
2
|
+
import type { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure } from "../models.js";
|
|
3
3
|
export interface GmedicAvailabilityPage {
|
|
4
4
|
/**
|
|
5
5
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -56,6 +56,19 @@ export interface GmedicListAvailabilityBadGatewayError {
|
|
|
56
56
|
success: false;
|
|
57
57
|
}
|
|
58
58
|
export type GmedicListAvailabilityBadGatewayFailure = OutcomeUnknownFailure | GmedicProviderAccessRejectedFailure | GmedicProviderResponseInvalidFailure;
|
|
59
|
+
/**
|
|
60
|
+
* A failed answer.
|
|
61
|
+
*/
|
|
62
|
+
export interface GmedicListAvailabilityConflictError {
|
|
63
|
+
data: null;
|
|
64
|
+
error: GmedicListAvailabilityConflictFailure;
|
|
65
|
+
/**
|
|
66
|
+
* What every answer carries besides its data or error.
|
|
67
|
+
*/
|
|
68
|
+
metadata: ResponseMetadata;
|
|
69
|
+
success: false;
|
|
70
|
+
}
|
|
71
|
+
export type GmedicListAvailabilityConflictFailure = GmedicNotConfiguredFailure | GmedicBookingColorRequiredFailure;
|
|
59
72
|
/**
|
|
60
73
|
* A failed answer.
|
|
61
74
|
*/
|
package/dist/gmedic/index.d.ts
CHANGED
|
@@ -2,4 +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, } from "./client.js";
|
|
5
|
-
export type { GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredError, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderInputRejectedError, GmedicProviderInputRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure, } from "./models.js";
|
|
5
|
+
export type { GmedicBookingColorRequiredFailure, GmedicCatalogSearchIncompleteFailure, GmedicConnectionNotFoundFailure, GmedicNotConfiguredError, GmedicNotConfiguredFailure, GmedicProviderAccessRejectedFailure, GmedicProviderInputRejectedError, GmedicProviderInputRejectedFailure, GmedicProviderResponseInvalidFailure, GmedicProviderUnavailableFailure, GmedicRecordNotFoundFailure, } from "./models.js";
|
package/dist/gmedic/models.d.ts
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
import type { Empty, ResponseMetadata } from "../models.js";
|
|
2
|
+
/**
|
|
3
|
+
* This booking requires a verified free interval in the clinic’s correct blue
|
|
4
|
+
* or gray window. Check availability with the required booking color or refer
|
|
5
|
+
* the request to reception.
|
|
6
|
+
*/
|
|
7
|
+
export interface GmedicBookingColorRequiredFailure {
|
|
8
|
+
/**
|
|
9
|
+
* The failure code, stable across releases.
|
|
10
|
+
*/
|
|
11
|
+
code: "BOOKING_COLOR_REQUIRED";
|
|
12
|
+
/**
|
|
13
|
+
* No fields.
|
|
14
|
+
*/
|
|
15
|
+
data: Empty;
|
|
16
|
+
/**
|
|
17
|
+
* What went wrong, for people; it never contains input values.
|
|
18
|
+
*/
|
|
19
|
+
message: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether repeating the same request may succeed.
|
|
22
|
+
*/
|
|
23
|
+
retryable: false;
|
|
24
|
+
}
|
|
2
25
|
/**
|
|
3
26
|
* The service catalog search could not be completed within its limits. Service
|
|
4
27
|
* absence cannot be concluded.
|
|
@@ -14,9 +14,9 @@ export interface Client {
|
|
|
14
14
|
* resolved by citizenship card. Use the exact CAS (serviceNumber) from that
|
|
15
15
|
* patient's assigned appointments, one exact listed cancellation reason, and
|
|
16
16
|
* confirm true only after the patient or authorized staff confirms this
|
|
17
|
-
* specific cancellation.
|
|
18
|
-
*
|
|
19
|
-
* cancellation may have happened: look up the patient's cancelled
|
|
17
|
+
* specific cancellation. Repeating the identical request returns the recorded
|
|
18
|
+
* result without sending again; no idempotency key is needed. OUTCOME_UNKNOWN
|
|
19
|
+
* means the cancellation may have happened: look up the patient's cancelled
|
|
20
20
|
* appointments and do not dispatch it again. agentMode true answers concise
|
|
21
21
|
* Spanish text instead.
|
|
22
22
|
*/
|
|
@@ -25,28 +25,44 @@ export interface Client {
|
|
|
25
25
|
* Create an appointment
|
|
26
26
|
*
|
|
27
27
|
* Book one appointment in e-Oficlinic (ASIGNAR_CITAS) for a slot that
|
|
28
|
-
* list_booking_slots offered in an availability flow.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* from
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
28
|
+
* search_booking_slots or list_booking_slots offered in an availability flow.
|
|
29
|
+
* Send what a person at the desk chooses: confirm true; the slot's flowId and
|
|
30
|
+
* slotId; the patient's documentType and documentNumber; the payer's planId
|
|
31
|
+
* and subplanId (list_payer_plans, list_payer_subplans); and in
|
|
32
|
+
* classification the patient's regime and affiliateType (list_regimes,
|
|
33
|
+
* list_affiliate_types) and, for copayments, salaryRange
|
|
34
|
+
* (list_salary_ranges). Leave the rest out: the service resolves it as the
|
|
35
|
+
* provider's own booking screen does. The payer, program and attention type
|
|
36
|
+
* are the flow's; the purpose is the form's default, 10; the contract is the
|
|
37
|
+
* payer's only active one, or none when it has none; billing takes its flags
|
|
38
|
+
* from the payer's row, its copayment rate, cap and moderator fee from the
|
|
39
|
+
* salary range's row, and its tariff from the payer's tariff matrix for the
|
|
40
|
+
* flow's service under the plan and subplan. A value the caller does send is
|
|
41
|
+
* used as given, and a billing object is sent unchanged with nothing
|
|
42
|
+
* resolved. BOOKING_VALUE_UNRESOLVED means a needed value could not be
|
|
43
|
+
* resolved from the provider's own data and nothing was written; send it and
|
|
44
|
+
* repeat: contractId when the payer has several active contracts;
|
|
45
|
+
* classification.relationship when the affiliate type is neither C nor N;
|
|
46
|
+
* classification.listStatus when the payer uses an attention list;
|
|
47
|
+
* referral.authorizationNumber when the payer requires authorization; a
|
|
48
|
+
* classification.salaryRange the regime lists; or billing when the payer's
|
|
49
|
+
* tariff grid has no positive tariff for the service. Before anything is
|
|
50
|
+
* written, the patient is resolved by citizenship card; the source must still
|
|
51
|
+
* count exactly one unit for the program and attention type; the regime,
|
|
52
|
+
* affiliate type, relationship and salary range, and the payer, plan, subplan
|
|
53
|
+
* and contract, must be listed by the provider; the service must be
|
|
54
|
+
* configured for the slot's professional; and a fresh read must still show
|
|
55
|
+
* the slot. The intent and a fence on the slot are recorded before the single
|
|
56
|
+
* provider request, which is never resent. Success means the provider
|
|
57
|
+
* answered a strictly positive appointment number, the source's own creation
|
|
58
|
+
* signal (verification provider_acknowledgement). OUTCOME_UNKNOWN means the
|
|
59
|
+
* appointment may exist: do not book again; check lookup_appointments with
|
|
60
|
+
* status assigned and ask staff. WRITE_TARGET_UNRESOLVED means another key's
|
|
61
|
+
* write to this slot has no final outcome, so nothing was sent.
|
|
62
|
+
* WRITE_LEDGER_FULL means the connection's ledger refused a new write and
|
|
63
|
+
* nothing was sent. Repeating the identical request answers the recorded
|
|
64
|
+
* outcome; no idempotency key is needed. One-slot, one-unit bookings only.
|
|
65
|
+
* agentMode true answers concise Spanish text instead.
|
|
50
66
|
*/
|
|
51
67
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
52
68
|
/**
|
|
@@ -72,19 +88,26 @@ export interface Client {
|
|
|
72
88
|
* must be an upcoming assigned appointment of the patient resolved by
|
|
73
89
|
* citizenship card (its CAS, serviceNumber in lookup_appointments); the
|
|
74
90
|
* cancellation reason must be exactly one list_cancellation_reasons answers;
|
|
75
|
-
* the new slot is booked first exactly as create_appointment books it
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
91
|
+
* the new slot is booked first exactly as create_appointment books it, from
|
|
92
|
+
* the same input: the new slot's flowId and slotId, the patient's document,
|
|
93
|
+
* the payer's planId and subplanId, and in classification the patient's
|
|
94
|
+
* regime, affiliateType and, for copayments, salaryRange. The service
|
|
95
|
+
* resolves the payer, program, attention type, purpose, contract and billing
|
|
96
|
+
* with its tariff from the flow and the provider's own data, as
|
|
97
|
+
* create_appointment describes; BOOKING_VALUE_UNRESOLVED means a needed value
|
|
98
|
+
* could not be resolved, nothing was written and the original is untouched:
|
|
99
|
+
* send it and repeat. Only after the provider acknowledged the new booking is
|
|
100
|
+
* the original cancelled (CANECELAR_CITAS) with the given reason and
|
|
101
|
+
* observations. If the new booking fails, nothing changes; if its outcome is
|
|
102
|
+
* unknown, OUTCOME_UNKNOWN answers and the original is never cancelled. Once
|
|
103
|
+
* the new booking is acknowledged the answer reports each phase: completed
|
|
104
|
+
* when the cancellation was confirmed too, partial otherwise (cancellation
|
|
105
|
+
* pending, unknown or not possible), when the patient may hold both
|
|
106
|
+
* appointments. pending continues when the identical request is repeated,
|
|
107
|
+
* which resumes the cancellation alone; nothing is ever resent. The slot and
|
|
108
|
+
* the original are fenced from the first dispatch: WRITE_TARGET_UNRESOLVED
|
|
109
|
+
* means another key's write to either has no final outcome, and nothing was
|
|
110
|
+
* sent. agentMode true answers concise Spanish text instead.
|
|
88
111
|
*/
|
|
89
112
|
reschedule(request: RescheduleRequest, options?: RequestOptions): Promise<RescheduleResponse>;
|
|
90
113
|
}
|
|
@@ -2,4 +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, CancelRequest, CancelResponse, CreateRequest, CreateResponse, LookupRequest, LookupResponse, RescheduleRequest, RescheduleResponse, } from "./client.js";
|
|
5
|
-
export type { OficlinicAppointment, OficlinicAppointmentBooking, OficlinicAppointmentCancellation, OficlinicAppointmentNotCancellableFailure, OficlinicAppointmentNotFoundFailure, OficlinicAppointmentNotReschedulableFailure, OficlinicAppointmentPage, OficlinicAppointmentReschedule, OficlinicCancelAppointmentBadGatewayError, OficlinicCancelAppointmentBadGatewayFailure, OficlinicCancelAppointmentBody, OficlinicCancelAppointmentConflictError, OficlinicCancelAppointmentConflictFailure, OficlinicCancelAppointmentNotFoundError, OficlinicCancelAppointmentNotFoundFailure, OficlinicCancelAppointmentResult, OficlinicCancelAppointmentResultResponse, OficlinicCancelAppointmentServiceUnavailableError, OficlinicCancelAppointmentServiceUnavailableFailure, OficlinicCancelAppointmentTooManyRequestsError, OficlinicCancelAppointmentTooManyRequestsFailure, OficlinicCancelAppointmentUnprocessableContentError, OficlinicCancelAppointmentUnprocessableContentFailure, OficlinicCreateAppointmentBadGatewayError, OficlinicCreateAppointmentBadGatewayFailure, OficlinicCreateAppointmentBody, OficlinicCreateAppointmentConflictError, OficlinicCreateAppointmentConflictFailure, OficlinicCreateAppointmentNotFoundError, OficlinicCreateAppointmentNotFoundFailure, OficlinicCreateAppointmentResult, OficlinicCreateAppointmentResultResponse, OficlinicCreateAppointmentServiceUnavailableError, OficlinicCreateAppointmentServiceUnavailableFailure, OficlinicCreateAppointmentTooManyRequestsError, OficlinicCreateAppointmentTooManyRequestsFailure, OficlinicCreateAppointmentUnprocessableContentError, OficlinicCreateAppointmentUnprocessableContentFailure, OficlinicLookupAppointmentsBadGatewayError, OficlinicLookupAppointmentsBadGatewayFailure, OficlinicLookupAppointmentsBadRequestError, OficlinicLookupAppointmentsBadRequestFailure, OficlinicLookupAppointmentsBody, OficlinicLookupAppointmentsConflictError, OficlinicLookupAppointmentsConflictFailure, OficlinicLookupAppointmentsNotFoundError, OficlinicLookupAppointmentsNotFoundFailure, OficlinicLookupAppointmentsResult, OficlinicLookupAppointmentsResultResponse, OficlinicLookupAppointmentsServiceUnavailableError, OficlinicLookupAppointmentsServiceUnavailableFailure, OficlinicLookupAppointmentsTooManyRequestsError, OficlinicLookupAppointmentsTooManyRequestsFailure, OficlinicLookupAppointmentsUnprocessableContentError, OficlinicLookupAppointmentsUnprocessableContentFailure, OficlinicPatientNotFoundFailure, OficlinicRescheduleAppointmentBadGatewayError, OficlinicRescheduleAppointmentBadGatewayFailure, OficlinicRescheduleAppointmentBody, OficlinicRescheduleAppointmentConflictError, OficlinicRescheduleAppointmentConflictFailure, OficlinicRescheduleAppointmentNotFoundError, OficlinicRescheduleAppointmentNotFoundFailure, OficlinicRescheduleAppointmentResult, OficlinicRescheduleAppointmentResultResponse, OficlinicRescheduleAppointmentServiceUnavailableError, OficlinicRescheduleAppointmentServiceUnavailableFailure, OficlinicRescheduleAppointmentTooManyRequestsError, OficlinicRescheduleAppointmentTooManyRequestsFailure, OficlinicRescheduleAppointmentUnprocessableContentError, OficlinicRescheduleAppointmentUnprocessableContentFailure, OficlinicServiceNotAvailableFailure, } from "./models.js";
|
|
5
|
+
export type { OficlinicAppointment, OficlinicAppointmentBooking, OficlinicAppointmentCancellation, OficlinicAppointmentNotCancellableFailure, OficlinicAppointmentNotFoundFailure, OficlinicAppointmentNotReschedulableFailure, OficlinicAppointmentPage, OficlinicAppointmentReschedule, OficlinicBookingValueUnresolvedFailure, OficlinicCancelAppointmentBadGatewayError, OficlinicCancelAppointmentBadGatewayFailure, OficlinicCancelAppointmentBody, OficlinicCancelAppointmentConflictError, OficlinicCancelAppointmentConflictFailure, OficlinicCancelAppointmentNotFoundError, OficlinicCancelAppointmentNotFoundFailure, OficlinicCancelAppointmentResult, OficlinicCancelAppointmentResultResponse, OficlinicCancelAppointmentServiceUnavailableError, OficlinicCancelAppointmentServiceUnavailableFailure, OficlinicCancelAppointmentTooManyRequestsError, OficlinicCancelAppointmentTooManyRequestsFailure, OficlinicCancelAppointmentUnprocessableContentError, OficlinicCancelAppointmentUnprocessableContentFailure, OficlinicCreateAppointmentBadGatewayError, OficlinicCreateAppointmentBadGatewayFailure, OficlinicCreateAppointmentBody, OficlinicCreateAppointmentConflictError, OficlinicCreateAppointmentConflictFailure, OficlinicCreateAppointmentNotFoundError, OficlinicCreateAppointmentNotFoundFailure, OficlinicCreateAppointmentResult, OficlinicCreateAppointmentResultResponse, OficlinicCreateAppointmentServiceUnavailableError, OficlinicCreateAppointmentServiceUnavailableFailure, OficlinicCreateAppointmentTooManyRequestsError, OficlinicCreateAppointmentTooManyRequestsFailure, OficlinicCreateAppointmentUnprocessableContentError, OficlinicCreateAppointmentUnprocessableContentFailure, OficlinicLookupAppointmentsBadGatewayError, OficlinicLookupAppointmentsBadGatewayFailure, OficlinicLookupAppointmentsBadRequestError, OficlinicLookupAppointmentsBadRequestFailure, OficlinicLookupAppointmentsBody, OficlinicLookupAppointmentsConflictError, OficlinicLookupAppointmentsConflictFailure, OficlinicLookupAppointmentsNotFoundError, OficlinicLookupAppointmentsNotFoundFailure, OficlinicLookupAppointmentsResult, OficlinicLookupAppointmentsResultResponse, OficlinicLookupAppointmentsServiceUnavailableError, OficlinicLookupAppointmentsServiceUnavailableFailure, OficlinicLookupAppointmentsTooManyRequestsError, OficlinicLookupAppointmentsTooManyRequestsFailure, OficlinicLookupAppointmentsUnprocessableContentError, OficlinicLookupAppointmentsUnprocessableContentFailure, OficlinicPatientNotFoundFailure, OficlinicRescheduleAppointmentBadGatewayError, OficlinicRescheduleAppointmentBadGatewayFailure, OficlinicRescheduleAppointmentBody, OficlinicRescheduleAppointmentConflictError, OficlinicRescheduleAppointmentConflictFailure, OficlinicRescheduleAppointmentNotFoundError, OficlinicRescheduleAppointmentNotFoundFailure, OficlinicRescheduleAppointmentResult, OficlinicRescheduleAppointmentResultResponse, OficlinicRescheduleAppointmentServiceUnavailableError, OficlinicRescheduleAppointmentServiceUnavailableFailure, OficlinicRescheduleAppointmentTooManyRequestsError, OficlinicRescheduleAppointmentTooManyRequestsFailure, OficlinicRescheduleAppointmentUnprocessableContentError, OficlinicRescheduleAppointmentUnprocessableContentFailure, OficlinicServiceNotAvailableFailure, } from "./models.js";
|