Browsing this Thread:   1 Anonymous Users


 Bottom   Previous Topic   Next Topic  Register To Post



Populating (0008,1163) Time Range in C-Get-RQ statement.
Quite a regular
Joined:
2007/1/30 18:46
From USA
Group:
Registered Users
Posts: 22
Level : 3; EXP : 41
HP : 0 / 60
MP : 7 / 1379
Offline
I am trying to put values in the (0008,1163) Time Range tag and am not having any luck in converting "0.0 0.059" [0.0-0.059](msec) into Floating Point Decimal Format. Has anyone been successful in converting? The (0008,1163) is define with VR = FD with two entries from 0.0 to 0.059.

Posted on: 2011/3/18 7:31
Transfer the post to other applications Transfer


Re: Populating (0008,1163) Time Range in C-Get-RQ statement.
Webmaster
Joined:
2006/10/12 14:45
From Best, Netherlands
Group:
Webmasters
Registered Users
Core Developers
Content Owners
Posts: 259
Level : 15; EXP : 5
HP : 0 / 351
MP : 86 / 8329
Offline
I believe you can define this value for the attribute also as a string without the need to convert it to a float value.

Posted on: 2011/3/23 8:22
Transfer the post to other applications Transfer


Re: Populating (0008,1163) Time Range in C-Get-RQ statement.
Quite a regular
Joined:
2007/1/30 18:46
From USA
Group:
Registered Users
Posts: 22
Level : 3; EXP : 41
HP : 0 / 60
MP : 7 / 1379
Offline
Since "Composite Instance Root Retrieve - Move (FRAME level)" is a new SOP Class UID (2009) for Q/R, it took a lot of trial and error to find the right format for the Time Range tag (unit is in seconds). So the right format to represent Time Range 0 to 208.41 msecs to seconds format is:

C-MOVE-RQ
(0x00000000,"0x0000005C") # Group 0000 Length
(0x00000002,"1.2.840.10008.5.1.4.1.2.4.2") # Affected SOP Class UID
(0x00000100,"0x0021") # Command Field
(0x00000110,"0x0007") # Message ID
(0x00000600,"STORESCP") # Move Destination
(0x00000700,"0x0000") # Priority
(0x00000800,"0x0000") # Data Set Type

(0x00080018,"999.999.2.19960619.163000.1.113") # SOP Instance UID
(0x00080052,"FRAME") # Query/Retrieve Level
(0x00081163, DS, "0.E0 \ 0.20841E0") # Time Range in seconds

Posted on: 2011/3/27 21:41
Transfer the post to other applications Transfer


Re: Populating (0008,1163) Time Range in C-Get-RQ statement.
Quite a regular
Joined:
2007/1/30 18:46
From USA
Group:
Registered Users
Posts: 22
Level : 3; EXP : 41
HP : 0 / 60
MP : 7 / 1379
Offline
Since "Composite Instance Root Retrieve - Move (FRAME level)" is a new SOP Class UID (2009) for Q/R, it took a lot of trial and error to find the right format for the Time Range tag (unit is in seconds). So the right format to represent Time Range 0 to 208.41 msecs to seconds format is:

C-MOVE-RQ
(0x00000000,"0x0000005C") # Group 0000 Length
(0x00000002,"1.2.840.10008.5.1.4.1.2.4.2") # Affected SOP Class UID
(0x00000100,"0x0021") # Command Field
(0x00000110,"0x0007") # Message ID
(0x00000600,"STORESCP") # Move Destination
(0x00000700,"0x0000") # Priority
(0x00000800,"0x0000") # Data Set Type


(0x00080018,"999.999.2.19960619.163000.1.103") # SOP Instance UID
(0x00080052,"FRAME") # Query/Retrieve Level
(0x00081163,"0.E0 \\ 0.20841E0") # Time Range in seconds

*** Just made a correction on the Time Range line from the previous post and added an extra "\".
***

Posted on: 2011/3/27 22:07
Transfer the post to other applications Transfer


Re: Populating (0008,1163) Time Range in C-Get-RQ statement.
Quite a regular
Joined:
2007/1/30 18:46
From USA
Group:
Registered Users
Posts: 22
Level : 3; EXP : 41
HP : 0 / 60
MP : 7 / 1379
Offline
To finalized this Subject post, I wanted to include the actual DVT script that is implemented to test for C-Move or C-Get FRAME level using the Time Range parameter:

##
## Composite Instance Root Retrieve Information Model - MOVE SOP Class - SCU DVT Script
##
##

SEND ASSOCIATE-RQ
(
PRESENTATION-CONTEXT-ITEMS
("Composite Instance Root Retrieve Information Model - MOVE SOP Class",
"Implicit VR Little Endian")
)

RECEIVE ASSOCIATE-AC
(
PRESENTATION-CONTEXT-ITEMS
("Composite Instance Root Retrieve Information Model - MOVE SOP Class",
0,
"Implicit VR Little Endian")
)

SEND C-MOVE-RQ "Composite Instance Root Retrieve - MOVE"
(
(0x00000002, "Composite Instance Root Retrieve Information Model - MOVE SOP Class")
(0x00000600, "STORESCP") # Destination AE
(0x00080052, "FRAME") # Q/R Level
(0x00080018, "999.999.2.19960619.163000.1.103") # SOP Instance UID
(0x00081163, DS, "0.E0 \\ 0.20841E0") # Time Range
)


RECEIVE C-MOVE-RSP "Composite Instance Root Retrieve - MOVE"
(
(0x00000900, US, 0x0000) # Status
)

SEND RELEASE-RQ

RECEIVE RELEASE-RP

Posted on: 2011/3/29 0:31
Transfer the post to other applications Transfer


Re: Populating (0008,1163) Time Range in C-Get-RQ statement.
Quite a regular
Joined:
2007/1/30 18:46
From USA
Group:
Registered Users
Posts: 22
Level : 3; EXP : 41
HP : 0 / 60
MP : 7 / 1379
Offline
Just to let everybody know that the DVT script below show the right format to execute Composite Instance Root Retrieve Information Model - MOVE SOP Class Q/R using the Time Range Tag.
Ignore my previous post on the DVT script format.

##
## Composite Instance Root Retrieve Information Model - MOVE SOP Class - SCU DVT Script
##
##

SEND ASSOCIATE-RQ
(
PRESENTATION-CONTEXT-ITEMS
("Composite Instance Root Retrieve Information Model - MOVE SOP Class",
"Implicit VR Little Endian")
)

RECEIVE ASSOCIATE-AC
(
PRESENTATION-CONTEXT-ITEMS
("Composite Instance Root Retrieve Information Model - MOVE SOP Class",
0,
"Implicit VR Little Endian")
)

SEND C-MOVE-RQ "Composite Instance Root Retrieve - MOVE"
(
(0x00000002, "Composite Instance Root Retrieve Information Model - MOVE SOP Class")
(0x00000600, "STORESCP") # Destination AE
(0x00080052, "FRAME") # Q/R Level
(0x00080018, "999.999.2.19960619.163000.1.103") # SOP Instance UID
(0x00081163, "0.0", "0.20841") # Time Range in seconds.
)


RECEIVE C-MOVE-RSP "Composite Instance Root Retrieve - MOVE"
(
(0x00000900, US, 0x0000) # Status
)

SEND RELEASE-RQ

RECEIVE RELEASE-RP

Posted on: 2011/5/10 18:50
Transfer the post to other applications Transfer



 Top   Previous Topic   Next Topic

 Register To Post


You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]