From bd822650b80a232dd9bfdb4cce72363f7308589a Mon Sep 17 00:00:00 2001 From: Michael Knopke Date: Mon, 28 Sep 2020 17:48:57 +0200 Subject: [PATCH] adding image level attributes to db and bumping version --- examples/storescp.js | 2 +- package.json | 2 +- src/dcmsqldb.cc | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/storescp.js b/examples/storescp.js index 19a2083..fcd5f0c 100644 --- a/examples/storescp.js +++ b/examples/storescp.js @@ -10,7 +10,7 @@ addon.startScp(JSON.stringify( "peers": [ // peers needed for C-MOVE destination { "aet": "CONQUESTSRV1", - "ip" : "RYZEN7", + "ip" : "127.0.0.1", "port": "5678" } ], diff --git a/package.json b/package.json index 718299a..691576f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dicom-dimse-native", - "version": "1.2.0", + "version": "1.2.1", "description": "native addon using DCMTK dicom toolkit", "main": "index.js", "scripts": { diff --git a/src/dcmsqldb.cc b/src/dcmsqldb.cc index f1fda44..18b6f51 100644 --- a/src/dcmsqldb.cc +++ b/src/dcmsqldb.cc @@ -186,7 +186,14 @@ namespace { result.push_back(DB_FindAttrExt(DCM_PhotometricInterpretation, IMAGE_LEVEL, OPTIONAL_KEY)); result.push_back(DB_FindAttrExt(DCM_RescaleSlope, IMAGE_LEVEL, OPTIONAL_KEY)); result.push_back(DB_FindAttrExt(DCM_RescaleIntercept, IMAGE_LEVEL, OPTIONAL_KEY)); + result.push_back(DB_FindAttrExt(DCM_SamplesPerPixel, IMAGE_LEVEL, OPTIONAL_KEY)); result.push_back(DB_FindAttrExt(DCM_PixelSpacing, IMAGE_LEVEL, OPTIONAL_KEY)); + result.push_back(DB_FindAttrExt(DCM_BitsAllocated, IMAGE_LEVEL, OPTIONAL_KEY)); + result.push_back(DB_FindAttrExt(DCM_BitsStored, IMAGE_LEVEL, OPTIONAL_KEY)); + result.push_back(DB_FindAttrExt(DCM_HighBit, IMAGE_LEVEL, OPTIONAL_KEY)); + result.push_back(DB_FindAttrExt(DCM_PixelRepresentation, IMAGE_LEVEL, OPTIONAL_KEY)); + result.push_back(DB_FindAttrExt(DCM_ImagePositionPatient, IMAGE_LEVEL, OPTIONAL_KEY)); + result.push_back(DB_FindAttrExt(DCM_ImageOrientationPatient, IMAGE_LEVEL, OPTIONAL_KEY)); result.push_back(DB_FindAttrExt(DCM_SOPClassUID, IMAGE_LEVEL, REQUIRED_KEY)); result.push_back(DB_FindAttrExt(DCM_PrivateFileName, IMAGE_LEVEL, OPTIONAL_KEY)); return result;