@precisa-saude/fhir 0.2.0 → 0.3.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 +13 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @precisa-saude/fhir
|
|
2
2
|
|
|
3
|
-
Tipos FHIR R4,
|
|
3
|
+
Tipos FHIR R4, 200+ definições de biomarcadores com códigos LOINC, faixas de referência (SBPC/ML, SBC, SBD), conversores e importadores para o contexto clínico brasileiro.
|
|
4
4
|
|
|
5
5
|
## Instalação
|
|
6
6
|
|
|
@@ -36,9 +36,9 @@ const bundle = labResultToFHIRBundle(report, observations, userProfile);
|
|
|
36
36
|
```ts
|
|
37
37
|
import { normalizeCode, codeToLoinc, loincToCode } from '@precisa-saude/fhir';
|
|
38
38
|
|
|
39
|
-
normalizeCode('CholHDL_Ratio');
|
|
40
|
-
codeToLoinc('HDL');
|
|
41
|
-
loincToCode('2085-9');
|
|
39
|
+
normalizeCode('CholHDL_Ratio'); // 'Cholesterol_HDL_Ratio'
|
|
40
|
+
codeToLoinc('HDL'); // '2085-9'
|
|
41
|
+
loincToCode('2085-9'); // 'HDL'
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
### Consultar definições de biomarcadores
|
|
@@ -49,7 +49,7 @@ import { getDefinitionByCode, getAllDefinitions } from '@precisa-saude/fhir';
|
|
|
49
49
|
const def = getDefinitionByCode('HDL');
|
|
50
50
|
// { code: 'HDL', loinc: '2085-9', names: { pt: [...], en: [...] }, ... }
|
|
51
51
|
|
|
52
|
-
const all = getAllDefinitions(); //
|
|
52
|
+
const all = getAllDefinitions(); // 200+ definições
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
## Sub-path imports
|
|
@@ -67,14 +67,14 @@ import { validateFHIRObservation } from '@precisa-saude/fhir/validators';
|
|
|
67
67
|
|
|
68
68
|
## Módulos
|
|
69
69
|
|
|
70
|
-
| Sub-path
|
|
71
|
-
|
|
|
72
|
-
| `/biomarkers`
|
|
73
|
-
| `/reference-ranges`
|
|
74
|
-
| `/converter`
|
|
75
|
-
| `/importer`
|
|
76
|
-
| `/units`
|
|
77
|
-
| `/validators`
|
|
70
|
+
| Sub-path | Descrição |
|
|
71
|
+
| ------------------- | ------------------------------------------------------------------ |
|
|
72
|
+
| `/biomarkers` | 200+ definições com códigos LOINC, nomes pt/en, categorias |
|
|
73
|
+
| `/reference-ranges` | Faixas de referência por sexo/idade (SBPC/ML, SBC, SBD, OMS) |
|
|
74
|
+
| `/converter` | Converte dados laboratoriais para FHIR R4 Bundle |
|
|
75
|
+
| `/importer` | Importa FHIR Bundle de volta para estruturas internas |
|
|
76
|
+
| `/units` | Mapeamento de unidades, conversão para UCUM |
|
|
77
|
+
| `/validators` | Validação de recursos FHIR (DiagnosticReport, Observation, Bundle) |
|
|
78
78
|
|
|
79
79
|
## Aviso médico
|
|
80
80
|
|
package/package.json
CHANGED