Skip to content

Commit

Permalink
adding slice location and thickness
Browse files Browse the repository at this point in the history
bump version
  • Loading branch information
knopkem committed Feb 21, 2022
1 parent fa2254c commit 6a63719
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dicomweb-proxy",
"version": "1.6.3",
"version": "1.6.4",
"description": "A proxy to translate between dicomweb and dimse",
"main": "app.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/dimse/parseMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function parseFile(filename: string): Promise<ElementType> {
const ippString = dataset.string('x00200032');
const ipp = ippString ? ippString.split('\\').map((e: string) => parseFloat(e)) : null;
const instanceNumber = dataset.string('x00200013');
const sliceThickness = dataset.string('x00180050');
const sliceLocation = dataset.string('x00201041');

// append to all results
const result: ElementType = {
Expand Down Expand Up @@ -84,6 +86,8 @@ function parseFile(filename: string): Promise<ElementType> {
...(iop && { '00200037': { Value: iop, vr: 'DS' } }),
...(ipp && { '00200032': { Value: ipp, vr: 'DS' } }),
'00200013': { Value: [instanceNumber], vr: 'IS' },
'00180050': { Value: [sliceThickness], vr: 'DS' },
'00201041': { Value: [sliceLocation], vr: 'DS' },
};
resolve(result);
});
Expand Down

0 comments on commit 6a63719

Please sign in to comment.