@precisa-saude/fhir 0.17.3 → 0.17.4
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/biomarkers.cjs +2 -2
- package/dist/biomarkers.js +1 -1
- package/dist/{chunk-G2ECAN5M.js → chunk-7O6VUA2B.js} +7 -2
- package/dist/{chunk-G2ECAN5M.js.map → chunk-7O6VUA2B.js.map} +1 -1
- package/dist/{chunk-7OP4ZWLI.js → chunk-LPYXISLF.js} +2 -2
- package/dist/{chunk-VPR5SEUX.js → chunk-NAUVJPLC.js} +2 -2
- package/dist/{chunk-YKTVS7ZU.cjs → chunk-NP4YZFUI.cjs} +3 -3
- package/dist/{chunk-YKTVS7ZU.cjs.map → chunk-NP4YZFUI.cjs.map} +1 -1
- package/dist/{chunk-PYZ6QR6U.cjs → chunk-ONRVND6U.cjs} +7 -2
- package/dist/chunk-ONRVND6U.cjs.map +1 -0
- package/dist/{chunk-ZG76LN6Q.cjs → chunk-R6FI2RNB.cjs} +4 -4
- package/dist/{chunk-ZG76LN6Q.cjs.map → chunk-R6FI2RNB.cjs.map} +1 -1
- package/dist/cli.js +7 -2
- package/dist/converter.cjs +3 -3
- package/dist/converter.js +2 -2
- package/dist/importer.cjs +3 -3
- package/dist/importer.js +2 -2
- package/dist/index.cjs +5 -5
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-PYZ6QR6U.cjs.map +0 -1
- /package/dist/{chunk-7OP4ZWLI.js.map → chunk-LPYXISLF.js.map} +0 -0
- /package/dist/{chunk-VPR5SEUX.js.map → chunk-NAUVJPLC.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/fhir-brasil/fhir-brasil/packages/core/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/fhir-brasil/fhir-brasil/packages/core/dist/chunk-R6FI2RNB.cjs","../src/importer.ts"],"names":[],"mappings":"AAAA;AACE;AACA;AACF,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;AACJ,IAAA;AACX,EAAA;AACE,IAAA;AACI,MAAA;AACP,QAAA;AACA,QAAA;AACQ,QAAA;AACM,QAAA;AAChB,MAAA;AACF,IAAA;AACF,EAAA;AAGmC,EAAA;AACd,EAAA;AACZ,IAAA;AACI,MAAA;AACP,QAAA;AACA,QAAA;AACQ,QAAA;AACM,QAAA;AAChB,MAAA;AACF,IAAA;AACF,EAAA;AAGI,EAAA;AACA,EAAA;AACiC,EAAA;AACU,IAAA;AACA,IAAA;AAC/C,EAAA;AAEsC,EAAA;AACrB,IAAA;AAEc,IAAA;AAC7B,IAAA;AAC6B,IAAA;AAC7B,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACkC,IAAA;AAClC,IAAA;AACF,EAAA;AAE+B,EAAA;AACjC;AAKqE;AAE1C,EAAA;AACQ,EAAA;AACxB,IAAA;AACG,MAAA;AACG,MAAA;AACD,MAAA;AACM,MAAA;AAClB,IAAA;AACF,EAAA;AAEe,EAAA;AAGmB,EAAA;AAGO,EAAA;AACK,EAAA;AAEA,EAAA;AACA,IAAA;AAEf,IAAA;AACK,MAAA;AAC3B,IAAA;AACyB,MAAA;AAChC,IAAA;AACF,EAAA;AAEO,EAAA;AACI,IAAA;AACT,IAAA;AACS,IAAA;AACoB,IAAA;AAC/B,EAAA;AACF;ADvFiD;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/fhir-brasil/fhir-brasil/packages/core/dist/chunk-R6FI2RNB.cjs","sourcesContent":[null,"/**\n * FHIR Importer\n *\n * Parses FHIR R4 Bundles and extracts Observation resources with known LOINC codes,\n * mapping them to internal biomarker codes for storage as lab results.\n */\n\nimport { getDefinitionByLoinc, loincToCode } from './biomarkers';\nimport type { FHIRBundle, FHIRObservation } from './fhir-types';\nimport { validateFHIRImportBundle } from './validators';\n\nexport interface ImportedObservation {\n biomarkerCode: string;\n biomarkerName: string;\n collectionDate: string;\n flag: 'H' | 'L' | '';\n isQualitative: boolean;\n loincCode: string;\n referenceMax?: number;\n referenceMin?: number;\n unit: string;\n value: number | string;\n}\n\nexport interface SkippedEntry {\n index: number;\n loincCode?: string;\n reason: string;\n resourceType?: string;\n}\n\nexport interface ImportError {\n details: string;\n field: string;\n}\n\nexport interface FHIRImportResult {\n errors: ImportError[];\n imported: ImportedObservation[];\n skipped: SkippedEntry[];\n totalProcessed: number;\n}\n\nconst MAX_OBSERVATIONS = 1000;\nconst MAX_FILE_SIZE = 5 * 1024 * 1024; // 5MB\n\n/**\n * Extract LOINC code from an Observation's code.coding array\n */\nfunction extractLoincCode(observation: FHIRObservation): string | undefined {\n if (!observation.code?.coding) return undefined;\n const loincCoding = observation.code.coding.find((c) => c.system === 'http://loinc.org');\n return loincCoding?.code;\n}\n\n/**\n * Extract interpretation flag from Observation\n */\nfunction extractFlag(observation: FHIRObservation): 'H' | 'L' | '' {\n const code = observation.interpretation?.[0]?.coding?.[0]?.code;\n if (code === 'H' || code === 'HH') return 'H';\n if (code === 'L' || code === 'LL') return 'L';\n return '';\n}\n\n/**\n * Extract Observation resources from a FHIR Bundle\n */\nexport function extractObservationsFromBundle(bundle: FHIRBundle): {\n observations: FHIRObservation[];\n skipped: SkippedEntry[];\n} {\n const observations: FHIRObservation[] = [];\n const skipped: SkippedEntry[] = [];\n\n for (let i = 0; i < bundle.entry.length; i++) {\n const entry = bundle.entry[i]!;\n if (!entry.resource) {\n skipped.push({ index: i, reason: 'Entry has no resource' });\n continue;\n }\n\n if (entry.resource.resourceType !== 'Observation') {\n // Non-observation resources are silently skipped (Patient, DiagnosticReport, etc.)\n continue;\n }\n\n if (observations.length >= MAX_OBSERVATIONS) {\n skipped.push({ index: i, reason: `Maximum of ${MAX_OBSERVATIONS} observations exceeded` });\n continue;\n }\n\n observations.push(entry.resource as FHIRObservation);\n }\n\n return { observations, skipped };\n}\n\n/**\n * Map a FHIR Observation to internal format using LOINC→biomarker code lookup\n */\nexport function mapFHIRObservationToInternal(\n observation: FHIRObservation,\n index: number,\n): { observation: ImportedObservation } | { skipped: SkippedEntry } {\n const loincCode = extractLoincCode(observation);\n\n if (!loincCode) {\n return {\n skipped: {\n index,\n reason: 'No LOINC code found in observation coding',\n resourceType: 'Observation',\n },\n };\n }\n\n const internalCode = loincToCode(loincCode);\n if (!internalCode) {\n return {\n skipped: {\n index,\n loincCode,\n reason: `Unknown LOINC code: ${loincCode}`,\n resourceType: 'Observation',\n },\n };\n }\n\n const definition = getDefinitionByLoinc(loincCode);\n\n // Extract value\n let value: number | string;\n let unit = '';\n let isQualitative = false;\n\n if (observation.valueQuantity?.value !== undefined) {\n value = observation.valueQuantity.value;\n unit = observation.valueQuantity.unit || observation.valueQuantity.code || '';\n } else if (observation.valueString) {\n value = observation.valueString;\n isQualitative = true;\n } else {\n return {\n skipped: {\n index,\n loincCode,\n reason: 'Observation has no value (valueQuantity or valueString)',\n resourceType: 'Observation',\n },\n };\n }\n\n // Extract collection date (effectiveDateTime or effectivePeriod.start)\n const collectionDate = observation.effectiveDateTime || observation.effectivePeriod?.start || '';\n if (!collectionDate) {\n return {\n skipped: {\n index,\n loincCode,\n reason: 'Observation has no effectiveDateTime or effectivePeriod.start',\n resourceType: 'Observation',\n },\n };\n }\n\n // Extract reference ranges\n let referenceMin: number | undefined;\n let referenceMax: number | undefined;\n if (observation.referenceRange?.[0]) {\n referenceMin = observation.referenceRange[0].low?.value;\n referenceMax = observation.referenceRange[0].high?.value;\n }\n\n const imported: ImportedObservation = {\n biomarkerCode: internalCode,\n biomarkerName:\n definition?.names.pt[0] || definition?.names.en[0] || observation.code.text || internalCode,\n collectionDate,\n flag: extractFlag(observation),\n isQualitative,\n loincCode,\n referenceMax,\n referenceMin,\n unit: unit || definition?.unit || '',\n value,\n };\n\n return { observation: imported };\n}\n\n/**\n * Process a complete FHIR Bundle for import\n */\nexport function processImportBundle(data: unknown): FHIRImportResult {\n // Structural validation\n const validationErrors = validateFHIRImportBundle(data);\n if (validationErrors.length > 0) {\n return {\n errors: validationErrors,\n imported: [],\n skipped: [],\n totalProcessed: 0,\n };\n }\n\n const bundle = data as FHIRBundle;\n\n // Extract observations\n const { observations, skipped } = extractObservationsFromBundle(bundle);\n\n // Map each observation to internal format\n const imported: ImportedObservation[] = [];\n const allSkipped: SkippedEntry[] = [...skipped];\n\n for (let i = 0; i < observations.length; i++) {\n const result = mapFHIRObservationToInternal(observations[i]!, i);\n\n if ('observation' in result) {\n imported.push(result.observation);\n } else {\n allSkipped.push(result.skipped);\n }\n }\n\n return {\n errors: [],\n imported,\n skipped: allSkipped,\n totalProcessed: observations.length,\n };\n}\n\nexport { MAX_FILE_SIZE, MAX_OBSERVATIONS };\n"]}
|
package/dist/cli.js
CHANGED
|
@@ -2527,7 +2527,12 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
2527
2527
|
{
|
|
2528
2528
|
category: "figado",
|
|
2529
2529
|
code: "LDH",
|
|
2530
|
-
loinc: "
|
|
2530
|
+
loinc: "14804-9",
|
|
2531
|
+
// 2532-0 é o código genérico anterior, que o LOINC marca como DISCOURAGED.
|
|
2532
|
+
// Fica como alias para que laudo antigo e dado já armazenado continuem
|
|
2533
|
+
// resolvendo em LDH — a troca do código canônico não pode quebrar leitura
|
|
2534
|
+
// de histórico.
|
|
2535
|
+
loincAliases: ["2532-0"],
|
|
2531
2536
|
names: {
|
|
2532
2537
|
en: ["Lactate Dehydrogenase", "LDH", "LD"],
|
|
2533
2538
|
pt: ["Desidrogenase L\xE1tica", "DHL", "LDH", "Lactato Desidrogenase"]
|
|
@@ -6187,7 +6192,7 @@ async function main() {
|
|
|
6187
6192
|
strict: false
|
|
6188
6193
|
});
|
|
6189
6194
|
if (values.version) {
|
|
6190
|
-
process.stdout.write(`${"0.17.
|
|
6195
|
+
process.stdout.write(`${"0.17.4"}
|
|
6191
6196
|
`);
|
|
6192
6197
|
return;
|
|
6193
6198
|
}
|
package/dist/converter.cjs
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkNP4YZFUIcjs = require('./chunk-NP4YZFUI.cjs');
|
|
7
|
+
require('./chunk-ONRVND6U.cjs');
|
|
8
8
|
require('./chunk-MJ254F5K.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.labObservationToFHIR =
|
|
14
|
+
exports.labObservationToFHIR = _chunkNP4YZFUIcjs.labObservationToFHIR; exports.labReportToFHIR = _chunkNP4YZFUIcjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkNP4YZFUIcjs.labResultToFHIRBundle; exports.userProfileToFHIR = _chunkNP4YZFUIcjs.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-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-LPYXISLF.js";
|
|
7
|
+
import "./chunk-7O6VUA2B.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
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkR6FI2RNBcjs = require('./chunk-R6FI2RNB.cjs');
|
|
8
|
+
require('./chunk-ONRVND6U.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 =
|
|
16
|
+
exports.MAX_FILE_SIZE = _chunkR6FI2RNBcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkR6FI2RNBcjs.MAX_OBSERVATIONS; exports.extractObservationsFromBundle = _chunkR6FI2RNBcjs.extractObservationsFromBundle; exports.mapFHIRObservationToInternal = _chunkR6FI2RNBcjs.mapFHIRObservationToInternal; exports.processImportBundle = _chunkR6FI2RNBcjs.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-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-NAUVJPLC.js";
|
|
8
|
+
import "./chunk-7O6VUA2B.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
|
|
6
|
+
var _chunkNP4YZFUIcjs = require('./chunk-NP4YZFUI.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkR6FI2RNBcjs = require('./chunk-R6FI2RNB.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -43,7 +43,7 @@ var _chunkZG76LN6Qcjs = require('./chunk-ZG76LN6Q.cjs');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkONRVND6Ucjs = require('./chunk-ONRVND6U.cjs');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
@@ -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 =
|
|
231
|
+
const fhirPatient = _chunkNP4YZFUIcjs.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 =
|
|
694
|
+
exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS = _chunkONRVND6Ucjs.BIOMARKER_DEFINITIONS; exports.BIOMARKER_UNITS = _chunkMJ254F5Kcjs.BIOMARKER_UNITS; exports.BODY_FAT_ZONES = BODY_FAT_ZONES; exports.CAC_INDICATOR_CODES = _chunkONRVND6Ucjs.CAC_INDICATOR_CODES; exports.CATEGORY_GROUPS = CATEGORY_GROUPS; exports.CATEGORY_SCREENING_INTERVALS = CATEGORY_SCREENING_INTERVALS; exports.DEXA_CATEGORIES = _chunkONRVND6Ucjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunkONRVND6Ucjs.DEXA_INDICATOR_CODES; exports.MAX_FILE_SIZE = _chunkR6FI2RNBcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkR6FI2RNBcjs.MAX_OBSERVATIONS; exports.T_SCORE_ZONES = T_SCORE_ZONES; exports.UNIT_TO_UCUM = _chunkMJ254F5Kcjs.UNIT_TO_UCUM; exports.ZONE_DEFS = ZONE_DEFS; exports.applyFallbackReferenceRanges = _chunkCBGEU6SGcjs.applyFallbackReferenceRanges; exports.biomarkerRangeDefinitions = _chunkCBGEU6SGcjs.biomarkerRangeDefinitions; exports.calculateNextScreeningDate = calculateNextScreeningDate; exports.cnsToFHIRIdentifier = cnsToFHIRIdentifier; exports.codeToLoinc = _chunkONRVND6Ucjs.codeToLoinc; exports.convertUnit = _chunkMJ254F5Kcjs.convertUnit; exports.cpfToFHIRIdentifier = cpfToFHIRIdentifier; exports.defaultReferenceRanges = _chunkCBGEU6SGcjs.defaultReferenceRanges; exports.extractObservationsFromBundle = _chunkR6FI2RNBcjs.extractObservationsFromBundle; exports.filterVisibleBiomarkers = _chunkONRVND6Ucjs.filterVisibleBiomarkers; exports.findCodeByName = _chunkONRVND6Ucjs.findCodeByName; exports.formatCNS = formatCNS; exports.formatCPF = formatCPF; exports.generateCacFullReference = _chunkONRVND6Ucjs.generateCacFullReference; exports.generateDexaFullReference = _chunkONRVND6Ucjs.generateDexaFullReference; exports.generateFilteredLLMReference = _chunkONRVND6Ucjs.generateFilteredLLMReference; exports.generateLLMReference = _chunkONRVND6Ucjs.generateLLMReference; exports.getAllCodes = _chunkONRVND6Ucjs.getAllCodes; exports.getAllDefinitions = _chunkONRVND6Ucjs.getAllDefinitions; exports.getAllLoincCodes = _chunkONRVND6Ucjs.getAllLoincCodes; exports.getAllSearchPatterns = _chunkONRVND6Ucjs.getAllSearchPatterns; exports.getBiomarkersByCategory = _chunkONRVND6Ucjs.getBiomarkersByCategory; exports.getBiomarkersForCategories = _chunkONRVND6Ucjs.getBiomarkersForCategories; exports.getCanonicalUnit = _chunkMJ254F5Kcjs.getCanonicalUnit; exports.getCategoriesByInterval = getCategoriesByInterval; exports.getCategoryGroup = getCategoryGroup; exports.getDaysUntilScreening = getDaysUntilScreening; exports.getDefaultUnit = _chunkMJ254F5Kcjs.getDefaultUnit; exports.getDefinitionByCode = _chunkONRVND6Ucjs.getDefinitionByCode; exports.getDefinitionByLoinc = _chunkONRVND6Ucjs.getDefinitionByLoinc; exports.getDefinitionsBySex = _chunkONRVND6Ucjs.getDefinitionsBySex; exports.getDueCategories = getDueCategories; exports.getFallbackReferenceRange = _chunkCBGEU6SGcjs.getFallbackReferenceRange; exports.getRangeDirection = _chunkCBGEU6SGcjs.getRangeDirection; exports.getReferenceRange = _chunkCBGEU6SGcjs.getReferenceRange; exports.getSIUnit = _chunkMJ254F5Kcjs.getSIUnit; exports.getScreeningInterval = getScreeningInterval; exports.getSexForCode = _chunkONRVND6Ucjs.getSexForCode; exports.getVisibleDefinitions = _chunkONRVND6Ucjs.getVisibleDefinitions; exports.interventionToFHIRMedicationStatement = interventionToFHIRMedicationStatement; exports.interventionToFHIRObservation = interventionToFHIRObservation; exports.interventionsToFHIRBundle = interventionsToFHIRBundle; exports.isBiomarkerVisible = _chunkONRVND6Ucjs.isBiomarkerVisible; exports.isCacDocument = _chunkONRVND6Ucjs.isCacDocument; exports.isDexaDocument = _chunkONRVND6Ucjs.isDexaDocument; exports.isScreeningDue = isScreeningDue; exports.isValidCode = _chunkONRVND6Ucjs.isValidCode; exports.isValidLoinc = _chunkONRVND6Ucjs.isValidLoinc; exports.labObservationToFHIR = _chunkNP4YZFUIcjs.labObservationToFHIR; exports.labReportToFHIR = _chunkNP4YZFUIcjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkNP4YZFUIcjs.labResultToFHIRBundle; exports.listMappedSubcategories = listMappedSubcategories; exports.loincToCode = _chunkONRVND6Ucjs.loincToCode; exports.mapFHIRObservationToInternal = _chunkR6FI2RNBcjs.mapFHIRObservationToInternal; exports.normalizeCode = _chunkONRVND6Ucjs.normalizeCode; exports.plural = plural; exports.pluralCount = pluralCount; exports.pluralPhrase = pluralPhrase; exports.pluralPhraseCount = pluralPhraseCount; exports.processImportBundle = _chunkR6FI2RNBcjs.processImportBundle; exports.toBiomarkerTests = _chunkONRVND6Ucjs.toBiomarkerTests; exports.unitToUCUM = _chunkMJ254F5Kcjs.unitToUCUM; exports.userProfileToFHIR = _chunkNP4YZFUIcjs.userProfileToFHIR; exports.validateCNS = validateCNS; exports.validateCPF = validateCPF; exports.validateFHIRDiagnosticReport = _chunk3ILBFLVQcjs.validateFHIRDiagnosticReport; exports.validateFHIRImportBundle = _chunk3ILBFLVQcjs.validateFHIRImportBundle; exports.validateFHIRObservation = _chunk3ILBFLVQcjs.validateFHIRObservation; exports.validateLoincNameMatch = _chunkONRVND6Ucjs.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-
|
|
6
|
+
} from "./chunk-LPYXISLF.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-
|
|
13
|
+
} from "./chunk-NAUVJPLC.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-
|
|
46
|
+
} from "./chunk-7O6VUA2B.js";
|
|
47
47
|
import {
|
|
48
48
|
applyFallbackReferenceRanges,
|
|
49
49
|
biomarkerRangeDefinitions,
|
package/package.json
CHANGED