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


Java Drug.setUnit方法代码示例

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


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

示例1: syncDrug

import org.oscarehr.common.model.Drug; //导入方法依赖的package包/类
private void syncDrug(Drug drug, Integer scriptId) {
	// the fields set are based on previous code, I don't know the details of why which are and are not set and can not audit it at this point in time.
	drug.setProviderNo(getProviderNo());
	drug.setDemographicId(getDemographicNo());
	drug.setRxDate(getRxDate());
	drug.setEndDate(getEndDate());
	drug.setWrittenDate(getWrittenDate());
	drug.setBrandName(getBrandName());
	drug.setGcnSeqNo(getGCN_SEQNO());
	drug.setCustomName(getCustomName());
	drug.setTakeMin(getTakeMin());
	drug.setTakeMax(getTakeMax());
	drug.setFreqCode(getFrequencyCode());
	drug.setDuration(getDuration());
	drug.setDurUnit(getDurationUnit());
	drug.setQuantity(getQuantity());
	drug.setDispensingUnits(getDispensingUnits());
	drug.setRepeat(getRepeat());
	drug.setLastRefillDate(getLastRefillDate());
	drug.setNoSubs(getNosubs());
	drug.setPrn(getPrn());
	drug.setSpecial(getSpecial());
	drug.setGenericName(getGenericName());
	drug.setScriptNo(scriptId);
	drug.setAtc(atcCode);
	drug.setRegionalIdentifier(regionalIdentifier);
	drug.setUnit(getUnit());
	drug.setMethod(getMethod());
	drug.setRoute(getRoute());
	drug.setDrugForm(getDrugForm());
	drug.setOutsideProviderName(getOutsideProviderName());
	drug.setOutsideProviderOhip(getOutsideProviderOhip());
	drug.setCustomInstructions(getCustomInstr());
	drug.setDosage(getDosage());
	drug.setUnitName(getUnitName());
	drug.setLongTerm(getLongTerm());
	drug.setCustomNote(isCustomNote());
	drug.setPastMed(getPastMed());
	drug.setDispenseInternal(getDispenseInternal());
	drug.setSpecialInstruction(getSpecialInstruction());
	drug.setPatientCompliance(getPatientCompliance());
	drug.setNonAuthoritative(isNonAuthoritative());
	drug.setPickUpDateTime(getPickupDate());
	drug.setETreatmentType(getETreatmentType());
	drug.setRxStatus(getRxStatus());
	drug.setDispenseInterval(getDispenseInterval());
	drug.setRefillQuantity(getRefillQuantity());
	drug.setRefillDuration(getRefillDuration());
	drug.setHideFromCpp(false);
	drug.setPosition(position);
	drug.setComment(getComment());
	drug.setStartDateUnknown(getStartDateUnknown());
	drug.setDispenseInternal(getDispenseInternal());
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:55,代码来源:RxPrescriptionData.java

示例2: getDrug

import org.oscarehr.common.model.Drug; //导入方法依赖的package包/类
Drug getDrug(String providerNo,	Integer demographicId, Date rxDate,Date endDate,Date writtenDate,String brandName,int gcnSeqNo,	String customName,float takeMin,float takeMax,String freqCode,
	String duration,String durUnit,String quantity,	Integer repeat,	boolean noSubs,	boolean prn,String special,String special_instruction,String genericName,String atc,Integer scriptNo,String regionalIdentifier,
	String unit,String method,String route,String drugForm,	Date createDate,String dosage,boolean customInstructions,String unitName,Boolean longTerm,Boolean pastMed,	Boolean patientCompliance,String outsideProviderName,
	String outsideProviderOhip ,Boolean hideFromDrugProfile,   Boolean customNote){

    Drug drug = new Drug();
	drug.setProviderNo(providerNo);
	drug.setDemographicId(demographicId);
	drug.setRxDate(rxDate);
	drug.setEndDate(endDate);
	drug.setWrittenDate(writtenDate);
	drug.setBrandName(brandName);
	drug.setGcnSeqNo(gcnSeqNo);
	drug.setCustomName(customName);
	drug.setTakeMin(takeMin);
	drug.setTakeMax(takeMax);
	drug.setFreqCode(freqCode);
	drug.setDuration(duration);
	drug.setDurUnit(durUnit);
	drug.setQuantity(quantity);
	drug.setRepeat(repeat);
	drug.setNoSubs(noSubs);
	drug.setPrn(prn);
	drug.setSpecial(special);
	drug.setSpecialInstruction(special_instruction);
	drug.setGenericName(genericName);
	drug.setAtc(atc);
	drug.setScriptNo(scriptNo);
	drug.setRegionalIdentifier(regionalIdentifier);
	drug.setUnit(unit);
	drug.setMethod(method);
	drug.setRoute(route);
	drug.setDrugForm(drugForm);
	drug.setCreateDate(createDate);
	drug.setDosage(dosage);
	drug.setCustomInstructions(customInstructions);
	drug.setUnitName(unitName);
	drug.setLongTerm(longTerm);
	drug.setPastMed(pastMed);
	drug.setPatientCompliance(patientCompliance);
	drug.setOutsideProviderName(outsideProviderName);
	drug.setOutsideProviderOhip(outsideProviderOhip);
	drug.setHideFromDrugProfile(hideFromDrugProfile);
	drug.setCustomNote(customNote);
	drug.setPosition(0);
	return drug;
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:48,代码来源:OntarioMDSpec4DataTest.java

示例3: populateDrugStrength

import org.oscarehr.common.model.Drug; //导入方法依赖的package包/类
/**
 * Attempts to populate the dosage field of the drug object given a transfer object.
 *
 * @param d the drug to populate
 * @param t the transfer object to use as a reference.
 *
 * @return true if successful, false otherwise.
 */
protected boolean populateDrugStrength(Drug d, DrugTo1 t) {

    if (t.getStrengthUnit() != null && t.getStrength() != null) {

        d.setDosage(t.getStrength() + " " + t.getStrengthUnit());
        d.setUnit(t.getStrengthUnit());
        return true;

    } else {

        // if there is no strength we have to look it up in drug ref
        // we use the
        if (this.populateTo1Strength(t, d)) {

            d.setDosage(t.getStrength() + " " + t.getStrengthUnit());
            d.setUnit(t.getStrengthUnit());
            return true;

        } else {

            return false;

        }

    }
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:35,代码来源:DrugConverter.java


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