@precisa-saude/fhir-calculators 0.10.1 → 0.12.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 +21 -21
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -21,19 +21,19 @@ import { phenoage } from '@precisa-saude/fhir-calculators';
|
|
|
21
21
|
|
|
22
22
|
const result = phenoage.calculatePhenoAge({
|
|
23
23
|
chronologicalAge: 45,
|
|
24
|
-
albumin: 42,
|
|
25
|
-
creatinine: 80,
|
|
26
|
-
glucose: 5.2,
|
|
27
|
-
crp: 1.5,
|
|
24
|
+
albumin: 42, // g/L
|
|
25
|
+
creatinine: 80, // μmol/L
|
|
26
|
+
glucose: 5.2, // mmol/L
|
|
27
|
+
crp: 1.5, // mg/L
|
|
28
28
|
lymphocytePercent: 30,
|
|
29
|
-
mcv: 88,
|
|
30
|
-
rdw: 13.2,
|
|
29
|
+
mcv: 88, // fL
|
|
30
|
+
rdw: 13.2, // %
|
|
31
31
|
alkalinePhosphatase: 65, // U/L
|
|
32
|
-
wbc: 6.0,
|
|
32
|
+
wbc: 6.0, // 10^9/L
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
console.log(result.phenoAge);
|
|
36
|
-
console.log(result.ageDifference);
|
|
35
|
+
console.log(result.phenoAge); // 42.3 (idade biológica)
|
|
36
|
+
console.log(result.ageDifference); // -2.7 (anos mais jovem)
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
### BrDMrisc — Risco de diabetes tipo 2
|
|
@@ -44,13 +44,13 @@ Implementação do modelo BrDMrisc (Bracco et al. 2023) para estimativa de risco
|
|
|
44
44
|
import { brdmrisc } from '@precisa-saude/fhir-calculators';
|
|
45
45
|
|
|
46
46
|
const result = brdmrisc.calculateBrDMrisc({
|
|
47
|
-
fpg: 105,
|
|
48
|
-
hba1c: 5.8,
|
|
49
|
-
triglycerides: 180,
|
|
50
|
-
hdlc: 42,
|
|
47
|
+
fpg: 105, // mg/dL — glicemia de jejum
|
|
48
|
+
hba1c: 5.8, // %
|
|
49
|
+
triglycerides: 180, // mg/dL
|
|
50
|
+
hdlc: 42, // mg/dL
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
console.log(result.riskPercent);
|
|
53
|
+
console.log(result.riskPercent); // 18.5 (% risco em 10 anos)
|
|
54
54
|
console.log(result.riskCategory); // 'moderate'
|
|
55
55
|
console.log(result.modelUsed.name); // 'FPG + HbA1c + Lipids'
|
|
56
56
|
```
|
|
@@ -69,17 +69,17 @@ const derived = computeDerivedBiomarkers([
|
|
|
69
69
|
]);
|
|
70
70
|
|
|
71
71
|
// Retorna: HOMA-IR = (95 × 12) / 405, VLDL = 150 / 5
|
|
72
|
-
derived.forEach(d => console.log(`${d.code}: ${d.value} ${d.unit}`));
|
|
72
|
+
derived.forEach((d) => console.log(`${d.code}: ${d.value} ${d.unit}`));
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
## Referências acadêmicas
|
|
76
76
|
|
|
77
|
-
| Calculadora
|
|
78
|
-
|
|
|
79
|
-
| PhenoAge
|
|
80
|
-
| BrDMrisc
|
|
81
|
-
| HOMA-IR
|
|
82
|
-
| VLDL
|
|
77
|
+
| Calculadora | Referência |
|
|
78
|
+
| ----------- | ------------------------------------------------------------------------------------- |
|
|
79
|
+
| PhenoAge | Levine ME et al. (2018). An epigenetic biomarker of aging. _Aging_ 10(4):573-591 |
|
|
80
|
+
| BrDMrisc | Bracco PA et al. (2023). BrDMrisc model for type 2 diabetes risk in Brazilians |
|
|
81
|
+
| HOMA-IR | Matthews DR et al. (1985). Homeostasis model assessment. _Diabetologia_ 28(7):412-419 |
|
|
82
|
+
| VLDL | Friedewald WT et al. (1972). Estimation of LDL cholesterol. _Clin Chem_ 18(6):499-502 |
|
|
83
83
|
|
|
84
84
|
## Aviso médico
|
|
85
85
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@precisa-saude/fhir-calculators",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Calculadoras clínicas — PhenoAge, BrDMrisc, biomarcadores derivados (HOMA-IR, VLDL, IMC)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fhir",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@precisa-saude/fhir": "^0.
|
|
41
|
+
"@precisa-saude/fhir": "^0.12.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsup": "^8.3.5",
|