org.openmrs.Obs.getValueDrug()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(192)

本文整理了Java中org.openmrs.Obs.getValueDrug()方法的一些代码示例,展示了Obs.getValueDrug()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Obs.getValueDrug()方法的具体详情如下:
包路径:org.openmrs.Obs
类名称:Obs
方法名:getValueDrug

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

相关文章