@arbol-ai/sdk 1.20261017.200040 → 2.1.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 +55 -5
- package/dist/account/connections/client.d.ts +25 -2
- package/dist/axxa/authorizations/client.d.ts +54 -0
- package/dist/axxa/authorizations/client.js +18 -0
- package/dist/axxa/authorizations/index.d.ts +4 -0
- package/dist/axxa/authorizations/index.js +4 -0
- package/dist/axxa/client.d.ts +19 -0
- package/dist/axxa/client.js +30 -0
- package/dist/axxa/connections/client.d.ts +104 -0
- package/dist/axxa/connections/client.js +42 -0
- package/dist/axxa/connections/index.d.ts +4 -0
- package/dist/axxa/connections/index.js +4 -0
- package/dist/axxa/eligibility/client.d.ts +44 -0
- package/dist/axxa/eligibility/client.js +18 -0
- package/dist/axxa/eligibility/index.d.ts +4 -0
- package/dist/axxa/eligibility/index.js +4 -0
- package/dist/axxa/index.d.ts +5 -0
- package/dist/axxa/index.js +4 -0
- package/dist/axxa/models.d.ts +168 -0
- package/dist/axxa/models.js +3 -0
- package/dist/axxa/provider/client.d.ts +32 -0
- package/dist/axxa/provider/client.js +18 -0
- package/dist/axxa/provider/index.d.ts +4 -0
- package/dist/axxa/provider/index.js +4 -0
- package/dist/client.d.ts +6 -0
- package/dist/client.js +15 -0
- package/dist/gmedic/agendaServices/client.d.ts +43 -0
- package/dist/gmedic/agendaServices/client.js +18 -0
- package/dist/gmedic/agendaServices/index.d.ts +5 -0
- package/dist/gmedic/agendaServices/index.js +4 -0
- package/dist/gmedic/agendaServices/models.d.ts +28 -0
- package/dist/gmedic/agendaServices/models.js +3 -0
- package/dist/gmedic/agendas/client.d.ts +45 -0
- package/dist/gmedic/agendas/client.js +18 -0
- package/dist/gmedic/agendas/index.d.ts +5 -0
- package/dist/gmedic/agendas/index.js +4 -0
- package/dist/gmedic/agendas/models.d.ts +32 -0
- package/dist/gmedic/agendas/models.js +3 -0
- package/dist/gmedic/appointments/client.d.ts +279 -0
- package/dist/gmedic/appointments/client.js +35 -0
- package/dist/gmedic/appointments/index.d.ts +5 -0
- package/dist/gmedic/appointments/index.js +4 -0
- package/dist/gmedic/appointments/models.d.ts +97 -0
- package/dist/gmedic/appointments/models.js +6 -0
- package/dist/gmedic/availability/client.d.ts +45 -0
- package/dist/gmedic/availability/client.js +18 -0
- package/dist/gmedic/availability/index.d.ts +5 -0
- package/dist/gmedic/availability/index.js +4 -0
- package/dist/gmedic/availability/models.d.ts +30 -0
- package/dist/gmedic/availability/models.js +3 -0
- package/dist/gmedic/availableDays/client.d.ts +44 -0
- package/dist/gmedic/availableDays/client.js +18 -0
- package/dist/gmedic/availableDays/index.d.ts +5 -0
- package/dist/gmedic/availableDays/index.js +4 -0
- package/dist/gmedic/availableDays/models.d.ts +15 -0
- package/dist/gmedic/availableDays/models.js +3 -0
- package/dist/gmedic/branchOffices/client.d.ts +43 -0
- package/dist/gmedic/branchOffices/client.js +18 -0
- package/dist/gmedic/branchOffices/index.d.ts +5 -0
- package/dist/gmedic/branchOffices/index.js +4 -0
- package/dist/gmedic/branchOffices/models.d.ts +51 -0
- package/dist/gmedic/branchOffices/models.js +3 -0
- package/dist/gmedic/client.d.ts +43 -0
- package/dist/gmedic/client.js +90 -0
- package/dist/gmedic/connections/client.d.ts +101 -0
- package/dist/gmedic/connections/client.js +42 -0
- package/dist/gmedic/connections/index.d.ts +4 -0
- package/dist/gmedic/connections/index.js +4 -0
- package/dist/gmedic/dictionaryEntries/client.d.ts +45 -0
- package/dist/gmedic/dictionaryEntries/client.js +18 -0
- package/dist/gmedic/dictionaryEntries/index.d.ts +5 -0
- package/dist/gmedic/dictionaryEntries/index.js +4 -0
- package/dist/gmedic/dictionaryEntries/models.d.ts +20 -0
- package/dist/gmedic/dictionaryEntries/models.js +3 -0
- package/dist/gmedic/healthPartners/client.d.ts +45 -0
- package/dist/gmedic/healthPartners/client.js +18 -0
- package/dist/gmedic/healthPartners/index.d.ts +5 -0
- package/dist/gmedic/healthPartners/index.js +4 -0
- package/dist/gmedic/healthPartners/models.d.ts +22 -0
- package/dist/gmedic/healthPartners/models.js +3 -0
- package/dist/gmedic/healthPromotionEntities/client.d.ts +45 -0
- package/dist/gmedic/healthPromotionEntities/client.js +18 -0
- package/dist/gmedic/healthPromotionEntities/index.d.ts +5 -0
- package/dist/gmedic/healthPromotionEntities/index.js +4 -0
- package/dist/gmedic/healthPromotionEntities/models.d.ts +19 -0
- package/dist/gmedic/healthPromotionEntities/models.js +3 -0
- package/dist/gmedic/index.d.ts +5 -0
- package/dist/gmedic/index.js +4 -0
- package/dist/gmedic/laboralRiskManagers/client.d.ts +45 -0
- package/dist/gmedic/laboralRiskManagers/client.js +18 -0
- package/dist/gmedic/laboralRiskManagers/index.d.ts +5 -0
- package/dist/gmedic/laboralRiskManagers/index.js +4 -0
- package/dist/gmedic/laboralRiskManagers/models.d.ts +19 -0
- package/dist/gmedic/laboralRiskManagers/models.js +3 -0
- package/dist/gmedic/models.d.ts +126 -0
- package/dist/gmedic/models.js +3 -0
- package/dist/gmedic/occupations/client.d.ts +45 -0
- package/dist/gmedic/occupations/client.js +18 -0
- package/dist/gmedic/occupations/index.d.ts +5 -0
- package/dist/gmedic/occupations/index.js +4 -0
- package/dist/gmedic/occupations/models.d.ts +20 -0
- package/dist/gmedic/occupations/models.js +3 -0
- package/dist/gmedic/patientNotes/client.d.ts +104 -0
- package/dist/gmedic/patientNotes/client.js +34 -0
- package/dist/gmedic/patientNotes/index.d.ts +5 -0
- package/dist/gmedic/patientNotes/index.js +4 -0
- package/dist/gmedic/patientNotes/models.d.ts +23 -0
- package/dist/gmedic/patientNotes/models.js +3 -0
- package/dist/gmedic/patients/client.d.ts +408 -0
- package/dist/gmedic/patients/client.js +34 -0
- package/dist/gmedic/patients/index.d.ts +5 -0
- package/dist/gmedic/patients/index.js +4 -0
- package/dist/gmedic/patients/models.d.ts +135 -0
- package/dist/gmedic/patients/models.js +3 -0
- package/dist/gmedic/services/client.d.ts +43 -0
- package/dist/gmedic/services/client.js +18 -0
- package/dist/gmedic/services/index.d.ts +5 -0
- package/dist/gmedic/services/index.js +4 -0
- package/dist/gmedic/services/models.d.ts +28 -0
- package/dist/gmedic/services/models.js +3 -0
- package/dist/gmedic/sessionPackages/client.d.ts +101 -0
- package/dist/gmedic/sessionPackages/client.js +26 -0
- package/dist/gmedic/sessionPackages/index.d.ts +5 -0
- package/dist/gmedic/sessionPackages/index.js +4 -0
- package/dist/gmedic/sessionPackages/models.d.ts +43 -0
- package/dist/gmedic/sessionPackages/models.js +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +22 -0
- package/dist/models.js +7 -1
- package/dist/nuevaEps/affiliations/client.d.ts +51 -0
- package/dist/nuevaEps/affiliations/client.js +18 -0
- package/dist/nuevaEps/affiliations/index.d.ts +4 -0
- package/dist/nuevaEps/affiliations/index.js +4 -0
- package/dist/nuevaEps/client.d.ts +15 -0
- package/dist/nuevaEps/client.js +20 -0
- package/dist/nuevaEps/connections/client.d.ts +111 -0
- package/dist/nuevaEps/connections/client.js +42 -0
- package/dist/nuevaEps/connections/index.d.ts +4 -0
- package/dist/nuevaEps/connections/index.js +4 -0
- package/dist/nuevaEps/index.d.ts +5 -0
- package/dist/nuevaEps/index.js +4 -0
- package/dist/nuevaEps/models.d.ts +154 -0
- package/dist/nuevaEps/models.js +3 -0
- package/package.json +10 -3
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
3
|
+
import type { GmedicPatientsPage } from "./models.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* Create patient
|
|
13
|
+
*
|
|
14
|
+
* Use the organization gMedic account. No automatic write retries; reconcile
|
|
15
|
+
* an unknown outcome before repeating.
|
|
16
|
+
*/
|
|
17
|
+
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* List patients
|
|
20
|
+
*
|
|
21
|
+
* Use the organization gMedic account. Read-only request; provider failures
|
|
22
|
+
* are never empty results.
|
|
23
|
+
*/
|
|
24
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Update patient
|
|
27
|
+
*
|
|
28
|
+
* Use the organization gMedic account. No automatic write retries; reconcile
|
|
29
|
+
* an unknown outcome before repeating.
|
|
30
|
+
*/
|
|
31
|
+
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
32
|
+
}
|
|
33
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
34
|
+
export declare function bind(transport: Transport): Client;
|
|
35
|
+
export interface CreateRequest {
|
|
36
|
+
connectionId?: string;
|
|
37
|
+
data: {
|
|
38
|
+
address?: string;
|
|
39
|
+
afpId?: string;
|
|
40
|
+
arlId?: string;
|
|
41
|
+
birthDate?: string;
|
|
42
|
+
bloodTypeId?: string;
|
|
43
|
+
childrenCount?: number;
|
|
44
|
+
contactPerson?: string;
|
|
45
|
+
contactPersonPhone?: string;
|
|
46
|
+
countryCode?: string;
|
|
47
|
+
dependentsCount?: number;
|
|
48
|
+
disabilityCategoryId?: string;
|
|
49
|
+
documentNumber: string;
|
|
50
|
+
documentTypeId: string;
|
|
51
|
+
educationLevelId?: string;
|
|
52
|
+
email?: string;
|
|
53
|
+
epsId?: string;
|
|
54
|
+
ethnicityId?: string;
|
|
55
|
+
expeditionPlaceCode?: string;
|
|
56
|
+
firstName: string;
|
|
57
|
+
genderId?: string;
|
|
58
|
+
healthPartnerId?: string;
|
|
59
|
+
healthPartnerIdNumber?: string;
|
|
60
|
+
healthRegimeId?: string;
|
|
61
|
+
householdCompositionTypeId?: string;
|
|
62
|
+
householdSize?: number;
|
|
63
|
+
lastName: string;
|
|
64
|
+
locationCode?: string;
|
|
65
|
+
locationZoneTypeId?: string;
|
|
66
|
+
maritalStatusId?: string;
|
|
67
|
+
mobile?: string;
|
|
68
|
+
occupationId?: string;
|
|
69
|
+
phone?: string;
|
|
70
|
+
profession?: string;
|
|
71
|
+
properties?: {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
};
|
|
74
|
+
referredByName?: string;
|
|
75
|
+
referredByTypeId?: string;
|
|
76
|
+
responsible?: string;
|
|
77
|
+
responsiblePhone?: string;
|
|
78
|
+
responsibleRelationship?: string;
|
|
79
|
+
socioeconomicStratum?: number;
|
|
80
|
+
sourceCountryCode?: string;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
export interface CreateResponse {
|
|
84
|
+
data: {
|
|
85
|
+
address?: string | null;
|
|
86
|
+
afp?: {
|
|
87
|
+
id: string;
|
|
88
|
+
label?: string | null;
|
|
89
|
+
name?: string | null;
|
|
90
|
+
value?: string | null;
|
|
91
|
+
} | null;
|
|
92
|
+
ageInYears?: number | null;
|
|
93
|
+
ageMonths?: number | null;
|
|
94
|
+
arl?: string | null;
|
|
95
|
+
birthDate?: string | null;
|
|
96
|
+
birthdayDays?: number | null;
|
|
97
|
+
category?: {
|
|
98
|
+
id: string;
|
|
99
|
+
label?: string | null;
|
|
100
|
+
name?: string | null;
|
|
101
|
+
value?: string | null;
|
|
102
|
+
} | null;
|
|
103
|
+
childrenCount?: number | null;
|
|
104
|
+
contactPerson?: string | null;
|
|
105
|
+
contactPersonPhone?: string | null;
|
|
106
|
+
creationDate?: string | null;
|
|
107
|
+
dependentsCount?: number | null;
|
|
108
|
+
disabilityCategory?: {
|
|
109
|
+
id: string;
|
|
110
|
+
label?: string | null;
|
|
111
|
+
name?: string | null;
|
|
112
|
+
value?: string | null;
|
|
113
|
+
} | null;
|
|
114
|
+
documentNumber?: string | null;
|
|
115
|
+
documentType?: {
|
|
116
|
+
id: string;
|
|
117
|
+
label?: string | null;
|
|
118
|
+
name?: string | null;
|
|
119
|
+
value?: string | null;
|
|
120
|
+
} | null;
|
|
121
|
+
educationLevel?: {
|
|
122
|
+
id: string;
|
|
123
|
+
label?: string | null;
|
|
124
|
+
name?: string | null;
|
|
125
|
+
value?: string | null;
|
|
126
|
+
} | null;
|
|
127
|
+
email?: string | null;
|
|
128
|
+
eps?: string | null;
|
|
129
|
+
ethnicity?: {
|
|
130
|
+
id: string;
|
|
131
|
+
label?: string | null;
|
|
132
|
+
name?: string | null;
|
|
133
|
+
value?: string | null;
|
|
134
|
+
} | null;
|
|
135
|
+
firstName?: string | null;
|
|
136
|
+
gender?: {
|
|
137
|
+
id: string;
|
|
138
|
+
label?: string | null;
|
|
139
|
+
name?: string | null;
|
|
140
|
+
value?: string | null;
|
|
141
|
+
} | null;
|
|
142
|
+
genderIdentity?: {
|
|
143
|
+
id: string;
|
|
144
|
+
label?: string | null;
|
|
145
|
+
name?: string | null;
|
|
146
|
+
value?: string | null;
|
|
147
|
+
} | null;
|
|
148
|
+
healthCompanyName?: string | null;
|
|
149
|
+
healthRegime?: {
|
|
150
|
+
id: string;
|
|
151
|
+
label?: string | null;
|
|
152
|
+
name?: string | null;
|
|
153
|
+
value?: string | null;
|
|
154
|
+
} | null;
|
|
155
|
+
householdCompositionType?: {
|
|
156
|
+
id: string;
|
|
157
|
+
label?: string | null;
|
|
158
|
+
name?: string | null;
|
|
159
|
+
value?: string | null;
|
|
160
|
+
} | null;
|
|
161
|
+
householdSize?: number | null;
|
|
162
|
+
id: string;
|
|
163
|
+
jobCompany?: string | null;
|
|
164
|
+
key?: string | null;
|
|
165
|
+
lastName?: string | null;
|
|
166
|
+
location?: string | null;
|
|
167
|
+
maritalStatus?: {
|
|
168
|
+
id: string;
|
|
169
|
+
label?: string | null;
|
|
170
|
+
name?: string | null;
|
|
171
|
+
value?: string | null;
|
|
172
|
+
} | null;
|
|
173
|
+
mobile?: string | null;
|
|
174
|
+
modificationDate?: string | null;
|
|
175
|
+
occupation?: string | null;
|
|
176
|
+
patientType?: {
|
|
177
|
+
id: string;
|
|
178
|
+
label?: string | null;
|
|
179
|
+
name?: string | null;
|
|
180
|
+
value?: string | null;
|
|
181
|
+
} | null;
|
|
182
|
+
phone?: string | null;
|
|
183
|
+
profession?: string | null;
|
|
184
|
+
properties?: {
|
|
185
|
+
[key: string]: unknown;
|
|
186
|
+
} | null;
|
|
187
|
+
referredBy?: {
|
|
188
|
+
id: string;
|
|
189
|
+
label?: string | null;
|
|
190
|
+
name?: string | null;
|
|
191
|
+
value?: string | null;
|
|
192
|
+
} | null;
|
|
193
|
+
referredByName?: string | null;
|
|
194
|
+
responsible?: string | null;
|
|
195
|
+
responsiblePhone?: string | null;
|
|
196
|
+
responsibleRelationship?: string | null;
|
|
197
|
+
socioeconomicStratum?: number | null;
|
|
198
|
+
state?: {
|
|
199
|
+
id: string;
|
|
200
|
+
label?: string | null;
|
|
201
|
+
name?: string | null;
|
|
202
|
+
value?: string | null;
|
|
203
|
+
} | null;
|
|
204
|
+
};
|
|
205
|
+
error: null;
|
|
206
|
+
metadata: ResponseMetadata;
|
|
207
|
+
success: true;
|
|
208
|
+
}
|
|
209
|
+
export interface ListRequest {
|
|
210
|
+
/**
|
|
211
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
212
|
+
*/
|
|
213
|
+
cursor?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
216
|
+
*/
|
|
217
|
+
direction?: "forward" | "backward";
|
|
218
|
+
/**
|
|
219
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
220
|
+
* another cursor.
|
|
221
|
+
*/
|
|
222
|
+
limit?: number;
|
|
223
|
+
id?: string;
|
|
224
|
+
documentNumber?: string;
|
|
225
|
+
documentType?: "CC" | "NIT" | "CE" | "NITE" | "PA" | "TI" | "RC" | "AS" | "MS" | "CD" | "SC" | "NU" | "PE" | "PT" | "CV" | "NV" | "DE" | "SI";
|
|
226
|
+
connectionId?: string;
|
|
227
|
+
}
|
|
228
|
+
export interface ListResponse {
|
|
229
|
+
data: GmedicPatientsPage;
|
|
230
|
+
error: null;
|
|
231
|
+
metadata: ResponseMetadata;
|
|
232
|
+
success: true;
|
|
233
|
+
}
|
|
234
|
+
export interface UpdateRequest {
|
|
235
|
+
connectionId?: string;
|
|
236
|
+
data: {
|
|
237
|
+
address?: string;
|
|
238
|
+
afpId?: string;
|
|
239
|
+
arlId?: string;
|
|
240
|
+
birthDate?: string;
|
|
241
|
+
bloodTypeId?: string;
|
|
242
|
+
childrenCount?: number;
|
|
243
|
+
contactPerson?: string;
|
|
244
|
+
contactPersonPhone?: string;
|
|
245
|
+
countryCode?: string;
|
|
246
|
+
dependentsCount?: number;
|
|
247
|
+
disabilityCategoryId?: string;
|
|
248
|
+
documentNumber: string;
|
|
249
|
+
documentTypeId: string;
|
|
250
|
+
educationLevelId?: string;
|
|
251
|
+
email?: string;
|
|
252
|
+
epsId?: string;
|
|
253
|
+
ethnicityId?: string;
|
|
254
|
+
expeditionPlaceCode?: string;
|
|
255
|
+
firstName: string;
|
|
256
|
+
genderId?: string;
|
|
257
|
+
healthPartnerId?: string;
|
|
258
|
+
healthPartnerIdNumber?: string;
|
|
259
|
+
healthRegimeId?: string;
|
|
260
|
+
householdCompositionTypeId?: string;
|
|
261
|
+
householdSize?: number;
|
|
262
|
+
lastName: string;
|
|
263
|
+
locationCode?: string;
|
|
264
|
+
locationZoneTypeId?: string;
|
|
265
|
+
maritalStatusId?: string;
|
|
266
|
+
mobile?: string;
|
|
267
|
+
occupationId?: string;
|
|
268
|
+
phone?: string;
|
|
269
|
+
profession?: string;
|
|
270
|
+
properties?: {
|
|
271
|
+
[key: string]: string;
|
|
272
|
+
};
|
|
273
|
+
referredByName?: string;
|
|
274
|
+
referredByTypeId?: string;
|
|
275
|
+
responsible?: string;
|
|
276
|
+
responsiblePhone?: string;
|
|
277
|
+
responsibleRelationship?: string;
|
|
278
|
+
socioeconomicStratum?: number;
|
|
279
|
+
sourceCountryCode?: string;
|
|
280
|
+
};
|
|
281
|
+
id: string;
|
|
282
|
+
}
|
|
283
|
+
export interface UpdateResponse {
|
|
284
|
+
data: {
|
|
285
|
+
address?: string | null;
|
|
286
|
+
afp?: {
|
|
287
|
+
id: string;
|
|
288
|
+
label?: string | null;
|
|
289
|
+
name?: string | null;
|
|
290
|
+
value?: string | null;
|
|
291
|
+
} | null;
|
|
292
|
+
ageInYears?: number | null;
|
|
293
|
+
ageMonths?: number | null;
|
|
294
|
+
arl?: string | null;
|
|
295
|
+
birthDate?: string | null;
|
|
296
|
+
birthdayDays?: number | null;
|
|
297
|
+
category?: {
|
|
298
|
+
id: string;
|
|
299
|
+
label?: string | null;
|
|
300
|
+
name?: string | null;
|
|
301
|
+
value?: string | null;
|
|
302
|
+
} | null;
|
|
303
|
+
childrenCount?: number | null;
|
|
304
|
+
contactPerson?: string | null;
|
|
305
|
+
contactPersonPhone?: string | null;
|
|
306
|
+
creationDate?: string | null;
|
|
307
|
+
dependentsCount?: number | null;
|
|
308
|
+
disabilityCategory?: {
|
|
309
|
+
id: string;
|
|
310
|
+
label?: string | null;
|
|
311
|
+
name?: string | null;
|
|
312
|
+
value?: string | null;
|
|
313
|
+
} | null;
|
|
314
|
+
documentNumber?: string | null;
|
|
315
|
+
documentType?: {
|
|
316
|
+
id: string;
|
|
317
|
+
label?: string | null;
|
|
318
|
+
name?: string | null;
|
|
319
|
+
value?: string | null;
|
|
320
|
+
} | null;
|
|
321
|
+
educationLevel?: {
|
|
322
|
+
id: string;
|
|
323
|
+
label?: string | null;
|
|
324
|
+
name?: string | null;
|
|
325
|
+
value?: string | null;
|
|
326
|
+
} | null;
|
|
327
|
+
email?: string | null;
|
|
328
|
+
eps?: string | null;
|
|
329
|
+
ethnicity?: {
|
|
330
|
+
id: string;
|
|
331
|
+
label?: string | null;
|
|
332
|
+
name?: string | null;
|
|
333
|
+
value?: string | null;
|
|
334
|
+
} | null;
|
|
335
|
+
firstName?: string | null;
|
|
336
|
+
gender?: {
|
|
337
|
+
id: string;
|
|
338
|
+
label?: string | null;
|
|
339
|
+
name?: string | null;
|
|
340
|
+
value?: string | null;
|
|
341
|
+
} | null;
|
|
342
|
+
genderIdentity?: {
|
|
343
|
+
id: string;
|
|
344
|
+
label?: string | null;
|
|
345
|
+
name?: string | null;
|
|
346
|
+
value?: string | null;
|
|
347
|
+
} | null;
|
|
348
|
+
healthCompanyName?: string | null;
|
|
349
|
+
healthRegime?: {
|
|
350
|
+
id: string;
|
|
351
|
+
label?: string | null;
|
|
352
|
+
name?: string | null;
|
|
353
|
+
value?: string | null;
|
|
354
|
+
} | null;
|
|
355
|
+
householdCompositionType?: {
|
|
356
|
+
id: string;
|
|
357
|
+
label?: string | null;
|
|
358
|
+
name?: string | null;
|
|
359
|
+
value?: string | null;
|
|
360
|
+
} | null;
|
|
361
|
+
householdSize?: number | null;
|
|
362
|
+
id: string;
|
|
363
|
+
jobCompany?: string | null;
|
|
364
|
+
key?: string | null;
|
|
365
|
+
lastName?: string | null;
|
|
366
|
+
location?: string | null;
|
|
367
|
+
maritalStatus?: {
|
|
368
|
+
id: string;
|
|
369
|
+
label?: string | null;
|
|
370
|
+
name?: string | null;
|
|
371
|
+
value?: string | null;
|
|
372
|
+
} | null;
|
|
373
|
+
mobile?: string | null;
|
|
374
|
+
modificationDate?: string | null;
|
|
375
|
+
occupation?: string | null;
|
|
376
|
+
patientType?: {
|
|
377
|
+
id: string;
|
|
378
|
+
label?: string | null;
|
|
379
|
+
name?: string | null;
|
|
380
|
+
value?: string | null;
|
|
381
|
+
} | null;
|
|
382
|
+
phone?: string | null;
|
|
383
|
+
profession?: string | null;
|
|
384
|
+
properties?: {
|
|
385
|
+
[key: string]: unknown;
|
|
386
|
+
} | null;
|
|
387
|
+
referredBy?: {
|
|
388
|
+
id: string;
|
|
389
|
+
label?: string | null;
|
|
390
|
+
name?: string | null;
|
|
391
|
+
value?: string | null;
|
|
392
|
+
} | null;
|
|
393
|
+
referredByName?: string | null;
|
|
394
|
+
responsible?: string | null;
|
|
395
|
+
responsiblePhone?: string | null;
|
|
396
|
+
responsibleRelationship?: string | null;
|
|
397
|
+
socioeconomicStratum?: number | null;
|
|
398
|
+
state?: {
|
|
399
|
+
id: string;
|
|
400
|
+
label?: string | null;
|
|
401
|
+
name?: string | null;
|
|
402
|
+
value?: string | null;
|
|
403
|
+
} | null;
|
|
404
|
+
};
|
|
405
|
+
error: null;
|
|
406
|
+
metadata: ResponseMetadata;
|
|
407
|
+
success: true;
|
|
408
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
10
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
11
|
+
update: (request, options) => transport.send(UpdateOperation, request, options),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
const CreateOperation = {
|
|
15
|
+
method: "POST",
|
|
16
|
+
route: "/v1/gmedic/patients",
|
|
17
|
+
body: "flat",
|
|
18
|
+
response: null,
|
|
19
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
20
|
+
};
|
|
21
|
+
const ListOperation = {
|
|
22
|
+
method: "GET",
|
|
23
|
+
route: "/v1/gmedic/patients",
|
|
24
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", id: "id", documentNumber: "documentNumber", documentType: "documentType", connectionId: "connectionId" },
|
|
25
|
+
response: null,
|
|
26
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
27
|
+
};
|
|
28
|
+
const UpdateOperation = {
|
|
29
|
+
method: "PATCH",
|
|
30
|
+
route: "/v1/gmedic/patients",
|
|
31
|
+
body: "flat",
|
|
32
|
+
response: null,
|
|
33
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
34
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, CreateRequest, CreateResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
+
export type { GmedicPatientsPage } from "./models.js";
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import type { PageInfo } from "../../models.js";
|
|
2
|
+
export interface GmedicPatientsPage {
|
|
3
|
+
/**
|
|
4
|
+
* Items admitted by this resource contract within the verified organization.
|
|
5
|
+
*/
|
|
6
|
+
data: {
|
|
7
|
+
address?: string | null;
|
|
8
|
+
afp?: {
|
|
9
|
+
id: string;
|
|
10
|
+
label?: string | null;
|
|
11
|
+
name?: string | null;
|
|
12
|
+
value?: string | null;
|
|
13
|
+
} | null;
|
|
14
|
+
ageInYears?: number | null;
|
|
15
|
+
ageMonths?: number | null;
|
|
16
|
+
arl?: string | null;
|
|
17
|
+
birthDate?: string | null;
|
|
18
|
+
birthdayDays?: number | null;
|
|
19
|
+
category?: {
|
|
20
|
+
id: string;
|
|
21
|
+
label?: string | null;
|
|
22
|
+
name?: string | null;
|
|
23
|
+
value?: string | null;
|
|
24
|
+
} | null;
|
|
25
|
+
childrenCount?: number | null;
|
|
26
|
+
contactPerson?: string | null;
|
|
27
|
+
contactPersonPhone?: string | null;
|
|
28
|
+
creationDate?: string | null;
|
|
29
|
+
dependentsCount?: number | null;
|
|
30
|
+
disabilityCategory?: {
|
|
31
|
+
id: string;
|
|
32
|
+
label?: string | null;
|
|
33
|
+
name?: string | null;
|
|
34
|
+
value?: string | null;
|
|
35
|
+
} | null;
|
|
36
|
+
documentNumber?: string | null;
|
|
37
|
+
documentType?: {
|
|
38
|
+
id: string;
|
|
39
|
+
label?: string | null;
|
|
40
|
+
name?: string | null;
|
|
41
|
+
value?: string | null;
|
|
42
|
+
} | null;
|
|
43
|
+
educationLevel?: {
|
|
44
|
+
id: string;
|
|
45
|
+
label?: string | null;
|
|
46
|
+
name?: string | null;
|
|
47
|
+
value?: string | null;
|
|
48
|
+
} | null;
|
|
49
|
+
email?: string | null;
|
|
50
|
+
eps?: string | null;
|
|
51
|
+
ethnicity?: {
|
|
52
|
+
id: string;
|
|
53
|
+
label?: string | null;
|
|
54
|
+
name?: string | null;
|
|
55
|
+
value?: string | null;
|
|
56
|
+
} | null;
|
|
57
|
+
firstName?: string | null;
|
|
58
|
+
gender?: {
|
|
59
|
+
id: string;
|
|
60
|
+
label?: string | null;
|
|
61
|
+
name?: string | null;
|
|
62
|
+
value?: string | null;
|
|
63
|
+
} | null;
|
|
64
|
+
genderIdentity?: {
|
|
65
|
+
id: string;
|
|
66
|
+
label?: string | null;
|
|
67
|
+
name?: string | null;
|
|
68
|
+
value?: string | null;
|
|
69
|
+
} | null;
|
|
70
|
+
healthCompanyName?: string | null;
|
|
71
|
+
healthRegime?: {
|
|
72
|
+
id: string;
|
|
73
|
+
label?: string | null;
|
|
74
|
+
name?: string | null;
|
|
75
|
+
value?: string | null;
|
|
76
|
+
} | null;
|
|
77
|
+
householdCompositionType?: {
|
|
78
|
+
id: string;
|
|
79
|
+
label?: string | null;
|
|
80
|
+
name?: string | null;
|
|
81
|
+
value?: string | null;
|
|
82
|
+
} | null;
|
|
83
|
+
householdSize?: number | null;
|
|
84
|
+
id: string;
|
|
85
|
+
jobCompany?: string | null;
|
|
86
|
+
key?: string | null;
|
|
87
|
+
lastName?: string | null;
|
|
88
|
+
location?: string | null;
|
|
89
|
+
maritalStatus?: {
|
|
90
|
+
id: string;
|
|
91
|
+
label?: string | null;
|
|
92
|
+
name?: string | null;
|
|
93
|
+
value?: string | null;
|
|
94
|
+
} | null;
|
|
95
|
+
mobile?: string | null;
|
|
96
|
+
modificationDate?: string | null;
|
|
97
|
+
occupation?: string | null;
|
|
98
|
+
patientType?: {
|
|
99
|
+
id: string;
|
|
100
|
+
label?: string | null;
|
|
101
|
+
name?: string | null;
|
|
102
|
+
value?: string | null;
|
|
103
|
+
} | null;
|
|
104
|
+
phone?: string | null;
|
|
105
|
+
profession?: string | null;
|
|
106
|
+
properties?: {
|
|
107
|
+
[key: string]: unknown;
|
|
108
|
+
} | null;
|
|
109
|
+
referredBy?: {
|
|
110
|
+
id: string;
|
|
111
|
+
label?: string | null;
|
|
112
|
+
name?: string | null;
|
|
113
|
+
value?: string | null;
|
|
114
|
+
} | null;
|
|
115
|
+
referredByName?: string | null;
|
|
116
|
+
responsible?: string | null;
|
|
117
|
+
responsiblePhone?: string | null;
|
|
118
|
+
responsibleRelationship?: string | null;
|
|
119
|
+
socioeconomicStratum?: number | null;
|
|
120
|
+
state?: {
|
|
121
|
+
id: string;
|
|
122
|
+
label?: string | null;
|
|
123
|
+
name?: string | null;
|
|
124
|
+
value?: string | null;
|
|
125
|
+
} | null;
|
|
126
|
+
}[];
|
|
127
|
+
/**
|
|
128
|
+
* Discriminator for a resource list response.
|
|
129
|
+
*/
|
|
130
|
+
object: "list";
|
|
131
|
+
/**
|
|
132
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
133
|
+
*/
|
|
134
|
+
pageInfo: PageInfo;
|
|
135
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
3
|
+
import type { GmedicServicesPage } from "./models.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* List services
|
|
13
|
+
*
|
|
14
|
+
* Use the organization gMedic account. Read-only request; provider failures
|
|
15
|
+
* are never empty results.
|
|
16
|
+
*/
|
|
17
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface ListRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "forward" | "backward";
|
|
30
|
+
/**
|
|
31
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
32
|
+
* another cursor.
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
id?: string;
|
|
36
|
+
connectionId?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ListResponse {
|
|
39
|
+
data: GmedicServicesPage;
|
|
40
|
+
error: null;
|
|
41
|
+
metadata: ResponseMetadata;
|
|
42
|
+
success: true;
|
|
43
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/gmedic/services",
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", id: "id", connectionId: "connectionId" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { GmedicServicesPage } from "./models.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { PageInfo } from "../../models.js";
|
|
2
|
+
export interface GmedicServicesPage {
|
|
3
|
+
/**
|
|
4
|
+
* Items admitted by this resource contract within the verified organization.
|
|
5
|
+
*/
|
|
6
|
+
data: {
|
|
7
|
+
active?: boolean | null;
|
|
8
|
+
code?: string | null;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
id: string;
|
|
11
|
+
key?: string | null;
|
|
12
|
+
name?: string | null;
|
|
13
|
+
type?: {
|
|
14
|
+
id: string;
|
|
15
|
+
label?: string | null;
|
|
16
|
+
name?: string | null;
|
|
17
|
+
value?: string | null;
|
|
18
|
+
} | null;
|
|
19
|
+
}[];
|
|
20
|
+
/**
|
|
21
|
+
* Discriminator for a resource list response.
|
|
22
|
+
*/
|
|
23
|
+
object: "list";
|
|
24
|
+
/**
|
|
25
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
26
|
+
*/
|
|
27
|
+
pageInfo: PageInfo;
|
|
28
|
+
}
|