@precisa-saude/fhir 0.7.0 → 0.9.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.
Files changed (39) hide show
  1. package/dist/{chunk-LYDCZW4C.cjs → chunk-D6XKCRS2.cjs} +3 -3
  2. package/dist/{chunk-LYDCZW4C.cjs.map → chunk-D6XKCRS2.cjs.map} +1 -1
  3. package/dist/{chunk-YXYGKTVB.js → chunk-GTKRPCZB.js} +2 -2
  4. package/dist/{chunk-ZYSD6A2K.cjs → chunk-MJ254F5K.cjs} +440 -2
  5. package/dist/chunk-MJ254F5K.cjs.map +1 -0
  6. package/dist/{chunk-4KGWSF55.js → chunk-N6J26FVW.js} +2 -2
  7. package/dist/{chunk-CPZ7YNON.cjs → chunk-PJJVDGX4.cjs} +4 -4
  8. package/dist/{chunk-CPZ7YNON.cjs.map → chunk-PJJVDGX4.cjs.map} +1 -1
  9. package/dist/chunk-R4MUCMO3.js +917 -0
  10. package/dist/chunk-R4MUCMO3.js.map +1 -0
  11. package/dist/cli.js +425 -1
  12. package/dist/{converter-Dee-qjBV.d.cts → converter-BAWBB9Gp.d.cts} +1 -1
  13. package/dist/{converter-C-QpCcTL.d.ts → converter-D74wBs5k.d.ts} +1 -1
  14. package/dist/converter.cjs +3 -3
  15. package/dist/converter.d.cts +2 -2
  16. package/dist/converter.d.ts +2 -2
  17. package/dist/converter.js +2 -2
  18. package/dist/{fhir-types-D9hUzGrc.d.ts → fhir-types-jTJayiwn.d.cts} +8 -1
  19. package/dist/{fhir-types-D9hUzGrc.d.cts → fhir-types-jTJayiwn.d.ts} +8 -1
  20. package/dist/importer.d.cts +1 -1
  21. package/dist/importer.d.ts +1 -1
  22. package/dist/index.cjs +79 -5
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +62 -5
  25. package/dist/index.d.ts +62 -5
  26. package/dist/index.js +77 -3
  27. package/dist/index.js.map +1 -1
  28. package/dist/reference-ranges.cjs +3 -3
  29. package/dist/reference-ranges.js +2 -2
  30. package/dist/units.cjs +2 -2
  31. package/dist/units.js +1 -1
  32. package/dist/validators.d.cts +1 -1
  33. package/dist/validators.d.ts +1 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-R25V2E6S.js +0 -479
  36. package/dist/chunk-R25V2E6S.js.map +0 -1
  37. package/dist/chunk-ZYSD6A2K.cjs.map +0 -1
  38. /package/dist/{chunk-YXYGKTVB.js.map → chunk-GTKRPCZB.js.map} +0 -0
  39. /package/dist/{chunk-4KGWSF55.js.map → chunk-N6J26FVW.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getCanonicalUnit
3
- } from "./chunk-R25V2E6S.js";
3
+ } from "./chunk-R4MUCMO3.js";
4
4
 
5
5
  // src/reference-ranges.ts
6
6
  var biomarkerRangeDefinitions = {
@@ -1661,4 +1661,4 @@ export {
1661
1661
  getFallbackReferenceRange,
1662
1662
  applyFallbackReferenceRanges
1663
1663
  };
1664
- //# sourceMappingURL=chunk-YXYGKTVB.js.map
1664
+ //# sourceMappingURL=chunk-GTKRPCZB.js.map
@@ -136,7 +136,49 @@ var URINE_SEDIMENT = {
136
136
  siUcum: "/[HPF]",
137
137
  siUnit: "/HPF"
138
138
  };
139
+ var PERCENTAGE_ALIASES = { "%": "%", pct: "%", percent: "%" };
140
+ var PERCENTAGE = {
141
+ canonicalUcum: "%",
142
+ canonicalUnit: "%",
143
+ siUcum: "%",
144
+ siUnit: "%"
145
+ };
146
+ var ENZYME_ALIASES = { "iu/l": "U/L", "u/l": "U/L" };
147
+ var ENZYME = {
148
+ canonicalUcum: "U/L",
149
+ canonicalUnit: "U/L",
150
+ siUcum: "U/L",
151
+ siUnit: "U/L"
152
+ };
153
+ var ELECTROLYTE_MONO_ALIASES = { "meq/l": "mEq/L", "mmol/l": "mmol/L" };
154
+ var ELECTROLYTE_MONO = {
155
+ canonicalUcum: "meq/L",
156
+ canonicalUnit: "mEq/L",
157
+ siUcum: "mmol/L",
158
+ siUnit: "mmol/L"
159
+ };
160
+ var CAC_ALIASES = { au: "AU" };
161
+ var CAC = {
162
+ canonicalUcum: "{score}",
163
+ canonicalUnit: "AU",
164
+ siUcum: "{score}",
165
+ siUnit: "AU"
166
+ };
167
+ var NMOL_L_ALIASES = { "nmol/l": "nmol/L" };
168
+ var NMOL_L = {
169
+ canonicalUcum: "nmol/L",
170
+ canonicalUnit: "nmol/L",
171
+ siUcum: "nmol/L",
172
+ siUnit: "nmol/L"
173
+ };
139
174
  var BIOMARKER_UNITS = {
175
+ AFP: {
176
+ aliases: { "ng/ml": "ng/mL" },
177
+ canonicalUcum: "ng/mL",
178
+ canonicalUnit: "ng/mL",
179
+ siUcum: "ng/mL",
180
+ siUnit: "ng/mL"
181
+ },
140
182
  Albumin: {
141
183
  aliases: { "g/dl": "g/dL", "g/l": "g/L" },
142
184
  canonicalUcum: "g/dL",
@@ -144,6 +186,17 @@ var BIOMARKER_UNITS = {
144
186
  siUcum: "g/L",
145
187
  siUnit: "g/L"
146
188
  },
189
+ AlkalinePhosphatase: { aliases: ENZYME_ALIASES, ...ENZYME },
190
+ ALT: { aliases: ENZYME_ALIASES, ...ENZYME },
191
+ AMH: {
192
+ aliases: { "ng/ml": "ng/mL", "pmol/l": "pmol/L" },
193
+ canonicalUcum: "ng/mL",
194
+ canonicalUnit: "ng/mL",
195
+ molecularWeight: 12500,
196
+ siUcum: "pmol/L",
197
+ siUnit: "pmol/L"
198
+ },
199
+ Amylase: { aliases: ENZYME_ALIASES, ...ENZYME },
147
200
  AntiThyroglobulin: {
148
201
  aliases: { "iu/ml": "IU/mL", "ui/ml": "IU/mL" },
149
202
  canonicalUcum: "[iU]/mL",
@@ -151,8 +204,97 @@ var BIOMARKER_UNITS = {
151
204
  siUcum: "[iU]/mL",
152
205
  siUnit: "IU/mL"
153
206
  },
207
+ AntiTPO: {
208
+ aliases: { "iu/ml": "IU/mL", "ui/ml": "IU/mL" },
209
+ canonicalUcum: "[iU]/mL",
210
+ canonicalUnit: "IU/mL",
211
+ siUcum: "[iU]/mL",
212
+ siUnit: "IU/mL"
213
+ },
214
+ AoA1: {
215
+ aliases: { "mg/dl": "mg/dL" },
216
+ canonicalUcum: "mg/dL",
217
+ canonicalUnit: "mg/dL",
218
+ siUcum: "mg/dL",
219
+ siUnit: "mg/dL"
220
+ },
221
+ AorticValveCalcium: { aliases: CAC_ALIASES, ...CAC },
222
+ ApoB: {
223
+ aliases: { "mg/dl": "mg/dL" },
224
+ canonicalUcum: "mg/dL",
225
+ canonicalUnit: "mg/dL",
226
+ siUcum: "mg/dL",
227
+ siUnit: "mg/dL"
228
+ },
229
+ AST: { aliases: ENZYME_ALIASES, ...ENZYME },
230
+ Basophils: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
154
231
  Basophils_Abs: { aliases: CBC_DIFF_ALIASES, ...CBC_DIFF },
232
+ BilirubinDirect: {
233
+ aliases: { "mg/dl": "mg/dL", "\xB5mol/l": "\xB5mol/L" },
234
+ canonicalUcum: "mg/dL",
235
+ canonicalUnit: "mg/dL",
236
+ molecularWeight: 584.66,
237
+ siUcum: "umol/L",
238
+ siUnit: "\xB5mol/L"
239
+ },
240
+ BilirubinIndirect: {
241
+ aliases: { "mg/dl": "mg/dL", "\xB5mol/l": "\xB5mol/L" },
242
+ canonicalUcum: "mg/dL",
243
+ canonicalUnit: "mg/dL",
244
+ molecularWeight: 584.66,
245
+ siUcum: "umol/L",
246
+ siUnit: "\xB5mol/L"
247
+ },
248
+ BilirubinTotal: {
249
+ aliases: { "mg/dl": "mg/dL", "\xB5mol/l": "\xB5mol/L" },
250
+ canonicalUcum: "mg/dL",
251
+ canonicalUnit: "mg/dL",
252
+ molecularWeight: 584.66,
253
+ siUcum: "umol/L",
254
+ siUnit: "\xB5mol/L"
255
+ },
155
256
  BMC: { aliases: DEXA_KG_ALIASES, ...DEXA_KG },
257
+ BMI: {
258
+ aliases: { "kg/m2": "kg/m\xB2", "kg/m\xB2": "kg/m\xB2" },
259
+ canonicalUcum: "kg/m2",
260
+ canonicalUnit: "kg/m\xB2",
261
+ siUcum: "kg/m2",
262
+ siUnit: "kg/m\xB2"
263
+ },
264
+ BNP: {
265
+ aliases: { "pg/ml": "pg/mL" },
266
+ canonicalUcum: "pg/mL",
267
+ canonicalUnit: "pg/mL",
268
+ siUcum: "pg/mL",
269
+ siUnit: "pg/mL"
270
+ },
271
+ CA125: {
272
+ aliases: { "u/ml": "U/mL" },
273
+ canonicalUcum: "U/mL",
274
+ canonicalUnit: "U/mL",
275
+ siUcum: "U/mL",
276
+ siUnit: "U/mL"
277
+ },
278
+ CAC_LAD: { aliases: CAC_ALIASES, ...CAC },
279
+ CAC_LCX: { aliases: CAC_ALIASES, ...CAC },
280
+ CAC_LMA: { aliases: CAC_ALIASES, ...CAC },
281
+ CAC_RCA: { aliases: CAC_ALIASES, ...CAC },
282
+ Calcium: {
283
+ aliases: { "mg/dl": "mg/dL", "mmol/l": "mmol/L" },
284
+ canonicalUcum: "mg/dL",
285
+ canonicalUnit: "mg/dL",
286
+ molecularWeight: 40.08,
287
+ siUcum: "mmol/L",
288
+ siUnit: "mmol/L"
289
+ },
290
+ CEA: {
291
+ aliases: { "ng/ml": "ng/mL" },
292
+ canonicalUcum: "ng/mL",
293
+ canonicalUnit: "ng/mL",
294
+ siUcum: "ng/mL",
295
+ siUnit: "ng/mL"
296
+ },
297
+ Chloride: { aliases: ELECTROLYTE_MONO_ALIASES, ...ELECTROLYTE_MONO },
156
298
  Cholesterol: {
157
299
  aliases: { "mg/dl": "mg/dL", "mmol/l": "mmol/L" },
158
300
  canonicalUcum: "mg/dL",
@@ -161,6 +303,16 @@ var BIOMARKER_UNITS = {
161
303
  siUcum: "mmol/L",
162
304
  siUnit: "mmol/L"
163
305
  },
306
+ CK: { aliases: ENZYME_ALIASES, ...ENZYME },
307
+ CO2: { aliases: ELECTROLYTE_MONO_ALIASES, ...ELECTROLYTE_MONO },
308
+ Cortisol: {
309
+ aliases: { "mcg/dl": "\xB5g/dL", "nmol/l": "nmol/L", "ug/dl": "\xB5g/dL", "\xB5g/dl": "\xB5g/dL" },
310
+ canonicalUcum: "ug/dL",
311
+ canonicalUnit: "\xB5g/dL",
312
+ molecularWeight: 362.46,
313
+ siUcum: "nmol/L",
314
+ siUnit: "nmol/L"
315
+ },
164
316
  Creatinine: {
165
317
  aliases: { "mg/dl": "mg/dL", "umol/l": "\xB5mol/L", "\xB5mol/l": "\xB5mol/L" },
166
318
  canonicalUcum: "mg/dL",
@@ -176,6 +328,22 @@ var BIOMARKER_UNITS = {
176
328
  siUcum: "mg/L",
177
329
  siUnit: "mg/L"
178
330
  },
331
+ DHEAS: {
332
+ aliases: { "mcg/dl": "\xB5g/dL", "ug/dl": "\xB5g/dL", "\xB5g/dl": "\xB5g/dL", "\xB5mol/l": "\xB5mol/L" },
333
+ canonicalUcum: "ug/dL",
334
+ canonicalUnit: "\xB5g/dL",
335
+ molecularWeight: 368.49,
336
+ siUcum: "umol/L",
337
+ siUnit: "\xB5mol/L"
338
+ },
339
+ DHT: {
340
+ aliases: { "ng/dl": "ng/dL", "nmol/l": "nmol/L" },
341
+ canonicalUcum: "ng/dL",
342
+ canonicalUnit: "ng/dL",
343
+ molecularWeight: 290.44,
344
+ siUcum: "nmol/L",
345
+ siUnit: "nmol/L"
346
+ },
179
347
  eGFR: {
180
348
  aliases: {
181
349
  "ml/min/1,73 m2": "mL/min/1.73m\xB2",
@@ -187,7 +355,16 @@ var BIOMARKER_UNITS = {
187
355
  siUcum: "mL/min/{1.73_m2}",
188
356
  siUnit: "mL/min/1.73m\xB2"
189
357
  },
358
+ Eosinophils: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
190
359
  Eosinophils_Abs: { aliases: CBC_DIFF_ALIASES, ...CBC_DIFF },
360
+ EPADPADHA: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
361
+ ESR: {
362
+ aliases: { "mm/h": "mm/h", "mm/hr": "mm/h" },
363
+ canonicalUcum: "mm/h",
364
+ canonicalUnit: "mm/h",
365
+ siUcum: "mm/h",
366
+ siUnit: "mm/h"
367
+ },
191
368
  Estradiol: {
192
369
  aliases: { "ng/dl": "ng/dL", "pg/ml": "pg/mL" },
193
370
  canonicalUcum: "pg/mL",
@@ -210,6 +387,14 @@ var BIOMARKER_UNITS = {
210
387
  siUcum: "ug/L",
211
388
  siUnit: "\xB5g/L"
212
389
  },
390
+ Folate: {
391
+ aliases: { "ng/ml": "ng/mL", "nmol/l": "nmol/L" },
392
+ canonicalUcum: "ng/mL",
393
+ canonicalUnit: "ng/mL",
394
+ molecularWeight: 441.4,
395
+ siUcum: "nmol/L",
396
+ siUnit: "nmol/L"
397
+ },
213
398
  FSH: {
214
399
  aliases: {
215
400
  "iu/l": "mIU/mL",
@@ -221,6 +406,14 @@ var BIOMARKER_UNITS = {
221
406
  siUcum: "[iU]/L",
222
407
  siUnit: "IU/L"
223
408
  },
409
+ GGT: { aliases: ENZYME_ALIASES, ...ENZYME },
410
+ Globulin: {
411
+ aliases: { "g/dl": "g/dL", "g/l": "g/L" },
412
+ canonicalUcum: "g/dL",
413
+ canonicalUnit: "g/dL",
414
+ siUcum: "g/L",
415
+ siUnit: "g/L"
416
+ },
224
417
  Glucose: {
225
418
  aliases: { "mg/dl": "mg/dL", "mmol/l": "mmol/L" },
226
419
  canonicalUcum: "mg/dL",
@@ -229,6 +422,8 @@ var BIOMARKER_UNITS = {
229
422
  siUcum: "mmol/L",
230
423
  siUnit: "mmol/L"
231
424
  },
425
+ HbA1c: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
426
+ Hct: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
232
427
  HDL: {
233
428
  aliases: { "mg/dl": "mg/dL", "mmol/l": "mmol/L" },
234
429
  canonicalUcum: "mg/dL",
@@ -237,6 +432,7 @@ var BIOMARKER_UNITS = {
237
432
  siUcum: "mmol/L",
238
433
  siUnit: "mmol/L"
239
434
  },
435
+ HDL_Large: { aliases: NMOL_L_ALIASES, ...NMOL_L },
240
436
  Hgb: {
241
437
  aliases: { "g/dl": "g/dL", "g/l": "g/L" },
242
438
  canonicalUcum: "g/dL",
@@ -244,6 +440,34 @@ var BIOMARKER_UNITS = {
244
440
  siUcum: "g/L",
245
441
  siUnit: "g/L"
246
442
  },
443
+ Homocysteine: {
444
+ aliases: { "umol/l": "\xB5mol/L", "\xB5mol/l": "\xB5mol/L" },
445
+ canonicalUcum: "umol/L",
446
+ canonicalUnit: "\xB5mol/L",
447
+ siUcum: "umol/L",
448
+ siUnit: "\xB5mol/L"
449
+ },
450
+ IgA: {
451
+ aliases: { "g/l": "g/L", "mg/dl": "mg/dL" },
452
+ canonicalUcum: "g/L",
453
+ canonicalUnit: "g/L",
454
+ siUcum: "g/L",
455
+ siUnit: "g/L"
456
+ },
457
+ IgG: {
458
+ aliases: { "g/l": "g/L", "mg/dl": "mg/dL" },
459
+ canonicalUcum: "g/L",
460
+ canonicalUnit: "g/L",
461
+ siUcum: "g/L",
462
+ siUnit: "g/L"
463
+ },
464
+ INR: {
465
+ aliases: { "{ratio}": "{ratio}" },
466
+ canonicalUcum: "{ratio}",
467
+ canonicalUnit: "{ratio}",
468
+ siUcum: "{ratio}",
469
+ siUnit: "{ratio}"
470
+ },
247
471
  Insulin: {
248
472
  aliases: {
249
473
  "mu/l": "uIU/mL",
@@ -276,6 +500,8 @@ var BIOMARKER_UNITS = {
276
500
  siUcum: "mmol/L",
277
501
  siUnit: "mmol/L"
278
502
  },
503
+ LDL_Medium: { aliases: NMOL_L_ALIASES, ...NMOL_L },
504
+ LDL_ParticleNumber: { aliases: NMOL_L_ALIASES, ...NMOL_L },
279
505
  LDL_Peak_Size: {
280
506
  aliases: { \u00E5: "Ao", angstrom: "Ao", ao: "Ao", nm: "nm" },
281
507
  canonicalUcum: "Ao",
@@ -283,7 +509,23 @@ var BIOMARKER_UNITS = {
283
509
  siUcum: "nm",
284
510
  siUnit: "nm"
285
511
  },
512
+ LDL_Small: { aliases: NMOL_L_ALIASES, ...NMOL_L },
513
+ Lead: {
514
+ aliases: { "mcg/dl": "\xB5g/dL", "ug/dl": "\xB5g/dL", "\xB5g/dl": "\xB5g/dL", "\xB5mol/l": "\xB5mol/L" },
515
+ canonicalUcum: "ug/dL",
516
+ canonicalUnit: "\xB5g/dL",
517
+ molecularWeight: 207.2,
518
+ siUcum: "umol/L",
519
+ siUnit: "\xB5mol/L"
520
+ },
286
521
  LeanMass: { aliases: DEXA_KG_ALIASES, ...DEXA_KG },
522
+ Leptin: {
523
+ aliases: { "ng/ml": "ng/mL" },
524
+ canonicalUcum: "ng/mL",
525
+ canonicalUnit: "ng/mL",
526
+ siUcum: "ng/mL",
527
+ siUnit: "ng/mL"
528
+ },
287
529
  Leukocytes_Urine: { aliases: URINE_SEDIMENT_ALIASES, ...URINE_SEDIMENT },
288
530
  LH: {
289
531
  aliases: {
@@ -296,6 +538,7 @@ var BIOMARKER_UNITS = {
296
538
  siUcum: "[iU]/L",
297
539
  siUnit: "IU/L"
298
540
  },
541
+ Lipase: { aliases: ENZYME_ALIASES, ...ENZYME },
299
542
  Lipoprotein_a: {
300
543
  aliases: { "mg/dl": "mg/dL", "nmol/l": "nmol/L" },
301
544
  canonicalUcum: "nmol/L",
@@ -303,7 +546,15 @@ var BIOMARKER_UNITS = {
303
546
  siUcum: "nmol/L",
304
547
  siUnit: "nmol/L"
305
548
  },
549
+ Lymphocytes: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
306
550
  Lymphocytes_Abs: { aliases: CBC_DIFF_ALIASES, ...CBC_DIFF },
551
+ MCH: {
552
+ aliases: { pg: "pg" },
553
+ canonicalUcum: "pg",
554
+ canonicalUnit: "pg",
555
+ siUcum: "pg",
556
+ siUnit: "pg"
557
+ },
307
558
  MCHC: {
308
559
  aliases: { "g/dl": "g/dL", "g/l": "g/L" },
309
560
  canonicalUcum: "g/dL",
@@ -311,9 +562,81 @@ var BIOMARKER_UNITS = {
311
562
  siUcum: "g/L",
312
563
  siUnit: "g/L"
313
564
  },
565
+ MCV: {
566
+ aliases: { fl: "fL" },
567
+ canonicalUcum: "fL",
568
+ canonicalUnit: "fL",
569
+ siUcum: "fL",
570
+ siUnit: "fL"
571
+ },
572
+ Mercury: {
573
+ aliases: { "mcg/l": "\xB5g/L", "nmol/l": "nmol/L", "ug/l": "\xB5g/L", "\xB5g/l": "\xB5g/L" },
574
+ canonicalUcum: "ug/L",
575
+ canonicalUnit: "\xB5g/L",
576
+ molecularWeight: 200.59,
577
+ siUcum: "nmol/L",
578
+ siUnit: "nmol/L"
579
+ },
580
+ Microalbumin_Urine: {
581
+ aliases: { "mg/l": "mg/L" },
582
+ canonicalUcum: "mg/L",
583
+ canonicalUnit: "mg/L",
584
+ siUcum: "mg/L",
585
+ siUnit: "mg/L"
586
+ },
587
+ MMA: { aliases: NMOL_L_ALIASES, ...NMOL_L },
588
+ Monocytes: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
314
589
  Monocytes_Abs: { aliases: CBC_DIFF_ALIASES, ...CBC_DIFF },
590
+ MPV: {
591
+ aliases: { fl: "fL" },
592
+ canonicalUcum: "fL",
593
+ canonicalUnit: "fL",
594
+ siUcum: "fL",
595
+ siUnit: "fL"
596
+ },
597
+ Myeloperoxidase: {
598
+ aliases: { "pmol/l": "pmol/L" },
599
+ canonicalUcum: "pmol/L",
600
+ canonicalUnit: "pmol/L",
601
+ siUcum: "pmol/L",
602
+ siUnit: "pmol/L"
603
+ },
604
+ Neutrophils: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
315
605
  Neutrophils_Abs: { aliases: CBC_DIFF_ALIASES, ...CBC_DIFF },
606
+ // MW 386.65 = colesterol livre. Frações lipoproteicas são heterogêneas,
607
+ // mas a conversão mg/dL→mmol/L usa MW do colesterol por convenção clínica.
608
+ NonHDL_Cholesterol: {
609
+ aliases: { "mg/dl": "mg/dL", "mmol/l": "mmol/L" },
610
+ canonicalUcum: "mg/dL",
611
+ canonicalUnit: "mg/dL",
612
+ molecularWeight: 386.65,
613
+ siUcum: "mmol/L",
614
+ siUnit: "mmol/L"
615
+ },
616
+ NTproBNP: {
617
+ aliases: { "pg/ml": "pg/mL" },
618
+ canonicalUcum: "pg/mL",
619
+ canonicalUnit: "pg/mL",
620
+ siUcum: "pg/mL",
621
+ siUnit: "pg/mL"
622
+ },
623
+ Omega3_DHA: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
624
+ Omega3_DPA: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
625
+ Omega3_EPA: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
626
+ Omega3_Total: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
627
+ Omega6_AA: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
628
+ Omega6_LA: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
629
+ Omega6_Total: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
316
630
  Platelets: { aliases: CBC_DIFF_ALIASES, ...CBC_DIFF },
631
+ Potassium: { aliases: ELECTROLYTE_MONO_ALIASES, ...ELECTROLYTE_MONO },
632
+ Progesterone: {
633
+ aliases: { "ng/ml": "ng/mL", "nmol/l": "nmol/L" },
634
+ canonicalUcum: "ng/mL",
635
+ canonicalUnit: "ng/mL",
636
+ molecularWeight: 314.46,
637
+ siUcum: "nmol/L",
638
+ siUnit: "nmol/L"
639
+ },
317
640
  Prolactin: {
318
641
  aliases: {
319
642
  "microg/l": "ng/mL",
@@ -325,6 +648,27 @@ var BIOMARKER_UNITS = {
325
648
  siUcum: "ug/L",
326
649
  siUnit: "\xB5g/L"
327
650
  },
651
+ ProthrombinTime: {
652
+ aliases: { s: "s", sec: "s" },
653
+ canonicalUcum: "s",
654
+ canonicalUnit: "s",
655
+ siUcum: "s",
656
+ siUnit: "s"
657
+ },
658
+ PSA: {
659
+ aliases: { "ng/ml": "ng/mL" },
660
+ canonicalUcum: "ng/mL",
661
+ canonicalUnit: "ng/mL",
662
+ siUcum: "ng/mL",
663
+ siUnit: "ng/mL"
664
+ },
665
+ PSA_Free: {
666
+ aliases: { "ng/ml": "ng/mL" },
667
+ canonicalUcum: "ng/mL",
668
+ canonicalUnit: "ng/mL",
669
+ siUcum: "ng/mL",
670
+ siUnit: "ng/mL"
671
+ },
328
672
  RBC: {
329
673
  aliases: {
330
674
  "/ul": "/uL",
@@ -342,6 +686,49 @@ var BIOMARKER_UNITS = {
342
686
  siUnit: "M/uL"
343
687
  },
344
688
  RBC_Urine: { aliases: URINE_SEDIMENT_ALIASES, ...URINE_SEDIMENT },
689
+ RDW: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
690
+ Reticulocytes: { aliases: PERCENTAGE_ALIASES, ...PERCENTAGE },
691
+ RheumatoidFactor: {
692
+ aliases: { "iu/ml": "IU/mL", "ui/ml": "IU/mL" },
693
+ canonicalUcum: "[iU]/mL",
694
+ canonicalUnit: "IU/mL",
695
+ siUcum: "[iU]/mL",
696
+ siUnit: "IU/mL"
697
+ },
698
+ SHBG: { aliases: NMOL_L_ALIASES, ...NMOL_L },
699
+ Sodium: { aliases: ELECTROLYTE_MONO_ALIASES, ...ELECTROLYTE_MONO },
700
+ T3Free: {
701
+ aliases: { "pg/ml": "pg/mL", "pmol/l": "pmol/L" },
702
+ canonicalUcum: "pg/mL",
703
+ canonicalUnit: "pg/mL",
704
+ molecularWeight: 650.98,
705
+ siUcum: "pmol/L",
706
+ siUnit: "pmol/L"
707
+ },
708
+ T4Free: {
709
+ aliases: { "ng/dl": "ng/dL", "pmol/l": "pmol/L" },
710
+ canonicalUcum: "ng/dL",
711
+ canonicalUnit: "ng/dL",
712
+ molecularWeight: 776.87,
713
+ siUcum: "pmol/L",
714
+ siUnit: "pmol/L"
715
+ },
716
+ T4Total: {
717
+ aliases: { "mcg/dl": "\xB5g/dL", "nmol/l": "nmol/L", "ug/dl": "\xB5g/dL", "\xB5g/dl": "\xB5g/dL" },
718
+ canonicalUcum: "ug/dL",
719
+ canonicalUnit: "\xB5g/dL",
720
+ molecularWeight: 776.87,
721
+ siUcum: "nmol/L",
722
+ siUnit: "nmol/L"
723
+ },
724
+ Testosterone: {
725
+ aliases: { "ng/dl": "ng/dL", "nmol/l": "nmol/L" },
726
+ canonicalUcum: "ng/dL",
727
+ canonicalUnit: "ng/dL",
728
+ molecularWeight: 288.42,
729
+ siUcum: "nmol/L",
730
+ siUnit: "nmol/L"
731
+ },
345
732
  TestosteroneFree: {
346
733
  aliases: { "pg/ml": "pg/mL", "pmol/l": "pmol/L" },
347
734
  canonicalUcum: "pg/mL",
@@ -363,6 +750,13 @@ var BIOMARKER_UNITS = {
363
750
  siUnit: "\xB5mol/L"
364
751
  },
365
752
  TotalMass: { aliases: DEXA_KG_ALIASES, ...DEXA_KG },
753
+ TotalProtein: {
754
+ aliases: { "g/dl": "g/dL", "g/l": "g/L" },
755
+ canonicalUcum: "g/dL",
756
+ canonicalUnit: "g/dL",
757
+ siUcum: "g/L",
758
+ siUnit: "g/L"
759
+ },
366
760
  Triglycerides: {
367
761
  aliases: { "mg/dl": "mg/dL", "mmol/l": "mmol/L" },
368
762
  canonicalUcum: "mg/dL",
@@ -371,6 +765,20 @@ var BIOMARKER_UNITS = {
371
765
  siUcum: "mmol/L",
372
766
  siUnit: "mmol/L"
373
767
  },
768
+ TroponinI: {
769
+ aliases: { "ng/ml": "ng/mL" },
770
+ canonicalUcum: "ng/mL",
771
+ canonicalUnit: "ng/mL",
772
+ siUcum: "ng/mL",
773
+ siUnit: "ng/mL"
774
+ },
775
+ TroponinT: {
776
+ aliases: { "ng/l": "ng/L" },
777
+ canonicalUcum: "ng/L",
778
+ canonicalUnit: "ng/L",
779
+ siUcum: "ng/L",
780
+ siUnit: "ng/L"
781
+ },
374
782
  TSH: {
375
783
  aliases: {
376
784
  "miu/l": "uIU/mL",
@@ -391,6 +799,14 @@ var BIOMARKER_UNITS = {
391
799
  siUcum: "mmol/L",
392
800
  siUnit: "mmol/L"
393
801
  },
802
+ UricAcid: {
803
+ aliases: { "mg/dl": "mg/dL", "\xB5mol/l": "\xB5mol/L" },
804
+ canonicalUcum: "mg/dL",
805
+ canonicalUnit: "mg/dL",
806
+ molecularWeight: 168.11,
807
+ siUcum: "umol/L",
808
+ siUnit: "\xB5mol/L"
809
+ },
394
810
  VATMass: { aliases: DEXA_KG_ALIASES, ...DEXA_KG },
395
811
  VATVolume: {
396
812
  aliases: { cm3: "cm3", "cm\xB3": "cm3", in3: "[in_i]3", "in\xB3": "[in_i]3" },
@@ -414,6 +830,14 @@ var BIOMARKER_UNITS = {
414
830
  siUcum: "nmol/L",
415
831
  siUnit: "nmol/L"
416
832
  },
833
+ VLDL: {
834
+ aliases: { "mg/dl": "mg/dL", "mmol/l": "mmol/L" },
835
+ canonicalUcum: "mg/dL",
836
+ canonicalUnit: "mg/dL",
837
+ molecularWeight: 386.65,
838
+ siUcum: "mmol/L",
839
+ siUnit: "mmol/L"
840
+ },
417
841
  WBC: { aliases: CBC_DIFF_ALIASES, ...CBC_DIFF }
418
842
  };
419
843
  function getCanonicalUnit(code) {
@@ -428,6 +852,10 @@ function normalizeUnit(unit, config) {
428
852
  var FIXED_FACTORS = {
429
853
  "g/dL -> g/L": 10,
430
854
  "g/L -> g/dL": 0.1,
855
+ "g/L -> mg/dL": 100,
856
+ "mEq/L -> mmol/L": 1,
857
+ "mg/dL -> g/L": 0.01,
858
+ "mmol/L -> mEq/L": 1,
431
859
  "ng/dL -> pg/mL": 10,
432
860
  "ng/mL -> \xB5g/L": 1,
433
861
  "pg/mL -> ng/dL": 0.1,
@@ -438,12 +866,22 @@ var MW_CONVERSIONS = {
438
866
  "mg/dL -> \xB5mol/L": { divideByMW: true, scale: 1e4 },
439
867
  "mmol/L -> mg/dL": { divideByMW: false, scale: 10 },
440
868
  "ng/dL -> nmol/L": { divideByMW: true, scale: 10 },
869
+ "ng/dL -> pmol/L": { divideByMW: true, scale: 1e4 },
441
870
  "ng/mL -> nmol/L": { divideByMW: true, scale: 1e3 },
871
+ "ng/mL -> pmol/L": { divideByMW: true, scale: 1e6 },
442
872
  "nmol/L -> ng/dL": { divideByMW: false, scale: 10 },
443
873
  "nmol/L -> ng/mL": { divideByMW: false, scale: 1e3 },
874
+ "nmol/L -> \xB5g/dL": { divideByMW: false, scale: 1e4 },
875
+ "nmol/L -> \xB5g/L": { divideByMW: false, scale: 1e3 },
444
876
  "pg/mL -> pmol/L": { divideByMW: true, scale: 1e3 },
877
+ "pmol/L -> ng/dL": { divideByMW: false, scale: 1e4 },
878
+ "pmol/L -> ng/mL": { divideByMW: false, scale: 1e6 },
445
879
  "pmol/L -> pg/mL": { divideByMW: false, scale: 1e3 },
446
- "\xB5mol/L -> mg/dL": { divideByMW: false, scale: 1e4 }
880
+ "\xB5g/dL -> nmol/L": { divideByMW: true, scale: 1e4 },
881
+ "\xB5g/dL -> \xB5mol/L": { divideByMW: true, scale: 10 },
882
+ "\xB5g/L -> nmol/L": { divideByMW: true, scale: 1e3 },
883
+ "\xB5mol/L -> mg/dL": { divideByMW: false, scale: 1e4 },
884
+ "\xB5mol/L -> \xB5g/dL": { divideByMW: false, scale: 10 }
447
885
  };
448
886
  function convertUnit(value, fromUnit, toUnit, biomarkerCode) {
449
887
  const config = BIOMARKER_UNITS[biomarkerCode];
@@ -476,4 +914,4 @@ function convertUnit(value, fromUnit, toUnit, biomarkerCode) {
476
914
 
477
915
 
478
916
  exports.UNIT_TO_UCUM = UNIT_TO_UCUM; exports.BIOMARKER_DEFAULT_UNIT = BIOMARKER_DEFAULT_UNIT; exports.unitToUCUM = unitToUCUM; exports.getDefaultUnit = getDefaultUnit; exports.BIOMARKER_UNITS = BIOMARKER_UNITS; exports.getCanonicalUnit = getCanonicalUnit; exports.getSIUnit = getSIUnit; exports.convertUnit = convertUnit;
479
- //# sourceMappingURL=chunk-ZYSD6A2K.cjs.map
917
+ //# sourceMappingURL=chunk-MJ254F5K.cjs.map