if (nextValue.getValueElement().isEmpty()) { continue; if (new UriDt(SearchParamConstants.UCUM_NS).equals(nextValue.getSystemElement())) { if (isNotBlank(nextValue.getCode())) { Unit<? extends Quantity> unit = Unit.valueOf(nextValue.getCode()); javax.measure.converter.UnitConverter dayConverter = unit.getConverterTo(NonSI.DAY); double dayValue = dayConverter.convert(nextValue.getValue().doubleValue()); DurationDt newValue = new DurationDt(); newValue.setSystem(SearchParamConstants.UCUM_NS); newValue.setCode(NonSI.DAY.toString()); newValue.setValue(dayValue); nextValue = newValue; ResourceIndexedSearchParamNumber nextEntity = new ResourceIndexedSearchParamNumber(resourceName, nextValue.getValue()); nextEntity.setResource(theEntity); retVal.add(nextEntity);
/** * Gets the value(s) for <b>expectedSupplyDuration</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. * </p> */ public DurationDt getExpectedSupplyDuration() { if (myExpectedSupplyDuration == null) { myExpectedSupplyDuration = new DurationDt(); } return myExpectedSupplyDuration; }
/** * Gets the value(s) for <b>length</b> (). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * Quantity of time the encounter lasted. This excludes the time during leaves of absence. * </p> */ public DurationDt getLength() { if (myLength == null) { myLength = new DurationDt(); } return myLength; }