本文整理了Java中org.openmrs.Obs.getValueDrug()
方法的一些代码示例,展示了Obs.getValueDrug()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Obs.getValueDrug()
方法的具体详情如下:
包路径:org.openmrs.Obs
类名称:Obs
方法名:getValueDrug
暂无
代码示例来源:origin: openmrs/openmrs-core
return "";
if (getValueDrug() != null) {
return getValueDrug().getFullName(locale);
} else {
ConceptName codedName = getValueCodedName();
return df.format(getValueNumeric());
} else if (getValueCoded() != null) {
if (getValueDrug() != null) {
return getValueDrug().getFullName(locale);
} else {
ConceptName valudeCodedName = getValueCodedName();
代码示例来源:origin: openmrs/openmrs-core
if (obs.getValueDrug() != null) {
errors.rejectValue("valueDrug", "error.not.null");
&& obs.getValueComplex() == null && obs.getValueDatetime() == null && obs.getValueDrug() == null
&& obs.getValueModifier() == null && obs.getValueNumeric() == null && obs.getValueText() == null
&& obs.getComplexData() == null) {
if (obs.getValueCoded() != null && obs.getValueDrug() != null && obs.getValueDrug().getConcept() != null) {
Concept trueConcept = Context.getConceptService().getTrueConcept();
Concept falseConcept = Context.getConceptService().getFalseConcept();
&& !obs.getValueDrug().getConcept().equals(obs.getValueCoded())) {
errors.rejectValue("valueDrug", "Obs.error.invalidDrug");
代码示例来源:origin: openmrs/openmrs-core
newObs.setAccessionNumber(obsToCopy.getAccessionNumber());
newObs.setValueCoded(obsToCopy.getValueCoded());
newObs.setValueDrug(obsToCopy.getValueDrug());
newObs.setValueGroupId(obsToCopy.getValueGroupId());
newObs.setValueDatetime(obsToCopy.getValueDatetime());
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
widget.setDisplayTemplate("{{name}}");
if (existingObs != null && existingObs.getValueDrug() != null) {
widget.setInitialValue(new Option(existingObs.getValueDrug().getName(), existingObs.getValueDrug().getDrugId().toString(), true));
if (existingObs.getValueDrug() != null) {
valueWidget.setInitialValue(existingObs.getValueDrug());
} else {
valueWidget.setInitialValue(existingObs.getValueCoded());
代码示例来源:origin: openmrs/openmrs-module-webservices.rest
if (obs.getValueDrug() != null) {
return obs.getValueDrug();
代码示例来源:origin: openmrs/openmrs-module-htmlformentry
if (o.getConcept().getConceptId() == groupingConceptId) {
if (o.getValueCoded() != null || o.getValueComplex() != null || o.getValueDatetime() != null
|| o.getValueDrug() != null || o.getValueNumeric() != null || o.getValueText() != null) {
Assert
.fail("Obs group with groupingConceptId " + groupingConceptId
内容来源于网络,如有侵权,请联系作者删除!