Package org.openmrs

Examples of org.openmrs.ConceptComplex


   */
  public static String displayComplexValue(Obs obs) {
    String hyperlink = getViewHyperlink(obs);
   
    // check if concept is complex and uses ImageHandler. If so, display image
    ConceptComplex complex = Context.getConceptService().getConceptComplex(obs.getConcept().getId());
    if (complex != null) {
      try {
        if (ImageHandler.class.isAssignableFrom(Class.forName(AbstractHandler.class.getPackage().getName() + "."
                + complex.getHandler()))) {
          String imgTag = "<img src='" + hyperlink + "' class=\"complexImage\" />";
          return "<a href=\"" + hyperlink + "\">" + imgTag + "</a><br/><a href=\"" + getDownloadHyperlink(obs)
                  + "\">" + Context.getMessageSourceService().getMessage("htmlformentry.form.complex.download")
                  + "</a>";
        }
View Full Code Here

TOP

Related Classes of org.openmrs.ConceptComplex

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.