本文整理了Java中org.openmrs.Order.setDateCreated()
方法的一些代码示例,展示了Order.setDateCreated()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Order.setDateCreated()
方法的具体详情如下:
包路径:org.openmrs.Order
类名称:Order
方法名:setDateCreated
暂无
代码示例来源:origin: openmrs/openmrs-core
target.setOrderer(getOrderer());
target.setCreator(getCreator());
target.setDateCreated(getDateCreated());
target.dateStopped = getDateStopped();
target.setOrderReason(getOrderReason());
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
protected void enterStandardRegimen(FormEntrySession session, HttpServletRequest submission, String regCode, Date startDate,
Date discontinuedDate, String discontinuedReasonStr) {
RegimenSuggestion rs = RegimenUtil.getStandardRegimenByCode(possibleRegimens, regCode);
//create new drugOrders
Set<Order> ords = RegimenUtil.standardRegimenToDrugOrders(rs, startDate, session.getPatient());
for (Order o: ords){
if (o.getDateCreated() == null)
o.setDateCreated(new Date());
if (o.getCreator() == null)
o.setCreator(Context.getAuthenticatedUser());
if (o.getUuid() == null)
o.setUuid(UUID.randomUUID().toString());
if (!StringUtils.isEmpty(discontinuedReasonStr))
o.setDiscontinuedReason(HtmlFormEntryUtil.getConcept(discontinuedReasonStr));
if (discontinuedDate != null){
o.setDiscontinuedDate(discontinuedDate);
o.setDiscontinued(true);
o.setDiscontinuedBy(Context.getAuthenticatedUser());
}
session.getSubmissionActions().getCurrentEncounter().addOrder(o);
}
}
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
for (Order o : ords) {
if (o.getDateCreated() == null)
o.setDateCreated(new Date());
if (o.getCreator() == null)
o.setCreator(Context.getAuthenticatedUser());
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
for (Order o : ords) {
if (o.getDateCreated() == null)
o.setDateCreated(new Date());
if (o.getCreator() == null)
o.setCreator(Context.getAuthenticatedUser());
内容来源于网络,如有侵权,请联系作者删除!