@precisa-saude/fhir 0.10.0 → 0.10.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 +25 -8
- package/dist/{chunk-D6XKCRS2.cjs → chunk-T22Q6ML7.cjs} +203 -82
- package/dist/chunk-T22Q6ML7.cjs.map +1 -0
- package/dist/{chunk-GTKRPCZB.js → chunk-WTAXN4BF.js} +203 -82
- package/dist/chunk-WTAXN4BF.js.map +1 -0
- package/dist/cli.js +203 -82
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/reference-ranges.cjs +2 -2
- package/dist/reference-ranges.d.cts +38 -3
- package/dist/reference-ranges.d.ts +38 -3
- package/dist/reference-ranges.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-D6XKCRS2.cjs.map +0 -1
- package/dist/chunk-GTKRPCZB.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -3920,9 +3920,6 @@ import { parseArgs as parseArgs2 } from "util";
|
|
|
3920
3920
|
|
|
3921
3921
|
// src/reference-ranges.ts
|
|
3922
3922
|
var biomarkerRangeDefinitions = {
|
|
3923
|
-
// =============================================================================
|
|
3924
|
-
// LIPIDS
|
|
3925
|
-
// =============================================================================
|
|
3926
3923
|
Albumin_Creatinine_Ratio: {
|
|
3927
3924
|
default: { max: 30, min: 0, optimalMax: 20, optimalMin: 0, unit: "mg/g" },
|
|
3928
3925
|
source: "tietz-7ed-2015"
|
|
@@ -4051,9 +4048,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4051
4048
|
ApoCIII_ApoA1_Ratio: {
|
|
4052
4049
|
default: { max: 0.15, min: 0, optimalMax: 0.1, optimalMin: 0, unit: "" }
|
|
4053
4050
|
},
|
|
4054
|
-
// =============================================================================
|
|
4055
|
-
// THYROID
|
|
4056
|
-
// =============================================================================
|
|
4057
4051
|
Omega6_AA: {
|
|
4058
4052
|
default: { max: 15, min: 5, optimalMax: 12, optimalMin: 7, unit: "%" },
|
|
4059
4053
|
source: "simopoulos-omega-ratio-2002"
|
|
@@ -4091,9 +4085,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4091
4085
|
default: { max: 0.1, min: 0, optimalMax: 0.05, optimalMin: 0, unit: "K/uL" },
|
|
4092
4086
|
source: "pns-hemograma-2019"
|
|
4093
4087
|
},
|
|
4094
|
-
// =============================================================================
|
|
4095
|
-
// HEMATOLOGY - CBC
|
|
4096
|
-
// =============================================================================
|
|
4097
4088
|
Bicarbonate: {
|
|
4098
4089
|
default: { max: 29, min: 23, optimalMax: 28, optimalMin: 24, unit: "mEq/L" },
|
|
4099
4090
|
source: "tietz-7ed-2015"
|
|
@@ -4228,13 +4219,28 @@ var biomarkerRangeDefinitions = {
|
|
|
4228
4219
|
source: "tietz-7ed-2015"
|
|
4229
4220
|
},
|
|
4230
4221
|
CPeptide: {
|
|
4231
|
-
default: {
|
|
4222
|
+
default: {
|
|
4223
|
+
fastingRequired: "strict",
|
|
4224
|
+
max: 3.9,
|
|
4225
|
+
min: 0.8,
|
|
4226
|
+
optimalMax: 3,
|
|
4227
|
+
optimalMin: 1,
|
|
4228
|
+
unit: "ng/mL"
|
|
4229
|
+
},
|
|
4232
4230
|
source: "tietz-7ed-2015"
|
|
4233
4231
|
},
|
|
4234
4232
|
Creatinine: {
|
|
4235
4233
|
default: { max: 1.2, min: 0.6, optimalMax: 1, optimalMin: 0.7, unit: "mg/dL" },
|
|
4236
4234
|
source: "pns-bioquimica-2019",
|
|
4237
4235
|
variants: [
|
|
4236
|
+
// Gestação: hiperfiltração glomerular (↑ 40–50% GFR) reduz a creatinina
|
|
4237
|
+
// sérica. Valores "normais" de não-gestante podem sinalizar disfunção
|
|
4238
|
+
// renal em gestante. Limites tipicamente citados: 0.4–0.8 mg/dL.
|
|
4239
|
+
{
|
|
4240
|
+
pregnant: true,
|
|
4241
|
+
range: { max: 0.8, min: 0.4, optimalMax: 0.7, optimalMin: 0.5, unit: "mg/dL" },
|
|
4242
|
+
sex: "F"
|
|
4243
|
+
},
|
|
4238
4244
|
{
|
|
4239
4245
|
ageMin: 18,
|
|
4240
4246
|
range: { max: 1.3, min: 0.7, optimalMax: 1.1, optimalMin: 0.8, unit: "mg/dL" },
|
|
@@ -4261,9 +4267,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4261
4267
|
default: { max: 500, min: 0, optimalMax: 250, optimalMin: 0, unit: "ng/mL" },
|
|
4262
4268
|
source: "wells-ddimer-2003"
|
|
4263
4269
|
},
|
|
4264
|
-
// =============================================================================
|
|
4265
|
-
// METABOLIC PANEL
|
|
4266
|
-
// =============================================================================
|
|
4267
4270
|
Omega3_DHA: {
|
|
4268
4271
|
default: { max: 8, min: 2, optimalMax: 6.5, optimalMin: 3.5, unit: "%" },
|
|
4269
4272
|
source: "harris-omega3-2004"
|
|
@@ -4370,10 +4373,24 @@ var biomarkerRangeDefinitions = {
|
|
|
4370
4373
|
default: { max: 86, min: 0, optimalMax: 60, optimalMin: 0, unit: "pg/mL" },
|
|
4371
4374
|
source: "tietz-7ed-2015"
|
|
4372
4375
|
},
|
|
4376
|
+
// Ferritina — WHO 2020 é o documento de referência específico para avaliação
|
|
4377
|
+
// do status de ferro via ferritina. Importante: inflamação aguda eleva
|
|
4378
|
+
// ferritina (proteína de fase aguda); WHO 2020 recomenda dosagem concomitante
|
|
4379
|
+
// de PCR para interpretação em contexto inflamatório (fora do escopo deste
|
|
4380
|
+
// tipo de faixa, mas documentado aqui para consumidores).
|
|
4373
4381
|
Ferritin: {
|
|
4374
4382
|
default: { max: 150, min: 12, optimalMax: 120, optimalMin: 30, unit: "ng/mL" },
|
|
4375
|
-
source: "
|
|
4383
|
+
source: "who-iron-2020",
|
|
4376
4384
|
variants: [
|
|
4385
|
+
// Gestação: ferritina cai fisiologicamente no 2º/3º trimestre pela expansão
|
|
4386
|
+
// do volume plasmático e maior demanda fetal. WHO 2020: <15 ng/mL sugere
|
|
4387
|
+
// depleção; muitas diretrizes nacionais usam <30 como gatilho mais sensível
|
|
4388
|
+
// na gestação dada a alta prevalência de deficiência subclínica.
|
|
4389
|
+
{
|
|
4390
|
+
pregnant: true,
|
|
4391
|
+
range: { max: 120, min: 15, optimalMax: 80, optimalMin: 30, unit: "ng/mL" },
|
|
4392
|
+
sex: "F"
|
|
4393
|
+
},
|
|
4377
4394
|
{
|
|
4378
4395
|
ageMin: 18,
|
|
4379
4396
|
range: { max: 250, min: 20, optimalMax: 200, optimalMin: 40, unit: "ng/mL" },
|
|
@@ -4401,9 +4418,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4401
4418
|
default: { max: 20, min: 3, optimalMax: 15, optimalMin: 5, unit: "ng/mL" },
|
|
4402
4419
|
source: "tietz-7ed-2015"
|
|
4403
4420
|
},
|
|
4404
|
-
// =============================================================================
|
|
4405
|
-
// LIVER FUNCTION
|
|
4406
|
-
// =============================================================================
|
|
4407
4421
|
FSH: {
|
|
4408
4422
|
default: { max: 12.4, min: 1.5, optimalMax: 10, optimalMin: 3, unit: "mIU/mL" },
|
|
4409
4423
|
source: "tietz-7ed-2015",
|
|
@@ -4451,9 +4465,38 @@ var biomarkerRangeDefinitions = {
|
|
|
4451
4465
|
default: { max: 3.5, min: 2, optimalMax: 3.2, optimalMin: 2.3, unit: "g/dL" },
|
|
4452
4466
|
source: "tietz-7ed-2015"
|
|
4453
4467
|
},
|
|
4468
|
+
// Glicemia de jejum — 70–99 mg/dL é a faixa de normalidade (SBD 2024, ADA);
|
|
4469
|
+
// hipoglicemia clinicamente acionável em não-diabético é <54 mg/dL (Level 2
|
|
4470
|
+
// ADA/SBD), não 70. O corte 70 era Level 1 (alerta em diabético em tratamento)
|
|
4471
|
+
// e gerava falsos "abaixo do normal" em indivíduos saudáveis cuja glicemia
|
|
4472
|
+
// em jejum está fisiologicamente entre 54–70. optimalMin preserva o alvo.
|
|
4454
4473
|
Glucose: {
|
|
4455
|
-
default: {
|
|
4456
|
-
|
|
4474
|
+
default: {
|
|
4475
|
+
fastingRequired: "strict",
|
|
4476
|
+
max: 100,
|
|
4477
|
+
min: 54,
|
|
4478
|
+
optimalMax: 90,
|
|
4479
|
+
optimalMin: 70,
|
|
4480
|
+
unit: "mg/dL"
|
|
4481
|
+
},
|
|
4482
|
+
source: "sbd-diabetes-2024",
|
|
4483
|
+
variants: [
|
|
4484
|
+
// Gestação: DMG (IADPSG/SBD 2024) usa cortes mais restritivos na glicemia
|
|
4485
|
+
// de jejum — ≥92 mg/dL já indica diabetes mellitus gestacional. Portanto
|
|
4486
|
+
// a faixa "normal" em gestante vai até 91 mg/dL no jejum.
|
|
4487
|
+
{
|
|
4488
|
+
pregnant: true,
|
|
4489
|
+
range: {
|
|
4490
|
+
fastingRequired: "strict",
|
|
4491
|
+
max: 91,
|
|
4492
|
+
min: 54,
|
|
4493
|
+
optimalMax: 85,
|
|
4494
|
+
optimalMin: 70,
|
|
4495
|
+
unit: "mg/dL"
|
|
4496
|
+
},
|
|
4497
|
+
sex: "F"
|
|
4498
|
+
}
|
|
4499
|
+
]
|
|
4457
4500
|
},
|
|
4458
4501
|
GlycoMark: {
|
|
4459
4502
|
default: { max: 40, min: 10, optimalMax: 35, optimalMin: 15, unit: "mcg/mL" },
|
|
@@ -4463,8 +4506,14 @@ var biomarkerRangeDefinitions = {
|
|
|
4463
4506
|
default: { max: 5, min: 0, optimalMax: 3, optimalMin: 0, unit: "ng/mL" },
|
|
4464
4507
|
source: "tietz-7ed-2015"
|
|
4465
4508
|
},
|
|
4509
|
+
// HbA1c — SBD 2024 não estabelece piso de referência clinicamente acionável.
|
|
4510
|
+
// Valores <4.0% podem refletir anemia hemolítica, perda sanguínea recente ou
|
|
4511
|
+
// hemoglobinopatia, não patologia do metabolismo glicêmico. Usamos min=2 como
|
|
4512
|
+
// piso de sanidade (HbA1c <2% é quase sempre erro instrumental/entrada) sem
|
|
4513
|
+
// criar flag clínico em valores fisiologicamente baixos. optimalMin preserva
|
|
4514
|
+
// o alvo fisiológico da fração glicada.
|
|
4466
4515
|
HbA1c: {
|
|
4467
|
-
default: { max: 5.7, min:
|
|
4516
|
+
default: { max: 5.7, min: 2, optimalMax: 5.3, optimalMin: 4.5, unit: "%" },
|
|
4468
4517
|
source: "sbd-diabetes-2024"
|
|
4469
4518
|
},
|
|
4470
4519
|
Hct: {
|
|
@@ -4507,13 +4556,37 @@ var biomarkerRangeDefinitions = {
|
|
|
4507
4556
|
direction: "higher-better",
|
|
4508
4557
|
source: "caulfield-ionmobility-2008"
|
|
4509
4558
|
},
|
|
4510
|
-
// =============================================================================
|
|
4511
|
-
// INFLAMMATION
|
|
4512
|
-
// =============================================================================
|
|
4513
4559
|
Hgb: {
|
|
4514
4560
|
default: { max: 17.5, min: 12, optimalMax: 16, optimalMin: 13.5, unit: "g/dL" },
|
|
4515
4561
|
source: "pns-hemograma-2019",
|
|
4516
4562
|
variants: [
|
|
4563
|
+
// Gestação: hemodiluição fisiológica reduz o piso aceitável.
|
|
4564
|
+
// OMS e CDC: anemia gestacional quando Hgb <11 g/dL (1º e 3º tri) ou
|
|
4565
|
+
// <10.5 g/dL (2º tri, dilucional mais acentuada). Catch-all adota a
|
|
4566
|
+
// faixa mais conservadora (2º tri) quando trimestre é desconhecido.
|
|
4567
|
+
{
|
|
4568
|
+
pregnant: true,
|
|
4569
|
+
pregnancyTrimester: 1,
|
|
4570
|
+
range: { max: 14, min: 11, optimalMax: 13, optimalMin: 11.5, unit: "g/dL" },
|
|
4571
|
+
sex: "F"
|
|
4572
|
+
},
|
|
4573
|
+
{
|
|
4574
|
+
pregnant: true,
|
|
4575
|
+
pregnancyTrimester: 2,
|
|
4576
|
+
range: { max: 14, min: 10.5, optimalMax: 13, optimalMin: 11, unit: "g/dL" },
|
|
4577
|
+
sex: "F"
|
|
4578
|
+
},
|
|
4579
|
+
{
|
|
4580
|
+
pregnant: true,
|
|
4581
|
+
pregnancyTrimester: 3,
|
|
4582
|
+
range: { max: 14, min: 11, optimalMax: 13, optimalMin: 11.5, unit: "g/dL" },
|
|
4583
|
+
sex: "F"
|
|
4584
|
+
},
|
|
4585
|
+
{
|
|
4586
|
+
pregnant: true,
|
|
4587
|
+
range: { max: 14, min: 10.5, optimalMax: 13, optimalMin: 11, unit: "g/dL" },
|
|
4588
|
+
sex: "F"
|
|
4589
|
+
},
|
|
4517
4590
|
{
|
|
4518
4591
|
ageMin: 18,
|
|
4519
4592
|
range: { max: 17.5, min: 13.5, optimalMax: 16.5, optimalMin: 14, unit: "g/dL" },
|
|
@@ -4526,10 +4599,20 @@ var biomarkerRangeDefinitions = {
|
|
|
4526
4599
|
}
|
|
4527
4600
|
]
|
|
4528
4601
|
},
|
|
4602
|
+
// HOMA-IR — corte 2.71 do estudo BRAMS (Geloneze et al., 2009) validado em
|
|
4603
|
+
// população urbana brasileira; Tietz 7ª ed. não publica corte próprio de
|
|
4604
|
+
// HOMA-IR, então a fonte anterior era citação inadequada.
|
|
4529
4605
|
HOMA_IR: {
|
|
4530
|
-
default: {
|
|
4606
|
+
default: {
|
|
4607
|
+
fastingRequired: "strict",
|
|
4608
|
+
max: 2.71,
|
|
4609
|
+
min: 0,
|
|
4610
|
+
optimalMax: 1.5,
|
|
4611
|
+
optimalMin: 0,
|
|
4612
|
+
unit: ""
|
|
4613
|
+
},
|
|
4531
4614
|
direction: "lower-better",
|
|
4532
|
-
source: "
|
|
4615
|
+
source: "geloneze-brams-2009"
|
|
4533
4616
|
},
|
|
4534
4617
|
Homocysteine: {
|
|
4535
4618
|
default: { max: 15, min: 4, optimalMax: 10, optimalMin: 5, unit: "umol/L" },
|
|
@@ -4540,15 +4623,19 @@ var biomarkerRangeDefinitions = {
|
|
|
4540
4623
|
default: { max: 350, min: 100, optimalMax: 300, optimalMin: 150, unit: "ng/mL" },
|
|
4541
4624
|
source: "tietz-7ed-2015"
|
|
4542
4625
|
},
|
|
4543
|
-
// =============================================================================
|
|
4544
|
-
// METABOLIC
|
|
4545
|
-
// =============================================================================
|
|
4546
4626
|
ImmatureGranulocytes: {
|
|
4547
4627
|
default: { max: 1, min: 0, optimalMax: 0.5, optimalMin: 0, unit: "%" },
|
|
4548
4628
|
source: "tietz-7ed-2015"
|
|
4549
4629
|
},
|
|
4550
4630
|
Insulin: {
|
|
4551
|
-
default: {
|
|
4631
|
+
default: {
|
|
4632
|
+
fastingRequired: "strict",
|
|
4633
|
+
max: 25,
|
|
4634
|
+
min: 2,
|
|
4635
|
+
optimalMax: 8,
|
|
4636
|
+
optimalMin: 3,
|
|
4637
|
+
unit: "\xB5IU/mL"
|
|
4638
|
+
},
|
|
4552
4639
|
source: "tietz-7ed-2015"
|
|
4553
4640
|
},
|
|
4554
4641
|
Iron: {
|
|
@@ -4597,9 +4684,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4597
4684
|
direction: "higher-better",
|
|
4598
4685
|
source: "caulfield-ionmobility-2008"
|
|
4599
4686
|
},
|
|
4600
|
-
// =============================================================================
|
|
4601
|
-
// IRON STUDIES
|
|
4602
|
-
// =============================================================================
|
|
4603
4687
|
LDL_Small: {
|
|
4604
4688
|
// LDL Small (LDL Pequena): lower is better (small dense LDL is most atherogenic)
|
|
4605
4689
|
// Quest Ion Mobility reference: Male 123-441, Female 126-382 nmol/L, optimal <142
|
|
@@ -4654,9 +4738,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4654
4738
|
default: { max: 35, min: 15, optimalMax: 28, optimalMin: 18, unit: "%" },
|
|
4655
4739
|
source: "simopoulos-omega-ratio-2002"
|
|
4656
4740
|
},
|
|
4657
|
-
// =============================================================================
|
|
4658
|
-
// VITAMINS
|
|
4659
|
-
// =============================================================================
|
|
4660
4741
|
Lipoprotein_a: {
|
|
4661
4742
|
default: { max: 75, min: 0, optimalMax: 30, optimalMin: 0, unit: "nmol/L" },
|
|
4662
4743
|
direction: "lower-better",
|
|
@@ -4698,9 +4779,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4698
4779
|
default: { max: 30, min: 0, optimalMax: 20, optimalMin: 0, unit: "mg/L" },
|
|
4699
4780
|
source: "kdigo-ckd-2024"
|
|
4700
4781
|
},
|
|
4701
|
-
// =============================================================================
|
|
4702
|
-
// HORMONES
|
|
4703
|
-
// =============================================================================
|
|
4704
4782
|
MMA: {
|
|
4705
4783
|
default: { max: 378, min: 0, optimalMax: 270, optimalMin: 0, unit: "nmol/L" },
|
|
4706
4784
|
source: "tietz-7ed-2015"
|
|
@@ -4766,9 +4844,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4766
4844
|
direction: "lower-better",
|
|
4767
4845
|
source: "simopoulos-omega-ratio-2002"
|
|
4768
4846
|
},
|
|
4769
|
-
// =============================================================================
|
|
4770
|
-
// TUMOR MARKERS
|
|
4771
|
-
// =============================================================================
|
|
4772
4847
|
OmegaCheck: {
|
|
4773
4848
|
default: { max: 8, min: 4, optimalMax: 8, optimalMin: 5.5, unit: "%" },
|
|
4774
4849
|
source: "harris-omega3-2004"
|
|
@@ -4789,9 +4864,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4789
4864
|
default: { max: 5, min: 3.5, optimalMax: 4.6, optimalMin: 3.8, unit: "mEq/L" },
|
|
4790
4865
|
source: "tietz-7ed-2015"
|
|
4791
4866
|
},
|
|
4792
|
-
// =============================================================================
|
|
4793
|
-
// CARDIAC MARKERS
|
|
4794
|
-
// =============================================================================
|
|
4795
4867
|
Prealbumin: {
|
|
4796
4868
|
default: { max: 38, min: 18, optimalMax: 35, optimalMin: 20, unit: "mg/dL" },
|
|
4797
4869
|
source: "tietz-7ed-2015"
|
|
@@ -4861,9 +4933,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4861
4933
|
}
|
|
4862
4934
|
]
|
|
4863
4935
|
},
|
|
4864
|
-
// =============================================================================
|
|
4865
|
-
// URINALYSIS
|
|
4866
|
-
// =============================================================================
|
|
4867
4936
|
RDW: {
|
|
4868
4937
|
default: { max: 14.5, min: 11.5, optimalMax: 14, optimalMin: 12, unit: "%" },
|
|
4869
4938
|
source: "pns-hemograma-2019"
|
|
@@ -4900,9 +4969,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4900
4969
|
default: { max: 145, min: 136, optimalMax: 143, optimalMin: 138, unit: "mEq/L" },
|
|
4901
4970
|
source: "tietz-7ed-2015"
|
|
4902
4971
|
},
|
|
4903
|
-
// =============================================================================
|
|
4904
|
-
// KIDNEY FUNCTION
|
|
4905
|
-
// =============================================================================
|
|
4906
4972
|
SpecificGravity_Urine: {
|
|
4907
4973
|
default: { max: 1.03, min: 1.005, optimalMax: 1.025, optimalMin: 1.01, unit: "SG" },
|
|
4908
4974
|
source: "tietz-7ed-2015"
|
|
@@ -4915,9 +4981,6 @@ var biomarkerRangeDefinitions = {
|
|
|
4915
4981
|
default: { max: 4.2, min: 2.3, optimalMax: 3.8, optimalMin: 2.8, unit: "pg/mL" },
|
|
4916
4982
|
source: "tietz-7ed-2015"
|
|
4917
4983
|
},
|
|
4918
|
-
// =============================================================================
|
|
4919
|
-
// OMEGA FATTY ACIDS
|
|
4920
|
-
// =============================================================================
|
|
4921
4984
|
T3Reverse: {
|
|
4922
4985
|
default: { max: 24, min: 10, optimalMax: 20, optimalMin: 12, unit: "ng/dL" },
|
|
4923
4986
|
source: "tietz-7ed-2015"
|
|
@@ -5012,8 +5075,18 @@ var biomarkerRangeDefinitions = {
|
|
|
5012
5075
|
}
|
|
5013
5076
|
]
|
|
5014
5077
|
},
|
|
5078
|
+
// Triglicérides — SBC 2017/2025 permite dosagem não-jejum com corte distinto
|
|
5079
|
+
// (<175 mg/dL pós-prandial). Marcamos `preferred` para indicar que a faixa
|
|
5080
|
+
// padrão é de jejum, mas não bloqueamos interpretação em não-jejum.
|
|
5015
5081
|
Triglycerides: {
|
|
5016
|
-
default: {
|
|
5082
|
+
default: {
|
|
5083
|
+
fastingRequired: "preferred",
|
|
5084
|
+
max: 150,
|
|
5085
|
+
min: 0,
|
|
5086
|
+
optimalMax: 100,
|
|
5087
|
+
optimalMin: 0,
|
|
5088
|
+
unit: "mg/dL"
|
|
5089
|
+
},
|
|
5017
5090
|
direction: "lower-better",
|
|
5018
5091
|
source: "sbc-lipids-2025"
|
|
5019
5092
|
},
|
|
@@ -5027,10 +5100,47 @@ var biomarkerRangeDefinitions = {
|
|
|
5027
5100
|
default: { max: 14, min: 0, optimalMax: 10, optimalMin: 0, unit: "ng/L" },
|
|
5028
5101
|
source: "giannitsis-hstnt-2010"
|
|
5029
5102
|
},
|
|
5103
|
+
// TSH — 0.4–4.0 é a faixa de referência adulta geral. O alvo 2.5 µIU/mL é
|
|
5104
|
+
// específico do 1º trimestre gestacional (ATA 2017) e não se aplica a
|
|
5105
|
+
// não-gestantes; optimalMax=3.0 reflete o limite superior do tercil "ótimo"
|
|
5106
|
+
// sem invadir a faixa subclínica. Variante ageMin=65 mantém limite superior
|
|
5107
|
+
// expandido (tolerância fisiológica do eixo em idosos, SBEM 2013).
|
|
5030
5108
|
TSH: {
|
|
5031
|
-
default: { max: 4, min: 0.4, optimalMax:
|
|
5109
|
+
default: { max: 4, min: 0.4, optimalMax: 3, optimalMin: 1, unit: "\xB5IU/mL" },
|
|
5032
5110
|
source: "sbem-thyroid-2013",
|
|
5033
5111
|
variants: [
|
|
5112
|
+
// Variantes gestacionais (ATA 2017 / SBEM): supressão fisiológica por hCG
|
|
5113
|
+
// no 1º trimestre, recuperação progressiva no 2º/3º. Trimestre-específicas
|
|
5114
|
+
// precedem a catch-all; catch-all cobre contexto gestante sem trimestre
|
|
5115
|
+
// conhecido.
|
|
5116
|
+
// optimalMin/optimalMax definem subfaixa "alvo" mais estreita que o
|
|
5117
|
+
// intervalo de referência — ex.: 1º tri aceita 0.1–2.5, mas o alvo
|
|
5118
|
+
// terapêutico é 0.5–2.5.
|
|
5119
|
+
{
|
|
5120
|
+
pregnant: true,
|
|
5121
|
+
pregnancyTrimester: 1,
|
|
5122
|
+
range: { max: 2.5, min: 0.1, optimalMax: 2, optimalMin: 0.5, unit: "\xB5IU/mL" },
|
|
5123
|
+
sex: "F"
|
|
5124
|
+
},
|
|
5125
|
+
{
|
|
5126
|
+
pregnant: true,
|
|
5127
|
+
pregnancyTrimester: 2,
|
|
5128
|
+
range: { max: 3, min: 0.2, optimalMax: 2.5, optimalMin: 0.5, unit: "\xB5IU/mL" },
|
|
5129
|
+
sex: "F"
|
|
5130
|
+
},
|
|
5131
|
+
{
|
|
5132
|
+
pregnant: true,
|
|
5133
|
+
pregnancyTrimester: 3,
|
|
5134
|
+
range: { max: 3, min: 0.3, optimalMax: 2.5, optimalMin: 0.5, unit: "\xB5IU/mL" },
|
|
5135
|
+
sex: "F"
|
|
5136
|
+
},
|
|
5137
|
+
// Catch-all gestacional — usada quando o trimestre não é informado.
|
|
5138
|
+
// Adota a faixa mais conservadora (2º/3º trimestre: 0.2–3.0).
|
|
5139
|
+
{
|
|
5140
|
+
pregnant: true,
|
|
5141
|
+
range: { max: 3, min: 0.2, optimalMax: 2.5, optimalMin: 0.5, unit: "\xB5IU/mL" },
|
|
5142
|
+
sex: "F"
|
|
5143
|
+
},
|
|
5034
5144
|
{
|
|
5035
5145
|
ageMin: 65,
|
|
5036
5146
|
range: { max: 6, min: 0.4, optimalMax: 4, optimalMin: 1, unit: "\xB5IU/mL" },
|
|
@@ -5062,9 +5172,6 @@ var biomarkerRangeDefinitions = {
|
|
|
5062
5172
|
default: { max: 1, min: 0.1, optimalMax: 1, optimalMin: 0.1, unit: "mg/dL" },
|
|
5063
5173
|
source: "tietz-7ed-2015"
|
|
5064
5174
|
},
|
|
5065
|
-
// =============================================================================
|
|
5066
|
-
// ADVANCED CARDIOVASCULAR
|
|
5067
|
-
// =============================================================================
|
|
5068
5175
|
pH_Urine: {
|
|
5069
5176
|
default: { max: 8, min: 4.5, optimalMax: 7, optimalMin: 5.5, unit: "pH" },
|
|
5070
5177
|
source: "tietz-7ed-2015"
|
|
@@ -5093,9 +5200,6 @@ var biomarkerRangeDefinitions = {
|
|
|
5093
5200
|
default: { max: 100, min: 20, optimalMax: 80, optimalMin: 30, unit: "mcg/dL" },
|
|
5094
5201
|
source: "tietz-7ed-2015"
|
|
5095
5202
|
},
|
|
5096
|
-
// =============================================================================
|
|
5097
|
-
// MINERALS
|
|
5098
|
-
// =============================================================================
|
|
5099
5203
|
VitaminB1: {
|
|
5100
5204
|
default: { max: 180, min: 70, optimalMax: 150, optimalMin: 80, unit: "nmol/L" },
|
|
5101
5205
|
source: "tietz-7ed-2015"
|
|
@@ -5112,12 +5216,28 @@ var biomarkerRangeDefinitions = {
|
|
|
5112
5216
|
default: { max: 2, min: 0.4, optimalMax: 1.5, optimalMin: 0.6, unit: "mg/dL" },
|
|
5113
5217
|
source: "tietz-7ed-2015"
|
|
5114
5218
|
},
|
|
5115
|
-
//
|
|
5116
|
-
//
|
|
5117
|
-
//
|
|
5219
|
+
// Vitamina D — posicionamento conjunto SBEM/SBPC-ML 2017:
|
|
5220
|
+
// ≥20 ng/mL é desejável para população saudável <60 anos
|
|
5221
|
+
// ≥30 ng/mL é recomendado para grupos de risco (idosos, gestantes, DRC,
|
|
5222
|
+
// osteoporose, hiperparatireoidismo secundário).
|
|
5223
|
+
// A variante ageMin=60 cobre idosos. Gestação, doença renal crônica,
|
|
5224
|
+
// osteoporose e hiperparatireoidismo secundário também exigem min=30;
|
|
5225
|
+
// o tipo `BiomarkerReferenceRange` atual não expressa esses contextos
|
|
5226
|
+
// clínicos além de gestação e idade, portanto consumidores devem aplicar
|
|
5227
|
+
// o limiar ≥30 nessas populações quando souberem a comorbidade. Gestação
|
|
5228
|
+
// será modelada quando `pregnant: true` — aceita-se TODO até lá.
|
|
5229
|
+
// TODO(PR-vitd-pregnancy): adicionar variante `pregnant: true` com min=30
|
|
5230
|
+
// quando a modelagem de comorbidades chegar ao schema.
|
|
5118
5231
|
VitaminD: {
|
|
5119
|
-
default: { max: 100, min:
|
|
5120
|
-
source: "
|
|
5232
|
+
default: { max: 100, min: 20, optimalMax: 70, optimalMin: 40, unit: "ng/mL" },
|
|
5233
|
+
source: "ferreira-vitd-2017",
|
|
5234
|
+
variants: [
|
|
5235
|
+
{
|
|
5236
|
+
ageMin: 60,
|
|
5237
|
+
range: { max: 100, min: 30, optimalMax: 70, optimalMin: 40, unit: "ng/mL" },
|
|
5238
|
+
sex: "all"
|
|
5239
|
+
}
|
|
5240
|
+
]
|
|
5121
5241
|
},
|
|
5122
5242
|
VitaminD_1_25: {
|
|
5123
5243
|
default: { max: 72, min: 18, optimalMax: 60, optimalMin: 25, unit: "pg/mL" },
|
|
@@ -5127,14 +5247,15 @@ var biomarkerRangeDefinitions = {
|
|
|
5127
5247
|
default: { max: 17, min: 5.5, optimalMax: 14, optimalMin: 7, unit: "mg/L" },
|
|
5128
5248
|
source: "tietz-7ed-2015"
|
|
5129
5249
|
},
|
|
5130
|
-
// VLDL
|
|
5250
|
+
// VLDL — estimado clinicamente via TG/5 (método Friedewald). O corte de
|
|
5251
|
+
// referência deriva de triglicérides <150 mg/dL (SBC 2025, dislipidemias),
|
|
5252
|
+
// portanto VLDL <30. Friedewald-1972 permanece registrada como fonte do
|
|
5253
|
+
// método de cálculo, mas a faixa de referência tem respaldo na diretriz
|
|
5254
|
+
// SBC 2025.
|
|
5131
5255
|
VLDL: {
|
|
5132
5256
|
default: { max: 30, min: 2, optimalMax: 20, optimalMin: 5, unit: "mg/dL" },
|
|
5133
|
-
source: "
|
|
5257
|
+
source: "sbc-lipids-2025"
|
|
5134
5258
|
},
|
|
5135
|
-
// =============================================================================
|
|
5136
|
-
// OTHER
|
|
5137
|
-
// =============================================================================
|
|
5138
5259
|
WBC: {
|
|
5139
5260
|
default: { max: 11, min: 4, optimalMax: 8, optimalMin: 5, unit: "K/uL" },
|
|
5140
5261
|
source: "pns-hemograma-2019"
|
|
@@ -5143,9 +5264,6 @@ var biomarkerRangeDefinitions = {
|
|
|
5143
5264
|
default: { max: 120, min: 60, optimalMax: 100, optimalMin: 70, unit: "mcg/dL" },
|
|
5144
5265
|
source: "tietz-7ed-2015"
|
|
5145
5266
|
},
|
|
5146
|
-
// =============================================================================
|
|
5147
|
-
// BODY COMPOSITION (DXA)
|
|
5148
|
-
// =============================================================================
|
|
5149
5267
|
AndroidFatPct: {
|
|
5150
5268
|
default: { max: 35, min: 10, optimalMax: 25, optimalMin: 15, unit: "%" },
|
|
5151
5269
|
direction: "lower-better",
|
|
@@ -5384,9 +5502,6 @@ var biomarkerRangeDefinitions = {
|
|
|
5384
5502
|
}
|
|
5385
5503
|
]
|
|
5386
5504
|
},
|
|
5387
|
-
// =============================================================================
|
|
5388
|
-
// BONE DENSITOMETRY (DXA)
|
|
5389
|
-
// =============================================================================
|
|
5390
5505
|
BMD_Total: {
|
|
5391
5506
|
default: { max: 1.4, min: 0.9, optimalMax: 1.3, optimalMin: 1, unit: "g/cm\xB2" },
|
|
5392
5507
|
direction: "higher-better",
|
|
@@ -5402,9 +5517,6 @@ var biomarkerRangeDefinitions = {
|
|
|
5402
5517
|
direction: "higher-better",
|
|
5403
5518
|
source: "who-osteoporosis-1994"
|
|
5404
5519
|
},
|
|
5405
|
-
// =============================================================================
|
|
5406
|
-
// MISSING LAB RANGES
|
|
5407
|
-
// =============================================================================
|
|
5408
5520
|
Amylase: {
|
|
5409
5521
|
default: { max: 100, min: 28, optimalMax: 90, optimalMin: 35, unit: "U/L" },
|
|
5410
5522
|
source: "tietz-7ed-2015"
|
|
@@ -5515,8 +5627,17 @@ function getReferenceRange(testCode, context) {
|
|
|
5515
5627
|
if (!context || !definition.variants || definition.variants.length === 0) {
|
|
5516
5628
|
return definition.default;
|
|
5517
5629
|
}
|
|
5518
|
-
const { age, biologicalSex } = context;
|
|
5630
|
+
const { age, biologicalSex, pregnancyTrimester, pregnant } = context;
|
|
5631
|
+
const hasPregnancyVariant = definition.variants.some((v) => v.pregnant === true);
|
|
5519
5632
|
for (const variant of definition.variants) {
|
|
5633
|
+
if (variant.pregnant === true) {
|
|
5634
|
+
if (!pregnant) continue;
|
|
5635
|
+
if (variant.pregnancyTrimester !== void 0 && variant.pregnancyTrimester !== pregnancyTrimester) {
|
|
5636
|
+
continue;
|
|
5637
|
+
}
|
|
5638
|
+
} else if (pregnant && hasPregnancyVariant) {
|
|
5639
|
+
continue;
|
|
5640
|
+
}
|
|
5520
5641
|
if (variant.sex !== "all" && variant.sex !== biologicalSex) {
|
|
5521
5642
|
continue;
|
|
5522
5643
|
}
|
|
@@ -5677,7 +5798,7 @@ async function main() {
|
|
|
5677
5798
|
strict: false
|
|
5678
5799
|
});
|
|
5679
5800
|
if (values.version) {
|
|
5680
|
-
process.stdout.write(`${"0.10.
|
|
5801
|
+
process.stdout.write(`${"0.10.1"}
|
|
5681
5802
|
`);
|
|
5682
5803
|
return;
|
|
5683
5804
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -51,7 +51,7 @@ var _chunk2EVQ2ESBcjs = require('./chunk-2EVQ2ESB.cjs');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkT22Q6ML7cjs = require('./chunk-T22Q6ML7.cjs');
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
@@ -612,5 +612,5 @@ function cnsToFHIRIdentifier(cns) {
|
|
|
612
612
|
|
|
613
613
|
|
|
614
614
|
|
|
615
|
-
exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS = _chunk2EVQ2ESBcjs.BIOMARKER_DEFINITIONS; exports.BIOMARKER_UNITS = _chunkMJ254F5Kcjs.BIOMARKER_UNITS; exports.BODY_FAT_ZONES = BODY_FAT_ZONES; exports.CAC_INDICATOR_CODES = _chunk2EVQ2ESBcjs.CAC_INDICATOR_CODES; exports.CATEGORY_SCREENING_INTERVALS = CATEGORY_SCREENING_INTERVALS; exports.DEXA_CATEGORIES = _chunk2EVQ2ESBcjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunk2EVQ2ESBcjs.DEXA_INDICATOR_CODES; exports.MAX_FILE_SIZE = _chunkO25F6G3Kcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkO25F6G3Kcjs.MAX_OBSERVATIONS; exports.T_SCORE_ZONES = T_SCORE_ZONES; exports.UNIT_TO_UCUM = _chunkMJ254F5Kcjs.UNIT_TO_UCUM; exports.ZONE_DEFS = ZONE_DEFS; exports.applyFallbackReferenceRanges =
|
|
615
|
+
exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS = _chunk2EVQ2ESBcjs.BIOMARKER_DEFINITIONS; exports.BIOMARKER_UNITS = _chunkMJ254F5Kcjs.BIOMARKER_UNITS; exports.BODY_FAT_ZONES = BODY_FAT_ZONES; exports.CAC_INDICATOR_CODES = _chunk2EVQ2ESBcjs.CAC_INDICATOR_CODES; exports.CATEGORY_SCREENING_INTERVALS = CATEGORY_SCREENING_INTERVALS; exports.DEXA_CATEGORIES = _chunk2EVQ2ESBcjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunk2EVQ2ESBcjs.DEXA_INDICATOR_CODES; exports.MAX_FILE_SIZE = _chunkO25F6G3Kcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkO25F6G3Kcjs.MAX_OBSERVATIONS; exports.T_SCORE_ZONES = T_SCORE_ZONES; exports.UNIT_TO_UCUM = _chunkMJ254F5Kcjs.UNIT_TO_UCUM; exports.ZONE_DEFS = ZONE_DEFS; exports.applyFallbackReferenceRanges = _chunkT22Q6ML7cjs.applyFallbackReferenceRanges; exports.biomarkerRangeDefinitions = _chunkT22Q6ML7cjs.biomarkerRangeDefinitions; exports.calculateNextScreeningDate = calculateNextScreeningDate; exports.cnsToFHIRIdentifier = cnsToFHIRIdentifier; exports.codeToLoinc = _chunk2EVQ2ESBcjs.codeToLoinc; exports.convertUnit = _chunkMJ254F5Kcjs.convertUnit; exports.cpfToFHIRIdentifier = cpfToFHIRIdentifier; exports.defaultReferenceRanges = _chunkT22Q6ML7cjs.defaultReferenceRanges; exports.extractObservationsFromBundle = _chunkO25F6G3Kcjs.extractObservationsFromBundle; exports.filterVisibleBiomarkers = _chunk2EVQ2ESBcjs.filterVisibleBiomarkers; exports.findCodeByName = _chunk2EVQ2ESBcjs.findCodeByName; exports.formatCNS = formatCNS; exports.formatCPF = formatCPF; exports.generateCacFullReference = _chunk2EVQ2ESBcjs.generateCacFullReference; exports.generateDexaFullReference = _chunk2EVQ2ESBcjs.generateDexaFullReference; exports.generateFilteredLLMReference = _chunk2EVQ2ESBcjs.generateFilteredLLMReference; exports.generateLLMReference = _chunk2EVQ2ESBcjs.generateLLMReference; exports.getAllCodes = _chunk2EVQ2ESBcjs.getAllCodes; exports.getAllDefinitions = _chunk2EVQ2ESBcjs.getAllDefinitions; exports.getAllLoincCodes = _chunk2EVQ2ESBcjs.getAllLoincCodes; exports.getAllSearchPatterns = _chunk2EVQ2ESBcjs.getAllSearchPatterns; exports.getBiomarkersByCategory = _chunk2EVQ2ESBcjs.getBiomarkersByCategory; exports.getBiomarkersForCategories = _chunk2EVQ2ESBcjs.getBiomarkersForCategories; exports.getCanonicalUnit = _chunkMJ254F5Kcjs.getCanonicalUnit; exports.getCategoriesByInterval = getCategoriesByInterval; exports.getDaysUntilScreening = getDaysUntilScreening; exports.getDefaultUnit = _chunkMJ254F5Kcjs.getDefaultUnit; exports.getDefinitionByCode = _chunk2EVQ2ESBcjs.getDefinitionByCode; exports.getDefinitionByLoinc = _chunk2EVQ2ESBcjs.getDefinitionByLoinc; exports.getDefinitionsBySex = _chunk2EVQ2ESBcjs.getDefinitionsBySex; exports.getDueCategories = getDueCategories; exports.getFallbackReferenceRange = _chunkT22Q6ML7cjs.getFallbackReferenceRange; exports.getRangeDirection = _chunkT22Q6ML7cjs.getRangeDirection; exports.getReferenceRange = _chunkT22Q6ML7cjs.getReferenceRange; exports.getSIUnit = _chunkMJ254F5Kcjs.getSIUnit; exports.getScreeningInterval = getScreeningInterval; exports.getSexForCode = _chunk2EVQ2ESBcjs.getSexForCode; exports.getVisibleDefinitions = _chunk2EVQ2ESBcjs.getVisibleDefinitions; exports.interventionToFHIRMedicationStatement = interventionToFHIRMedicationStatement; exports.interventionToFHIRObservation = interventionToFHIRObservation; exports.interventionsToFHIRBundle = interventionsToFHIRBundle; exports.isBiomarkerVisible = _chunk2EVQ2ESBcjs.isBiomarkerVisible; exports.isCacDocument = _chunk2EVQ2ESBcjs.isCacDocument; exports.isDexaDocument = _chunk2EVQ2ESBcjs.isDexaDocument; exports.isScreeningDue = isScreeningDue; exports.isValidCode = _chunk2EVQ2ESBcjs.isValidCode; exports.isValidLoinc = _chunk2EVQ2ESBcjs.isValidLoinc; exports.labObservationToFHIR = _chunkPJJVDGX4cjs.labObservationToFHIR; exports.labReportToFHIR = _chunkPJJVDGX4cjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkPJJVDGX4cjs.labResultToFHIRBundle; exports.loincToCode = _chunk2EVQ2ESBcjs.loincToCode; exports.mapFHIRObservationToInternal = _chunkO25F6G3Kcjs.mapFHIRObservationToInternal; exports.normalizeCode = _chunk2EVQ2ESBcjs.normalizeCode; exports.plural = plural; exports.pluralCount = pluralCount; exports.pluralPhrase = pluralPhrase; exports.pluralPhraseCount = pluralPhraseCount; exports.processImportBundle = _chunkO25F6G3Kcjs.processImportBundle; exports.toBiomarkerTests = _chunk2EVQ2ESBcjs.toBiomarkerTests; exports.unitToUCUM = _chunkMJ254F5Kcjs.unitToUCUM; exports.userProfileToFHIR = _chunkPJJVDGX4cjs.userProfileToFHIR; exports.validateCNS = validateCNS; exports.validateCPF = validateCPF; exports.validateFHIRDiagnosticReport = _chunk3ILBFLVQcjs.validateFHIRDiagnosticReport; exports.validateFHIRImportBundle = _chunk3ILBFLVQcjs.validateFHIRImportBundle; exports.validateFHIRObservation = _chunk3ILBFLVQcjs.validateFHIRObservation; exports.validateLoincNameMatch = _chunk2EVQ2ESBcjs.validateLoincNameMatch;
|
|
616
616
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -6,7 +6,7 @@ import { F as FHIRMedicationStatement, a as FHIRObservation, b as FHIRBundle, c
|
|
|
6
6
|
export { d as FHIRAddress, e as FHIRAnnotation, f as FHIRAttachment, g as FHIRBundleEntry, h as FHIRCodeableConcept, i as FHIRCoding, j as FHIRContactPoint, k as FHIRDiagnosticReport, l as FHIRHumanName, m as FHIRPatient, n as FHIRPeriod, o as FHIRQuantity, p as FHIRReference, q as FHIRReferenceRange } from './fhir-types-jTJayiwn.cjs';
|
|
7
7
|
export { FHIRImportResult, ImportError, ImportedObservation, MAX_FILE_SIZE, MAX_OBSERVATIONS, SkippedEntry, extractObservationsFromBundle, mapFHIRObservationToInternal, processImportBundle } from './importer.cjs';
|
|
8
8
|
export { validateFHIRDiagnosticReport, validateFHIRImportBundle, validateFHIRObservation } from './validators.cjs';
|
|
9
|
-
export { BiomarkerRangeDefinition, BiomarkerReferenceRange, RangeDirection, RangeVariant, ReferenceRangeContext, SexKey, applyFallbackReferenceRanges, biomarkerRangeDefinitions, defaultReferenceRanges, getFallbackReferenceRange, getRangeDirection, getReferenceRange } from './reference-ranges.cjs';
|
|
9
|
+
export { BiomarkerRangeDefinition, BiomarkerReferenceRange, FastingRequirement, PregnancyTrimester, RangeDirection, RangeVariant, ReferenceRangeContext, SexKey, applyFallbackReferenceRanges, biomarkerRangeDefinitions, defaultReferenceRanges, getFallbackReferenceRange, getRangeDirection, getReferenceRange } from './reference-ranges.cjs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* FHIR Intervention Converter
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { F as FHIRMedicationStatement, a as FHIRObservation, b as FHIRBundle, c
|
|
|
6
6
|
export { d as FHIRAddress, e as FHIRAnnotation, f as FHIRAttachment, g as FHIRBundleEntry, h as FHIRCodeableConcept, i as FHIRCoding, j as FHIRContactPoint, k as FHIRDiagnosticReport, l as FHIRHumanName, m as FHIRPatient, n as FHIRPeriod, o as FHIRQuantity, p as FHIRReference, q as FHIRReferenceRange } from './fhir-types-jTJayiwn.js';
|
|
7
7
|
export { FHIRImportResult, ImportError, ImportedObservation, MAX_FILE_SIZE, MAX_OBSERVATIONS, SkippedEntry, extractObservationsFromBundle, mapFHIRObservationToInternal, processImportBundle } from './importer.js';
|
|
8
8
|
export { validateFHIRDiagnosticReport, validateFHIRImportBundle, validateFHIRObservation } from './validators.js';
|
|
9
|
-
export { BiomarkerRangeDefinition, BiomarkerReferenceRange, RangeDirection, RangeVariant, ReferenceRangeContext, SexKey, applyFallbackReferenceRanges, biomarkerRangeDefinitions, defaultReferenceRanges, getFallbackReferenceRange, getRangeDirection, getReferenceRange } from './reference-ranges.js';
|
|
9
|
+
export { BiomarkerRangeDefinition, BiomarkerReferenceRange, FastingRequirement, PregnancyTrimester, RangeDirection, RangeVariant, ReferenceRangeContext, SexKey, applyFallbackReferenceRanges, biomarkerRangeDefinitions, defaultReferenceRanges, getFallbackReferenceRange, getRangeDirection, getReferenceRange } from './reference-ranges.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* FHIR Intervention Converter
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkT22Q6ML7cjs = require('./chunk-T22Q6ML7.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 =
|
|
17
|
+
exports.applyFallbackReferenceRanges = _chunkT22Q6ML7cjs.applyFallbackReferenceRanges; exports.biomarkerRangeDefinitions = _chunkT22Q6ML7cjs.biomarkerRangeDefinitions; exports.defaultReferenceRanges = _chunkT22Q6ML7cjs.defaultReferenceRanges; exports.getFallbackReferenceRange = _chunkT22Q6ML7cjs.getFallbackReferenceRange; exports.getRangeDirection = _chunkT22Q6ML7cjs.getRangeDirection; exports.getReferenceRange = _chunkT22Q6ML7cjs.getReferenceRange;
|
|
18
18
|
//# sourceMappingURL=reference-ranges.cjs.map
|