Re: [Gdcm2] [Gdcm-hackers] Problem in CFind
Cross-platform DICOM implementation
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2012-03-13 15:49:13
|
Ok in that case make it: de->SetByteValue("* ", 2); SetByteValue always pad with \0. On Tue, Mar 13, 2012 at 3:21 PM, Scott Johnson <Sco...@ne...> wrote: > Hello, > > > > You might try changing the following line: > > de->SetByteValue("*", 2); > to: > > de->SetByteValue("*", 1); > > I’m not sure what the effect would be on the SCP, but I believe SetByteValue > for strings is expecting the number of characters without the ‘\0’ to be > specified. It’s worth a try. > > > > -- Scott > > > > From: Petchirajan J [mailto:pet...@in...] > Sent: Tuesday, March 13, 2012 1:09 AM > To: mathieu.malaterre; mm...@gm...; gdcm-developers; gdcm-hackers > Subject: Re: [Gdcm2] [Gdcm-hackers] Problem in CFind > > > > Dear All, > I can't find out what is the problem in my CFind query. Anyone please help > me to solve this issue.1 > -- > Regards, > Petchirajan.J > > > ---------- Original message ---------- > From:""Petchirajan J""< pet...@in... > > Date: 7 Mar 12 11:34:39 > Subject: [Gdcm-hackers] Problem in CFind > To: "gdcm-developers" <gdc...@li...>; > "gdcm-hackers" <gdc...@li...> > > Dear All, > > I tried to retrieve all the patient information from the conquest dicom > server. For that i wrote the following query, > > gdcm::DataSet *ds = new gdcm::DataSet(); > gdcm::Tag tag(0x0008, 0x0021); > gdcm::DataElement *de = new gdcm::DataElement(tag); > de->SetByteValue("*", 2); > ds->Insert(de); > ds->Insert(gdcm::DataElement(gdcm::Tag(0x8,0x30))); > ds->Insert(gdcm::DataElement(gdcm::Tag(0x020,0x10))); > ds->Insert(gdcm::DataElement(gdcm::Tag(0x08,0x50))); > gdcm::BaseRootQuery *thequery = > gdcm::CompositeNetworkFunctions::ConstructQuery(gdcm::ePatientRootType,gdcm::ePatient,ds); > std::vector<gdcm ::DataSet> theDataSets; > gdcm::CompositeNetworkFunctions::CFind("127.0.0.1", 5678, theQuery, > theDataSets, "ANY", "ConquestSRV1" ); > > After the completion of above code, i get a empty list in 'theDataSets" > variable. The Patient,Patient query retrieval only given this problem. Other > Query retrieve levels are working correctly. Please, help me to solve this > issue. > > -- > Regards, > Petchirajan.J > > Get Yourself a cool, short @in.com Email ID now! > > > > Get Yourself a cool, short @in.com Email ID now! -- Mathieu |