public boolean hasRateQuantity() { return this != null && this.rate instanceof Quantity; } public boolean hasRate() { return this.rate != null && !this.rate.isEmpty(); } /** * @param value {@link #rate} (Identifies the speed with which the medication was or will be introduced into the patient. Typically, the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time, e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.)
/** * @return {@link #rate} (The rate of administration of formula via a feeding pump, e.g. 60 mL per hour, according to the specified schedule.) */ public Quantity getRateQuantity() throws FHIRException { if (this.rate == null) this.rate = new Quantity(); if (!(this.rate instanceof Quantity)) throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.rate.getClass().getName()+" was encountered"); return (Quantity) this.rate; }
/** * @return {@link #value} (The answer (or one of the answers) provided by the respondent to the question.) */ public Quantity getValueQuantity() throws FHIRException { if (this.value == null) this.value = new Quantity(); if (!(this.value instanceof Quantity)) throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered"); return (Quantity) this.value; }
/** * @return {@link #value} (Response to an offer clause or question text, which enables selection of values to be agreed to, e.g., the period of participation, the date of occupancy of a rental, warrently duration, or whether biospecimen may be used for further research.) */ public Quantity getValueQuantity() throws FHIRException { if (this.value == null) this.value = new Quantity(); if (!(this.value instanceof Quantity)) throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered"); return (Quantity) this.value; }
/** * @return {@link #height} (Where applicable, the height can be specified using a numerical value and its unit of measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.) */ public Quantity getHeight() { if (this.height == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ProdCharacteristic.height"); else if (Configuration.doAutoCreate()) this.height = new Quantity(); // cc return this.height; }
/** * @return {@link #value} (The actual cost value. (some of the costs may be represented as percentages rather than currency, e.g. 10% coinsurance).) */ public Quantity getValue() { if (this.value == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create PlanBenefitCostComponent.value"); else if (Configuration.doAutoCreate()) this.value = new Quantity(); // cc return this.value; }
/** * @return {@link #daysSupply} (The amount of medication expressed as a timing amount.) */ public Quantity getDaysSupply() { if (this.daysSupply == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationDispense.daysSupply"); else if (Configuration.doAutoCreate()) this.daysSupply = new Quantity(); // cc return this.daysSupply; }
/** * @return {@link #quantity} (The number of copies of the sequence of interest. (RNASeq).) */ public Quantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MolecularSequence.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Quantity(); // cc return this.quantity; }
/** * @return {@link #quantity} (The quantity or "count number" of the manufactured item.) */ public Quantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicinalProductManufactured.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Quantity(); // cc return this.quantity; }
/** * @return {@link #period} (The shelf life time period can be specified using a numerical value for the period of time and its unit of time measurement The unit of measurement shall be specified in accordance with ISO 11240 and the resulting terminology The symbol and the symbol identifier shall be used.) */ public Quantity getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ProductShelfLife.period"); else if (Configuration.doAutoCreate()) this.period = new Quantity(); // cc return this.period; }
/** * @return {@link #quantity} (The number of repetitions of a service or product.) */ public Quantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ItemComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Quantity(); // cc return this.quantity; }
/** * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) */ public Quantity getMeasureScore() { if (this.measureScore == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MeasureReportGroupComponent.measureScore"); else if (Configuration.doAutoCreate()) this.measureScore = new Quantity(); // cc return this.measureScore; }
/** * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) */ public Quantity getMeasureScore() { if (this.measureScore == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create StratifierGroupComponent.measureScore"); else if (Configuration.doAutoCreate()) this.measureScore = new Quantity(); // cc return this.measureScore; }
/** * @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 Quantity getMaxVolumeToDeliver() { if (this.maxVolumeToDeliver == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create NutritionOrderEnteralFormulaComponent.maxVolumeToDeliver"); else if (Configuration.doAutoCreate()) this.maxVolumeToDeliver = new Quantity(); // cc return this.maxVolumeToDeliver; }
/** * @return {@link #capacity} (The capacity (volume or other measure) of this kind of container.) */ public Quantity getCapacity() { if (this.capacity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SpecimenDefinitionTypeTestedContainerComponent.capacity"); else if (Configuration.doAutoCreate()) this.capacity = new Quantity(); // cc return this.capacity; }
/** * @return {@link #quantity} (Identifies the quantity expected to be supplied, administered or consumed by the subject.) */ public Quantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Quantity(); // cc return this.quantity; }
/** * @return {@link #duration} (Timing or duration information as part of the indication.) */ public Quantity getDuration() { if (this.duration == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicinalProductIndication.duration"); else if (Configuration.doAutoCreate()) this.duration = new Quantity(); // cc return this.duration; }
/** * @return {@link #quantity} (The number of repetitions of a service or product.) */ public Quantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create AddedItemDetailComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Quantity(); // cc return this.quantity; }
/** * @return {@link #quantity} (The number of repetitions of a service or product.) */ public Quantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create AddedItemSubDetailComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Quantity(); // cc return this.quantity; }
/** * @return {@link #quantity} (The number of repetitions of a service or product.) */ public Quantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create DetailComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Quantity(); // cc return this.quantity; }