@integraciones_doc24/sdk 1.16.29 → 1.16.31

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.
Files changed (48) hide show
  1. package/README.md +206 -206
  2. package/lib/baseSdk/consultation.d.ts +99 -0
  3. package/lib/baseSdk/consultation.js +23 -0
  4. package/lib/baseSdk/diagnostica.d.ts +54 -54
  5. package/lib/baseSdk/diagnostica.js +82 -82
  6. package/lib/baseSdk/external.d.ts +177 -177
  7. package/lib/baseSdk/external.js +96 -96
  8. package/lib/baseSdk/index.d.ts +2 -2
  9. package/lib/baseSdk/index.js +77 -76
  10. package/lib/baseSdk/user.d.ts +112 -112
  11. package/lib/baseSdk/user.js +136 -136
  12. package/lib/index.d.ts +400 -400
  13. package/lib/index.js +22 -22
  14. package/lib/request/index.d.ts +4 -4
  15. package/lib/request/index.js +32 -32
  16. package/lib/request/token.d.ts +2 -2
  17. package/lib/request/token.js +34 -34
  18. package/lib/request/validation.d.ts +10 -10
  19. package/lib/request/validation.js +28 -28
  20. package/lib/schemas.d.ts +2523 -2518
  21. package/lib/schemas.js +549 -548
  22. package/lib/types.d.ts +170 -170
  23. package/lib/types.js +2 -2
  24. package/lib/userSdk/binah.d.ts +21 -21
  25. package/lib/userSdk/binah.js +20 -20
  26. package/lib/userSdk/chat.d.ts +57 -57
  27. package/lib/userSdk/chat.js +98 -98
  28. package/lib/userSdk/external.d.ts +34 -34
  29. package/lib/userSdk/external.js +72 -72
  30. package/lib/userSdk/index.d.ts +2 -2
  31. package/lib/userSdk/index.js +33 -33
  32. package/lib/userSdk/patients.d.ts +58 -58
  33. package/lib/userSdk/patients.js +89 -89
  34. package/lib/userSdk/schedule.d.ts +58 -58
  35. package/lib/userSdk/schedule.js +89 -89
  36. package/lib/userSdk/specialties.d.ts +19 -19
  37. package/lib/userSdk/specialties.js +48 -48
  38. package/lib/userSdk/videoVisit.d.ts +188 -187
  39. package/lib/userSdk/videoVisit.js +253 -250
  40. package/lib/utils.d.ts +3 -3
  41. package/lib/utils.js +43 -43
  42. package/lib/webhook/index.d.ts +2 -2
  43. package/lib/webhook/index.js +67 -67
  44. package/lib/webhook/responses.d.ts +35 -35
  45. package/lib/webhook/responses.js +42 -42
  46. package/lib/webhook/token.d.ts +2 -2
  47. package/lib/webhook/token.js +23 -23
  48. package/package.json +37 -37
package/README.md CHANGED
@@ -1,206 +1,206 @@
1
- # @integraciones_doc24/sdk
2
-
3
- Node.JS library for accessing doc24 api
4
-
5
- ## Installation
6
-
7
- `npm i @integraciones_doc24/sdk`
8
-
9
- ## Usage
10
-
11
- ```ts
12
- import {doc24Sdk} from '@integraciones_doc24/sdk';
13
-
14
- const getBaseSdk = () =>
15
- doc24Sdk({
16
- url: 'https://tapi.doc24.com.ar/ws/sdk',
17
- credentials: {
18
- iss: 'myissuer',
19
- key: 'mysecret',
20
- },
21
- });
22
-
23
- const getSpecialities = async (user) => {
24
- const baseSdk = await getBaseSdk();
25
-
26
- const userSdk = await baseSdk.getUserInstance(user);
27
-
28
- return await userSdk.getSpecialties('instant', 'ES');
29
- };
30
-
31
- const getRequestHandler = async () => {
32
- const baseSdk = await getBaseSdk();
33
- return baseSdk.getRequestHandler({
34
- credentials: {
35
- iss: 'doc24issuer',
36
- key: 'doc24secret',
37
- },
38
- baseAddress: 'http://myaddress.com/route/to/webhook',
39
- eventHandlers: {
40
- onAppointmentStatusChange: ({id, status, changeDate}) => {
41
- console.log({id, status, changeDate});
42
- },
43
- onConsultationStatusChange: ({
44
- id,
45
- invitationId,
46
- status,
47
- changeDate,
48
- vcToken,
49
- }) => {
50
- console.log({id, invitationId, status, changeDate, vcToken});
51
- },
52
- onInvitationStatusChange: ({id, status, changeDate}) => {
53
- console.log({id, status, changeDate});
54
- },
55
- onChatUpdate: ({id, status, patientId, professionalId, date}) => {
56
- console.log({id, status, patientId, professionalId, date});
57
- },
58
- },
59
- });
60
- };
61
- ```
62
-
63
- The library exports the function `doc24Sdk`. It takes one parameters of type `SdkParams`, and returns a `BaseSdk`.
64
- It also returns an extra `getRequestHandler` function that takes a `RequestHandlerParams`
65
-
66
- ```ts
67
- type SdkCredentials = {
68
- iss: string;
69
- key: string;
70
- };
71
- type SdkParams = {
72
- url: string;
73
- credentials: SdkCredentials;
74
- };
75
- export type BaseSdk = {
76
- declareUser: (params: DeclareUserParams) => Promise<DeclareUserResponse>;
77
- getUserId: (user: User) => Promise<number>;
78
- getUserInstance: (user: User | number) => Promise<UserSdk>;
79
- getProfessional: (professionalId: number) => Promise<Professional>;
80
- getAvailableScheduleClinics: () => Promise<AvailableScheduleClinics>;
81
- enroll: (params: EnrollmentParams) => Promise<void>;
82
- getCoverageInfo: (identificationValue: string) => Promise<CoverageInfo>;
83
- sendVerificationCode: (params: SendVerificationCodeParams) => Promise<void>;
84
- getDiagnosticaHistory: (
85
- patient: DiagnosticaPatientFilter,
86
- from: Date,
87
- to: Date,
88
- ) => Promise<DiagnosticaHistoryAppointment[]>;
89
- getDiagnosticaDeepLink: (
90
- kiosk: string,
91
- user: DiagnosticaUser,
92
- patient: DiagnosticaPatient,
93
- ) => Promise<DiagnosticaDeepLinkResponse>;
94
- getDiagnosticaAccess: (
95
- kiosk: string,
96
- user: DiagnosticaUser,
97
- patient: DiagnosticaPatient,
98
- ) => Promise<void>;
99
- externalLogin: (
100
- params: ExternalLoginParams,
101
- ) => Promise<ExternalLoginResponse>;
102
- preExternalEnrollment: (params: PreExternalEnrollmentParams) => Promise<void>;
103
- externalEnrollment: (
104
- params: ExternalEnrollmentParams,
105
- ) => Promise<ExternalLoginResponse>;
106
- sendExternalVerificationCode: (
107
- params: SendExternalVerificationCodeParams,
108
- ) => Promise<void>;
109
- verifyExternalVerificationCode: (
110
- params: VerifyExternalVerificationCodeParams,
111
- ) => Promise<any>;
112
- externalResetPassword: (params: ExternalResetPasswordParams) => Promise<any>;
113
- getExternalStudiesHistoryLink: (
114
- patient: ExternalPatient,
115
- ) => Promise<string | null>;
116
- getExternalAppointmentsLink: (
117
- identificationValue: string,
118
- birthdate: Date,
119
- ) => Promise<string | null>;
120
- getExternalAppointments: () => Promise<ExternalAppointment[]>;
121
- cancelExternalAppointment: (
122
- appointmentId: ExternalAppointment,
123
- ) => Promise<void>;
124
- };
125
-
126
- type RequestHandlerParams = {
127
- // Credentials that doc24 should use when singing the jwt
128
- credentials: SdkCredentials;
129
- eventHandlers: Webhook.Events;
130
- // Address in which doc24 should send the requests
131
- baseAddress: string;
132
- };
133
- ```
134
-
135
- `getRequestHandler` should be called only once, and takes care of managing the webhook that receives events from doc24.
136
-
137
- ### Express example
138
-
139
- ```ts
140
- const handler = await getRequestHandler();
141
- app.all('/doc24', async (req, res) => {
142
- const response = await handler({
143
- headers: req.headers,
144
- body: req.body,
145
- query: req.query,
146
- });
147
-
148
- res.status(response.status.code).json(response.data);
149
- });
150
- ```
151
-
152
- ### UserSdk
153
-
154
- Most of the methods need a user specified, so `getUserInstance` returns an instance of `UserSdk` with them.
155
-
156
- ```ts
157
- export type UserSdk = {
158
- declarePatient: (
159
- params: DeclarePatientParams,
160
- ) => Promise<DeclarePatientResponse>;
161
- getPatientId: (patient: Patient) => Promise<number>;
162
- deletePatient: (patientId: number) => Promise<void>;
163
- getSpecialties: (
164
- mode: SpecialtyMode,
165
- language: string,
166
- ) => Promise<Specialty[]>;
167
- getScheduleDates: (
168
- patientId: number,
169
- filter?: ScheduleAvailabilityFilter,
170
- ) => Promise<Date[]>;
171
- getSchedule: (
172
- patientId: number,
173
- specialtyId: number,
174
- filter?: ScheduleFilter,
175
- ) => Promise<AvailableAppointment[]>;
176
- getAppointment: (appointmentId: number) => Promise<Appointment>;
177
- getAppointmentByVcToken: (vcToken: string) => Promise<Appointment>;
178
- scheduleVideoVisit: (params: ScheduleParameters) => Promise<string>;
179
- cancelVideoVisit: (vcToken: string) => Promise<void>;
180
- getVideoVisit: (vcToken: string, patientId: number) => Promise<VideoVisit>;
181
- getVideoVisitDetails: (vcId: number) => Promise<VideoVisitDetails>;
182
- getCompleteVideoVisitDetails: (
183
- vcId: number,
184
- ) => Promise<CompleteVideoVisitDetails>;
185
- getVideoVisitLink: (
186
- vcToken: string,
187
- patientId: number,
188
- ) => Promise<string | null>;
189
- getPatientVideoVisitHistory: (
190
- patientId: number,
191
- ) => Promise<HistoricalVideoVisit[]>;
192
- getActiveVideoVisits: () => Promise<ActiveVideoVisitData[]>;
193
- getAvailableChatrooms: (
194
- patientId: number,
195
- specialtyId: number,
196
- filter: ChatroomAvailabilityFilter,
197
- ) => Promise<AvailableChatroom[]>;
198
- createNewChat: (chatParameters: ChatParameters) => Promise<number>;
199
- getPatientChats: (patientId: number) => Promise<ChatDetails[]>;
200
- getChatPosts: (chatId: number) => Promise<ChatPost[]>;
201
- cancelChat: (chatId: number) => Promise<void>;
202
- sendChatMessage: (chatId: number, message: string) => Promise<number>;
203
- getPatientPHR: (patientId: number) => Promise<string>;
204
- userId: number;
205
- };
206
- ```
1
+ # @integraciones_doc24/sdk
2
+
3
+ Node.JS library for accessing doc24 api
4
+
5
+ ## Installation
6
+
7
+ `npm i @integraciones_doc24/sdk`
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import {doc24Sdk} from '@integraciones_doc24/sdk';
13
+
14
+ const getBaseSdk = () =>
15
+ doc24Sdk({
16
+ url: 'https://tapi.doc24.com.ar/ws/sdk',
17
+ credentials: {
18
+ iss: 'myissuer',
19
+ key: 'mysecret',
20
+ },
21
+ });
22
+
23
+ const getSpecialities = async (user) => {
24
+ const baseSdk = await getBaseSdk();
25
+
26
+ const userSdk = await baseSdk.getUserInstance(user);
27
+
28
+ return await userSdk.getSpecialties('instant', 'ES');
29
+ };
30
+
31
+ const getRequestHandler = async () => {
32
+ const baseSdk = await getBaseSdk();
33
+ return baseSdk.getRequestHandler({
34
+ credentials: {
35
+ iss: 'doc24issuer',
36
+ key: 'doc24secret',
37
+ },
38
+ baseAddress: 'http://myaddress.com/route/to/webhook',
39
+ eventHandlers: {
40
+ onAppointmentStatusChange: ({id, status, changeDate}) => {
41
+ console.log({id, status, changeDate});
42
+ },
43
+ onConsultationStatusChange: ({
44
+ id,
45
+ invitationId,
46
+ status,
47
+ changeDate,
48
+ vcToken,
49
+ }) => {
50
+ console.log({id, invitationId, status, changeDate, vcToken});
51
+ },
52
+ onInvitationStatusChange: ({id, status, changeDate}) => {
53
+ console.log({id, status, changeDate});
54
+ },
55
+ onChatUpdate: ({id, status, patientId, professionalId, date}) => {
56
+ console.log({id, status, patientId, professionalId, date});
57
+ },
58
+ },
59
+ });
60
+ };
61
+ ```
62
+
63
+ The library exports the function `doc24Sdk`. It takes one parameters of type `SdkParams`, and returns a `BaseSdk`.
64
+ It also returns an extra `getRequestHandler` function that takes a `RequestHandlerParams`
65
+
66
+ ```ts
67
+ type SdkCredentials = {
68
+ iss: string;
69
+ key: string;
70
+ };
71
+ type SdkParams = {
72
+ url: string;
73
+ credentials: SdkCredentials;
74
+ };
75
+ export type BaseSdk = {
76
+ declareUser: (params: DeclareUserParams) => Promise<DeclareUserResponse>;
77
+ getUserId: (user: User) => Promise<number>;
78
+ getUserInstance: (user: User | number) => Promise<UserSdk>;
79
+ getProfessional: (professionalId: number) => Promise<Professional>;
80
+ getAvailableScheduleClinics: () => Promise<AvailableScheduleClinics>;
81
+ enroll: (params: EnrollmentParams) => Promise<void>;
82
+ getCoverageInfo: (identificationValue: string) => Promise<CoverageInfo>;
83
+ sendVerificationCode: (params: SendVerificationCodeParams) => Promise<void>;
84
+ getDiagnosticaHistory: (
85
+ patient: DiagnosticaPatientFilter,
86
+ from: Date,
87
+ to: Date,
88
+ ) => Promise<DiagnosticaHistoryAppointment[]>;
89
+ getDiagnosticaDeepLink: (
90
+ kiosk: string,
91
+ user: DiagnosticaUser,
92
+ patient: DiagnosticaPatient,
93
+ ) => Promise<DiagnosticaDeepLinkResponse>;
94
+ getDiagnosticaAccess: (
95
+ kiosk: string,
96
+ user: DiagnosticaUser,
97
+ patient: DiagnosticaPatient,
98
+ ) => Promise<void>;
99
+ externalLogin: (
100
+ params: ExternalLoginParams,
101
+ ) => Promise<ExternalLoginResponse>;
102
+ preExternalEnrollment: (params: PreExternalEnrollmentParams) => Promise<void>;
103
+ externalEnrollment: (
104
+ params: ExternalEnrollmentParams,
105
+ ) => Promise<ExternalLoginResponse>;
106
+ sendExternalVerificationCode: (
107
+ params: SendExternalVerificationCodeParams,
108
+ ) => Promise<void>;
109
+ verifyExternalVerificationCode: (
110
+ params: VerifyExternalVerificationCodeParams,
111
+ ) => Promise<any>;
112
+ externalResetPassword: (params: ExternalResetPasswordParams) => Promise<any>;
113
+ getExternalStudiesHistoryLink: (
114
+ patient: ExternalPatient,
115
+ ) => Promise<string | null>;
116
+ getExternalAppointmentsLink: (
117
+ identificationValue: string,
118
+ birthdate: Date,
119
+ ) => Promise<string | null>;
120
+ getExternalAppointments: () => Promise<ExternalAppointment[]>;
121
+ cancelExternalAppointment: (
122
+ appointmentId: ExternalAppointment,
123
+ ) => Promise<void>;
124
+ };
125
+
126
+ type RequestHandlerParams = {
127
+ // Credentials that doc24 should use when singing the jwt
128
+ credentials: SdkCredentials;
129
+ eventHandlers: Webhook.Events;
130
+ // Address in which doc24 should send the requests
131
+ baseAddress: string;
132
+ };
133
+ ```
134
+
135
+ `getRequestHandler` should be called only once, and takes care of managing the webhook that receives events from doc24.
136
+
137
+ ### Express example
138
+
139
+ ```ts
140
+ const handler = await getRequestHandler();
141
+ app.all('/doc24', async (req, res) => {
142
+ const response = await handler({
143
+ headers: req.headers,
144
+ body: req.body,
145
+ query: req.query,
146
+ });
147
+
148
+ res.status(response.status.code).json(response.data);
149
+ });
150
+ ```
151
+
152
+ ### UserSdk
153
+
154
+ Most of the methods need a user specified, so `getUserInstance` returns an instance of `UserSdk` with them.
155
+
156
+ ```ts
157
+ export type UserSdk = {
158
+ declarePatient: (
159
+ params: DeclarePatientParams,
160
+ ) => Promise<DeclarePatientResponse>;
161
+ getPatientId: (patient: Patient) => Promise<number>;
162
+ deletePatient: (patientId: number) => Promise<void>;
163
+ getSpecialties: (
164
+ mode: SpecialtyMode,
165
+ language: string,
166
+ ) => Promise<Specialty[]>;
167
+ getScheduleDates: (
168
+ patientId: number,
169
+ filter?: ScheduleAvailabilityFilter,
170
+ ) => Promise<Date[]>;
171
+ getSchedule: (
172
+ patientId: number,
173
+ specialtyId: number,
174
+ filter?: ScheduleFilter,
175
+ ) => Promise<AvailableAppointment[]>;
176
+ getAppointment: (appointmentId: number) => Promise<Appointment>;
177
+ getAppointmentByVcToken: (vcToken: string) => Promise<Appointment>;
178
+ scheduleVideoVisit: (params: ScheduleParameters) => Promise<string>;
179
+ cancelVideoVisit: (vcToken: string) => Promise<void>;
180
+ getVideoVisit: (vcToken: string, patientId: number) => Promise<VideoVisit>;
181
+ getVideoVisitDetails: (vcId: number) => Promise<VideoVisitDetails>;
182
+ getCompleteVideoVisitDetails: (
183
+ vcId: number,
184
+ ) => Promise<CompleteVideoVisitDetails>;
185
+ getVideoVisitLink: (
186
+ vcToken: string,
187
+ patientId: number,
188
+ ) => Promise<string | null>;
189
+ getPatientVideoVisitHistory: (
190
+ patientId: number,
191
+ ) => Promise<HistoricalVideoVisit[]>;
192
+ getActiveVideoVisits: () => Promise<ActiveVideoVisitData[]>;
193
+ getAvailableChatrooms: (
194
+ patientId: number,
195
+ specialtyId: number,
196
+ filter: ChatroomAvailabilityFilter,
197
+ ) => Promise<AvailableChatroom[]>;
198
+ createNewChat: (chatParameters: ChatParameters) => Promise<number>;
199
+ getPatientChats: (patientId: number) => Promise<ChatDetails[]>;
200
+ getChatPosts: (chatId: number) => Promise<ChatPost[]>;
201
+ cancelChat: (chatId: number) => Promise<void>;
202
+ sendChatMessage: (chatId: number, message: string) => Promise<number>;
203
+ getPatientPHR: (patientId: number) => Promise<string>;
204
+ userId: number;
205
+ };
206
+ ```
@@ -0,0 +1,99 @@
1
+ import { Doc24 } from '../types';
2
+ export declare const getConsultationMethods: (url: string, credentials: Doc24.SdkCredentials) => {
3
+ getConsultation: (consultationId: number) => Promise<{
4
+ pdf_laboratorios?: any;
5
+ pdf_otras?: any;
6
+ pdf_imagenes?: any;
7
+ snapshot_paciente?: any;
8
+ snapshot_profesional?: any;
9
+ custom_1?: any;
10
+ custom_2?: any;
11
+ custom_3?: any;
12
+ custom_4?: any;
13
+ custom_5?: any;
14
+ tag_idioma: string;
15
+ id_consulta: number;
16
+ tipo_consulta: string;
17
+ estado: string;
18
+ tipo_usuario_cancelacion: string | null;
19
+ fecha_cancelacion: string | null;
20
+ estado_pago: string;
21
+ referencia_mercadopago: string | null;
22
+ id_atencion: number;
23
+ id_profesional: number;
24
+ profesional: string;
25
+ modalidad_paciente_turno: string | null;
26
+ provincia_consultorio: string | null;
27
+ localidad_consultorio: string | null;
28
+ domicilio_consultorio: string | null;
29
+ marketplace: string;
30
+ profesional_matriculas: any[];
31
+ info_paciente: {
32
+ email?: string | null | undefined;
33
+ apellido?: string | null | undefined;
34
+ nombre?: string | null | undefined;
35
+ genero?: string | null | undefined;
36
+ valor_identificacion?: string | null | undefined;
37
+ telefono?: string | null | undefined;
38
+ id_pais?: string | null | undefined;
39
+ provincia?: string | null | undefined;
40
+ localidad?: string | null | undefined;
41
+ domicilio?: string | null | undefined;
42
+ fecha_de_nacimiento?: string | null | undefined;
43
+ tag_idioma?: number | null | undefined;
44
+ estado_paciente?: number | null | undefined;
45
+ fecha_suspension?: string | null | undefined;
46
+ fecha_activacion?: string | null | undefined;
47
+ fecha_modificacion?: string | null | undefined;
48
+ fecha_baja?: string | null | undefined;
49
+ id_paciente: number;
50
+ id_tipo_de_identificacion: number;
51
+ };
52
+ fecha_primer_llamado_profesional: string;
53
+ fecha_inicio: string;
54
+ fecha_primer_acceso_paciente: string;
55
+ fecha_ultimo_acceso_paciente: string;
56
+ fecha_corte_medico: string;
57
+ fecha_fin: string;
58
+ intentos_conexion: number;
59
+ id_turno: number | null;
60
+ fecha_turno_invitacion: string | null;
61
+ hora_turno_invitacion: string | null;
62
+ firma_profesional: string | null;
63
+ id_especialidad: number;
64
+ especialidad: string;
65
+ motivo: string;
66
+ enfermedad_actual: string;
67
+ conducta_terapeutica: string;
68
+ signos_alerta: string;
69
+ motivo_extendido_consulta: string;
70
+ presencial_requerida: string;
71
+ derivada: string;
72
+ derivada_id_especialidad: string | number;
73
+ derivada_presencial_obligatoria: string;
74
+ derivada_comentarios: string | null;
75
+ diagnostico: any[];
76
+ practicas: any[];
77
+ link_medicacion: any[];
78
+ medicacion: any[];
79
+ link_receta: string | null;
80
+ link_compra: string | null;
81
+ identificador_receta: string | null;
82
+ codigo_verificacion_receta: string | null;
83
+ financiador: string;
84
+ registro_custom: any[];
85
+ pdf_medicacion: any[];
86
+ uploads: any[];
87
+ files_atencion: any[];
88
+ motivo_cancelacion: string | null;
89
+ detalle_cancelacion: string | null;
90
+ documentos: string;
91
+ id_consultorio: number;
92
+ token: string;
93
+ tipo_protocolo_seguimiento: string | null;
94
+ form_data: {};
95
+ ubicacion: string;
96
+ link_full: string;
97
+ timestamp: string;
98
+ } | null>;
99
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getConsultationMethods = void 0;
4
+ const zod_1 = require("zod");
5
+ const schemas_1 = require("../schemas");
6
+ const request_1 = require("../request");
7
+ const validation_1 = require("../request/validation");
8
+ const getConsultationMethods = (url, credentials) => {
9
+ const getConsultation = validation_1.validateFunction(zod_1.tuple([zod_1.number()]), schemas_1.doc24Schemas.consultation, async (consultationId) => {
10
+ // Replace /sdk with /api/v2 in the base URL
11
+ const apiUrl = url.replace('/sdk', '/api/v2');
12
+ const apiRequest = await request_1.getRequestFactory(apiUrl, credentials);
13
+ const path = `/consulta/${consultationId}`;
14
+ const response = await apiRequest('GET', path);
15
+ // Remove pdf_atencion and pdf_certificado from the response
16
+ const { pdf_atencion, pdf_certificado, ...attention } = response === null || response === void 0 ? void 0 : response.data;
17
+ return attention;
18
+ });
19
+ return {
20
+ getConsultation,
21
+ };
22
+ };
23
+ exports.getConsultationMethods = getConsultationMethods;
@@ -1,54 +1,54 @@
1
- import { RequestMaker } from '../request';
2
- export declare const getDiagnosticaMethods: (makeRequest: RequestMaker) => {
3
- getDiagnosticaHistory: (patient: {
4
- gender?: "m" | "f" | "o" | undefined;
5
- identificationType: "DNI";
6
- identificationValue: string;
7
- }, from: Date, to: Date) => Promise<{
8
- date: Date;
9
- location: string;
10
- exams: string[];
11
- deepLink: string;
12
- }[]>;
13
- getDiagnosticaDeepLink: (kiosk: string, user: {
14
- gender?: "m" | "f" | "o" | undefined;
15
- firstName: string;
16
- lastName: string;
17
- identificationType: "DNI";
18
- identificationValue: string;
19
- phone: string;
20
- email: string;
21
- language: string;
22
- birthday: Date;
23
- }, patient: {
24
- gender?: "m" | "f" | "o" | undefined;
25
- firstName: string;
26
- lastName: string;
27
- identificationType: "DNI";
28
- identificationValue: string;
29
- birthday: Date;
30
- }) => Promise<{
31
- forwardingRequired: true;
32
- deepLink: string;
33
- } | {
34
- forwardingRequired: false;
35
- }>;
36
- getDiagnosticaAccess: (kiosk: string, user: {
37
- gender?: "m" | "f" | "o" | undefined;
38
- firstName: string;
39
- lastName: string;
40
- identificationType: "DNI";
41
- identificationValue: string;
42
- phone: string;
43
- email: string;
44
- language: string;
45
- birthday: Date;
46
- }, patient: {
47
- gender?: "m" | "f" | "o" | undefined;
48
- firstName: string;
49
- lastName: string;
50
- identificationType: "DNI";
51
- identificationValue: string;
52
- birthday: Date;
53
- }) => Promise<void>;
54
- };
1
+ import { RequestMaker } from '../request';
2
+ export declare const getDiagnosticaMethods: (makeRequest: RequestMaker) => {
3
+ getDiagnosticaHistory: (patient: {
4
+ gender?: "m" | "f" | "o" | undefined;
5
+ identificationType: "DNI";
6
+ identificationValue: string;
7
+ }, from: Date, to: Date) => Promise<{
8
+ date: Date;
9
+ location: string;
10
+ exams: string[];
11
+ deepLink: string;
12
+ }[]>;
13
+ getDiagnosticaDeepLink: (kiosk: string, user: {
14
+ gender?: "m" | "f" | "o" | undefined;
15
+ firstName: string;
16
+ lastName: string;
17
+ identificationType: "DNI";
18
+ identificationValue: string;
19
+ phone: string;
20
+ email: string;
21
+ language: string;
22
+ birthday: Date;
23
+ }, patient: {
24
+ gender?: "m" | "f" | "o" | undefined;
25
+ firstName: string;
26
+ lastName: string;
27
+ identificationType: "DNI";
28
+ identificationValue: string;
29
+ birthday: Date;
30
+ }) => Promise<{
31
+ forwardingRequired: true;
32
+ deepLink: string;
33
+ } | {
34
+ forwardingRequired: false;
35
+ }>;
36
+ getDiagnosticaAccess: (kiosk: string, user: {
37
+ gender?: "m" | "f" | "o" | undefined;
38
+ firstName: string;
39
+ lastName: string;
40
+ identificationType: "DNI";
41
+ identificationValue: string;
42
+ phone: string;
43
+ email: string;
44
+ language: string;
45
+ birthday: Date;
46
+ }, patient: {
47
+ gender?: "m" | "f" | "o" | undefined;
48
+ firstName: string;
49
+ lastName: string;
50
+ identificationType: "DNI";
51
+ identificationValue: string;
52
+ birthday: Date;
53
+ }) => Promise<void>;
54
+ };