Beispiel #1
0
 /**
  * @return {@link #code} (A computer processable form of the unit in some unit representation
  *     system.). This is the underlying object with id, value and extensions. The accessor
  *     "getCode" gives direct access to the value
  */
 public CodeType getCodeElement() {
   if (this.code == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.code");
     else if (Configuration.doAutoCreate()) this.code = new CodeType(); // bb
   return this.code;
 }
Beispiel #2
0
 /**
  * @return {@link #system} (The identification of the system that provides the coded form of the
  *     unit.). This is the underlying object with id, value and extensions. The accessor
  *     "getSystem" gives direct access to the value
  */
 public UriType getSystemElement() {
   if (this.system == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.system");
     else if (Configuration.doAutoCreate()) this.system = new UriType(); // bb
   return this.system;
 }
Beispiel #3
0
 /**
  * @return {@link #unit} (A human-readable form of the unit.). This is the underlying object with
  *     id, value and extensions. The accessor "getUnit" gives direct access to the value
  */
 public StringType getUnitElement() {
   if (this.unit == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.unit");
     else if (Configuration.doAutoCreate()) this.unit = new StringType(); // bb
   return this.unit;
 }
Beispiel #4
0
 /**
  * @return {@link #value} (The value of the measured amount. The value includes an implicit
  *     precision in the presentation of the value.). This is the underlying object with id, value
  *     and extensions. The accessor "getValue" gives direct access to the value
  */
 public DecimalType getValueElement() {
   if (this.value == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.value");
     else if (Configuration.doAutoCreate()) this.value = new DecimalType(); // bb
   return this.value;
 }
Beispiel #5
0
 /**
  * @return {@link #comparator} (How the value should be understood and represented - whether the
  *     actual value is greater or less than the stated value due to measurement issues; e.g. if
  *     the comparator is "<" , then the real value is < stated value.). This is the underlying
  *     object with id, value and extensions. The accessor "getComparator" gives direct access to
  *     the value
  */
 public Enumeration<QuantityComparator> getComparatorElement() {
   if (this.comparator == null)
     if (Configuration.errorOnAutoCreate())
       throw new Error("Attempt to auto-create Quantity.comparator");
     else if (Configuration.doAutoCreate())
       this.comparator =
           new Enumeration<QuantityComparator>(new QuantityComparatorEnumFactory()); // bb
   return this.comparator;
 }