@phenyxhealth/sdk 1.1.0 → 1.1.2
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/.claude/phenyx-sdk.md +0 -4
- package/README.md +1 -6
- package/package.json +1 -1
- package/src/PhenyxApi.js +0 -12
- package/types/index.d.ts +0 -11
package/.claude/phenyx-sdk.md
CHANGED
|
@@ -180,7 +180,6 @@ await api.updateSectionQaStatus(qa: any, formDataId: string): Promise<void>
|
|
|
180
180
|
```javascript
|
|
181
181
|
api.globalTypes.humanResources
|
|
182
182
|
api.globalTypes.sendingDepartment
|
|
183
|
-
api.globalTypes.cei9 // Codigos CEI-9
|
|
184
183
|
api.globalTypes.cie10 // Codigos CIE-10
|
|
185
184
|
api.globalTypes.treatmentClass
|
|
186
185
|
api.globalTypes.treatmentSubClass
|
|
@@ -285,7 +284,6 @@ interface PatientData {
|
|
|
285
284
|
name: string;
|
|
286
285
|
birthDate: string;
|
|
287
286
|
sendingDepartmentId?: string;
|
|
288
|
-
cei9Id?: string;
|
|
289
287
|
cie10Id?: string;
|
|
290
288
|
[key: string]: any;
|
|
291
289
|
}
|
|
@@ -294,7 +292,6 @@ interface CreatePatientData {
|
|
|
294
292
|
name: string;
|
|
295
293
|
birthDate: string;
|
|
296
294
|
sendingDepartmentId?: string;
|
|
297
|
-
cei9Id?: string;
|
|
298
295
|
cie10Id?: string;
|
|
299
296
|
[key: string]: any;
|
|
300
297
|
}
|
|
@@ -377,7 +374,6 @@ const patientId = await api.createPatient({
|
|
|
377
374
|
name: 'Juan Perez',
|
|
378
375
|
birthDate: '1975-03-15',
|
|
379
376
|
sendingDepartmentId: api.getSendingDepartmentIdByName('Oncologia'),
|
|
380
|
-
cei9Id: api.getCei9IdByName('C78.9'),
|
|
381
377
|
cie10Id: api.getCie10IdByName('C78.9'),
|
|
382
378
|
});
|
|
383
379
|
|
package/README.md
CHANGED
|
@@ -244,9 +244,6 @@ const color = getContrastingColor(); // '244, 67, 54' (formato RGB)
|
|
|
244
244
|
// Obtener ID de departamento emisor
|
|
245
245
|
const deptId = api.getSendingDepartmentIdByName("Oncología");
|
|
246
246
|
|
|
247
|
-
// Obtener ID de código CEI9
|
|
248
|
-
const cei9Id = api.getCei9IdByName("C78.9");
|
|
249
|
-
|
|
250
247
|
// Obtener ID de código CIE10
|
|
251
248
|
const cie10Id = api.getCie10IdByName("C78.9");
|
|
252
249
|
```
|
|
@@ -354,7 +351,6 @@ const processPatient = async () => {
|
|
|
354
351
|
name: "Juan Pérez",
|
|
355
352
|
birthDate: "1980-01-15",
|
|
356
353
|
sendingDepartmentId: api.getSendingDepartmentIdByName("Oncología"),
|
|
357
|
-
cei9Id: api.getCei9IdByName("C78.9"),
|
|
358
354
|
cie10Id: api.getCie10IdByName("C78.9"),
|
|
359
355
|
});
|
|
360
356
|
|
|
@@ -388,10 +384,9 @@ try {
|
|
|
388
384
|
}
|
|
389
385
|
|
|
390
386
|
try {
|
|
391
|
-
const cei9Id = api.getCei9IdByName("C00.0");
|
|
392
387
|
const cie10Id = api.getCie10IdByName("C00.0");
|
|
393
388
|
} catch (error) {
|
|
394
|
-
console.error("Código
|
|
389
|
+
console.error("Código CIE10 no encontrado:", error.message);
|
|
395
390
|
}
|
|
396
391
|
```
|
|
397
392
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phenyxhealth/sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "SDK oficial para PhenyxHealth - Sistema integral de gestión de radioterapia. Incluye gestión de pacientes, recursos humanos, equipos médicos y configuración global.",
|
|
6
6
|
"main": "./src/index.js",
|
package/src/PhenyxApi.js
CHANGED
|
@@ -62,10 +62,6 @@ class PhenyxApi {
|
|
|
62
62
|
type: 'Global',
|
|
63
63
|
name: 'Sending Department',
|
|
64
64
|
},
|
|
65
|
-
cei9: {
|
|
66
|
-
type: 'Global',
|
|
67
|
-
name: 'CEI9',
|
|
68
|
-
},
|
|
69
65
|
cie10: {
|
|
70
66
|
type: 'Global',
|
|
71
67
|
name: 'CIE10',
|
|
@@ -428,14 +424,6 @@ class PhenyxApi {
|
|
|
428
424
|
return sendingDepartment.id;
|
|
429
425
|
}
|
|
430
426
|
|
|
431
|
-
getCei9IdByName = (name) => {
|
|
432
|
-
const cei9 = this.getGlobalInfoElement(this.globalTypes.cei9, name);
|
|
433
|
-
if (!cei9) {
|
|
434
|
-
throw new Error(`CEI9 ${name} not found`);
|
|
435
|
-
}
|
|
436
|
-
return cei9.id;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
427
|
/**
|
|
440
428
|
* Obtiene el ID de un CIE10 por nombre
|
|
441
429
|
* @param {string} name - Nombre del CIE10
|
package/types/index.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ declare module "@phenyxhealth/sdk" {
|
|
|
36
36
|
name: string;
|
|
37
37
|
birthDate: string;
|
|
38
38
|
sendingDepartmentId?: string;
|
|
39
|
-
cei9Id?: string;
|
|
40
39
|
cie10Id?: string;
|
|
41
40
|
[key: string]: any;
|
|
42
41
|
}
|
|
@@ -127,7 +126,6 @@ declare module "@phenyxhealth/sdk" {
|
|
|
127
126
|
name: string;
|
|
128
127
|
birthDate: string;
|
|
129
128
|
sendingDepartmentId?: string;
|
|
130
|
-
cei9Id?: string;
|
|
131
129
|
cie10Id?: string;
|
|
132
130
|
[key: string]: any;
|
|
133
131
|
}
|
|
@@ -220,7 +218,6 @@ declare module "@phenyxhealth/sdk" {
|
|
|
220
218
|
globalTypes: {
|
|
221
219
|
humanResources: GlobalType;
|
|
222
220
|
sendingDepartment: GlobalType;
|
|
223
|
-
cei9: GlobalType;
|
|
224
221
|
cie10: GlobalType;
|
|
225
222
|
treatmentClass: GlobalType;
|
|
226
223
|
treatmentSubClass: GlobalType;
|
|
@@ -416,14 +413,6 @@ declare module "@phenyxhealth/sdk" {
|
|
|
416
413
|
*/
|
|
417
414
|
getCie10IdByName(name: string): string;
|
|
418
415
|
|
|
419
|
-
/**
|
|
420
|
-
* Obtiene el ID de un CIE10 por nombre
|
|
421
|
-
* @param name Nombre del CIE10
|
|
422
|
-
* @returns ID del CIE10
|
|
423
|
-
* @throws Error si no se encuentra el CIE10
|
|
424
|
-
*/
|
|
425
|
-
getCie10IdByName(name: string): string;
|
|
426
|
-
|
|
427
416
|
/**
|
|
428
417
|
* Obtiene el estado de peer review formateado
|
|
429
418
|
* @param status Estado a formatear
|