Package org.openmrs

Examples of org.openmrs.OrderFrequency


          drug = Context.getConceptService().getDrugByUuid(ds.getDrugId());
        if (drug == null)
          throw new RuntimeException("Your standard regimen xml file constains a drugId that can't be found, for regimen " + rs.getCodeName() + ", DrugComponent.id = " + ds.getDrugId());
        dor.setDrug(drug);
       
        OrderFrequency frequency = findFrequency(orderService, ds.getFrequency());
        dor.setFrequency(frequency);
        dor.setInstructions(ds.getInstructions());
        dor.setDose(Double.valueOf(ds.getDose()));
        dor.setDoseUnits(conceptService.getConceptByName(ds.getUnits()));
        dor.setRoute(Context.getConceptService().getConceptByName("UNKNOWN"));
View Full Code Here


   
    return ret;
  }

  private static OrderFrequency findFrequency(OrderService orderService, String frequency) {
      OrderFrequency orderFrequency = null;
      List<OrderFrequency> orderFrequencies = orderService.getOrderFrequencies(frequency, null, false, false);
      if (!orderFrequencies.isEmpty()) {
        orderFrequency = orderFrequencies.get(0);
      }
      return orderFrequency;
View Full Code Here

    drugOrder.setQuantityUnits(orderTag.quantityUnits);
    drugOrder.setDuration(orderTag.duration);
    drugOrder.setDurationUnits(orderTag.durationUnits);
    drugOrder.setRoute(orderTag.route);
    drugOrder.setCareSetting(Context.getOrderService().getCareSetting(orderTag.careSettingId));
    OrderFrequency orderFrequency = Context.getOrderService().getOrderFrequency(Integer.valueOf(orderTag.frequency));
    drugOrder.setFrequency(orderFrequency);
    drugOrder.setDateActivated(orderTag.startDate);
        drugOrder.setNumRefills(orderTag.numRefills);
    //order duration:
    if (orderTag.orderDuration != null)
View Full Code Here

      revisedOrder.setQuantityUnits(orderTag.quantityUnits);
      revisedOrder.setDuration(orderTag.duration);
      revisedOrder.setDurationUnits(orderTag.durationUnits);
      revisedOrder.setRoute(orderTag.route);
      revisedOrder.setCareSetting(Context.getOrderService().getCareSetting(orderTag.careSettingId));
      OrderFrequency orderFrequency = Context.getOrderService().getOrderFrequency(Integer.valueOf(orderTag.frequency));
      revisedOrder.setFrequency(orderFrequency);
      revisedOrder.setDateActivated(orderTag.startDate);
            revisedOrder.setNumRefills(orderTag.numRefills);
      if (orderTag.orderDuration != null)
        revisedOrder.setAutoExpireDate(calculateAutoExpireDate(orderTag.startDate, orderTag.orderDuration));
View Full Code Here

TOP

Related Classes of org.openmrs.OrderFrequency

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.