@precisa-saude/fhir 0.20.2 → 0.20.3
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-3XFDQQAP.js → chunk-G32XWBCX.js} +2 -2
- package/dist/{chunk-X6AIQ6RY.cjs → chunk-G6LC6XTM.cjs} +7 -7
- package/dist/{chunk-X6AIQ6RY.cjs.map → chunk-G6LC6XTM.cjs.map} +1 -1
- package/dist/{chunk-S6LWF5M4.cjs → chunk-NUTT5IWA.cjs} +7 -7
- package/dist/chunk-NUTT5IWA.cjs.map +1 -0
- package/dist/{chunk-SIX3LHER.cjs → chunk-PQQQ5RBB.cjs} +3 -3
- package/dist/{chunk-SIX3LHER.cjs.map → chunk-PQQQ5RBB.cjs.map} +1 -1
- package/dist/{chunk-ZT5XBA5S.js → chunk-RGRLMISI.js} +7 -7
- package/dist/{chunk-ZT5XBA5S.js.map → chunk-RGRLMISI.js.map} +1 -1
- package/dist/{chunk-LNYG5HBE.js → chunk-ZJ3FNWT3.js} +2 -2
- package/dist/cli.js +7 -7
- 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-S6LWF5M4.cjs.map +0 -1
- /package/dist/{chunk-3XFDQQAP.js.map → chunk-G32XWBCX.js.map} +0 -0
- /package/dist/{chunk-LNYG5HBE.js.map → chunk-ZJ3FNWT3.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-A6HR4XDK.js";
|
|
5
5
|
import {
|
|
6
6
|
codeToLoinc
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RGRLMISI.js";
|
|
8
8
|
import {
|
|
9
9
|
getDefaultUnit,
|
|
10
10
|
unitToUCUM
|
|
@@ -259,4 +259,4 @@ export {
|
|
|
259
259
|
userProfileToFHIR,
|
|
260
260
|
labResultToFHIRBundle
|
|
261
261
|
};
|
|
262
|
-
//# sourceMappingURL=chunk-
|
|
262
|
+
//# sourceMappingURL=chunk-ZJ3FNWT3.js.map
|
package/dist/cli.js
CHANGED
|
@@ -2513,7 +2513,7 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
2513
2513
|
code: "SkinfoldTriceps",
|
|
2514
2514
|
loinc: "8354-3",
|
|
2515
2515
|
names: {
|
|
2516
|
-
en: ["Triceps Skinfold", "Tricipital Skinfold", "Skin Fold Thickness Triceps"],
|
|
2516
|
+
en: ["Triceps Skinfold", "Tricipital Skinfold", "Skin Fold Thickness Triceps", "Triceps"],
|
|
2517
2517
|
pt: ["Dobra Tricipital", "Dobra Cut\xE2nea Tricipital", "Tricipital", "DCT"]
|
|
2518
2518
|
},
|
|
2519
2519
|
unit: "mm"
|
|
@@ -2523,7 +2523,7 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
2523
2523
|
code: "SkinfoldThigh",
|
|
2524
2524
|
loinc: "8353-5",
|
|
2525
2525
|
names: {
|
|
2526
|
-
en: ["Thigh Skinfold", "Skin Fold Thickness Thigh"],
|
|
2526
|
+
en: ["Thigh Skinfold", "Skin Fold Thickness Thigh", "Thigh"],
|
|
2527
2527
|
pt: ["Dobra da Coxa", "Dobra Cut\xE2nea Coxa", "Coxa"]
|
|
2528
2528
|
},
|
|
2529
2529
|
unit: "mm"
|
|
@@ -2542,7 +2542,7 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
2542
2542
|
category: "composicao-corporal",
|
|
2543
2543
|
code: "SkinfoldSubscapular",
|
|
2544
2544
|
names: {
|
|
2545
|
-
en: ["Subscapular Skinfold"],
|
|
2545
|
+
en: ["Subscapular Skinfold", "Subscapular"],
|
|
2546
2546
|
pt: ["Dobra Subescapular", "Dobra Cut\xE2nea Subescapular", "Subescapular"]
|
|
2547
2547
|
},
|
|
2548
2548
|
unit: "mm"
|
|
@@ -2551,7 +2551,7 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
2551
2551
|
category: "composicao-corporal",
|
|
2552
2552
|
code: "SkinfoldSuprailiac",
|
|
2553
2553
|
names: {
|
|
2554
|
-
en: ["Suprailiac Skinfold", "Supra-iliac Skinfold"],
|
|
2554
|
+
en: ["Suprailiac Skinfold", "Supra-iliac Skinfold", "Suprailiac"],
|
|
2555
2555
|
pt: ["Dobra Supra-il\xEDaca", "Dobra Cut\xE2nea Supra-il\xEDaca", "Supra-il\xEDaca", "Suprailiaca"]
|
|
2556
2556
|
},
|
|
2557
2557
|
unit: "mm"
|
|
@@ -2560,7 +2560,7 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
2560
2560
|
category: "composicao-corporal",
|
|
2561
2561
|
code: "SkinfoldChest",
|
|
2562
2562
|
names: {
|
|
2563
|
-
en: ["Chest Skinfold", "Pectoral Skinfold"],
|
|
2563
|
+
en: ["Chest Skinfold", "Pectoral Skinfold", "Chest"],
|
|
2564
2564
|
pt: ["Dobra Peitoral", "Dobra Cut\xE2nea Peitoral", "Peitoral", "Dobra Tor\xE1cica"]
|
|
2565
2565
|
},
|
|
2566
2566
|
unit: "mm"
|
|
@@ -2569,7 +2569,7 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
2569
2569
|
category: "composicao-corporal",
|
|
2570
2570
|
code: "SkinfoldMidaxillary",
|
|
2571
2571
|
names: {
|
|
2572
|
-
en: ["Midaxillary Skinfold", "Mid-axillary Skinfold"],
|
|
2572
|
+
en: ["Midaxillary Skinfold", "Mid-axillary Skinfold", "Midaxillary", "MidAxilla"],
|
|
2573
2573
|
pt: ["Dobra Axilar M\xE9dia", "Dobra Cut\xE2nea Axilar M\xE9dia", "Axilar M\xE9dia"]
|
|
2574
2574
|
},
|
|
2575
2575
|
unit: "mm"
|
|
@@ -6637,7 +6637,7 @@ async function main() {
|
|
|
6637
6637
|
strict: false
|
|
6638
6638
|
});
|
|
6639
6639
|
if (values.version) {
|
|
6640
|
-
process.stdout.write(`${"0.20.
|
|
6640
|
+
process.stdout.write(`${"0.20.3"}
|
|
6641
6641
|
`);
|
|
6642
6642
|
return;
|
|
6643
6643
|
}
|
package/dist/converter.cjs
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPQQQ5RBBcjs = require('./chunk-PQQQ5RBB.cjs');
|
|
7
7
|
require('./chunk-OR67NJDZ.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-NUTT5IWA.cjs');
|
|
9
9
|
require('./chunk-MJ254F5K.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.labObservationToFHIR =
|
|
15
|
+
exports.labObservationToFHIR = _chunkPQQQ5RBBcjs.labObservationToFHIR; exports.labReportToFHIR = _chunkPQQQ5RBBcjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkPQQQ5RBBcjs.labResultToFHIRBundle; exports.userProfileToFHIR = _chunkPQQQ5RBBcjs.userProfileToFHIR;
|
|
16
16
|
//# sourceMappingURL=converter.cjs.map
|
package/dist/converter.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
labReportToFHIR,
|
|
4
4
|
labResultToFHIRBundle,
|
|
5
5
|
userProfileToFHIR
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZJ3FNWT3.js";
|
|
7
7
|
import "./chunk-A6HR4XDK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-RGRLMISI.js";
|
|
9
9
|
import "./chunk-R4MUCMO3.js";
|
|
10
10
|
export {
|
|
11
11
|
labObservationToFHIR,
|
package/dist/importer.cjs
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkG6LC6XTMcjs = require('./chunk-G6LC6XTM.cjs');
|
|
8
8
|
require('./chunk-OR67NJDZ.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-NUTT5IWA.cjs');
|
|
10
10
|
require('./chunk-3ILBFLVQ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
@@ -14,5 +14,5 @@ require('./chunk-3ILBFLVQ.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.MAX_FILE_SIZE =
|
|
17
|
+
exports.MAX_FILE_SIZE = _chunkG6LC6XTMcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkG6LC6XTMcjs.MAX_OBSERVATIONS; exports.extractObservationsFromBundle = _chunkG6LC6XTMcjs.extractObservationsFromBundle; exports.mapFHIRObservationToInternal = _chunkG6LC6XTMcjs.mapFHIRObservationToInternal; exports.processImportBundle = _chunkG6LC6XTMcjs.processImportBundle;
|
|
18
18
|
//# sourceMappingURL=importer.cjs.map
|
package/dist/importer.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
extractObservationsFromBundle,
|
|
5
5
|
mapFHIRObservationToInternal,
|
|
6
6
|
processImportBundle
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G32XWBCX.js";
|
|
8
8
|
import "./chunk-A6HR4XDK.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-RGRLMISI.js";
|
|
10
10
|
import "./chunk-N3ZCOLG2.js";
|
|
11
11
|
export {
|
|
12
12
|
MAX_FILE_SIZE,
|
package/dist/index.cjs
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPQQQ5RBBcjs = require('./chunk-PQQQ5RBB.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkG6LC6XTMcjs = require('./chunk-G6LC6XTM.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -47,7 +47,7 @@ var _chunkOR67NJDZcjs = require('./chunk-OR67NJDZ.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkNUTT5IWAcjs = require('./chunk-NUTT5IWA.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
@@ -232,7 +232,7 @@ function interventionToFHIRObservation(intervention, patientId) {
|
|
|
232
232
|
}
|
|
233
233
|
function interventionsToFHIRBundle(interventions, userProfile) {
|
|
234
234
|
const patientId = userProfile.userId;
|
|
235
|
-
const fhirPatient =
|
|
235
|
+
const fhirPatient = _chunkPQQQ5RBBcjs.userProfileToFHIR.call(void 0, userProfile);
|
|
236
236
|
const entries = interventions.map((intervention) => {
|
|
237
237
|
const isMedication = intervention.type === "medication" || intervention.type === "supplement";
|
|
238
238
|
const resource = isMedication ? interventionToFHIRMedicationStatement(intervention, patientId) : interventionToFHIRObservation(intervention, patientId);
|
|
@@ -697,5 +697,5 @@ function cnsToFHIRIdentifier(cns) {
|
|
|
697
697
|
|
|
698
698
|
|
|
699
699
|
|
|
700
|
-
exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_CODE_SYSTEM = _chunkOR67NJDZcjs.BIOMARKER_CODE_SYSTEM; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS =
|
|
700
|
+
exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_CODE_SYSTEM = _chunkOR67NJDZcjs.BIOMARKER_CODE_SYSTEM; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS = _chunkNUTT5IWAcjs.BIOMARKER_DEFINITIONS; exports.BIOMARKER_UNITS = _chunkMJ254F5Kcjs.BIOMARKER_UNITS; exports.BODY_FAT_ZONES = BODY_FAT_ZONES; exports.CAC_INDICATOR_CODES = _chunkNUTT5IWAcjs.CAC_INDICATOR_CODES; exports.CATEGORY_GROUPS = CATEGORY_GROUPS; exports.CATEGORY_SCREENING_INTERVALS = CATEGORY_SCREENING_INTERVALS; exports.DEXA_CATEGORIES = _chunkNUTT5IWAcjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunkNUTT5IWAcjs.DEXA_INDICATOR_CODES; exports.LOINC_SYSTEM = _chunkOR67NJDZcjs.LOINC_SYSTEM; exports.MAX_FILE_SIZE = _chunkG6LC6XTMcjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkG6LC6XTMcjs.MAX_OBSERVATIONS; exports.T_SCORE_ZONES = T_SCORE_ZONES; exports.UNIT_TO_UCUM = _chunkMJ254F5Kcjs.UNIT_TO_UCUM; exports.ZONE_DEFS = ZONE_DEFS; exports.applyFallbackReferenceRanges = _chunkERALICUKcjs.applyFallbackReferenceRanges; exports.biomarkerRangeDefinitions = _chunkERALICUKcjs.biomarkerRangeDefinitions; exports.calculateNextScreeningDate = calculateNextScreeningDate; exports.cnsToFHIRIdentifier = cnsToFHIRIdentifier; exports.codeToLoinc = _chunkNUTT5IWAcjs.codeToLoinc; exports.convertUnit = _chunkMJ254F5Kcjs.convertUnit; exports.cpfToFHIRIdentifier = cpfToFHIRIdentifier; exports.defaultReferenceRanges = _chunkERALICUKcjs.defaultReferenceRanges; exports.extractObservationsFromBundle = _chunkG6LC6XTMcjs.extractObservationsFromBundle; exports.filterVisibleBiomarkers = _chunkNUTT5IWAcjs.filterVisibleBiomarkers; exports.findCodeByName = _chunkNUTT5IWAcjs.findCodeByName; exports.formatCNS = formatCNS; exports.formatCPF = formatCPF; exports.generateCacFullReference = _chunkNUTT5IWAcjs.generateCacFullReference; exports.generateDexaFullReference = _chunkNUTT5IWAcjs.generateDexaFullReference; exports.generateFilteredLLMReference = _chunkNUTT5IWAcjs.generateFilteredLLMReference; exports.generateLLMReference = _chunkNUTT5IWAcjs.generateLLMReference; exports.getAllCodes = _chunkNUTT5IWAcjs.getAllCodes; exports.getAllDefinitions = _chunkNUTT5IWAcjs.getAllDefinitions; exports.getAllLoincCodes = _chunkNUTT5IWAcjs.getAllLoincCodes; exports.getAllSearchPatterns = _chunkNUTT5IWAcjs.getAllSearchPatterns; exports.getBiomarkersByCategory = _chunkNUTT5IWAcjs.getBiomarkersByCategory; exports.getBiomarkersForCategories = _chunkNUTT5IWAcjs.getBiomarkersForCategories; exports.getCanonicalUnit = _chunkMJ254F5Kcjs.getCanonicalUnit; exports.getCategoriesByInterval = getCategoriesByInterval; exports.getCategoryGroup = getCategoryGroup; exports.getDaysUntilScreening = getDaysUntilScreening; exports.getDefaultUnit = _chunkMJ254F5Kcjs.getDefaultUnit; exports.getDefinitionByCode = _chunkNUTT5IWAcjs.getDefinitionByCode; exports.getDefinitionByLoinc = _chunkNUTT5IWAcjs.getDefinitionByLoinc; exports.getDefinitionsBySex = _chunkNUTT5IWAcjs.getDefinitionsBySex; exports.getDueCategories = getDueCategories; exports.getFallbackReferenceRange = _chunkERALICUKcjs.getFallbackReferenceRange; exports.getRangeDirection = _chunkERALICUKcjs.getRangeDirection; exports.getReferenceRange = _chunkERALICUKcjs.getReferenceRange; exports.getSIUnit = _chunkMJ254F5Kcjs.getSIUnit; exports.getScreeningInterval = getScreeningInterval; exports.getSexForCode = _chunkNUTT5IWAcjs.getSexForCode; exports.getVisibleDefinitions = _chunkNUTT5IWAcjs.getVisibleDefinitions; exports.interventionToFHIRMedicationStatement = interventionToFHIRMedicationStatement; exports.interventionToFHIRObservation = interventionToFHIRObservation; exports.interventionsToFHIRBundle = interventionsToFHIRBundle; exports.isBiomarkerVisible = _chunkNUTT5IWAcjs.isBiomarkerVisible; exports.isCacDocument = _chunkNUTT5IWAcjs.isCacDocument; exports.isDexaDocument = _chunkNUTT5IWAcjs.isDexaDocument; exports.isScreeningDue = isScreeningDue; exports.isValidCode = _chunkNUTT5IWAcjs.isValidCode; exports.isValidLoinc = _chunkNUTT5IWAcjs.isValidLoinc; exports.labObservationToFHIR = _chunkPQQQ5RBBcjs.labObservationToFHIR; exports.labReportToFHIR = _chunkPQQQ5RBBcjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkPQQQ5RBBcjs.labResultToFHIRBundle; exports.listMappedSubcategories = listMappedSubcategories; exports.loincToCode = _chunkNUTT5IWAcjs.loincToCode; exports.mapFHIRObservationToInternal = _chunkG6LC6XTMcjs.mapFHIRObservationToInternal; exports.normalizeCode = _chunkNUTT5IWAcjs.normalizeCode; exports.plural = plural; exports.pluralCount = pluralCount; exports.pluralPhrase = pluralPhrase; exports.pluralPhraseCount = pluralPhraseCount; exports.processImportBundle = _chunkG6LC6XTMcjs.processImportBundle; exports.toBiomarkerTests = _chunkNUTT5IWAcjs.toBiomarkerTests; exports.unitToUCUM = _chunkMJ254F5Kcjs.unitToUCUM; exports.userProfileToFHIR = _chunkPQQQ5RBBcjs.userProfileToFHIR; exports.validateCNS = validateCNS; exports.validateCPF = validateCPF; exports.validateFHIRDiagnosticReport = _chunk3ILBFLVQcjs.validateFHIRDiagnosticReport; exports.validateFHIRImportBundle = _chunk3ILBFLVQcjs.validateFHIRImportBundle; exports.validateFHIRObservation = _chunk3ILBFLVQcjs.validateFHIRObservation; exports.validateLoincNameMatch = _chunkNUTT5IWAcjs.validateLoincNameMatch;
|
|
701
701
|
//# 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-ZJ3FNWT3.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-G32XWBCX.js";
|
|
14
14
|
import {
|
|
15
15
|
BIOMARKER_CODE_SYSTEM,
|
|
16
16
|
LOINC_SYSTEM
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
normalizeCode,
|
|
48
48
|
toBiomarkerTests,
|
|
49
49
|
validateLoincNameMatch
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-RGRLMISI.js";
|
|
51
51
|
import {
|
|
52
52
|
applyFallbackReferenceRanges,
|
|
53
53
|
biomarkerRangeDefinitions,
|
package/package.json
CHANGED