@precisa-saude/fhir 0.20.3 → 0.21.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.
@@ -30,7 +30,7 @@
30
30
 
31
31
 
32
32
 
33
- var _chunkNUTT5IWAcjs = require('./chunk-NUTT5IWA.cjs');
33
+ var _chunkSJJRJT64cjs = require('./chunk-SJJRJT64.cjs');
34
34
 
35
35
 
36
36
 
@@ -63,5 +63,5 @@ var _chunkNUTT5IWAcjs = require('./chunk-NUTT5IWA.cjs');
63
63
 
64
64
 
65
65
 
66
- exports.BIOMARKER_DEFINITIONS = _chunkNUTT5IWAcjs.BIOMARKER_DEFINITIONS; exports.CAC_INDICATOR_CODES = _chunkNUTT5IWAcjs.CAC_INDICATOR_CODES; exports.DEXA_CATEGORIES = _chunkNUTT5IWAcjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunkNUTT5IWAcjs.DEXA_INDICATOR_CODES; exports.codeToLoinc = _chunkNUTT5IWAcjs.codeToLoinc; exports.filterVisibleBiomarkers = _chunkNUTT5IWAcjs.filterVisibleBiomarkers; exports.findCodeByName = _chunkNUTT5IWAcjs.findCodeByName; 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.getDefinitionByCode = _chunkNUTT5IWAcjs.getDefinitionByCode; exports.getDefinitionByLoinc = _chunkNUTT5IWAcjs.getDefinitionByLoinc; exports.getDefinitionsBySex = _chunkNUTT5IWAcjs.getDefinitionsBySex; exports.getSexForCode = _chunkNUTT5IWAcjs.getSexForCode; exports.getVisibleDefinitions = _chunkNUTT5IWAcjs.getVisibleDefinitions; exports.isBiomarkerVisible = _chunkNUTT5IWAcjs.isBiomarkerVisible; exports.isCacDocument = _chunkNUTT5IWAcjs.isCacDocument; exports.isDexaDocument = _chunkNUTT5IWAcjs.isDexaDocument; exports.isValidCode = _chunkNUTT5IWAcjs.isValidCode; exports.isValidLoinc = _chunkNUTT5IWAcjs.isValidLoinc; exports.loincToCode = _chunkNUTT5IWAcjs.loincToCode; exports.normalizeCode = _chunkNUTT5IWAcjs.normalizeCode; exports.toBiomarkerTests = _chunkNUTT5IWAcjs.toBiomarkerTests; exports.validateLoincNameMatch = _chunkNUTT5IWAcjs.validateLoincNameMatch;
66
+ exports.BIOMARKER_DEFINITIONS = _chunkSJJRJT64cjs.BIOMARKER_DEFINITIONS; exports.CAC_INDICATOR_CODES = _chunkSJJRJT64cjs.CAC_INDICATOR_CODES; exports.DEXA_CATEGORIES = _chunkSJJRJT64cjs.DEXA_CATEGORIES; exports.DEXA_INDICATOR_CODES = _chunkSJJRJT64cjs.DEXA_INDICATOR_CODES; exports.codeToLoinc = _chunkSJJRJT64cjs.codeToLoinc; exports.filterVisibleBiomarkers = _chunkSJJRJT64cjs.filterVisibleBiomarkers; exports.findCodeByName = _chunkSJJRJT64cjs.findCodeByName; exports.generateCacFullReference = _chunkSJJRJT64cjs.generateCacFullReference; exports.generateDexaFullReference = _chunkSJJRJT64cjs.generateDexaFullReference; exports.generateFilteredLLMReference = _chunkSJJRJT64cjs.generateFilteredLLMReference; exports.generateLLMReference = _chunkSJJRJT64cjs.generateLLMReference; exports.getAllCodes = _chunkSJJRJT64cjs.getAllCodes; exports.getAllDefinitions = _chunkSJJRJT64cjs.getAllDefinitions; exports.getAllLoincCodes = _chunkSJJRJT64cjs.getAllLoincCodes; exports.getAllSearchPatterns = _chunkSJJRJT64cjs.getAllSearchPatterns; exports.getBiomarkersByCategory = _chunkSJJRJT64cjs.getBiomarkersByCategory; exports.getBiomarkersForCategories = _chunkSJJRJT64cjs.getBiomarkersForCategories; exports.getDefinitionByCode = _chunkSJJRJT64cjs.getDefinitionByCode; exports.getDefinitionByLoinc = _chunkSJJRJT64cjs.getDefinitionByLoinc; exports.getDefinitionsBySex = _chunkSJJRJT64cjs.getDefinitionsBySex; exports.getSexForCode = _chunkSJJRJT64cjs.getSexForCode; exports.getVisibleDefinitions = _chunkSJJRJT64cjs.getVisibleDefinitions; exports.isBiomarkerVisible = _chunkSJJRJT64cjs.isBiomarkerVisible; exports.isCacDocument = _chunkSJJRJT64cjs.isCacDocument; exports.isDexaDocument = _chunkSJJRJT64cjs.isDexaDocument; exports.isValidCode = _chunkSJJRJT64cjs.isValidCode; exports.isValidLoinc = _chunkSJJRJT64cjs.isValidLoinc; exports.loincToCode = _chunkSJJRJT64cjs.loincToCode; exports.normalizeCode = _chunkSJJRJT64cjs.normalizeCode; exports.toBiomarkerTests = _chunkSJJRJT64cjs.toBiomarkerTests; exports.validateLoincNameMatch = _chunkSJJRJT64cjs.validateLoincNameMatch;
67
67
  //# sourceMappingURL=biomarkers.cjs.map
@@ -130,10 +130,22 @@ declare function getAllSearchPatterns(): BiomarkerSearchPattern[];
130
130
  */
131
131
  declare function generateFilteredLLMReference(codes: string[]): string;
132
132
  /**
133
- * DEXA indicator biomarker codes
134
- * When these are found in OCR text, the document is likely a DEXA/body composition scan
133
+ * Códigos que identificam um documento de composição corporal.
134
+ *
135
+ * O nome diz DEXA por herança: quando a lista foi escrita, densitometria era a
136
+ * única fonte desse tipo de laudo. Hoje ela decide o caminho para
137
+ * bioimpedância e adipometria também, e a lista tinha ficado para trás.
138
+ *
139
+ * Medido em produção: um laudo de adipometria com sete dobras cutâneas,
140
+ * circunferência de cintura e IMC não casava nenhum indicador e caía no
141
+ * caminho genérico, perdendo a referência filtrada e a extração de tendência.
142
+ * As dobras e as circunferências não aparecem em DEXA, então só elas
143
+ * identificam esse aparelho.
144
+ *
145
+ * Massa muscular e os compartimentos de água entram pela mesma razão: são o
146
+ * que a bioimpedância imprime e o DEXA não.
135
147
  */
136
- declare const DEXA_INDICATOR_CODES: readonly ["BodyFatPct", "FatMass", "LeanMass", "BMC", "FatFreeMass", "TotalMass"];
148
+ declare const DEXA_INDICATOR_CODES: readonly ["BodyFatPct", "FatMass", "LeanMass", "BMC", "FatFreeMass", "TotalMass", "MuscleMass", "TotalBodyWater", "BodyWaterPct", "PhaseAngle", "ExtracellularWater", "IntracellularWater", "SkinfoldTriceps", "SkinfoldSubscapular", "SkinfoldSuprailiac", "SkinfoldAbdominal", "SkinfoldThigh", "SkinfoldChest", "SkinfoldMidaxillary", "WaistCircumference", "CalfCircumference"];
137
149
  /**
138
150
  * DEXA-related categories that should be included when a DEXA document is detected
139
151
  */
@@ -130,10 +130,22 @@ declare function getAllSearchPatterns(): BiomarkerSearchPattern[];
130
130
  */
131
131
  declare function generateFilteredLLMReference(codes: string[]): string;
132
132
  /**
133
- * DEXA indicator biomarker codes
134
- * When these are found in OCR text, the document is likely a DEXA/body composition scan
133
+ * Códigos que identificam um documento de composição corporal.
134
+ *
135
+ * O nome diz DEXA por herança: quando a lista foi escrita, densitometria era a
136
+ * única fonte desse tipo de laudo. Hoje ela decide o caminho para
137
+ * bioimpedância e adipometria também, e a lista tinha ficado para trás.
138
+ *
139
+ * Medido em produção: um laudo de adipometria com sete dobras cutâneas,
140
+ * circunferência de cintura e IMC não casava nenhum indicador e caía no
141
+ * caminho genérico, perdendo a referência filtrada e a extração de tendência.
142
+ * As dobras e as circunferências não aparecem em DEXA, então só elas
143
+ * identificam esse aparelho.
144
+ *
145
+ * Massa muscular e os compartimentos de água entram pela mesma razão: são o
146
+ * que a bioimpedância imprime e o DEXA não.
135
147
  */
136
- declare const DEXA_INDICATOR_CODES: readonly ["BodyFatPct", "FatMass", "LeanMass", "BMC", "FatFreeMass", "TotalMass"];
148
+ declare const DEXA_INDICATOR_CODES: readonly ["BodyFatPct", "FatMass", "LeanMass", "BMC", "FatFreeMass", "TotalMass", "MuscleMass", "TotalBodyWater", "BodyWaterPct", "PhaseAngle", "ExtracellularWater", "IntracellularWater", "SkinfoldTriceps", "SkinfoldSubscapular", "SkinfoldSuprailiac", "SkinfoldAbdominal", "SkinfoldThigh", "SkinfoldChest", "SkinfoldMidaxillary", "WaistCircumference", "CalfCircumference"];
137
149
  /**
138
150
  * DEXA-related categories that should be included when a DEXA document is detected
139
151
  */
@@ -30,7 +30,7 @@ import {
30
30
  normalizeCode,
31
31
  toBiomarkerTests,
32
32
  validateLoincNameMatch
33
- } from "./chunk-RGRLMISI.js";
33
+ } from "./chunk-6EAXNJAN.js";
34
34
  export {
35
35
  BIOMARKER_DEFINITIONS,
36
36
  CAC_INDICATOR_CODES,
@@ -3146,12 +3146,31 @@ function generateFilteredLLMReference(codes) {
3146
3146
  return lines.join("\n");
3147
3147
  }
3148
3148
  var DEXA_INDICATOR_CODES = [
3149
+ // Densitometria e composição corporal clássica
3149
3150
  "BodyFatPct",
3150
3151
  "FatMass",
3151
3152
  "LeanMass",
3152
3153
  "BMC",
3153
3154
  "FatFreeMass",
3154
- "TotalMass"
3155
+ "TotalMass",
3156
+ // Bioimpedância
3157
+ "MuscleMass",
3158
+ "TotalBodyWater",
3159
+ "BodyWaterPct",
3160
+ "PhaseAngle",
3161
+ "ExtracellularWater",
3162
+ "IntracellularWater",
3163
+ // Adipometria: sete sítios, e nenhum aparece em laudo de DEXA
3164
+ "SkinfoldTriceps",
3165
+ "SkinfoldSubscapular",
3166
+ "SkinfoldSuprailiac",
3167
+ "SkinfoldAbdominal",
3168
+ "SkinfoldThigh",
3169
+ "SkinfoldChest",
3170
+ "SkinfoldMidaxillary",
3171
+ // Antropometria
3172
+ "WaistCircumference",
3173
+ "CalfCircumference"
3155
3174
  ];
3156
3175
  var DEXA_CATEGORIES = ["composicao-corporal", "densidade-ossea"];
3157
3176
  function generateDexaFullReference() {
@@ -3282,4 +3301,4 @@ export {
3282
3301
  getBiomarkersByCategory,
3283
3302
  getBiomarkersForCategories
3284
3303
  };
3285
- //# sourceMappingURL=chunk-RGRLMISI.js.map
3304
+ //# sourceMappingURL=chunk-6EAXNJAN.js.map