예제 #1
0
파일: Query.cs 프로젝트: ewin66/PacsParser
        public List <String> findMatchingNames(string partialName)
        {
            myFind = new FindSCU();
            // define query map
            myFind.addToMap("QueryRetrieveLevel", "PATIENT");
            myFind.addToMap("patientName", partialName);

            myFind.tryQueryServer(association, "find");
            //  if (mySearch.tryQueryServer(association, "find"))
            //      if (mySearch.tryReadResults())
            //           mySearch.saveResults();
            logOutput("------------------------------------------------------------------");

            return(myFind.readFromMap("patientName"));
        }
예제 #2
0
파일: Query.cs 프로젝트: ewin66/PacsParser
        public List <String> findStudyOfUser(string patientID)
        {
            FindSCU mySearch = new FindSCU();

            // define query map
            mySearch.addToMap("QueryRetrieveLevel", "STUDY");
            mySearch.addToMap("patientID", patientID);
            mySearch.addToMap("studyInstanceUID", "");

            // use it to query and print results according to input query map
            //   if (mySearch.tryQueryServer(association, "find"))
            //        if (mySearch.tryReadResults())
            //           mySearch.saveResults();
            logOutput("------------------------------------------------------------------");

            // supponendo che il paziente abbia un solo studio:
            return(mySearch.readFromMap("studyInstanceUID"));
        }