/** * @return {@link #quantity} (The amount of medication that has been dispensed. Includes unit of measure.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationDispense.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #quantity} (The amount of the nutritional supplement to be given.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create NutritionOrderSupplementComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #quantity} (The amount that is to be dispensed for one fill.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationOrderDispenseRequestComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #daysSupply} (The amount of medication expressed as a timing amount.) */ public SimpleQuantity getDaysSupply() { if (this.daysSupply == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationDispense.daysSupply"); else if (Configuration.doAutoCreate()) this.daysSupply = new SimpleQuantity(); // cc return this.daysSupply; }
/** * @return {@link #quantity} (Specifies the units by which the Contract Provision Valued Item is measured or counted, and quantifies the countable or measurable Contract Term Valued Item instances.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create TermValuedItemComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #amount} (The quantity of the specified nutrient to include in diet.) */ public SimpleQuantity getAmount() { if (this.amount == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create NutritionOrderOralDietNutrientComponent.amount"); else if (Configuration.doAutoCreate()) this.amount = new SimpleQuantity(); // cc return this.amount; }
/** * @return {@link #caloricDensity} (The amount of energy (Calories) that the formula should provide per specified volume, typically per mL or fluid oz. For example, an infant may require a formula that provides 24 Calories per fluid ounce or an adult may require an enteral formula that provides 1.5 Calorie/mL.) */ public SimpleQuantity getCaloricDensity() { if (this.caloricDensity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create NutritionOrderEnteralFormulaComponent.caloricDensity"); else if (Configuration.doAutoCreate()) this.caloricDensity = new SimpleQuantity(); // cc return this.caloricDensity; }
/** * @return {@link #amount} (The amount of the product that is in the package.) */ public SimpleQuantity getAmount() { if (this.amount == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationPackageContentComponent.amount"); else if (Configuration.doAutoCreate()) this.amount = new SimpleQuantity(); // cc return this.amount; }
/** * @return {@link #quantity} (Identifies the quantity expected to be supplied, administered or consumed by the subject.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #quantity} (The number of repetitions of a service or product.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ItemsComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #quantity} (The number of repetitions of a service or product.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DetailComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #origin} (The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series.) */ public SimpleQuantity getOrigin() { if (this.origin == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SampledData.origin"); else if (Configuration.doAutoCreate()) this.origin = new SimpleQuantity(); // cc return this.origin; }
/** * @return {@link #high} (The high limit. The boundary is inclusive.) */ public SimpleQuantity getHigh() { if (this.high == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Range.high"); else if (Configuration.doAutoCreate()) this.high = new SimpleQuantity(); // cc return this.high; }
/** * @return {@link #quantity} (Specifies the units by which the Contract Valued Item is measured or counted, and quantifies the countable or measurable Contract Valued Item instances.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ValuedItemComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #high} (The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).) */ public SimpleQuantity getHigh() { if (this.high == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ObservationReferenceRangeComponent.high"); else if (Configuration.doAutoCreate()) this.high = new SimpleQuantity(); // cc return this.high; }
/** * @return {@link #maxVolumeToDeliver} (The maximum total quantity of formula that may be administered to a subject over the period of time, e.g. 1440 mL over 24 hours.) */ public SimpleQuantity getMaxVolumeToDeliver() { if (this.maxVolumeToDeliver == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create NutritionOrderEnteralFormulaComponent.maxVolumeToDeliver"); else if (Configuration.doAutoCreate()) this.maxVolumeToDeliver = new SimpleQuantity(); // cc return this.maxVolumeToDeliver; }
/** * @return {@link #quantity} (The number of repetitions of a service or product.) */ public SimpleQuantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SubDetailComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new SimpleQuantity(); // cc return this.quantity; }
/** * @return {@link #specimenQuantity} (The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type.) */ public SimpleQuantity getSpecimenQuantity() { if (this.specimenQuantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SpecimenContainerComponent.specimenQuantity"); else if (Configuration.doAutoCreate()) this.specimenQuantity = new SimpleQuantity(); // cc return this.specimenQuantity; }
public SimpleQuantity copy() { SimpleQuantity dst = new SimpleQuantity(); copyValues(dst); dst.value = value == null ? null : value.copy(); dst.comparator = comparator == null ? null : comparator.copy(); dst.unit = unit == null ? null : unit.copy(); dst.system = system == null ? null : system.copy(); dst.code = code == null ? null : code.copy(); return dst; }
public org.hl7.fhir.instance.model.SimpleQuantity convertSimpleQuantity(org.hl7.fhir.dstu3.model.SimpleQuantity src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.SimpleQuantity tgt = new org.hl7.fhir.instance.model.SimpleQuantity(); copyElement(src, tgt); tgt.setValue(src.getValue()); tgt.setComparator(convertQuantityComparator(src.getComparator())); tgt.setUnit(src.getUnit()); tgt.setSystem(src.getSystem()); tgt.setCode(src.getCode()); return tgt; }