Tabnine Logo
DurationDt
Code IndexAdd Tabnine to your IDE (free)

How to use
DurationDt
in
ca.uhn.fhir.model.dstu2.composite

Best Java code snippets using ca.uhn.fhir.model.dstu2.composite.DurationDt (Showing top 3 results out of 315)

origin: jamesagnew/hapi-fhir

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);
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * 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;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-dstu2

/**
 * 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;
}
ca.uhn.fhir.model.dstu2.compositeDurationDt

Most used methods

  • <init>
  • getCode
  • getSystemElement
  • getValue
  • getValueElement
  • setCode
  • setSystem
  • setValue

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now