Exemplo n.º 1
0
 public static String getDescription(String idDomain) {
   if (idDomain == null) {
     return ANY_DESC;
   } else if (Domains.EHR_ID.equals(idDomain)) {
     return EHR_DESC;
   } else if (Domains.CDS_ID.equals(idDomain)) {
     return CDS_DESC;
   }
   return null;
 }
Exemplo n.º 2
0
 public static ImageIcon getIcon(String idDomain) {
   if (idDomain == null) {
     return DomainsUI.ANY_ICON;
   } else if (Domains.EHR_ID.equals(idDomain)) {
     return DomainsUI.EHR_ICON;
   } else if (Domains.CDS_ID.equals(idDomain)) {
     return DomainsUI.CDS_ICON;
   }
   return null;
 }
Exemplo n.º 3
0
 public static String getName(String idDomain) {
   if (idDomain == null) {
     return ANY_NAME;
   } else if (Domains.EHR_ID.equals(idDomain)) {
     return EHR_NAME;
   } else if (Domains.CDS_ID.equals(idDomain)) {
     return CDS_NAME;
   }
   return null;
 }
Exemplo n.º 4
0
 public Set<String> getAllGuideIdsWithCDSDomain(ElementInstance elementInstance) {
   Set<String> idGuides = new HashSet<String>();
   for (String idGuide : _elementInstanceCollectionByIdGuideMap.keySet()) {
     Set<ArchetypeReference> archetypeReferences =
         _elementInstanceCollectionByIdGuideMap
             .get(idGuide)
             .getArchetypeReferences(elementInstance.getArchetypeReference());
     Iterator<ArchetypeReference> i = archetypeReferences.iterator();
     boolean inCDS = false;
     while (i.hasNext() && !inCDS) {
       ArchetypeReference ar = i.next();
       if (Domains.CDS_ID.equals(ar.getIdDomain())
           && ar.getElementInstancesMap().containsKey(elementInstance.getId())) {
         inCDS = true;
       }
     }
     if (inCDS) {
       idGuides.add(idGuide);
     }
   }
   return idGuides;
 }