Examples of ObsGroup


Examples of org.openmrs.module.htmlformentry.schema.ObsGroup

        if (ignoreIfEmpty && thisGroup == null) {
            digDeeper = false;
        }

        // sets up the obs group stack, sets current obs group to this one
        ObsGroup ogSchemaObj = new ObsGroup(groupingConcept, name);
        session.getContext().beginObsGroup(groupingConcept, thisGroup, ogSchemaObj);
        //adds the obsgroup action to the controller stack
        session.getSubmissionController().addAction(ObsGroupAction.start(groupingConcept, thisGroup, ogSchemaObj));
        return digDeeper;
    }
View Full Code Here

Examples of org.openmrs.module.htmlformentry.schema.ObsGroup

    if (hff instanceof ObsField) {
      ObsField of = (ObsField) hff;
      ret += " concept " + of.getQuestion() + " ";

    } else if (hff instanceof ObsGroup) {
      ObsGroup og = (ObsGroup) hff;
      ret += " ObsGroup=" + og.getConcept() + " [";
      for (HtmlFormField hffInner : og.getChildren())
        ret = shouldReturnObsGroupSchemaCorrectlyHelper(hffInner, count, ret);
          ret += "]";
    }
    return ret;
  }
View Full Code Here

Examples of org.openmrs.module.htmlformentry.schema.ObsGroup

    private static StringBuffer generateColumnHeadersFromHtmlFormHelper(HtmlFormField hff, List<String> extraCols, StringBuffer sb){
        if (hff instanceof ObsField){
            ObsField of = (ObsField) hff;     
            sb = buildHeadersForObsField(of, extraCols, sb);
        } else if (hff instanceof ObsGroup){
                ObsGroup og = (ObsGroup) hff;
                for (HtmlFormField of : og.getChildren()){
                    sb = generateColumnHeadersFromHtmlFormHelper(of, extraCols, sb);
                }
        }
        return sb;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.