Skip to content

Commit 4c7ec0b

Browse files
fix: patientName & date tags parsing (#358)
* fix: patientName & date tags parsing * Update docs --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 1a7d575 commit 4c7ec0b

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
## Dicom Image Toolkit for CornerstoneJS
1010

11-
### Current version: 2.5.1
11+
### Current version: 2.5.2
1212

13-
### Latest Published Release: 2.5.1
13+
### Latest Published Release: 2.5.2
1414

1515
This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.
1616

dist/larvitar.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/larvitar.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/documentation/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ <h3> </h3>
7474
<h1 id="larvitar">Larvitar</h1>
7575
<p><a href="https://github.com/dvisionlab/Larvitar"><img src="https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&amp;prefix=%E2%89%A5&amp;suffix=%25&amp;query=$.typeCoverage.atLeast&amp;uri=https%3A%2F%2Fraw.githubusercontent.com%2Fplantain-00%2Ftype-coverage%2Fmaster%2Fpackage.json" alt="type-coverage"></a></p>
7676
<h2 id="dicom-image-toolkit-for-cornerstonejs">Dicom Image Toolkit for CornerstoneJS</h2>
77-
<h3 id="current-version%3A-2.5.1">Current version: 2.5.1</h3>
78-
<h3 id="latest-published-release%3A-2.5.1">Latest Published Release: 2.5.1</h3>
77+
<h3 id="current-version%3A-2.5.2">Current version: 2.5.2</h3>
78+
<h3 id="latest-published-release%3A-2.5.2">Latest Published Release: 2.5.2</h3>
7979
<p>This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.</p>
8080
<h2 id="features%3A">Features:</h2>
8181
<ul>

docs/examples/larvitar.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

imaging/imageTags.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const parseDateTag = function (tagValue: string) {
9494
const year = tagValue.substring(0, 4);
9595
const month = tagValue.substring(4, 6);
9696
const day = tagValue.substring(6, 8);
97-
const date = new Date(parseInt(year), parseInt(month) - 1, parseInt(day));
97+
const date = new Date(Date.UTC(parseInt(year), parseInt(month) - 1, parseInt(day)));
9898
if (isValidDate(date) === true) {
9999
return date.toISOString();
100100
} else {
@@ -160,7 +160,7 @@ const parseTimeTag = function (tagValue: string) {
160160
*/
161161
const parsePatientNameTag = function (tagValue: string) {
162162
if (!tagValue) return "";
163-
return tagValue.replace(/\^/gi, " ");
163+
return tagValue;
164164
};
165165

166166
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"medical",
77
"cornerstone"
88
],
9-
"version": "2.5.1",
9+
"version": "2.5.2",
1010
"description": "typescript library for parsing, loading, rendering and interacting with DICOM images",
1111
"repository": {
1212
"url": "https://github.com/dvisionlab/Larvitar.git",

0 commit comments

Comments
 (0)