org.openmrs.Order.setStartDate()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(147)

本文整理了Java中org.openmrs.Order.setStartDate()方法的一些代码示例,展示了Order.setStartDate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.setStartDate()方法的具体详情如下:
包路径:org.openmrs.Order
类名称:Order
方法名:setStartDate

Order.setStartDate介绍

暂无

代码示例

代码示例来源:origin: openmrs/openmrs-module-htmlformentry

protected void editStandardRegimen(FormEntrySession session, HttpServletRequest submission, String regCode, Date startDate, Date discontinuedDate,
    String discontinuedReasonStr) {
  if (existingStandardRegimen != null && regCode.equals(existingStandardRegimen.getCodeName())){
    //the drug orders are already there and attached to the encounter.
    for (Order o : regDrugOrders){
      if (!StringUtils.isEmpty(discontinuedReasonStr))
        o.setDiscontinuedReason(HtmlFormEntryUtil.getConcept(discontinuedReasonStr));
      if (discontinuedDate != null){
        o.setDiscontinuedDate(discontinuedDate);
        o.setDiscontinued(true); 
      }    
      o.setStartDate(startDate);
    }
  } else {
    //standard regimen changed in the drop-down...  I'm going to have this void the old DrugOrders, and create new ones.
     voidDrugOrders(regDrugOrders, session);
     enterStandardRegimen(session, submission, regCode, startDate, discontinuedDate, discontinuedReasonStr);    
  }
}

代码示例来源:origin: openmrs/openmrs-module-htmlformentry

int counter = 1;
for (Order dor : e.getOrders()){
  dor.setStartDate(new Date((dor.getStartDate().getTime()) - (aDay * counter)));
  counter ++;
  log.debug("drugOrder now has start date " + dor.getStartDate());

相关文章