예제 #1
0
  /** {@inheritDoc} */
  public Map<NBIANode, AvailableSearchTerms> getSearchableNodes() {
    Map<NBIANode, AvailableSearchTerms> allNodes = new HashMap<NBIANode, AvailableSearchTerms>();

    RemoteNodes remoteNodes = RemoteNodes.getInstance();

    Collection<RemoteNode> nodes = remoteNodes.getRemoteNodes();
    for (RemoteNode node : nodes) {
      AvailableSearchTerms availableSearchTerms = node.getAvailableSearchTerms();
      allNodes.put(node, availableSearchTerms);
    }

    return allNodes;
  }
예제 #2
0
  /** {@inheritDoc} */
  public List<String> getAnatomicSite() {
    RemoteNodes remoteNodes = RemoteNodes.getInstance();

    Set<String> allAnatomicSites = new HashSet<String>();

    Collection<RemoteNode> nodes = remoteNodes.getRemoteNodes();
    for (RemoteNode node : nodes) {
      AvailableSearchTerms availableSearchTerms = node.getAvailableSearchTerms();

      String[] anatomicSites = availableSearchTerms.getAnatomicSites();
      if (anatomicSites != null) {
        allAnatomicSites.addAll(Arrays.asList(anatomicSites));
      }
    }

    return new ArrayList<String>(allAnatomicSites);
  }
예제 #3
0
  /** {@inheritDoc} */
  public List<String> getDICOMKernelType() {
    RemoteNodes remoteNodes = RemoteNodes.getInstance();

    Set<String> allConvolutionKernels = new HashSet<String>();

    Collection<RemoteNode> nodes = remoteNodes.getRemoteNodes();
    for (RemoteNode node : nodes) {
      AvailableSearchTerms availableSearchTerms = node.getAvailableSearchTerms();

      String[] convolutionKernels = availableSearchTerms.getConvolutionKernels();
      if (convolutionKernels != null) {
        allConvolutionKernels.addAll(Arrays.asList(convolutionKernels));
      }
    }

    return new ArrayList<String>(allConvolutionKernels);
  }
예제 #4
0
  /** {@inheritDoc} */
  public Map<String, Map<String, Set<String>>> getManufacturerModelSoftwareItems() {
    RemoteNodes remoteNodes = RemoteNodes.getInstance();

    Map<String, Map<String, Set<String>>> equipmentMap =
        new HashMap<String, Map<String, Set<String>>>();

    Collection<RemoteNode> nodes = remoteNodes.getRemoteNodes();
    for (RemoteNode node : nodes) {
      AvailableSearchTerms availableSearchTerms = node.getAvailableSearchTerms();

      // EquipmentUtil.convert
      Manufacturer[] equipment = availableSearchTerms.getEquipment();
      if (equipment == null) {
        continue;
      }

      for (Manufacturer manufacturer : equipment) {

        Map<String, Set<String>> modelMap = equipmentMap.get(manufacturer.getName());
        if (modelMap == null) {
          modelMap = new HashMap<String, Set<String>>();
          equipmentMap.put(manufacturer.getName(), modelMap);
        }

        for (Model model : manufacturer.getModels()) {
          Set<String> versions = modelMap.get(model.getName());
          if (versions == null) {
            versions = new HashSet<String>();
            modelMap.put(model.getName(), versions);
          }
          versions.addAll(Arrays.asList(model.getVersions()));
        }
      }
    }

    return equipmentMap;
  }