@precisa-saude/fhir 0.15.0 → 0.15.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.
Files changed (32) hide show
  1. package/dist/biomarkers.cjs +2 -2
  2. package/dist/biomarkers.js +1 -1
  3. package/dist/{chunk-EW5GLFSC.cjs → chunk-3NZA6WMU.cjs} +23 -5
  4. package/dist/chunk-3NZA6WMU.cjs.map +1 -0
  5. package/dist/{chunk-4YQOKZX7.js → chunk-4I5G4SJ6.js} +2 -2
  6. package/dist/{chunk-NR4OTNC4.js → chunk-5BDMX2JP.js} +2 -2
  7. package/dist/{chunk-ICSMWCVT.js → chunk-FEVGNEFO.js} +23 -5
  8. package/dist/chunk-FEVGNEFO.js.map +1 -0
  9. package/dist/{chunk-OPS7XHIL.cjs → chunk-Q3O23BM7.cjs} +3 -3
  10. package/dist/{chunk-OPS7XHIL.cjs.map → chunk-Q3O23BM7.cjs.map} +1 -1
  11. package/dist/{chunk-KIYE6S66.js → chunk-V5X3RU6M.js} +75 -10
  12. package/dist/chunk-V5X3RU6M.js.map +1 -0
  13. package/dist/{chunk-NOJRDKFO.cjs → chunk-Y2SVZ6GE.cjs} +4 -4
  14. package/dist/{chunk-NOJRDKFO.cjs.map → chunk-Y2SVZ6GE.cjs.map} +1 -1
  15. package/dist/{chunk-3IOAP7CG.cjs → chunk-ZKN5UI7R.cjs} +75 -10
  16. package/dist/chunk-ZKN5UI7R.cjs.map +1 -0
  17. package/dist/cli.js +97 -14
  18. package/dist/converter.cjs +3 -3
  19. package/dist/converter.js +2 -2
  20. package/dist/importer.cjs +3 -3
  21. package/dist/importer.js +2 -2
  22. package/dist/index.cjs +6 -6
  23. package/dist/index.js +4 -4
  24. package/dist/reference-ranges.cjs +2 -2
  25. package/dist/reference-ranges.js +1 -1
  26. package/package.json +1 -1
  27. package/dist/chunk-3IOAP7CG.cjs.map +0 -1
  28. package/dist/chunk-EW5GLFSC.cjs.map +0 -1
  29. package/dist/chunk-ICSMWCVT.js.map +0 -1
  30. package/dist/chunk-KIYE6S66.js.map +0 -1
  31. /package/dist/{chunk-4YQOKZX7.js.map → chunk-4I5G4SJ6.js.map} +0 -0
  32. /package/dist/{chunk-NR4OTNC4.js.map → chunk-5BDMX2JP.js.map} +0 -0
package/dist/cli.js CHANGED
@@ -158,9 +158,13 @@ var BIOMARKER_DEFINITIONS = [
158
158
  unit: "nmol/L"
159
159
  },
160
160
  {
161
+ // LOINC 43583-4 = "Lipoprotein a [Moles/volume] in Serum or Plasma" (nmol/L).
162
+ // Anteriormente 10835-7 ("Lipoprotein a [Mass/volume]", mg/dL),
163
+ // incompatível com a unidade nmol/L declarada. SBC 2025 recomenda
164
+ // ensaio independente de isoforma reportado em nmol/L.
161
165
  category: "coracao",
162
166
  code: "Lipoprotein_a",
163
- loinc: "10835-7",
167
+ loinc: "43583-4",
164
168
  names: {
165
169
  en: ["Lipoprotein (a)", "Lp(a)"],
166
170
  pt: ["Lipoprote\xEDna (a)", "Lp(a)"]
@@ -1006,9 +1010,18 @@ var BIOMARKER_DEFINITIONS = [
1006
1010
  unit: "nmol/L"
1007
1011
  },
1008
1012
  {
1013
+ // LOINC 99620-7 = "Omega 3 fatty acids (w3) [Moles/volume] in RBC.lysate".
1014
+ // Alinha à matriz das entradas irmãs Omega3_EPA (75097-6) e Omega3_DHA
1015
+ // (75095-0), ambas em hemácias. Anteriormente 35178-3 (mesmo analito em
1016
+ // Ser/Plas), incompatível com o uso clínico do Índice Ômega-3 (Harris &
1017
+ // von Schacky 2004), que é definido em membranas de hemácias.
1018
+ // Ressalva: LOINC declara moles/volume; o biomarcador armazena %.
1019
+ // Não há LOINC vigente para "Omega 3 total em % em RBC" — o `Omega3_Index`
1020
+ // (88998-0) cobre apenas EPA+DHA. Mantemos `unit: '%'` por consistência
1021
+ // com EPA/DHA (75095-0/75097-6 são [Entitic substance], também não-%).
1009
1022
  category: "nutrientes",
1010
1023
  code: "Omega3_Total",
1011
- loinc: "35178-3",
1024
+ loinc: "99620-7",
1012
1025
  names: {
1013
1026
  en: ["Omega-3 Total", "Total Omega-3"],
1014
1027
  pt: ["\xD4mega-3 Total"]
@@ -1480,11 +1493,16 @@ var BIOMARKER_DEFINITIONS = [
1480
1493
  unit: "mg/L"
1481
1494
  },
1482
1495
  {
1496
+ // LOINC 3091-6 = "Urea [Mass/volume] in Serum or Plasma" (mg/dL).
1497
+ // Anteriormente 3094-0 ("Urea nitrogen", BUN), inconsistente com a faixa
1498
+ // de referência brasileira (15-50 mg/dL) e com os nomes pt-BR (Ureia).
1499
+ // Aliases 'BUN' e 'Blood Urea Nitrogen' removidos para evitar matching
1500
+ // de relatórios de BUN contra faixas de Ureia (BUN ≈ Ureia / 2,14).
1483
1501
  category: "rins",
1484
1502
  code: "Urea",
1485
- loinc: "3094-0",
1503
+ loinc: "3091-6",
1486
1504
  names: {
1487
- en: ["Blood Urea Nitrogen", "BUN", "Urea"],
1505
+ en: ["Urea"],
1488
1506
  pt: ["Ureia", "Ur\xE9ia"]
1489
1507
  },
1490
1508
  unit: "mg/dL"
@@ -4180,8 +4198,14 @@ var biomarkerRangeDefinitions = {
4180
4198
  }
4181
4199
  ]
4182
4200
  },
4201
+ // AMH — fortemente dependente de idade e sexo. As variantes femininas por
4202
+ // faixa etária são a referência clínica; o `default` foi ajustado para
4203
+ // refletir uma faixa adulta conservadora (~18-40 anos, mulheres em idade
4204
+ // reprodutiva geral). optimalMax anterior (6.9 ng/mL) sobrepunha-se a
4205
+ // valores sugestivos de SOP ou risco de OHSS; clinicamente, valores acima
4206
+ // de ~4 ng/mL já merecem investigação.
4183
4207
  AMH: {
4184
- default: { max: 10, min: 1, optimalMax: 6.9, optimalMin: 2, unit: "ng/mL" },
4208
+ default: { max: 6, min: 1, optimalMax: 4, optimalMin: 1.5, unit: "ng/mL" },
4185
4209
  source: "tietz-7ed-2015",
4186
4210
  variants: [
4187
4211
  {
@@ -4319,6 +4343,12 @@ var biomarkerRangeDefinitions = {
4319
4343
  default: { max: 35, min: 0, optimalMax: 20, optimalMin: 0, unit: "pg/mL" },
4320
4344
  source: "sbc-ic-2018"
4321
4345
  },
4346
+ // Razão BUN/Creatinina — faixa 10-20 aplica-se ao Nitrogênio Ureico (BUN).
4347
+ // Laboratórios brasileiros que reportam Ureia (e não BUN) usam razão
4348
+ // Ureia/Creatinina, cuja faixa normal é aproximadamente 21-43
4349
+ // (Ureia ≈ BUN × 2,14). O biomarcador atualmente assume a convenção BUN;
4350
+ // consumidores que dosem Ureia devem converter ou reportar como razão
4351
+ // distinta. Ver issue #41 para alinhamento de nomenclatura/LOINC.
4322
4352
  BUN_Creatinine_Ratio: {
4323
4353
  default: { max: 20, min: 10, optimalMax: 18, optimalMin: 12, unit: "" },
4324
4354
  source: "tietz-7ed-2015"
@@ -4388,8 +4418,11 @@ var biomarkerRangeDefinitions = {
4388
4418
  default: { max: 106, min: 98, optimalMax: 105, optimalMin: 100, unit: "mEq/L" },
4389
4419
  source: "tietz-7ed-2015"
4390
4420
  },
4421
+ // Colesterol total — SBC 2017/2025: valor desejável < 190 mg/dL para adultos,
4422
+ // com ou sem jejum. Limite anterior (200 mg/dL) refletia a diretriz ATP III
4423
+ // (NCEP, 2002), superada pelas atualizações brasileiras.
4391
4424
  Cholesterol: {
4392
- default: { max: 200, min: 0, optimalMax: 180, optimalMin: 0, unit: "mg/dL" },
4425
+ default: { max: 190, min: 0, optimalMax: 170, optimalMin: 0, unit: "mg/dL" },
4393
4426
  source: "sbc-lipids-2025"
4394
4427
  },
4395
4428
  // Índice de Castelli I (CT/HDL-c)
@@ -4745,19 +4778,25 @@ var biomarkerRangeDefinitions = {
4745
4778
  }
4746
4779
  ]
4747
4780
  },
4781
+ // HDL — SBC 2017/2025: desejável > 40 mg/dL (♂) e > 50 mg/dL (♀).
4782
+ // A diretriz NÃO define teto de normalidade — HDL alto é cardioprotetor.
4783
+ // Limites superiores anteriormente fixados em 60 mg/dL geravam falsos
4784
+ // alertas. Mantém-se `max` apenas como limite técnico do gauge (100 mg/dL),
4785
+ // não como ponto de corte clínico; consumidores devem tratar `direction:
4786
+ // higher-better` como sinal autoritativo.
4748
4787
  HDL: {
4749
- default: { max: 60, min: 40, optimalMax: 60, optimalMin: 50, unit: "mg/dL" },
4788
+ default: { max: 100, min: 40, optimalMax: 100, optimalMin: 50, unit: "mg/dL" },
4750
4789
  direction: "higher-better",
4751
4790
  source: "sbc-lipids-2025",
4752
4791
  variants: [
4753
4792
  {
4754
4793
  ageMin: 18,
4755
- range: { max: 60, min: 40, optimalMax: 60, optimalMin: 45, unit: "mg/dL" },
4794
+ range: { max: 100, min: 40, optimalMax: 100, optimalMin: 45, unit: "mg/dL" },
4756
4795
  sex: "M"
4757
4796
  },
4758
4797
  {
4759
4798
  ageMin: 18,
4760
- range: { max: 60, min: 50, optimalMax: 60, optimalMin: 55, unit: "mg/dL" },
4799
+ range: { max: 100, min: 50, optimalMax: 100, optimalMin: 55, unit: "mg/dL" },
4761
4800
  sex: "F"
4762
4801
  }
4763
4802
  ]
@@ -4974,8 +5013,14 @@ var biomarkerRangeDefinitions = {
4974
5013
  default: { max: 35, min: 15, optimalMax: 28, optimalMin: 18, unit: "%" },
4975
5014
  source: "simopoulos-omega-ratio-2002"
4976
5015
  },
5016
+ // Lp(a) — SBC 2025 (seção 3.1.1.2.7): níveis ≥ 50 mg/dL ou ≥ 125 nmol/L são
5017
+ // considerados aumentados, com indicação de rastreamento em cascata familiar.
5018
+ // A diretriz recomenda ensaio independente de isoforma medido em nmol/L; a
5019
+ // unidade nmol/L é mantida aqui por refletir o padrão laboratorial atual.
5020
+ // Limites anteriores (max=75) refletiam pontos de corte expressos em mg/dL,
5021
+ // gerando incompatibilidade com a unidade nmol/L declarada.
4977
5022
  Lipoprotein_a: {
4978
- default: { max: 75, min: 0, optimalMax: 30, optimalMin: 0, unit: "nmol/L" },
5023
+ default: { max: 125, min: 0, optimalMax: 75, optimalMin: 0, unit: "nmol/L" },
4979
5024
  direction: "lower-better",
4980
5025
  source: "sbc-lipids-2025"
4981
5026
  },
@@ -5067,8 +5112,13 @@ var biomarkerRangeDefinitions = {
5067
5112
  default: { max: 8, min: 4, optimalMax: 8, optimalMin: 5.5, unit: "%" },
5068
5113
  source: "harris-omega3-2004"
5069
5114
  },
5115
+ // Ômega-3 Total (% de ácidos graxos eritrocitários) — Harris & von Schacky
5116
+ // (2004) propõem ≥ 8% como zona ótima de proteção cardiovascular; valores
5117
+ // entre 4% e 8% representam risco intermediário, < 4% risco alto.
5118
+ // optimalMin anterior (5.5%) ficava em zona intermediária, contradizendo
5119
+ // a literatura e o próprio texto educacional do `platform`.
5070
5120
  Omega3_Total: {
5071
- default: { max: 12, min: 3, optimalMax: 10, optimalMin: 5.5, unit: "%" },
5121
+ default: { max: 12, min: 3, optimalMax: 10, optimalMin: 8, unit: "%" },
5072
5122
  source: "harris-omega3-2004"
5073
5123
  },
5074
5124
  Omega6_Total: {
@@ -5104,9 +5154,37 @@ var biomarkerRangeDefinitions = {
5104
5154
  default: { max: 38, min: 18, optimalMax: 35, optimalMin: 20, unit: "mg/dL" },
5105
5155
  source: "tietz-7ed-2015"
5106
5156
  },
5157
+ // Progesterona — varia drasticamente com a fase do ciclo menstrual.
5158
+ // O schema atual não modela fase do ciclo, então adotamos faixas amplas
5159
+ // por sexo: o `default` cobre homens/fase folicular/pós-menopausa; a
5160
+ // variante feminina expande até a faixa esperada de fase lútea
5161
+ // (~3-20 ng/mL). Interpretação correta exige correlação com a fase do
5162
+ // ciclo, indisponível neste contexto.
5107
5163
  Progesterone: {
5108
5164
  default: { max: 0.9, min: 0.1, optimalMax: 0.7, optimalMin: 0.2, unit: "ng/mL" },
5109
- source: "tietz-7ed-2015"
5165
+ source: "tietz-7ed-2015",
5166
+ variants: [
5167
+ {
5168
+ ageMin: 18,
5169
+ range: { max: 0.9, min: 0.1, optimalMax: 0.6, optimalMin: 0.2, unit: "ng/mL" },
5170
+ sex: "M"
5171
+ },
5172
+ // Mulheres em idade reprodutiva: faixa que abarca fases folicular
5173
+ // (0.1-0.9 ng/mL) e lútea (3-20 ng/mL). Sem contexto de fase do ciclo,
5174
+ // valores intermediários (1-3 ng/mL) ficam em zona ambígua.
5175
+ {
5176
+ ageMax: 50,
5177
+ ageMin: 18,
5178
+ range: { max: 20, min: 0.1, optimalMax: 15, optimalMin: 0.2, unit: "ng/mL" },
5179
+ sex: "F"
5180
+ },
5181
+ // Pós-menopausa: valores tipicamente < 0.5 ng/mL (sem ovulação).
5182
+ {
5183
+ ageMin: 51,
5184
+ range: { max: 0.5, min: 0, optimalMax: 0.3, optimalMin: 0, unit: "ng/mL" },
5185
+ sex: "F"
5186
+ }
5187
+ ]
5110
5188
  },
5111
5189
  Prolactin: {
5112
5190
  default: { max: 18, min: 2, optimalMax: 15, optimalMin: 4, unit: "ng/mL" },
@@ -5384,8 +5462,13 @@ var biomarkerRangeDefinitions = {
5384
5462
  }
5385
5463
  ]
5386
5464
  },
5465
+ // Ureia — convenção brasileira (laboratórios reportam Ureia, não BUN).
5466
+ // Faixa adulta de 15-50 mg/dL (Ureia ≈ BUN × 2,14). Limites anteriores
5467
+ // (7-20 mg/dL) refletiam BUN/Nitrogênio Ureico, gerando falsos diagnósticos
5468
+ // de azotemia em pacientes com Ureia normal. LOINC 3094-0 (BUN) também
5469
+ // deve ser revisto em biomarkers.ts — ver issue #41.
5387
5470
  Urea: {
5388
- default: { max: 20, min: 7, optimalMax: 16, optimalMin: 10, unit: "mg/dL" },
5471
+ default: { max: 50, min: 15, optimalMax: 40, optimalMin: 20, unit: "mg/dL" },
5389
5472
  source: "tietz-7ed-2015"
5390
5473
  },
5391
5474
  UricAcid: {
@@ -6029,7 +6112,7 @@ async function main() {
6029
6112
  strict: false
6030
6113
  });
6031
6114
  if (values.version) {
6032
- process.stdout.write(`${"0.15.0"}
6115
+ process.stdout.write(`${"0.15.2"}
6033
6116
  `);
6034
6117
  return;
6035
6118
  }
@@ -3,13 +3,13 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkOPS7XHILcjs = require('./chunk-OPS7XHIL.cjs');
7
- require('./chunk-EW5GLFSC.cjs');
6
+ var _chunkQ3O23BM7cjs = require('./chunk-Q3O23BM7.cjs');
7
+ require('./chunk-3NZA6WMU.cjs');
8
8
  require('./chunk-MJ254F5K.cjs');
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.labObservationToFHIR = _chunkOPS7XHILcjs.labObservationToFHIR; exports.labReportToFHIR = _chunkOPS7XHILcjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkOPS7XHILcjs.labResultToFHIRBundle; exports.userProfileToFHIR = _chunkOPS7XHILcjs.userProfileToFHIR;
14
+ exports.labObservationToFHIR = _chunkQ3O23BM7cjs.labObservationToFHIR; exports.labReportToFHIR = _chunkQ3O23BM7cjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkQ3O23BM7cjs.labResultToFHIRBundle; exports.userProfileToFHIR = _chunkQ3O23BM7cjs.userProfileToFHIR;
15
15
  //# sourceMappingURL=converter.cjs.map
package/dist/converter.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  labReportToFHIR,
4
4
  labResultToFHIRBundle,
5
5
  userProfileToFHIR
6
- } from "./chunk-NR4OTNC4.js";
7
- import "./chunk-ICSMWCVT.js";
6
+ } from "./chunk-5BDMX2JP.js";
7
+ import "./chunk-FEVGNEFO.js";
8
8
  import "./chunk-R4MUCMO3.js";
9
9
  export {
10
10
  labObservationToFHIR,
package/dist/importer.cjs CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkNOJRDKFOcjs = require('./chunk-NOJRDKFO.cjs');
8
- require('./chunk-EW5GLFSC.cjs');
7
+ var _chunkY2SVZ6GEcjs = require('./chunk-Y2SVZ6GE.cjs');
8
+ require('./chunk-3NZA6WMU.cjs');
9
9
  require('./chunk-3ILBFLVQ.cjs');
10
10
 
11
11
 
@@ -13,5 +13,5 @@ require('./chunk-3ILBFLVQ.cjs');
13
13
 
14
14
 
15
15
 
16
- exports.MAX_FILE_SIZE = _chunkNOJRDKFOcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkNOJRDKFOcjs.MAX_OBSERVATIONS; exports.extractObservationsFromBundle = _chunkNOJRDKFOcjs.extractObservationsFromBundle; exports.mapFHIRObservationToInternal = _chunkNOJRDKFOcjs.mapFHIRObservationToInternal; exports.processImportBundle = _chunkNOJRDKFOcjs.processImportBundle;
16
+ exports.MAX_FILE_SIZE = _chunkY2SVZ6GEcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkY2SVZ6GEcjs.MAX_OBSERVATIONS; exports.extractObservationsFromBundle = _chunkY2SVZ6GEcjs.extractObservationsFromBundle; exports.mapFHIRObservationToInternal = _chunkY2SVZ6GEcjs.mapFHIRObservationToInternal; exports.processImportBundle = _chunkY2SVZ6GEcjs.processImportBundle;
17
17
  //# sourceMappingURL=importer.cjs.map
package/dist/importer.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  extractObservationsFromBundle,
5
5
  mapFHIRObservationToInternal,
6
6
  processImportBundle
7
- } from "./chunk-4YQOKZX7.js";
8
- import "./chunk-ICSMWCVT.js";
7
+ } from "./chunk-4I5G4SJ6.js";
8
+ import "./chunk-FEVGNEFO.js";
9
9
  import "./chunk-N3ZCOLG2.js";
10
10
  export {
11
11
  MAX_FILE_SIZE,
package/dist/index.cjs CHANGED
@@ -3,14 +3,14 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkOPS7XHILcjs = require('./chunk-OPS7XHIL.cjs');
6
+ var _chunkQ3O23BM7cjs = require('./chunk-Q3O23BM7.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
- var _chunkNOJRDKFOcjs = require('./chunk-NOJRDKFO.cjs');
13
+ var _chunkY2SVZ6GEcjs = require('./chunk-Y2SVZ6GE.cjs');
14
14
 
15
15
 
16
16
 
@@ -43,7 +43,7 @@ var _chunkNOJRDKFOcjs = require('./chunk-NOJRDKFO.cjs');
43
43
 
44
44
 
45
45
 
46
- var _chunkEW5GLFSCcjs = require('./chunk-EW5GLFSC.cjs');
46
+ var _chunk3NZA6WMUcjs = require('./chunk-3NZA6WMU.cjs');
47
47
 
48
48
 
49
49
 
@@ -51,7 +51,7 @@ var _chunkEW5GLFSCcjs = require('./chunk-EW5GLFSC.cjs');
51
51
 
52
52
 
53
53
 
54
- var _chunk3IOAP7CGcjs = require('./chunk-3IOAP7CG.cjs');
54
+ var _chunkZKN5UI7Rcjs = require('./chunk-ZKN5UI7R.cjs');
55
55
 
56
56
 
57
57
 
@@ -228,7 +228,7 @@ function interventionToFHIRObservation(intervention, patientId) {
228
228
  }
229
229
  function interventionsToFHIRBundle(interventions, userProfile) {
230
230
  const patientId = userProfile.userId;
231
- const fhirPatient = _chunkOPS7XHILcjs.userProfileToFHIR.call(void 0, userProfile);
231
+ const fhirPatient = _chunkQ3O23BM7cjs.userProfileToFHIR.call(void 0, userProfile);
232
232
  const entries = interventions.map((intervention) => {
233
233
  const isMedication = intervention.type === "medication" || intervention.type === "supplement";
234
234
  const resource = isMedication ? interventionToFHIRMedicationStatement(intervention, patientId) : interventionToFHIRObservation(intervention, patientId);
@@ -691,5 +691,5 @@ function cnsToFHIRIdentifier(cns) {
691
691
 
692
692
 
693
693
 
694
- exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS = _chunkEW5GLFSCcjs.BIOMARKER_DEFINITIONS; exports.BIOMARKER_UNITS = _chunkMJ254F5Kcjs.BIOMARKER_UNITS; exports.BODY_FAT_ZONES = BODY_FAT_ZONES; exports.CAC_INDICATOR_CODES = _chunkEW5GLFSCcjs.CAC_INDICATOR_CODES; exports.CATEGORY_GROUPS = CATEGORY_GROUPS; exports.CATEGORY_SCREENING_INTERVALS = CATEGORY_SCREENING_INTERVALS; exports.DEXA_CATEGORIES = _chunkEW5GLFSCcjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunkEW5GLFSCcjs.DEXA_INDICATOR_CODES; exports.MAX_FILE_SIZE = _chunkNOJRDKFOcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkNOJRDKFOcjs.MAX_OBSERVATIONS; exports.T_SCORE_ZONES = T_SCORE_ZONES; exports.UNIT_TO_UCUM = _chunkMJ254F5Kcjs.UNIT_TO_UCUM; exports.ZONE_DEFS = ZONE_DEFS; exports.applyFallbackReferenceRanges = _chunk3IOAP7CGcjs.applyFallbackReferenceRanges; exports.biomarkerRangeDefinitions = _chunk3IOAP7CGcjs.biomarkerRangeDefinitions; exports.calculateNextScreeningDate = calculateNextScreeningDate; exports.cnsToFHIRIdentifier = cnsToFHIRIdentifier; exports.codeToLoinc = _chunkEW5GLFSCcjs.codeToLoinc; exports.convertUnit = _chunkMJ254F5Kcjs.convertUnit; exports.cpfToFHIRIdentifier = cpfToFHIRIdentifier; exports.defaultReferenceRanges = _chunk3IOAP7CGcjs.defaultReferenceRanges; exports.extractObservationsFromBundle = _chunkNOJRDKFOcjs.extractObservationsFromBundle; exports.filterVisibleBiomarkers = _chunkEW5GLFSCcjs.filterVisibleBiomarkers; exports.findCodeByName = _chunkEW5GLFSCcjs.findCodeByName; exports.formatCNS = formatCNS; exports.formatCPF = formatCPF; exports.generateCacFullReference = _chunkEW5GLFSCcjs.generateCacFullReference; exports.generateDexaFullReference = _chunkEW5GLFSCcjs.generateDexaFullReference; exports.generateFilteredLLMReference = _chunkEW5GLFSCcjs.generateFilteredLLMReference; exports.generateLLMReference = _chunkEW5GLFSCcjs.generateLLMReference; exports.getAllCodes = _chunkEW5GLFSCcjs.getAllCodes; exports.getAllDefinitions = _chunkEW5GLFSCcjs.getAllDefinitions; exports.getAllLoincCodes = _chunkEW5GLFSCcjs.getAllLoincCodes; exports.getAllSearchPatterns = _chunkEW5GLFSCcjs.getAllSearchPatterns; exports.getBiomarkersByCategory = _chunkEW5GLFSCcjs.getBiomarkersByCategory; exports.getBiomarkersForCategories = _chunkEW5GLFSCcjs.getBiomarkersForCategories; exports.getCanonicalUnit = _chunkMJ254F5Kcjs.getCanonicalUnit; exports.getCategoriesByInterval = getCategoriesByInterval; exports.getCategoryGroup = getCategoryGroup; exports.getDaysUntilScreening = getDaysUntilScreening; exports.getDefaultUnit = _chunkMJ254F5Kcjs.getDefaultUnit; exports.getDefinitionByCode = _chunkEW5GLFSCcjs.getDefinitionByCode; exports.getDefinitionByLoinc = _chunkEW5GLFSCcjs.getDefinitionByLoinc; exports.getDefinitionsBySex = _chunkEW5GLFSCcjs.getDefinitionsBySex; exports.getDueCategories = getDueCategories; exports.getFallbackReferenceRange = _chunk3IOAP7CGcjs.getFallbackReferenceRange; exports.getRangeDirection = _chunk3IOAP7CGcjs.getRangeDirection; exports.getReferenceRange = _chunk3IOAP7CGcjs.getReferenceRange; exports.getSIUnit = _chunkMJ254F5Kcjs.getSIUnit; exports.getScreeningInterval = getScreeningInterval; exports.getSexForCode = _chunkEW5GLFSCcjs.getSexForCode; exports.getVisibleDefinitions = _chunkEW5GLFSCcjs.getVisibleDefinitions; exports.interventionToFHIRMedicationStatement = interventionToFHIRMedicationStatement; exports.interventionToFHIRObservation = interventionToFHIRObservation; exports.interventionsToFHIRBundle = interventionsToFHIRBundle; exports.isBiomarkerVisible = _chunkEW5GLFSCcjs.isBiomarkerVisible; exports.isCacDocument = _chunkEW5GLFSCcjs.isCacDocument; exports.isDexaDocument = _chunkEW5GLFSCcjs.isDexaDocument; exports.isScreeningDue = isScreeningDue; exports.isValidCode = _chunkEW5GLFSCcjs.isValidCode; exports.isValidLoinc = _chunkEW5GLFSCcjs.isValidLoinc; exports.labObservationToFHIR = _chunkOPS7XHILcjs.labObservationToFHIR; exports.labReportToFHIR = _chunkOPS7XHILcjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkOPS7XHILcjs.labResultToFHIRBundle; exports.listMappedSubcategories = listMappedSubcategories; exports.loincToCode = _chunkEW5GLFSCcjs.loincToCode; exports.mapFHIRObservationToInternal = _chunkNOJRDKFOcjs.mapFHIRObservationToInternal; exports.normalizeCode = _chunkEW5GLFSCcjs.normalizeCode; exports.plural = plural; exports.pluralCount = pluralCount; exports.pluralPhrase = pluralPhrase; exports.pluralPhraseCount = pluralPhraseCount; exports.processImportBundle = _chunkNOJRDKFOcjs.processImportBundle; exports.toBiomarkerTests = _chunkEW5GLFSCcjs.toBiomarkerTests; exports.unitToUCUM = _chunkMJ254F5Kcjs.unitToUCUM; exports.userProfileToFHIR = _chunkOPS7XHILcjs.userProfileToFHIR; exports.validateCNS = validateCNS; exports.validateCPF = validateCPF; exports.validateFHIRDiagnosticReport = _chunk3ILBFLVQcjs.validateFHIRDiagnosticReport; exports.validateFHIRImportBundle = _chunk3ILBFLVQcjs.validateFHIRImportBundle; exports.validateFHIRObservation = _chunk3ILBFLVQcjs.validateFHIRObservation; exports.validateLoincNameMatch = _chunkEW5GLFSCcjs.validateLoincNameMatch;
694
+ exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS = _chunk3NZA6WMUcjs.BIOMARKER_DEFINITIONS; exports.BIOMARKER_UNITS = _chunkMJ254F5Kcjs.BIOMARKER_UNITS; exports.BODY_FAT_ZONES = BODY_FAT_ZONES; exports.CAC_INDICATOR_CODES = _chunk3NZA6WMUcjs.CAC_INDICATOR_CODES; exports.CATEGORY_GROUPS = CATEGORY_GROUPS; exports.CATEGORY_SCREENING_INTERVALS = CATEGORY_SCREENING_INTERVALS; exports.DEXA_CATEGORIES = _chunk3NZA6WMUcjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunk3NZA6WMUcjs.DEXA_INDICATOR_CODES; exports.MAX_FILE_SIZE = _chunkY2SVZ6GEcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkY2SVZ6GEcjs.MAX_OBSERVATIONS; exports.T_SCORE_ZONES = T_SCORE_ZONES; exports.UNIT_TO_UCUM = _chunkMJ254F5Kcjs.UNIT_TO_UCUM; exports.ZONE_DEFS = ZONE_DEFS; exports.applyFallbackReferenceRanges = _chunkZKN5UI7Rcjs.applyFallbackReferenceRanges; exports.biomarkerRangeDefinitions = _chunkZKN5UI7Rcjs.biomarkerRangeDefinitions; exports.calculateNextScreeningDate = calculateNextScreeningDate; exports.cnsToFHIRIdentifier = cnsToFHIRIdentifier; exports.codeToLoinc = _chunk3NZA6WMUcjs.codeToLoinc; exports.convertUnit = _chunkMJ254F5Kcjs.convertUnit; exports.cpfToFHIRIdentifier = cpfToFHIRIdentifier; exports.defaultReferenceRanges = _chunkZKN5UI7Rcjs.defaultReferenceRanges; exports.extractObservationsFromBundle = _chunkY2SVZ6GEcjs.extractObservationsFromBundle; exports.filterVisibleBiomarkers = _chunk3NZA6WMUcjs.filterVisibleBiomarkers; exports.findCodeByName = _chunk3NZA6WMUcjs.findCodeByName; exports.formatCNS = formatCNS; exports.formatCPF = formatCPF; exports.generateCacFullReference = _chunk3NZA6WMUcjs.generateCacFullReference; exports.generateDexaFullReference = _chunk3NZA6WMUcjs.generateDexaFullReference; exports.generateFilteredLLMReference = _chunk3NZA6WMUcjs.generateFilteredLLMReference; exports.generateLLMReference = _chunk3NZA6WMUcjs.generateLLMReference; exports.getAllCodes = _chunk3NZA6WMUcjs.getAllCodes; exports.getAllDefinitions = _chunk3NZA6WMUcjs.getAllDefinitions; exports.getAllLoincCodes = _chunk3NZA6WMUcjs.getAllLoincCodes; exports.getAllSearchPatterns = _chunk3NZA6WMUcjs.getAllSearchPatterns; exports.getBiomarkersByCategory = _chunk3NZA6WMUcjs.getBiomarkersByCategory; exports.getBiomarkersForCategories = _chunk3NZA6WMUcjs.getBiomarkersForCategories; exports.getCanonicalUnit = _chunkMJ254F5Kcjs.getCanonicalUnit; exports.getCategoriesByInterval = getCategoriesByInterval; exports.getCategoryGroup = getCategoryGroup; exports.getDaysUntilScreening = getDaysUntilScreening; exports.getDefaultUnit = _chunkMJ254F5Kcjs.getDefaultUnit; exports.getDefinitionByCode = _chunk3NZA6WMUcjs.getDefinitionByCode; exports.getDefinitionByLoinc = _chunk3NZA6WMUcjs.getDefinitionByLoinc; exports.getDefinitionsBySex = _chunk3NZA6WMUcjs.getDefinitionsBySex; exports.getDueCategories = getDueCategories; exports.getFallbackReferenceRange = _chunkZKN5UI7Rcjs.getFallbackReferenceRange; exports.getRangeDirection = _chunkZKN5UI7Rcjs.getRangeDirection; exports.getReferenceRange = _chunkZKN5UI7Rcjs.getReferenceRange; exports.getSIUnit = _chunkMJ254F5Kcjs.getSIUnit; exports.getScreeningInterval = getScreeningInterval; exports.getSexForCode = _chunk3NZA6WMUcjs.getSexForCode; exports.getVisibleDefinitions = _chunk3NZA6WMUcjs.getVisibleDefinitions; exports.interventionToFHIRMedicationStatement = interventionToFHIRMedicationStatement; exports.interventionToFHIRObservation = interventionToFHIRObservation; exports.interventionsToFHIRBundle = interventionsToFHIRBundle; exports.isBiomarkerVisible = _chunk3NZA6WMUcjs.isBiomarkerVisible; exports.isCacDocument = _chunk3NZA6WMUcjs.isCacDocument; exports.isDexaDocument = _chunk3NZA6WMUcjs.isDexaDocument; exports.isScreeningDue = isScreeningDue; exports.isValidCode = _chunk3NZA6WMUcjs.isValidCode; exports.isValidLoinc = _chunk3NZA6WMUcjs.isValidLoinc; exports.labObservationToFHIR = _chunkQ3O23BM7cjs.labObservationToFHIR; exports.labReportToFHIR = _chunkQ3O23BM7cjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkQ3O23BM7cjs.labResultToFHIRBundle; exports.listMappedSubcategories = listMappedSubcategories; exports.loincToCode = _chunk3NZA6WMUcjs.loincToCode; exports.mapFHIRObservationToInternal = _chunkY2SVZ6GEcjs.mapFHIRObservationToInternal; exports.normalizeCode = _chunk3NZA6WMUcjs.normalizeCode; exports.plural = plural; exports.pluralCount = pluralCount; exports.pluralPhrase = pluralPhrase; exports.pluralPhraseCount = pluralPhraseCount; exports.processImportBundle = _chunkY2SVZ6GEcjs.processImportBundle; exports.toBiomarkerTests = _chunk3NZA6WMUcjs.toBiomarkerTests; exports.unitToUCUM = _chunkMJ254F5Kcjs.unitToUCUM; exports.userProfileToFHIR = _chunkQ3O23BM7cjs.userProfileToFHIR; exports.validateCNS = validateCNS; exports.validateCPF = validateCPF; exports.validateFHIRDiagnosticReport = _chunk3ILBFLVQcjs.validateFHIRDiagnosticReport; exports.validateFHIRImportBundle = _chunk3ILBFLVQcjs.validateFHIRImportBundle; exports.validateFHIRObservation = _chunk3ILBFLVQcjs.validateFHIRObservation; exports.validateLoincNameMatch = _chunk3NZA6WMUcjs.validateLoincNameMatch;
695
695
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -3,14 +3,14 @@ import {
3
3
  labReportToFHIR,
4
4
  labResultToFHIRBundle,
5
5
  userProfileToFHIR
6
- } from "./chunk-NR4OTNC4.js";
6
+ } from "./chunk-5BDMX2JP.js";
7
7
  import {
8
8
  MAX_FILE_SIZE,
9
9
  MAX_OBSERVATIONS,
10
10
  extractObservationsFromBundle,
11
11
  mapFHIRObservationToInternal,
12
12
  processImportBundle
13
- } from "./chunk-4YQOKZX7.js";
13
+ } from "./chunk-4I5G4SJ6.js";
14
14
  import {
15
15
  BIOMARKER_DEFINITIONS,
16
16
  CAC_INDICATOR_CODES,
@@ -43,7 +43,7 @@ import {
43
43
  normalizeCode,
44
44
  toBiomarkerTests,
45
45
  validateLoincNameMatch
46
- } from "./chunk-ICSMWCVT.js";
46
+ } from "./chunk-FEVGNEFO.js";
47
47
  import {
48
48
  applyFallbackReferenceRanges,
49
49
  biomarkerRangeDefinitions,
@@ -51,7 +51,7 @@ import {
51
51
  getFallbackReferenceRange,
52
52
  getRangeDirection,
53
53
  getReferenceRange
54
- } from "./chunk-KIYE6S66.js";
54
+ } from "./chunk-V5X3RU6M.js";
55
55
  import {
56
56
  BIOMARKER_DEFAULT_UNIT,
57
57
  BIOMARKER_UNITS,
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk3IOAP7CGcjs = require('./chunk-3IOAP7CG.cjs');
8
+ var _chunkZKN5UI7Rcjs = require('./chunk-ZKN5UI7R.cjs');
9
9
  require('./chunk-MJ254F5K.cjs');
10
10
 
11
11
 
@@ -14,5 +14,5 @@ require('./chunk-MJ254F5K.cjs');
14
14
 
15
15
 
16
16
 
17
- exports.applyFallbackReferenceRanges = _chunk3IOAP7CGcjs.applyFallbackReferenceRanges; exports.biomarkerRangeDefinitions = _chunk3IOAP7CGcjs.biomarkerRangeDefinitions; exports.defaultReferenceRanges = _chunk3IOAP7CGcjs.defaultReferenceRanges; exports.getFallbackReferenceRange = _chunk3IOAP7CGcjs.getFallbackReferenceRange; exports.getRangeDirection = _chunk3IOAP7CGcjs.getRangeDirection; exports.getReferenceRange = _chunk3IOAP7CGcjs.getReferenceRange;
17
+ exports.applyFallbackReferenceRanges = _chunkZKN5UI7Rcjs.applyFallbackReferenceRanges; exports.biomarkerRangeDefinitions = _chunkZKN5UI7Rcjs.biomarkerRangeDefinitions; exports.defaultReferenceRanges = _chunkZKN5UI7Rcjs.defaultReferenceRanges; exports.getFallbackReferenceRange = _chunkZKN5UI7Rcjs.getFallbackReferenceRange; exports.getRangeDirection = _chunkZKN5UI7Rcjs.getRangeDirection; exports.getReferenceRange = _chunkZKN5UI7Rcjs.getReferenceRange;
18
18
  //# sourceMappingURL=reference-ranges.cjs.map
@@ -5,7 +5,7 @@ import {
5
5
  getFallbackReferenceRange,
6
6
  getRangeDirection,
7
7
  getReferenceRange
8
- } from "./chunk-KIYE6S66.js";
8
+ } from "./chunk-V5X3RU6M.js";
9
9
  import "./chunk-R4MUCMO3.js";
10
10
  export {
11
11
  applyFallbackReferenceRanges,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@precisa-saude/fhir",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "description": "Tipos FHIR R4, definições de biomarcadores, faixas de referência e conversores para o ecossistema de saúde brasileiro",
5
5
  "keywords": [
6
6
  "fhir",