@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.
- package/dist/{chunk-LYDCZW4C.cjs → chunk-D6XKCRS2.cjs} +3 -3
- package/dist/{chunk-LYDCZW4C.cjs.map → chunk-D6XKCRS2.cjs.map} +1 -1
- package/dist/{chunk-YXYGKTVB.js → chunk-GTKRPCZB.js} +2 -2
- package/dist/{chunk-ZYSD6A2K.cjs → chunk-MJ254F5K.cjs} +440 -2
- package/dist/chunk-MJ254F5K.cjs.map +1 -0
- package/dist/{chunk-4KGWSF55.js → chunk-N6J26FVW.js} +2 -2
- package/dist/{chunk-CPZ7YNON.cjs → chunk-PJJVDGX4.cjs} +4 -4
- package/dist/{chunk-CPZ7YNON.cjs.map → chunk-PJJVDGX4.cjs.map} +1 -1
- package/dist/chunk-R4MUCMO3.js +917 -0
- package/dist/chunk-R4MUCMO3.js.map +1 -0
- package/dist/cli.js +425 -1
- package/dist/{converter-Dee-qjBV.d.cts → converter-BAWBB9Gp.d.cts} +1 -1
- package/dist/{converter-C-QpCcTL.d.ts → converter-D74wBs5k.d.ts} +1 -1
- package/dist/converter.cjs +3 -3
- package/dist/converter.d.cts +2 -2
- package/dist/converter.d.ts +2 -2
- package/dist/converter.js +2 -2
- package/dist/{fhir-types-D9hUzGrc.d.ts → fhir-types-jTJayiwn.d.cts} +8 -1
- package/dist/{fhir-types-D9hUzGrc.d.cts → fhir-types-jTJayiwn.d.ts} +8 -1
- package/dist/importer.d.cts +1 -1
- package/dist/importer.d.ts +1 -1
- package/dist/index.cjs +79 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +62 -5
- package/dist/index.d.ts +62 -5
- package/dist/index.js +77 -3
- package/dist/index.js.map +1 -1
- package/dist/reference-ranges.cjs +3 -3
- package/dist/reference-ranges.js +2 -2
- package/dist/units.cjs +2 -2
- package/dist/units.js +1 -1
- package/dist/validators.d.cts +1 -1
- package/dist/validators.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-R25V2E6S.js +0 -479
- package/dist/chunk-R25V2E6S.js.map +0 -1
- package/dist/chunk-ZYSD6A2K.cjs.map +0 -1
- /package/dist/{chunk-YXYGKTVB.js.map → chunk-GTKRPCZB.js.map} +0 -0
- /package/dist/{chunk-4KGWSF55.js.map → chunk-N6J26FVW.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMJ254F5Kcjs = require('./chunk-MJ254F5K.cjs');
|
|
4
4
|
|
|
5
5
|
// src/reference-ranges.ts
|
|
6
6
|
var biomarkerRangeDefinitions = {
|
|
@@ -1636,7 +1636,7 @@ function applyFallbackReferenceRanges(biomarkers) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
const fallback = getFallbackReferenceRange(biomarker.code);
|
|
1638
1638
|
if (fallback) {
|
|
1639
|
-
const canonicalUnit =
|
|
1639
|
+
const canonicalUnit = _chunkMJ254F5Kcjs.getCanonicalUnit.call(void 0, biomarker.code);
|
|
1640
1640
|
const unitsMatch = !biomarker.unit || biomarker.unit.toLowerCase() === fallback.unit.toLowerCase() || canonicalUnit && biomarker.unit.toLowerCase() === canonicalUnit.toLowerCase() || // Handle common unit variations
|
|
1641
1641
|
biomarker.unit === "%" && fallback.unit === "%";
|
|
1642
1642
|
if (unitsMatch) {
|
|
@@ -1661,4 +1661,4 @@ function applyFallbackReferenceRanges(biomarkers) {
|
|
|
1661
1661
|
|
|
1662
1662
|
|
|
1663
1663
|
exports.biomarkerRangeDefinitions = biomarkerRangeDefinitions; exports.defaultReferenceRanges = defaultReferenceRanges; exports.getReferenceRange = getReferenceRange; exports.getRangeDirection = getRangeDirection; exports.getFallbackReferenceRange = getFallbackReferenceRange; exports.applyFallbackReferenceRanges = applyFallbackReferenceRanges;
|
|
1664
|
-
//# sourceMappingURL=chunk-
|
|
1664
|
+
//# sourceMappingURL=chunk-D6XKCRS2.cjs.map
|