dcmjs 0.49.3 → 0.49.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/build/dcmjs.es.js CHANGED
@@ -15950,18 +15950,19 @@ var NO_UNIT = {
15950
15950
  noUnitCodeValues.forEach(function (codeValue) {
15951
15951
  unitCodeMap[codeValue] = NO_UNIT;
15952
15952
  });
15953
- unitCodeMap["mm\xB2"] = {
15953
+ unitCodeMap["HU"] = {
15954
15954
  CodingSchemeDesignator: "UCUM",
15955
15955
  CodingSchemeVersion: "1.4",
15956
- CodeValue: "mm2",
15957
- CodeMeaning: "mm2"
15956
+ CodeValue: "[hnsf'U]",
15957
+ CodeMeaning: "Hounsfield unit"
15958
15958
  };
15959
- var MM_UNIT = {
15960
- CodeValue: "mm",
15959
+ unitCodeMap["mm\xB2"] = {
15961
15960
  CodingSchemeDesignator: "UCUM",
15962
15961
  CodingSchemeVersion: "1.4",
15963
- CodeMeaning: "millimeter"
15962
+ CodeValue: "mm2",
15963
+ CodeMeaning: "mm2"
15964
15964
  };
15965
+
15965
15966
  /** Converts the given unit into the
15966
15967
  * specified coding values.
15967
15968
  * Has .measurementMap on the function specifying global units for measurements.
@@ -15973,7 +15974,11 @@ var unit2CodingValue = function unit2CodingValue(units) {
15973
15974
  var codingUnit = unitCodeMap[units] || unitCodeMap[baseUnit];
15974
15975
  if (!codingUnit) {
15975
15976
  log.error("Unspecified units", units);
15976
- return MM_UNIT;
15977
+ return {
15978
+ CodeValue: "[arb'U]{".concat(units, "}"),
15979
+ CodingSchemeDesignator: "UCUM",
15980
+ CodeMeaning: "arbitrary ".concat(units)
15981
+ };
15977
15982
  }
15978
15983
  return codingUnit;
15979
15984
  };