@precisa-saude/fhir 0.24.1 → 0.25.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 +13 -11
- package/dist/biomarkers.cjs +2 -2
- package/dist/biomarkers.js +1 -1
- package/dist/{chunk-ONPF2JAB.js → chunk-2F3TXKDI.js} +2 -2
- package/dist/{chunk-MLH7IZZE.js → chunk-BNG4YNY2.js} +28 -5
- package/dist/chunk-BNG4YNY2.js.map +1 -0
- package/dist/{chunk-L2LN2X6Y.cjs → chunk-DGTP2QB6.cjs} +3 -3
- package/dist/{chunk-L2LN2X6Y.cjs.map → chunk-DGTP2QB6.cjs.map} +1 -1
- package/dist/{chunk-EHMCWZO3.cjs → chunk-IBF6HOBG.cjs} +28 -5
- package/dist/chunk-IBF6HOBG.cjs.map +1 -0
- package/dist/{chunk-WEA7QFS5.js → chunk-PXDGYFGR.js} +2 -2
- package/dist/{chunk-4EFTM357.cjs → chunk-Y7TOLJ2Y.cjs} +7 -7
- package/dist/{chunk-4EFTM357.cjs.map → chunk-Y7TOLJ2Y.cjs.map} +1 -1
- package/dist/cli.js +28 -5
- 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 +7 -7
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-EHMCWZO3.cjs.map +0 -1
- package/dist/chunk-MLH7IZZE.js.map +0 -1
- /package/dist/{chunk-ONPF2JAB.js.map → chunk-2F3TXKDI.js.map} +0 -0
- /package/dist/{chunk-WEA7QFS5.js.map → chunk-PXDGYFGR.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -1255,7 +1255,14 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
1255
1255
|
loinc: "1742-6",
|
|
1256
1256
|
names: {
|
|
1257
1257
|
en: ["Alanine Transaminase", "ALT", "SGPT"],
|
|
1258
|
-
pt: [
|
|
1258
|
+
pt: [
|
|
1259
|
+
"Alanina Aminotransferase",
|
|
1260
|
+
"ALT",
|
|
1261
|
+
"TGP",
|
|
1262
|
+
"Transaminase Glut\xE2mico-Pir\xFAvica",
|
|
1263
|
+
"Transaminase Pir\xFAvica",
|
|
1264
|
+
"TGP/ALT"
|
|
1265
|
+
]
|
|
1259
1266
|
},
|
|
1260
1267
|
unit: "U/L"
|
|
1261
1268
|
},
|
|
@@ -1296,7 +1303,14 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
1296
1303
|
loinc: "1920-8",
|
|
1297
1304
|
names: {
|
|
1298
1305
|
en: ["Aspartate Aminotransferase", "AST", "SGOT"],
|
|
1299
|
-
pt: [
|
|
1306
|
+
pt: [
|
|
1307
|
+
"Aspartato Aminotransferase",
|
|
1308
|
+
"AST",
|
|
1309
|
+
"TGO",
|
|
1310
|
+
"Transaminase Glut\xE2mico-Oxalac\xE9tica",
|
|
1311
|
+
"Transaminase Oxalac\xE9tica",
|
|
1312
|
+
"TGO/AST"
|
|
1313
|
+
]
|
|
1300
1314
|
},
|
|
1301
1315
|
unit: "U/L"
|
|
1302
1316
|
},
|
|
@@ -1306,7 +1320,7 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
1306
1320
|
loinc: "2324-2",
|
|
1307
1321
|
names: {
|
|
1308
1322
|
en: ["Gamma-glutamyl Transferase", "GGT", "Gamma GT"],
|
|
1309
|
-
pt: ["Gama-Glutamil Transferase", "GGT", "Gama GT"]
|
|
1323
|
+
pt: ["Gama-Glutamil Transferase", "GGT", "Gama GT", "Gama Glutamiltransferase", "Gama-GT"]
|
|
1310
1324
|
},
|
|
1311
1325
|
unit: "U/L"
|
|
1312
1326
|
},
|
|
@@ -1451,7 +1465,11 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
1451
1465
|
loinc: "788-0",
|
|
1452
1466
|
names: {
|
|
1453
1467
|
en: ["Red Cell Distribution Width", "RDW"],
|
|
1454
|
-
pt: [
|
|
1468
|
+
pt: [
|
|
1469
|
+
"Amplitude de Distribui\xE7\xE3o dos Eritr\xF3citos",
|
|
1470
|
+
"RDW",
|
|
1471
|
+
"Coeficiente de Varia\xE7\xE3o do Volume Eritrocit\xE1rio"
|
|
1472
|
+
]
|
|
1455
1473
|
},
|
|
1456
1474
|
unit: "%"
|
|
1457
1475
|
},
|
|
@@ -1618,6 +1636,11 @@ var BIOMARKER_DEFINITIONS = [
|
|
|
1618
1636
|
"eGFR CKD-EPI",
|
|
1619
1637
|
"eGFR CKD-EPI 2021",
|
|
1620
1638
|
"CKD-EPI 2021",
|
|
1639
|
+
// O laudo imprime só "CKD-EPI 2021", e a extração devolve o nome com o
|
|
1640
|
+
// "GFR" na frente. Sem esta entrada o exame virava
|
|
1641
|
+
// `UNKNOWN_GFR_CKD_EPI_2021` num laudo do Fleury, com valor medido e
|
|
1642
|
+
// tudo, porque a resolução por nome não achava a forma composta.
|
|
1643
|
+
"GFR CKD-EPI 2021",
|
|
1621
1644
|
"CKD-EPI eGFR 2021",
|
|
1622
1645
|
"eGFR (CKD-EPI 2021)",
|
|
1623
1646
|
"eGFR (MDRD)",
|
|
@@ -6684,7 +6707,7 @@ async function main() {
|
|
|
6684
6707
|
strict: false
|
|
6685
6708
|
});
|
|
6686
6709
|
if (values.version) {
|
|
6687
|
-
process.stdout.write(`${"0.
|
|
6710
|
+
process.stdout.write(`${"0.25.1"}
|
|
6688
6711
|
`);
|
|
6689
6712
|
return;
|
|
6690
6713
|
}
|
package/dist/converter.cjs
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDGTP2QB6cjs = require('./chunk-DGTP2QB6.cjs');
|
|
7
7
|
require('./chunk-OR67NJDZ.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-IBF6HOBG.cjs');
|
|
9
9
|
require('./chunk-MJ254F5K.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.labObservationToFHIR =
|
|
15
|
+
exports.labObservationToFHIR = _chunkDGTP2QB6cjs.labObservationToFHIR; exports.labReportToFHIR = _chunkDGTP2QB6cjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkDGTP2QB6cjs.labResultToFHIRBundle; exports.userProfileToFHIR = _chunkDGTP2QB6cjs.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-PXDGYFGR.js";
|
|
7
7
|
import "./chunk-A6HR4XDK.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BNG4YNY2.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 _chunkY7TOLJ2Ycjs = require('./chunk-Y7TOLJ2Y.cjs');
|
|
8
8
|
require('./chunk-OR67NJDZ.cjs');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-IBF6HOBG.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 = _chunkY7TOLJ2Ycjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkY7TOLJ2Ycjs.MAX_OBSERVATIONS; exports.extractObservationsFromBundle = _chunkY7TOLJ2Ycjs.extractObservationsFromBundle; exports.mapFHIRObservationToInternal = _chunkY7TOLJ2Ycjs.mapFHIRObservationToInternal; exports.processImportBundle = _chunkY7TOLJ2Ycjs.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-2F3TXKDI.js";
|
|
8
8
|
import "./chunk-A6HR4XDK.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-BNG4YNY2.js";
|
|
10
10
|
import "./chunk-N3ZCOLG2.js";
|
|
11
11
|
export {
|
|
12
12
|
MAX_FILE_SIZE,
|
package/dist/index.cjs
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkDGTP2QB6cjs = require('./chunk-DGTP2QB6.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkY7TOLJ2Ycjs = require('./chunk-Y7TOLJ2Y.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -49,7 +49,7 @@ var _chunkOR67NJDZcjs = require('./chunk-OR67NJDZ.cjs');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkIBF6HOBGcjs = require('./chunk-IBF6HOBG.cjs');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -234,14 +234,14 @@ function interventionToFHIRObservation(intervention, patientId) {
|
|
|
234
234
|
}
|
|
235
235
|
function interventionsToFHIRBundle(interventions, userProfile) {
|
|
236
236
|
const patientId = userProfile.userId;
|
|
237
|
-
const fhirPatient =
|
|
237
|
+
const fhirPatient = _chunkDGTP2QB6cjs.userProfileToFHIR.call(void 0, userProfile);
|
|
238
238
|
const entries = interventions.map((intervention) => {
|
|
239
239
|
const isMedication = intervention.type === "medication" || intervention.type === "supplement";
|
|
240
240
|
const resource = isMedication ? interventionToFHIRMedicationStatement(intervention, patientId) : interventionToFHIRObservation(intervention, patientId);
|
|
241
|
-
return { fullUrl:
|
|
241
|
+
return { fullUrl: _chunkDGTP2QB6cjs.entryFullUrl.call(void 0, resource), resource };
|
|
242
242
|
});
|
|
243
243
|
return {
|
|
244
|
-
entry: [{ fullUrl:
|
|
244
|
+
entry: [{ fullUrl: _chunkDGTP2QB6cjs.entryFullUrl.call(void 0, fhirPatient), resource: fhirPatient }, ...entries],
|
|
245
245
|
resourceType: "Bundle",
|
|
246
246
|
type: "collection"
|
|
247
247
|
};
|
|
@@ -716,5 +716,5 @@ var specimenTypeCoding = (text) => BY_NORMALIZED_TEXT.get(normalize(text));
|
|
|
716
716
|
|
|
717
717
|
|
|
718
718
|
|
|
719
|
-
exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_CODE_SYSTEM = _chunkOR67NJDZcjs.BIOMARKER_CODE_SYSTEM; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS =
|
|
719
|
+
exports.AGE_BRACKETS = AGE_BRACKETS; exports.BIOMARKER_CODE_SYSTEM = _chunkOR67NJDZcjs.BIOMARKER_CODE_SYSTEM; exports.BIOMARKER_DEFAULT_UNIT = _chunkMJ254F5Kcjs.BIOMARKER_DEFAULT_UNIT; exports.BIOMARKER_DEFINITIONS = _chunkIBF6HOBGcjs.BIOMARKER_DEFINITIONS; exports.BIOMARKER_UNITS = _chunkMJ254F5Kcjs.BIOMARKER_UNITS; exports.BODY_FAT_ZONES = BODY_FAT_ZONES; exports.BR_TIPO_AMOSTRA_VALUESET = BR_TIPO_AMOSTRA_VALUESET; exports.BUNDLE_BASE_URL = _chunkDGTP2QB6cjs.BUNDLE_BASE_URL; exports.CAC_INDICATOR_CODES = _chunkIBF6HOBGcjs.CAC_INDICATOR_CODES; exports.CATEGORY_GROUPS = CATEGORY_GROUPS; exports.CATEGORY_SCREENING_INTERVALS = CATEGORY_SCREENING_INTERVALS; exports.DEXA_CATEGORIES = _chunkIBF6HOBGcjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunkIBF6HOBGcjs.DEXA_INDICATOR_CODES; exports.HL7_SPECIMEN_TYPE_SYSTEM = HL7_SPECIMEN_TYPE_SYSTEM; exports.LOINC_SYSTEM = _chunkOR67NJDZcjs.LOINC_SYSTEM; exports.MAX_FILE_SIZE = _chunkY7TOLJ2Ycjs.MAX_FILE_SIZE; exports.MAX_OBSERVATIONS = _chunkY7TOLJ2Ycjs.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 = _chunkIBF6HOBGcjs.codeToLoinc; exports.convertUnit = _chunkMJ254F5Kcjs.convertUnit; exports.cpfToFHIRIdentifier = cpfToFHIRIdentifier; exports.defaultReferenceRanges = _chunkERALICUKcjs.defaultReferenceRanges; exports.entryFullUrl = _chunkDGTP2QB6cjs.entryFullUrl; exports.extractObservationsFromBundle = _chunkY7TOLJ2Ycjs.extractObservationsFromBundle; exports.filterVisibleBiomarkers = _chunkIBF6HOBGcjs.filterVisibleBiomarkers; exports.findCodeByName = _chunkIBF6HOBGcjs.findCodeByName; exports.formatCNS = formatCNS; exports.formatCPF = formatCPF; exports.generateCacFullReference = _chunkIBF6HOBGcjs.generateCacFullReference; exports.generateDexaFullReference = _chunkIBF6HOBGcjs.generateDexaFullReference; exports.generateFilteredLLMReference = _chunkIBF6HOBGcjs.generateFilteredLLMReference; exports.generateLLMReference = _chunkIBF6HOBGcjs.generateLLMReference; exports.getAllCodes = _chunkIBF6HOBGcjs.getAllCodes; exports.getAllDefinitions = _chunkIBF6HOBGcjs.getAllDefinitions; exports.getAllLoincCodes = _chunkIBF6HOBGcjs.getAllLoincCodes; exports.getAllSearchPatterns = _chunkIBF6HOBGcjs.getAllSearchPatterns; exports.getBiomarkersByCategory = _chunkIBF6HOBGcjs.getBiomarkersByCategory; exports.getBiomarkersForCategories = _chunkIBF6HOBGcjs.getBiomarkersForCategories; exports.getCanonicalUnit = _chunkMJ254F5Kcjs.getCanonicalUnit; exports.getCategoriesByInterval = getCategoriesByInterval; exports.getCategoryGroup = getCategoryGroup; exports.getDaysUntilScreening = getDaysUntilScreening; exports.getDefaultUnit = _chunkMJ254F5Kcjs.getDefaultUnit; exports.getDefinitionByCode = _chunkIBF6HOBGcjs.getDefinitionByCode; exports.getDefinitionByLoinc = _chunkIBF6HOBGcjs.getDefinitionByLoinc; exports.getDefinitionsBySex = _chunkIBF6HOBGcjs.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 = _chunkIBF6HOBGcjs.getSexForCode; exports.getVisibleDefinitions = _chunkIBF6HOBGcjs.getVisibleDefinitions; exports.interventionToFHIRMedicationStatement = interventionToFHIRMedicationStatement; exports.interventionToFHIRObservation = interventionToFHIRObservation; exports.interventionsToFHIRBundle = interventionsToFHIRBundle; exports.isBiomarkerVisible = _chunkIBF6HOBGcjs.isBiomarkerVisible; exports.isCacDocument = _chunkIBF6HOBGcjs.isCacDocument; exports.isDexaDocument = _chunkIBF6HOBGcjs.isDexaDocument; exports.isScreeningDue = isScreeningDue; exports.isValidCode = _chunkIBF6HOBGcjs.isValidCode; exports.isValidLoinc = _chunkIBF6HOBGcjs.isValidLoinc; exports.labObservationToFHIR = _chunkDGTP2QB6cjs.labObservationToFHIR; exports.labReportToFHIR = _chunkDGTP2QB6cjs.labReportToFHIR; exports.labResultToFHIRBundle = _chunkDGTP2QB6cjs.labResultToFHIRBundle; exports.listMappedSubcategories = listMappedSubcategories; exports.loincToCode = _chunkIBF6HOBGcjs.loincToCode; exports.mapFHIRObservationToInternal = _chunkY7TOLJ2Ycjs.mapFHIRObservationToInternal; exports.normalizeCode = _chunkIBF6HOBGcjs.normalizeCode; exports.plural = plural; exports.pluralCount = pluralCount; exports.pluralPhrase = pluralPhrase; exports.pluralPhraseCount = pluralPhraseCount; exports.processImportBundle = _chunkY7TOLJ2Ycjs.processImportBundle; exports.specimenTypeCoding = specimenTypeCoding; exports.toBiomarkerTests = _chunkIBF6HOBGcjs.toBiomarkerTests; exports.unitToUCUM = _chunkMJ254F5Kcjs.unitToUCUM; exports.userProfileToFHIR = _chunkDGTP2QB6cjs.userProfileToFHIR; exports.validateCNS = validateCNS; exports.validateCPF = validateCPF; exports.validateFHIRDiagnosticReport = _chunk3ILBFLVQcjs.validateFHIRDiagnosticReport; exports.validateFHIRImportBundle = _chunk3ILBFLVQcjs.validateFHIRImportBundle; exports.validateFHIRObservation = _chunk3ILBFLVQcjs.validateFHIRObservation; exports.validateLoincNameMatch = _chunkIBF6HOBGcjs.validateLoincNameMatch;
|
|
720
720
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
labReportToFHIR,
|
|
6
6
|
labResultToFHIRBundle,
|
|
7
7
|
userProfileToFHIR
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PXDGYFGR.js";
|
|
9
9
|
import {
|
|
10
10
|
MAX_FILE_SIZE,
|
|
11
11
|
MAX_OBSERVATIONS,
|
|
12
12
|
extractObservationsFromBundle,
|
|
13
13
|
mapFHIRObservationToInternal,
|
|
14
14
|
processImportBundle
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2F3TXKDI.js";
|
|
16
16
|
import {
|
|
17
17
|
BIOMARKER_CODE_SYSTEM,
|
|
18
18
|
LOINC_SYSTEM
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
normalizeCode,
|
|
50
50
|
toBiomarkerTests,
|
|
51
51
|
validateLoincNameMatch
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-BNG4YNY2.js";
|
|
53
53
|
import {
|
|
54
54
|
applyFallbackReferenceRanges,
|
|
55
55
|
biomarkerRangeDefinitions,
|
package/package.json
CHANGED