示例#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 Map<NBIANode, UsAvailableSearchTerms> getSearchableNodesForUs() {
    Map<NBIANode, UsAvailableSearchTerms> allNodes =
        new HashMap<NBIANode, UsAvailableSearchTerms>();

    RemoteNodes remoteNodes = RemoteNodes.getInstance();

    Collection<RemoteNode> nodes = remoteNodes.getRemoteNodes();
    for (RemoteNode node : nodes) {
      UsAvailableSearchTerms usAvailableSearchTerms = node.getUsAvailableSearchTerms();
      if (usAvailableSearchTerms != null) {
        allNodes.put(node, usAvailableSearchTerms);
      }
    }

    return allNodes;
  }
示例#3
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);
  }
示例#4
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);
  }
示例#5
0
  /** {@inheritDoc} */
  public List<String> getUsMultiModality() {

    RemoteNodes remoteNodes = RemoteNodes.getInstance();

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

    Collection<RemoteNode> nodes = remoteNodes.getRemoteNodes();
    for (RemoteNode node : nodes) {
      UsAvailableSearchTerms availableSearchTerms = node.getUsAvailableSearchTerms();
      if (availableSearchTerms != null) {
        String[] usMultiModalities = availableSearchTerms.getUsMultiModalities();
        if (usMultiModalities != null) {
          allUsMultiModalities.addAll(Arrays.asList(usMultiModalities));
        }
      }
    }
    return new ArrayList<String>(allUsMultiModalities);
  }
示例#6
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;
  }