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

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

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

Obs.getValueBoolean介绍

[英]Returns the boolean value if the concept of this obs is of boolean datatype
[中]如果此obs的概念为布尔数据类型,则返回布尔值

代码示例

代码示例来源:origin: openmrs/openmrs-core

if (obs.getValueBoolean() != null) {
    errors.rejectValue("valueBoolean", "error.not.null");
else if (obs.getValueBoolean() == null && obs.getValueCoded() == null && obs.getValueCodedName() == null
    && obs.getValueComplex() == null && obs.getValueDatetime() == null && obs.getValueDrug() == null
    && obs.getValueModifier() == null && obs.getValueNumeric() == null && obs.getValueText() == null
  ConceptDatatype dt = c.getDatatype();
  if (dt != null) {
    if (dt.isBoolean() && obs.getValueBoolean() == null) {
      if (atRootNode) {
        errors.rejectValue("valueBoolean", "error.null");

代码示例来源:origin: openmrs/openmrs-core

Assert.assertEquals(false, newObservation.getValueBoolean());

代码示例来源:origin: openmrs/openmrs-module-htmlformentry

field5.setQuestion(concept5);
Obs obs5 = mock(Obs.class);
when(obs5.getValueBoolean()).thenReturn(false);
field5.setExistingObs(obs5);
section1.addField(field5);

代码示例来源:origin: openmrs/openmrs-module-htmlformentry

field.getExistingObs().getValueNumeric().toString() : "";
} else if (datatype.isBoolean()) {
  value = field.getExistingObs().getValueBoolean() != null ?
      field.getExistingObs().getValueBoolean().toString() : "";
} else if (datatype.isText()) {

相关文章

微信公众号

最新文章

更多