Package org.openmrs

Examples of org.openmrs.Form


                  OpenmrsObject object = Context.getService(HtmlFormEntryService.class).getItemByUuid(
                      (Class<? extends OpenmrsObject>) attributeDescriptor.getClazz(), id);
                  if (object != null) {
                    //special handling of Form -- if passed a Form, see if it can be passed along as  HtmlForm
                    if (Form.class.equals(attributeDescriptor.getClazz())) {
                      Form form = (Form) object;
                      HtmlForm htmlForm = Context.getService(HtmlFormEntryService.class).getHtmlFormByForm(form);
                      if (htmlForm != null){
                        dependencies.add(htmlForm);
                        continue;
                      }
View Full Code Here


    e.setProvider(Context.getPersonService().getPerson(502));
   
    //add a bunch of obs...
    TestUtil.addObs(e, 2474, Context.getConceptService().getConcept(656), date); //matches
   
    Form form = new Form();
    HtmlForm htmlform = new HtmlForm();
    htmlform.setForm(form);
    form.setEncounterType(new EncounterType());
    htmlform.setDateChanged(new Date());
    htmlform.setXmlData(new TestUtil().loadXmlFromFile(XML_DATASET_PATH
            + "returnSectionsAndConceptsInSectionsTestFormWithGroups.xml"));
    HtmlFormEntryUtil.voidEncounterByHtmlFormSchema(e, htmlform, null);
   
View Full Code Here

    //7 IS ALLERGY CONSTRUCT, 1000 IS ALLERGY CODED, 1003 IS OPENMRS
    TestUtil.addObsGroup(e, 7, new Date(), 1000, Context.getConceptService().getConcept(1003), new Date()); //matches
    TestUtil.addObsGroup(e, 1000, new Date(), 7, Context.getConceptService().getConcept(1003), new Date()); //does not match     
    Context.getEncounterService().saveEncounter(e);
   
    Form form = new Form();
    HtmlForm htmlform = new HtmlForm();
    htmlform.setForm(form);
    form.setEncounterType(new EncounterType());
    htmlform.setDateChanged(new Date());
    htmlform.setXmlData(new TestUtil().loadXmlFromFile(XML_DATASET_PATH
            + "returnSectionsAndConceptsInSectionsTestFormWithGroups.xml"));
    HtmlFormEntryUtil.voidEncounterByHtmlFormSchema(e, htmlform, null);
   
View Full Code Here

    dor.setStartDate(new Date());
    e.addOrder(dor);
   
    Context.getEncounterService().saveEncounter(e);
   
    Form form = new Form();
    HtmlForm htmlform = new HtmlForm();
    htmlform.setForm(form);
    form.setEncounterType(new EncounterType());
    htmlform.setDateChanged(new Date());
    htmlform.setXmlData(new TestUtil().loadXmlFromFile(XML_DATASET_PATH
            + "returnSectionsAndConceptsInSectionsTestFormWithGroups.xml"));
   
    HtmlFormEntryUtil.voidEncounterByHtmlFormSchema(e, htmlform, "test void reason");
View Full Code Here

    dor.setStartDate(new Date());
    e.addOrder(dor);
   
    Context.getEncounterService().saveEncounter(e);
   
    Form form = new Form();
    HtmlForm htmlform = new HtmlForm();
    htmlform.setForm(form);
    form.setEncounterType(new EncounterType());
    htmlform.setDateChanged(new Date());
    htmlform.setXmlData(new TestUtil().loadXmlFromFile(XML_DATASET_PATH
            + "returnSectionsAndConceptsInSectionsTestFormWithGroups.xml"));
   
    HtmlFormEntryUtil.voidEncounterByHtmlFormSchema(e, htmlform, null);
View Full Code Here

    dor.setStartDate(new Date());
    e.addOrder(dor);
   
    Context.getEncounterService().saveEncounter(e);
   
    Form form = new Form();
    HtmlForm htmlform = new HtmlForm();
    htmlform.setForm(form);
    form.setEncounterType(new EncounterType());
    htmlform.setDateChanged(new Date());
    htmlform.setXmlData(new TestUtil().loadXmlFromFile(XML_DATASET_PATH
            + "returnSectionsAndConceptsInSectionsTestFormWithGroups.xml"));
   
    HtmlFormEntryUtil.voidEncounterByHtmlFormSchema(e, htmlform, null);
View Full Code Here

TOP

Related Classes of org.openmrs.Form

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.