예제 #1
0
 /**
  * @param xdsiModel
  * @return
  */
 private Dataset getRootInfo(XDSIModel xdsiModel) {
   Dataset rootInfo = DcmObjectFactory.getInstance().newDataset();
   DcmElement sq = rootInfo.putSQ(Tags.ConceptNameCodeSeq);
   Dataset item = sq.addNewItem();
   CodeItem selectedDocTitle = xdsiModel.selectedDocTitle();
   item.putSH(Tags.CodeValue, selectedDocTitle.getCodeValue());
   item.putSH(Tags.CodingSchemeDesignator, selectedDocTitle.getCodeDesignator());
   item.putLO(Tags.CodeMeaning, selectedDocTitle.getCodeMeaning());
   return rootInfo;
 }
예제 #2
0
 private CodeItem[] getCodeItems(String methodName) {
   try {
     List l = (List) server.invoke(xdsiServiceName, methodName, new Object[] {}, new String[] {});
     CodeItem[] items = new CodeItem[l.size()];
     for (int i = 0, len = l.size(); i < len; i++) {
       items[i] = CodeItem.valueofDCM(l.get(i).toString()); // DCM (D)esignator(C)odevalue(M)eaning
     }
     return items;
   } catch (Exception e) {
     log.error("Failed to get list of configured Codes! method:" + methodName, e);
     return null;
   }
 }