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")); }
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")); }