@arbol-ai/sdk 2.19.0 → 3.0.1
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/client.js +3 -4
- package/dist/raiz/agents/models.d.ts +1 -0
- package/dist/raiz/bulletins/client.d.ts +4 -1
- package/dist/raiz/bulletins/client.js +5 -6
- package/dist/raiz/campaigns/client.d.ts +6 -5
- package/dist/raiz/campaigns/client.js +4 -4
- package/dist/raiz/channels/client.d.ts +19 -5
- package/dist/raiz/channels/client.js +9 -9
- package/dist/raiz/client.d.ts +0 -4
- package/dist/raiz/client.js +0 -10
- package/dist/raiz/contacts/client.js +4 -4
- package/dist/raiz/conversations/client.d.ts +7 -4
- package/dist/raiz/conversations/client.js +6 -6
- package/dist/raiz/definitions/client.d.ts +4 -4
- package/dist/raiz/definitions/client.js +3 -4
- package/dist/raiz/evalCases/client.d.ts +13 -12
- package/dist/raiz/evalCases/client.js +2 -2
- package/dist/raiz/evalRuns/client.d.ts +7 -4
- package/dist/raiz/evalRuns/client.js +2 -3
- package/dist/raiz/evalRuns/models.d.ts +7 -1
- package/dist/raiz/facts/client.js +2 -2
- package/dist/raiz/knowledge/client.d.ts +17 -11
- package/dist/raiz/knowledge/client.js +4 -4
- package/dist/raiz/models.d.ts +0 -42
- package/dist/raiz/organization/client.d.ts +38 -42
- package/dist/raiz/organization/client.js +11 -12
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/organization/models.d.ts +0 -10
- package/dist/raiz/profiles/client.d.ts +4 -4
- package/dist/raiz/profiles/client.js +3 -4
- 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/raiz/suppressions/client.js +1 -1
- package/dist/raiz/tasks/client.d.ts +6 -0
- package/dist/raiz/tasks/client.js +5 -6
- package/dist/raiz/templates/client.d.ts +2 -1
- package/dist/raiz/templates/client.js +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
|
@@ -0,0 +1,737 @@
|
|
|
1
|
+
import type { ConnectionNotFoundFailure, CredentialsRejectedFailure, Empty, LookupPatientBadGatewayFailure, OutcomeUnknownFailure, ProviderUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { VisoftAgencyNotServedFailure, VisoftResponseMetadata } from "../models.js";
|
|
3
|
+
export interface VisoftAdmission {
|
|
4
|
+
/**
|
|
5
|
+
* The admission's number.
|
|
6
|
+
*/
|
|
7
|
+
admissionNumber: string;
|
|
8
|
+
/**
|
|
9
|
+
* The cost centre it was at.
|
|
10
|
+
*/
|
|
11
|
+
agencyCode: string;
|
|
12
|
+
/**
|
|
13
|
+
* The day it was recorded, as SIIPS writes it.
|
|
14
|
+
*/
|
|
15
|
+
date: string;
|
|
16
|
+
/**
|
|
17
|
+
* The professional's SIIPS id.
|
|
18
|
+
*/
|
|
19
|
+
professionalId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The specialty, as SIIPS names it.
|
|
22
|
+
*/
|
|
23
|
+
specialty: string;
|
|
24
|
+
/**
|
|
25
|
+
* SIIPS's status of the admission.
|
|
26
|
+
*/
|
|
27
|
+
status: string;
|
|
28
|
+
}
|
|
29
|
+
export interface VisoftAppointment {
|
|
30
|
+
/**
|
|
31
|
+
* The admission it was attended under; empty before one.
|
|
32
|
+
*/
|
|
33
|
+
admissionNumber: string;
|
|
34
|
+
/**
|
|
35
|
+
* The cost centre it is at.
|
|
36
|
+
*/
|
|
37
|
+
agencyCode: string;
|
|
38
|
+
/**
|
|
39
|
+
* SIIPS's attendance mark.
|
|
40
|
+
*/
|
|
41
|
+
attended: string;
|
|
42
|
+
/**
|
|
43
|
+
* The contract it was booked under.
|
|
44
|
+
*/
|
|
45
|
+
contractCode: string;
|
|
46
|
+
/**
|
|
47
|
+
* The patient summary SIIPS shows on the row.
|
|
48
|
+
*/
|
|
49
|
+
patientSummary: string;
|
|
50
|
+
/**
|
|
51
|
+
* The phone SIIPS shows on the row.
|
|
52
|
+
*/
|
|
53
|
+
phone: string;
|
|
54
|
+
/**
|
|
55
|
+
* The professional's SIIPS id; empty when SIIPS omits it.
|
|
56
|
+
*/
|
|
57
|
+
professionalId: string;
|
|
58
|
+
/**
|
|
59
|
+
* The professional, as SIIPS names them.
|
|
60
|
+
*/
|
|
61
|
+
professionalName: string;
|
|
62
|
+
/**
|
|
63
|
+
* The purpose SIIPS records.
|
|
64
|
+
*/
|
|
65
|
+
purpose: string;
|
|
66
|
+
/**
|
|
67
|
+
* The appointment's SIIPS key, opaque: pass it unchanged to
|
|
68
|
+
* visoft.appointments.cancel. Empty when SIIPS offers no action on it.
|
|
69
|
+
*/
|
|
70
|
+
reference: string;
|
|
71
|
+
/**
|
|
72
|
+
* The resource it holds.
|
|
73
|
+
*/
|
|
74
|
+
resource: string;
|
|
75
|
+
/**
|
|
76
|
+
* The agenda block the appointment belongs to.
|
|
77
|
+
*/
|
|
78
|
+
scheduleId: string;
|
|
79
|
+
/**
|
|
80
|
+
* The service, as SIIPS lists it on the agenda.
|
|
81
|
+
*/
|
|
82
|
+
service: string;
|
|
83
|
+
/**
|
|
84
|
+
* The specialty, as SIIPS names it.
|
|
85
|
+
*/
|
|
86
|
+
specialty: string;
|
|
87
|
+
/**
|
|
88
|
+
* When it starts, in the clinic's offset; null when SIIPS's row carries no
|
|
89
|
+
* readable day and hour.
|
|
90
|
+
*/
|
|
91
|
+
startsAt: Temporal.Instant | null;
|
|
92
|
+
/**
|
|
93
|
+
* The sub cost centre.
|
|
94
|
+
*/
|
|
95
|
+
subCostCenter: string;
|
|
96
|
+
/**
|
|
97
|
+
* SIIPS's tag on the row.
|
|
98
|
+
*/
|
|
99
|
+
tag: string;
|
|
100
|
+
/**
|
|
101
|
+
* How SIIPS classified the visit (1ra Vez, Control…).
|
|
102
|
+
*/
|
|
103
|
+
visitType: string;
|
|
104
|
+
/**
|
|
105
|
+
* Whether it was booked from the web, as SIIPS marks it.
|
|
106
|
+
*/
|
|
107
|
+
web: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A failed answer.
|
|
111
|
+
*/
|
|
112
|
+
export interface VisoftCorrectPatientBadGatewayError {
|
|
113
|
+
data: null;
|
|
114
|
+
error: VisoftCorrectPatientBadGatewayFailure;
|
|
115
|
+
/**
|
|
116
|
+
* What every answer carries besides its data or error.
|
|
117
|
+
*/
|
|
118
|
+
metadata: VisoftResponseMetadata;
|
|
119
|
+
success: false;
|
|
120
|
+
}
|
|
121
|
+
export type VisoftCorrectPatientBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure | VisoftPatientNotSavedFailure;
|
|
122
|
+
export interface VisoftCorrectPatientBody {
|
|
123
|
+
/**
|
|
124
|
+
* Home address.
|
|
125
|
+
*/
|
|
126
|
+
address?: string;
|
|
127
|
+
/**
|
|
128
|
+
* One of the clinic's cost centres, as visoft.clinic.get lists them. Optional
|
|
129
|
+
* when the clinic has a default one.
|
|
130
|
+
*/
|
|
131
|
+
agencyCode?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Birth date, YYYY-MM-DD.
|
|
134
|
+
*/
|
|
135
|
+
birthDate?: string;
|
|
136
|
+
/**
|
|
137
|
+
* The connection to run on. Optional when the organization has one Visoft
|
|
138
|
+
* connection; required when it has several. Another organization's connection
|
|
139
|
+
* is CONNECTION_NOT_FOUND.
|
|
140
|
+
*/
|
|
141
|
+
connectionId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The patient's document number: letters and digits only, without dots,
|
|
144
|
+
* spaces or hyphens.
|
|
145
|
+
*/
|
|
146
|
+
documentNumber: string;
|
|
147
|
+
/**
|
|
148
|
+
* Email address.
|
|
149
|
+
*/
|
|
150
|
+
email?: string;
|
|
151
|
+
/**
|
|
152
|
+
* First given name.
|
|
153
|
+
*/
|
|
154
|
+
firstName1?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Second given name.
|
|
157
|
+
*/
|
|
158
|
+
firstName2?: string;
|
|
159
|
+
/**
|
|
160
|
+
* First surname.
|
|
161
|
+
*/
|
|
162
|
+
lastName1?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Second surname.
|
|
165
|
+
*/
|
|
166
|
+
lastName2?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Mobile phone.
|
|
169
|
+
*/
|
|
170
|
+
phoneMobile?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Office phone.
|
|
173
|
+
*/
|
|
174
|
+
phoneOffice?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Sex at birth: M or F.
|
|
177
|
+
*/
|
|
178
|
+
sex?: "M" | "F";
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* A failed answer.
|
|
182
|
+
*/
|
|
183
|
+
export interface VisoftCorrectPatientNotFoundError {
|
|
184
|
+
data: null;
|
|
185
|
+
error: VisoftCorrectPatientNotFoundFailure;
|
|
186
|
+
/**
|
|
187
|
+
* What every answer carries besides its data or error.
|
|
188
|
+
*/
|
|
189
|
+
metadata: VisoftResponseMetadata;
|
|
190
|
+
success: false;
|
|
191
|
+
}
|
|
192
|
+
export type VisoftCorrectPatientNotFoundFailure = ConnectionNotFoundFailure | VisoftPatientNotFoundFailure;
|
|
193
|
+
/**
|
|
194
|
+
* A failed answer.
|
|
195
|
+
*/
|
|
196
|
+
export interface VisoftCorrectPatientUnprocessableContentError {
|
|
197
|
+
data: null;
|
|
198
|
+
error: VisoftCorrectPatientUnprocessableContentFailure;
|
|
199
|
+
/**
|
|
200
|
+
* What every answer carries besides its data or error.
|
|
201
|
+
*/
|
|
202
|
+
metadata: VisoftResponseMetadata;
|
|
203
|
+
success: false;
|
|
204
|
+
}
|
|
205
|
+
export type VisoftCorrectPatientUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
206
|
+
/**
|
|
207
|
+
* A failed answer.
|
|
208
|
+
*/
|
|
209
|
+
export interface VisoftCreatePatientBadGatewayError {
|
|
210
|
+
data: null;
|
|
211
|
+
error: VisoftCreatePatientBadGatewayFailure;
|
|
212
|
+
/**
|
|
213
|
+
* What every answer carries besides its data or error.
|
|
214
|
+
*/
|
|
215
|
+
metadata: VisoftResponseMetadata;
|
|
216
|
+
success: false;
|
|
217
|
+
}
|
|
218
|
+
export type VisoftCreatePatientBadGatewayFailure = OutcomeUnknownFailure | ProviderUnavailableFailure | VisoftPatientNotSavedFailure;
|
|
219
|
+
export interface VisoftCreatePatientBody {
|
|
220
|
+
/**
|
|
221
|
+
* Home address.
|
|
222
|
+
*/
|
|
223
|
+
address: string;
|
|
224
|
+
/**
|
|
225
|
+
* Affiliation type; C (cotizante) by default.
|
|
226
|
+
*/
|
|
227
|
+
affiliateType?: string;
|
|
228
|
+
/**
|
|
229
|
+
* One of the clinic's cost centres, as visoft.clinic.get lists them. Optional
|
|
230
|
+
* when the clinic has a default one.
|
|
231
|
+
*/
|
|
232
|
+
agencyCode?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Birth date, YYYY-MM-DD.
|
|
235
|
+
*/
|
|
236
|
+
birthDate: string;
|
|
237
|
+
/**
|
|
238
|
+
* Whether the patient has diabetes.
|
|
239
|
+
*/
|
|
240
|
+
chronicDiabetes?: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Whether the patient has hypertension.
|
|
243
|
+
*/
|
|
244
|
+
chronicHypertension?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Whether the patient has chronic kidney disease.
|
|
247
|
+
*/
|
|
248
|
+
chronicRenal?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* The connection to run on. Optional when the organization has one Visoft
|
|
251
|
+
* connection; required when it has several. Another organization's connection
|
|
252
|
+
* is CONNECTION_NOT_FOUND.
|
|
253
|
+
*/
|
|
254
|
+
connectionId?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Country of residence, ISO 3166 alpha-3 (COL).
|
|
257
|
+
*/
|
|
258
|
+
country: string;
|
|
259
|
+
/**
|
|
260
|
+
* DANE department code of residence.
|
|
261
|
+
*/
|
|
262
|
+
departmentCode: string;
|
|
263
|
+
/**
|
|
264
|
+
* Whether the patient has a mental disability.
|
|
265
|
+
*/
|
|
266
|
+
disabilityMental?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Whether the patient has a physical disability.
|
|
269
|
+
*/
|
|
270
|
+
disabilityPhysical?: boolean;
|
|
271
|
+
/**
|
|
272
|
+
* Whether the patient has a psychiatric disability.
|
|
273
|
+
*/
|
|
274
|
+
disabilityPsychiatric?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* The patient's document number: letters and digits only, without dots,
|
|
277
|
+
* spaces or hyphens.
|
|
278
|
+
*/
|
|
279
|
+
documentNumber: string;
|
|
280
|
+
/**
|
|
281
|
+
* The document's type, as SIIPS codes it: CC (Cédula de Ciudadanía), TI
|
|
282
|
+
* (Tarjeta de Identidad), RC (Registro Civil), AS (Adulto sin
|
|
283
|
+
* Identificación), CD (Carné Diplomático), CE (Cédula de Extranjería), DE
|
|
284
|
+
* (Documento de Extranjero), CN (Certificado de Nacido Vivo), MS (Menor sin
|
|
285
|
+
* Identificación), SC (Salvoconducto), PE (Permiso Especial de Permanencia),
|
|
286
|
+
* PT (Permiso de Protección Temporal), SI (Sin Identificación), PA
|
|
287
|
+
* (Pasaporte).
|
|
288
|
+
*/
|
|
289
|
+
documentType: "CC" | "TI" | "RC" | "AS" | "CD" | "CE" | "DE" | "CN" | "MS" | "SC" | "PE" | "PT" | "SI" | "PA";
|
|
290
|
+
/**
|
|
291
|
+
* Education code; 01 by default.
|
|
292
|
+
*/
|
|
293
|
+
educationCode?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Email address.
|
|
296
|
+
*/
|
|
297
|
+
email?: string;
|
|
298
|
+
/**
|
|
299
|
+
* First given name.
|
|
300
|
+
*/
|
|
301
|
+
firstName1: string;
|
|
302
|
+
/**
|
|
303
|
+
* Second given name.
|
|
304
|
+
*/
|
|
305
|
+
firstName2?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Gender identity; SinDatos by default.
|
|
308
|
+
*/
|
|
309
|
+
genderIdentity?: string;
|
|
310
|
+
/**
|
|
311
|
+
* First surname.
|
|
312
|
+
*/
|
|
313
|
+
lastName1: string;
|
|
314
|
+
/**
|
|
315
|
+
* Second surname.
|
|
316
|
+
*/
|
|
317
|
+
lastName2?: string;
|
|
318
|
+
/**
|
|
319
|
+
* Marital status; Soltero by default.
|
|
320
|
+
*/
|
|
321
|
+
maritalStatus?: string;
|
|
322
|
+
/**
|
|
323
|
+
* DANE municipality code of residence.
|
|
324
|
+
*/
|
|
325
|
+
municipalityCode: string;
|
|
326
|
+
/**
|
|
327
|
+
* Neighborhood code; 0 by default.
|
|
328
|
+
*/
|
|
329
|
+
neighborhoodCode?: string;
|
|
330
|
+
/**
|
|
331
|
+
* Occupation.
|
|
332
|
+
*/
|
|
333
|
+
occupation?: string;
|
|
334
|
+
/**
|
|
335
|
+
* Mobile phone.
|
|
336
|
+
*/
|
|
337
|
+
phoneMobile?: string;
|
|
338
|
+
/**
|
|
339
|
+
* Office phone.
|
|
340
|
+
*/
|
|
341
|
+
phoneOffice?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Population code; 06 by default.
|
|
344
|
+
*/
|
|
345
|
+
populationCode?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Population group code; 99 by default.
|
|
348
|
+
*/
|
|
349
|
+
populationGroupCode?: string;
|
|
350
|
+
/**
|
|
351
|
+
* Profession code.
|
|
352
|
+
*/
|
|
353
|
+
professionCode?: string;
|
|
354
|
+
/**
|
|
355
|
+
* Sex at birth: M or F.
|
|
356
|
+
*/
|
|
357
|
+
sex: "M" | "F";
|
|
358
|
+
/**
|
|
359
|
+
* Sexual orientation; SinDatos by default.
|
|
360
|
+
*/
|
|
361
|
+
sexualOrientation?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Vital status; Vivo by default.
|
|
364
|
+
*/
|
|
365
|
+
status?: string;
|
|
366
|
+
/**
|
|
367
|
+
* Socioeconomic stratum; 1 by default.
|
|
368
|
+
*/
|
|
369
|
+
stratum?: string;
|
|
370
|
+
/**
|
|
371
|
+
* U (urban, the default) or R.
|
|
372
|
+
*/
|
|
373
|
+
zone?: "U" | "R";
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* A failed answer.
|
|
377
|
+
*/
|
|
378
|
+
export interface VisoftCreatePatientUnprocessableContentError {
|
|
379
|
+
data: null;
|
|
380
|
+
error: VisoftCreatePatientUnprocessableContentFailure;
|
|
381
|
+
/**
|
|
382
|
+
* What every answer carries besides its data or error.
|
|
383
|
+
*/
|
|
384
|
+
metadata: VisoftResponseMetadata;
|
|
385
|
+
success: false;
|
|
386
|
+
}
|
|
387
|
+
export type VisoftCreatePatientUnprocessableContentFailure = CredentialsRejectedFailure | VisoftAgencyNotServedFailure;
|
|
388
|
+
/**
|
|
389
|
+
* A failed answer.
|
|
390
|
+
*/
|
|
391
|
+
export interface VisoftCredentialsRejectedError {
|
|
392
|
+
data: null;
|
|
393
|
+
/**
|
|
394
|
+
* The clinical system rejected the username or password, or the user is
|
|
395
|
+
* blocked.
|
|
396
|
+
*/
|
|
397
|
+
error: CredentialsRejectedFailure;
|
|
398
|
+
/**
|
|
399
|
+
* What every answer carries besides its data or error.
|
|
400
|
+
*/
|
|
401
|
+
metadata: VisoftResponseMetadata;
|
|
402
|
+
success: false;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* A failed answer.
|
|
406
|
+
*/
|
|
407
|
+
export interface VisoftLookupPatientBadGatewayError {
|
|
408
|
+
data: null;
|
|
409
|
+
error: LookupPatientBadGatewayFailure;
|
|
410
|
+
/**
|
|
411
|
+
* What every answer carries besides its data or error.
|
|
412
|
+
*/
|
|
413
|
+
metadata: VisoftResponseMetadata;
|
|
414
|
+
success: false;
|
|
415
|
+
}
|
|
416
|
+
export interface VisoftLookupPatientBody {
|
|
417
|
+
/**
|
|
418
|
+
* The connection to run on. Optional when the organization has one Visoft
|
|
419
|
+
* connection; required when it has several. Another organization's connection
|
|
420
|
+
* is CONNECTION_NOT_FOUND.
|
|
421
|
+
*/
|
|
422
|
+
connectionId?: string;
|
|
423
|
+
/**
|
|
424
|
+
* The patient's document number: letters and digits only, without dots,
|
|
425
|
+
* spaces or hyphens.
|
|
426
|
+
*/
|
|
427
|
+
documentNumber: string;
|
|
428
|
+
/**
|
|
429
|
+
* none (the default): the record alone. current: also the patient's current
|
|
430
|
+
* agenda and admissions. all: past appointments too.
|
|
431
|
+
*/
|
|
432
|
+
history?: "none" | "current" | "all";
|
|
433
|
+
/**
|
|
434
|
+
* Read SIIPS again instead of the connection's cache (contracts 12 h,
|
|
435
|
+
* services 6 h, professionals 1 h, a patient 5 min).
|
|
436
|
+
*/
|
|
437
|
+
refresh?: boolean;
|
|
438
|
+
}
|
|
439
|
+
export interface VisoftPatient {
|
|
440
|
+
/**
|
|
441
|
+
* Home address. Empty when SIIPS holds none.
|
|
442
|
+
*/
|
|
443
|
+
address: string;
|
|
444
|
+
/**
|
|
445
|
+
* Affiliation type (C: cotizante…). Empty when SIIPS holds none.
|
|
446
|
+
*/
|
|
447
|
+
affiliateType: string;
|
|
448
|
+
/**
|
|
449
|
+
* Birth date. YYYY-MM-DD, or empty.
|
|
450
|
+
*/
|
|
451
|
+
birthDate: string;
|
|
452
|
+
/**
|
|
453
|
+
* S when SIIPS records diabetes. Empty when SIIPS holds none.
|
|
454
|
+
*/
|
|
455
|
+
chronicDiabetes: string;
|
|
456
|
+
/**
|
|
457
|
+
* Since when. Empty when SIIPS holds none.
|
|
458
|
+
*/
|
|
459
|
+
chronicDiabetesSince: string;
|
|
460
|
+
/**
|
|
461
|
+
* S when SIIPS records hypertension. Empty when SIIPS holds none.
|
|
462
|
+
*/
|
|
463
|
+
chronicHypertension: string;
|
|
464
|
+
/**
|
|
465
|
+
* Since when. Empty when SIIPS holds none.
|
|
466
|
+
*/
|
|
467
|
+
chronicHypertensionSince: string;
|
|
468
|
+
/**
|
|
469
|
+
* S when SIIPS records chronic kidney disease. Empty when SIIPS holds none.
|
|
470
|
+
*/
|
|
471
|
+
chronicRenal: string;
|
|
472
|
+
/**
|
|
473
|
+
* Since when. Empty when SIIPS holds none.
|
|
474
|
+
*/
|
|
475
|
+
chronicRenalSince: string;
|
|
476
|
+
/**
|
|
477
|
+
* City of residence. Empty when SIIPS holds none.
|
|
478
|
+
*/
|
|
479
|
+
cityName: string;
|
|
480
|
+
/**
|
|
481
|
+
* Country of residence (COL…). Empty when SIIPS holds none.
|
|
482
|
+
*/
|
|
483
|
+
country: string;
|
|
484
|
+
/**
|
|
485
|
+
* DANE department code of residence. Empty when SIIPS holds none.
|
|
486
|
+
*/
|
|
487
|
+
departmentCode: string;
|
|
488
|
+
/**
|
|
489
|
+
* Department of residence. Empty when SIIPS holds none.
|
|
490
|
+
*/
|
|
491
|
+
departmentName: string;
|
|
492
|
+
/**
|
|
493
|
+
* S when SIIPS records a mental disability. Empty when SIIPS holds none.
|
|
494
|
+
*/
|
|
495
|
+
disabilityMental: string;
|
|
496
|
+
/**
|
|
497
|
+
* S when SIIPS records a physical disability. Empty when SIIPS holds none.
|
|
498
|
+
*/
|
|
499
|
+
disabilityPhysical: string;
|
|
500
|
+
/**
|
|
501
|
+
* S when SIIPS records a psychiatric disability. Empty when SIIPS holds none.
|
|
502
|
+
*/
|
|
503
|
+
disabilityPsychiatric: string;
|
|
504
|
+
/**
|
|
505
|
+
* The patient's document number.
|
|
506
|
+
*/
|
|
507
|
+
documentNumber: string;
|
|
508
|
+
/**
|
|
509
|
+
* The document's type, as SIIPS codes it (CC, TI, RC…). Empty when SIIPS
|
|
510
|
+
* holds none.
|
|
511
|
+
*/
|
|
512
|
+
documentType: string;
|
|
513
|
+
/**
|
|
514
|
+
* Education code. Empty when SIIPS holds none.
|
|
515
|
+
*/
|
|
516
|
+
educationCode: string;
|
|
517
|
+
/**
|
|
518
|
+
* Email address. Empty when SIIPS holds none.
|
|
519
|
+
*/
|
|
520
|
+
email: string;
|
|
521
|
+
/**
|
|
522
|
+
* Ethnicity. Empty when SIIPS holds none.
|
|
523
|
+
*/
|
|
524
|
+
ethnicity: string;
|
|
525
|
+
/**
|
|
526
|
+
* First given name. Empty when SIIPS holds none.
|
|
527
|
+
*/
|
|
528
|
+
firstName1: string;
|
|
529
|
+
/**
|
|
530
|
+
* Second given name. Empty when SIIPS holds none.
|
|
531
|
+
*/
|
|
532
|
+
firstName2: string;
|
|
533
|
+
/**
|
|
534
|
+
* Given names and surnames, in that order, as SIIPS spells them.
|
|
535
|
+
*/
|
|
536
|
+
fullName: string;
|
|
537
|
+
/**
|
|
538
|
+
* Gender identity. Empty when SIIPS holds none.
|
|
539
|
+
*/
|
|
540
|
+
genderIdentity: string;
|
|
541
|
+
/**
|
|
542
|
+
* First surname. Empty when SIIPS holds none.
|
|
543
|
+
*/
|
|
544
|
+
lastName1: string;
|
|
545
|
+
/**
|
|
546
|
+
* Second surname. Empty when SIIPS holds none.
|
|
547
|
+
*/
|
|
548
|
+
lastName2: string;
|
|
549
|
+
/**
|
|
550
|
+
* Latitude of the address. Empty when SIIPS holds none.
|
|
551
|
+
*/
|
|
552
|
+
latitude: string;
|
|
553
|
+
/**
|
|
554
|
+
* Longitude of the address. Empty when SIIPS holds none.
|
|
555
|
+
*/
|
|
556
|
+
longitude: string;
|
|
557
|
+
/**
|
|
558
|
+
* Marital status. Empty when SIIPS holds none.
|
|
559
|
+
*/
|
|
560
|
+
maritalStatus: string;
|
|
561
|
+
/**
|
|
562
|
+
* DANE municipality code of residence. Empty when SIIPS holds none.
|
|
563
|
+
*/
|
|
564
|
+
municipalityCode: string;
|
|
565
|
+
/**
|
|
566
|
+
* Neighborhood code. Empty when SIIPS holds none.
|
|
567
|
+
*/
|
|
568
|
+
neighborhoodCode: string;
|
|
569
|
+
/**
|
|
570
|
+
* Occupation. Empty when SIIPS holds none.
|
|
571
|
+
*/
|
|
572
|
+
occupation: string;
|
|
573
|
+
/**
|
|
574
|
+
* Mobile phone. Empty when SIIPS holds none.
|
|
575
|
+
*/
|
|
576
|
+
phoneMobile: string;
|
|
577
|
+
/**
|
|
578
|
+
* Office phone. Empty when SIIPS holds none.
|
|
579
|
+
*/
|
|
580
|
+
phoneOffice: string;
|
|
581
|
+
/**
|
|
582
|
+
* Population code. Empty when SIIPS holds none.
|
|
583
|
+
*/
|
|
584
|
+
populationCode: string;
|
|
585
|
+
/**
|
|
586
|
+
* Population group code. Empty when SIIPS holds none.
|
|
587
|
+
*/
|
|
588
|
+
populationGroupCode: string;
|
|
589
|
+
/**
|
|
590
|
+
* Profession code. Empty when SIIPS holds none.
|
|
591
|
+
*/
|
|
592
|
+
professionCode: string;
|
|
593
|
+
/**
|
|
594
|
+
* SIIPS's own note on the record. Empty when SIIPS holds none.
|
|
595
|
+
*/
|
|
596
|
+
providerMessage: string;
|
|
597
|
+
/**
|
|
598
|
+
* Sex at birth: M or F. Empty when SIIPS holds none.
|
|
599
|
+
*/
|
|
600
|
+
sex: string;
|
|
601
|
+
/**
|
|
602
|
+
* Sexual orientation. Empty when SIIPS holds none.
|
|
603
|
+
*/
|
|
604
|
+
sexualOrientation: string;
|
|
605
|
+
/**
|
|
606
|
+
* Vital status (Vivo…). Empty when SIIPS holds none.
|
|
607
|
+
*/
|
|
608
|
+
status: string;
|
|
609
|
+
/**
|
|
610
|
+
* Socioeconomic stratum, 1 to 6. Empty when SIIPS holds none.
|
|
611
|
+
*/
|
|
612
|
+
stratum: string;
|
|
613
|
+
/**
|
|
614
|
+
* U (urban) or R (rural). Empty when SIIPS holds none.
|
|
615
|
+
*/
|
|
616
|
+
zone: string;
|
|
617
|
+
}
|
|
618
|
+
export interface VisoftPatientHistory {
|
|
619
|
+
/**
|
|
620
|
+
* The patient's admissions, as SIIPS lists them.
|
|
621
|
+
*/
|
|
622
|
+
admissions: VisoftAdmission[];
|
|
623
|
+
/**
|
|
624
|
+
* The patient's agenda, as SIIPS lists it: never cached, read for this call.
|
|
625
|
+
*/
|
|
626
|
+
appointments: VisoftAppointment[];
|
|
627
|
+
}
|
|
628
|
+
export interface VisoftPatientLookup {
|
|
629
|
+
/**
|
|
630
|
+
* Whether SIIPS has a patient with that document.
|
|
631
|
+
*/
|
|
632
|
+
found: boolean;
|
|
633
|
+
/**
|
|
634
|
+
* The agenda and admissions, when history asked for them and the patient was
|
|
635
|
+
* found.
|
|
636
|
+
*/
|
|
637
|
+
history: VisoftPatientHistory | null;
|
|
638
|
+
/**
|
|
639
|
+
* The record; null when not found.
|
|
640
|
+
*/
|
|
641
|
+
patient: VisoftPatient | null;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* A successful answer.
|
|
645
|
+
*/
|
|
646
|
+
export interface VisoftPatientLookupResponse {
|
|
647
|
+
data: VisoftPatientLookup;
|
|
648
|
+
error: null;
|
|
649
|
+
/**
|
|
650
|
+
* What every answer carries besides its data or error.
|
|
651
|
+
*/
|
|
652
|
+
metadata: VisoftResponseMetadata;
|
|
653
|
+
success: true;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* SIIPS has no patient with that document.
|
|
657
|
+
*/
|
|
658
|
+
export interface VisoftPatientNotFoundFailure {
|
|
659
|
+
/**
|
|
660
|
+
* The failure code, stable across releases.
|
|
661
|
+
*/
|
|
662
|
+
code: "PATIENT_NOT_FOUND";
|
|
663
|
+
/**
|
|
664
|
+
* No fields.
|
|
665
|
+
*/
|
|
666
|
+
data: Empty;
|
|
667
|
+
/**
|
|
668
|
+
* What went wrong, for people; it never contains input values.
|
|
669
|
+
*/
|
|
670
|
+
message: string;
|
|
671
|
+
/**
|
|
672
|
+
* Whether repeating the same request may succeed.
|
|
673
|
+
*/
|
|
674
|
+
retryable: false;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* SIIPS answered the registration or correction, but a fresh read did not show
|
|
678
|
+
* it saved. Nothing is retried; read the patient before trying again.
|
|
679
|
+
*/
|
|
680
|
+
export interface VisoftPatientNotSavedFailure {
|
|
681
|
+
/**
|
|
682
|
+
* The failure code, stable across releases.
|
|
683
|
+
*/
|
|
684
|
+
code: "PATIENT_NOT_SAVED";
|
|
685
|
+
/**
|
|
686
|
+
* No fields.
|
|
687
|
+
*/
|
|
688
|
+
data: Empty;
|
|
689
|
+
/**
|
|
690
|
+
* What went wrong, for people; it never contains input values.
|
|
691
|
+
*/
|
|
692
|
+
message: string;
|
|
693
|
+
/**
|
|
694
|
+
* Whether repeating the same request may succeed.
|
|
695
|
+
*/
|
|
696
|
+
retryable: false;
|
|
697
|
+
}
|
|
698
|
+
export interface VisoftPatientRegistration {
|
|
699
|
+
/**
|
|
700
|
+
* Whether SIIPS already had the patient: nothing was written, and the stored
|
|
701
|
+
* record answers.
|
|
702
|
+
*/
|
|
703
|
+
alreadyExisted: boolean;
|
|
704
|
+
/**
|
|
705
|
+
* Whether this call registered the patient.
|
|
706
|
+
*/
|
|
707
|
+
created: boolean;
|
|
708
|
+
patient: VisoftPatient;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* A successful answer.
|
|
712
|
+
*/
|
|
713
|
+
export interface VisoftPatientRegistrationResponse {
|
|
714
|
+
data: VisoftPatientRegistration;
|
|
715
|
+
error: null;
|
|
716
|
+
/**
|
|
717
|
+
* What every answer carries besides its data or error.
|
|
718
|
+
*/
|
|
719
|
+
metadata: VisoftResponseMetadata;
|
|
720
|
+
success: true;
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* A successful answer.
|
|
724
|
+
*/
|
|
725
|
+
export interface VisoftPatientResponse {
|
|
726
|
+
data: VisoftPatient;
|
|
727
|
+
error: null;
|
|
728
|
+
/**
|
|
729
|
+
* What every answer carries besides its data or error.
|
|
730
|
+
*/
|
|
731
|
+
metadata: VisoftResponseMetadata;
|
|
732
|
+
success: true;
|
|
733
|
+
}
|
|
734
|
+
export declare const VisoftAppointmentCodec: import("../../_/codec.js").Codec;
|
|
735
|
+
export declare const VisoftPatientHistoryCodec: import("../../_/codec.js").Codec;
|
|
736
|
+
export declare const VisoftPatientLookupCodec: import("../../_/codec.js").Codec;
|
|
737
|
+
export declare const VisoftPatientLookupResponseCodec: import("../../_/codec.js").Codec;
|