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


Java Drug.getRoute方法代码示例

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


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

示例1: fillRxo

import org.oscarehr.common.model.Drug; //导入方法依赖的package包/类
private static void fillRxo(RXO rxo, Drug drug) throws HL7Exception {

		CWE drugType = rxo.getRequestedGiveCode();

		StringBuilder drugTypeSb = new StringBuilder();
		if (drug.getGenericName() != null) drugTypeSb.append(drug.getGenericName());
		if (drug.getBrandName() != null) {
			drugTypeSb.append('(');
			drugTypeSb.append(drug.getBrandName());
			drugTypeSb.append(')');
		}
		drugType.getText().setValue(drugTypeSb.toString());

		NM dosageMin = rxo.getRequestedGiveAmountMinimum();
		dosageMin.setValue(drug.getDosage());

		CWE dosageUnits = rxo.getRequestedGiveUnits();
		dosageUnits.getText().setValue(drug.getUnit());

		CWE dosageForm = rxo.getRequestedDosageForm();
		dosageForm.getText().setValue(drug.getDrugForm());

		CWE specialInstructions = rxo.getProviderSPharmacyTreatmentInstructions(0);
		specialInstructions.getText().setValue(drug.getSpecialInstruction());

		CWE administraionRouteMethod = rxo.getProviderSAdministrationInstructions(0);
		StringBuilder routeMethodSb = new StringBuilder();
		if (drug.getRoute() != null) routeMethodSb.append(drug.getRoute());
		if (drug.getMethod() != null) {
			if (routeMethodSb.length() > 0) routeMethodSb.append(", ");
			routeMethodSb.append(drug.getMethod());
		}
		administraionRouteMethod.getText().setValue(routeMethodSb.toString());

		rxo.getAllowSubstitutions().setValue(String.valueOf(!drug.isNoSubs()));
	}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:37,代码来源:OmpO09.java

示例2: addToFavorites

import org.oscarehr.common.model.Drug; //导入方法依赖的package包/类
public static boolean addToFavorites(String providerNo, String favoriteName, Drug drug) {
	Favorite fav = new Favorite(0, providerNo, favoriteName, drug.getBrandName(), drug.getGcnSeqNo(), drug.getCustomName(), drug.getTakeMin(), drug.getTakeMax(), drug.getFreqCode(), drug.getDuration(), drug.getDurUnit(), drug.getQuantity(), drug.getDispensingUnits(), drug.getRepeat(), drug.isNoSubs(), drug.isPrn(), drug.getSpecial(), drug.getGenericName(), drug.getAtc(), drug.getRegionalIdentifier(), drug.getUnit(), drug.getUnitName(), drug.getMethod(), drug.getRoute(), drug.getDrugForm(), drug.isCustomInstructions(),
	        drug.getDosage());
	fav.setDispenseInternal(drug.getDispenseInternal());
	return fav.Save();
}
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:7,代码来源:RxPrescriptionData.java

示例3: getRouteCodeForMedication

import org.oscarehr.common.model.Drug; //导入方法依赖的package包/类
public static Code getRouteCodeForMedication(Drug med) {

        return new Code(med.getRoute(), "2.16.840.1.113883.5.112", null, "RouteOfAdministration");
    }
 
开发者ID:williamgrosset,项目名称:OSCAR-ConCert,代码行数:5,代码来源:MedicationUtil.java


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