当前位置: 首页>>代码示例>>Java>>正文


Java Drug.getRxDate方法代码示例

本文整理汇总了Java中org.oscarehr.common.model.Drug.getRxDate方法的典型用法代码示例。如果您正苦于以下问题:Java Drug.getRxDate方法的具体用法?Java Drug.getRxDate怎么用?Java Drug.getRxDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.oscarehr.common.model.Drug的用法示例。


在下文中一共展示了Drug.getRxDate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: canPrescribe

import org.oscarehr.common.model.Drug; //导入方法依赖的package包/类
/**
 * Determines if all of the information to create a valid prescription is
 * present in the drug object. Only check the bare minimum fields.
 *
 * @param d the drug to check.
 * @return true if the drug contains the required fields, false otherwise.
 */
protected Boolean canPrescribe(Drug d){

    if(d == null) return false;

    if(d.getProviderNo() == null || d.getProviderNo().equals("")) return false;

    if(d.getDemographicId() == null || d.getDemographicId() < 0) return false;

    if(d.getRxDate() == null) return false;

    if(d.getEndDate() == null || d.getRxDate().after(d.getEndDate())) return false;

    if(d.getSpecial() == null || d.getSpecial().equals("")) return false;

    return true;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:24,代码来源:RxManager.java

示例2: getDrugDisplayData

import org.oscarehr.common.model.Drug; //导入方法依赖的package包/类
private static DrugDisplayData getDrugDisplayData(Drug drug) {
	DrugDisplayData drugDisplayData = new DrugDisplayData();

	drugDisplayData.localDrugId = drug.getId();

	RxProviderData.Provider prov = new RxProviderData().getProvider(drug.getProviderNo());
	drugDisplayData.providerName = prov.getFirstName() + ' ' + prov.getSurname();

	drugDisplayData.startDate = RxUtil.DateToString(drug.getRxDate());
	drugDisplayData.dateStartDate = drug.getRxDate();

	drugDisplayData.endDate = RxUtil.DateToString(drug.getEndDate());
	drugDisplayData.writtenDate = RxUtil.DateToString(drug.getWrittenDate());

	drugDisplayData.prescriptionDetails = RxPrescriptionData.getFullOutLine(drug.getSpecial()).replaceAll(";", " ");

               drugDisplayData.nonAuthoritative = drug.isNonAuthoritative();

	drugDisplayData.genericName = drug.getGenericName();

	drugDisplayData.customName = drug.getCustomName();

	drugDisplayData.brandName = drug.getBrandName();

	drugDisplayData.isArchived = drug.isArchived();
               
       drugDisplayData.pickupDate = RxUtil.DateToString(drug.getPickUpDateTime(),"yyyy-MM-dd");
               
       drugDisplayData.pickupTime = RxUtil.DateToString(drug.getPickUpDateTime(),"hh:mm aa");
       
       drugDisplayData.eTreatmentType = drug.getETreatmentType();

       drugDisplayData.rxStatus = drug.getRxStatus();
               
       drugDisplayData.dispenseInterval = drug.getDispenseInterval();
       
       drugDisplayData.refillDuration = drug.getRefillDuration();
       
       drugDisplayData.refillQuantity = drug.getRefillQuantity();
       
	return (drugDisplayData);
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:43,代码来源:StaticScriptBean.java


注:本文中的org.oscarehr.common.model.Drug.getRxDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。