-
-vvQuery vvQPacsConnection::getQueryforStudy(const std::string patient_id, bool bdisplay)
-{
- vvQuery query;
- query.keys = getQueryKeysforStudy( patient_id, bdisplay);
- query.theRoot = gdcm::ePatientRootType;
- query.theLevel = gdcm::eStudy;
- return query;
-}
-
-std::vector< std::pair<gdcm::Tag, std::string> > vvQPacsConnection::getQueryKeysforStudy(const std::string patient_id, bool bdisplay)
-{
- std::vector< std::pair<gdcm::Tag, std::string> > keys;
-
-
- // Study Description
- gdcm::Tag tagsdc(0x0008,0x1030);
- keys.push_back(std::make_pair(tagsdc, ""));
- // Study date
- gdcm::Tag tagdb(0x0008,0x0020);
- keys.push_back(std::make_pair(tagdb, ""));
- // Study Hour
- gdcm::Tag tagsdh(0x0008,0x0030);
- keys.push_back(std::make_pair(tagsdh, ""));
-
- // Study UID
- gdcm::Tag tagsid(0x020,0x000d);
- keys.push_back(std::make_pair(tagsid, ""));
-
- if (!bdisplay)
- {
- // Patient ID
- gdcm::Tag tagsd(0x0010,0x0020);
- keys.push_back(std::make_pair(tagsd, patient_id));
- }
-
- return keys;
-}
-
-vvQuery vvQPacsConnection::getQueryforImages(const std::string patient_id, const std::string study_id, const std::string series_id,bool bdisplay)
-{
- vvQuery query;
- query.keys = getQueryKeysforImages( patient_id, study_id, series_id, bdisplay);
- query.theRoot = gdcm::ePatientRootType;
- query.theLevel = gdcm::eImage;
- return query;
-}
-
-std::vector< std::pair<gdcm::Tag, std::string> > vvQPacsConnection::getQueryKeysforImages(const std::string patient_id, const std::string study_id, const std::string series_id,bool bdisplay)
-{
-
- std::vector< std::pair<gdcm::Tag, std::string> > keys;
-
- if (!bdisplay)
- {
- //Patient UID
- keys.push_back(std::make_pair(gdcm::Tag (0x0010,0x0020), patient_id));
-
- //Study UID
- // keys.push_back(std::make_pair(gdcm::Tag(0x0020,0x000d), study_id));
-
- //Series UID
- keys.push_back(std::make_pair(gdcm::Tag(0x0020,0x000e), series_id));
- }
- // Image Description
-
- keys.push_back(std::make_pair(gdcm::Tag(0x0020,0x0013), ""));
- //SOP Instance UID
- keys.push_back(std::make_pair(gdcm::Tag(0x0008,0x0018), ""));
- return keys;
-}
\ No newline at end of file