I am trying to link up a dicom viewer (ginkgo on Ubunutu) to my XNAT database such that I can query the data in the database and view the output in the dicom viewer. I installed the XNAT gateway on the client computer, adjacent to ginkgo.
I followed the instructions in the documentation. On completing the configuration, ginkgo can 'see' the XNAT gateway as a dicom node once the gateway is running, however, the queries to the main server xnat continually fail. See the output from the XNAT GATEWAY log below.
INFO - handle - Socket[addr=/
172.31.171.167,port=33049,localport=4006]
INFO - received AAssociateRQ
appCtxName: 1.2.840.10008.3.1.1.1/DICOM Application Context Name
implClass: 1.2.276.0.7230010.3.0.3.6.0
implVersion: OFFIS_DCMTK_360
calledAET: XNATGATEWAY
callingAET: JM_PC1
maxPDULen: 16384
asyncOpsWindow:
pc-1: as=1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND
ts=1.2.840.10008.1.2/Implicit VR Little Endian
ts=1.2.840.10008.1.2.1/Explicit VR Little Endian
ts=1.2.840.10008.1.2.2/Explicit VR Big Endian
INFO - sending AAssociateAC
appCtxName: 1.2.840.10008.3.1.1.1/DICOM Application Context Name
implClass: 1.2.40.0.13.1.1
implVersion: dcm4che-1.4.27
calledAET: XNATGATEWAY
callingAET: JM_PC1
maxPDULen: 16352
asyncOpsWindow:
pc-1: 0 - acceptance
ts=1.2.840.10008.1.2/Implicit VR Little Endian
INFO - received [pc-1] 1:C_FIND_RQ with Dataset
class: 1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND
INFO - Jan 14, 2014 9:51:11 AM: REST query string:
/experiments?project=CBT&xnat:imagesessiondata/date=20131114-20140114&columns=xnat:experimentdata/label,xnat:subjectdata/label,xnat:subjectdata/demographics[@xsi:type=xnat:demographicdata]/gender,xnat:subjectdata/demographics[@xsi:type=xnat:demographicdata]/dob,xnat:subjectdata/demographics[@xsi:type=xnat:demographicdata]/age,xnat:subjectdata/demographics[@xsi:type=xnat:demographicdata]/height,xnat:subjectdata/demographics[@xsi:type=xnat:demographicdata]/weight,xnat:subjectdata/demographics[@xsi:type=xnat:demographicdata]/ethnicity,xnat:experimentdata/visit_id,xnat:imagesessiondata/uid,project,xnat:experimentdata/project,xsitype,xnat:imagesessiondata/date,xnat:imagesessiondata/time
INFO - Jan 14, 2014 9:51:11 AM: XML search request returned null
INFO - sending [pc-1] 1:C_FIND_RSP
class: 1.2.840.10008.5.1.4.1.2.2.1/Study Root Query/Retrieve Information Model - FIND
status: 0
INFO - received A-RELEASE-RQ
INFO - sending A-RELEASE-RP
INFO - finished - Socket[addr=/
172.31.171.167,port=33049,localport=4006]
INFO - closing connection - Socket[addr=/
172.31.171.167,port=33049,localport=4006]
I've tried a few variation in the query i.e. trying different projects , different subject id's , dates etc, nothing seems to work.
Is there something on XNAT I need to do i.e. enable the Rest API (i think i'm right in saying xnat gateway uses Rest calls?) or is that done by default during installation.