/** * @return {@link #due} (Indicates either the date or the duration after start by which the goal should be met.) */ public Duration getDueDuration() throws FHIRException { if (this.due == null) this.due = new Duration(); if (!(this.due instanceof Duration)) throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.due.getClass().getName()+" was encountered"); return (Duration) this.due; }
/** * @return {@link #timing} (An optional value describing when the action should be performed.) */ public Duration getTimingDuration() throws FHIRException { if (this.timing == null) this.timing = new Duration(); if (!(this.timing instanceof Duration)) throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.timing.getClass().getName()+" was encountered"); return (Duration) this.timing; }
/** * @return {@link #offset} (A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.) */ public Duration getOffsetDuration() throws FHIRException { if (this.offset == null) this.offset = new Duration(); if (!(this.offset instanceof Duration)) throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.offset.getClass().getName()+" was encountered"); return (Duration) this.offset; }
/** * @return {@link #participantEffective} (Indicates what effective period the study covers.) */ public Duration getParticipantEffectiveDuration() throws FHIRException { if (this.participantEffective == null) this.participantEffective = new Duration(); if (!(this.participantEffective instanceof Duration)) throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.participantEffective.getClass().getName()+" was encountered"); return (Duration) this.participantEffective; }
/** * @return {@link #fastingStatus} (Abstinence or reduction from some or all food, drink, or both, for a period of time prior to sample collection.) */ public Duration getFastingStatusDuration() throws FHIRException { if (this.fastingStatus == null) this.fastingStatus = new Duration(); if (!(this.fastingStatus instanceof Duration)) throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.fastingStatus.getClass().getName()+" was encountered"); return (Duration) this.fastingStatus; }
/** * @return {@link #timing} (An optional value describing when the action should be performed.) */ public Duration getTimingDuration() throws FHIRException { if (this.timing == null) this.timing = new Duration(); if (!(this.timing instanceof Duration)) throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.timing.getClass().getName()+" was encountered"); return (Duration) this.timing; }
/** * @return {@link #offset} (A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.) */ public Duration getOffsetDuration() throws FHIRException { if (this.offset == null) this.offset = new Duration(); if (!(this.offset instanceof Duration)) throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.offset.getClass().getName()+" was encountered"); return (Duration) this.offset; }
public Duration copy() { Duration dst = new Duration(); copyValues(dst); return dst; }
/** * @return {@link #bounds} (Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.) */ public Duration getBoundsDuration() throws FHIRException { if (this.bounds == null) this.bounds = new Duration(); if (!(this.bounds instanceof Duration)) throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.bounds.getClass().getName()+" was encountered"); return (Duration) this.bounds; }
/** * @return {@link #timeFromStart} (Indicates duration from the participant's study entry.) */ public Duration getTimeFromStart() { if (this.timeFromStart == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create EvidenceVariableCharacteristicComponent.timeFromStart"); else if (Configuration.doAutoCreate()) this.timeFromStart = new Duration(); // cc return this.timeFromStart; }
/** * @return {@link #duration} (The length of time that the first dispense is expected to last.) */ public Duration getDuration() { if (this.duration == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationRequestDispenseRequestInitialFillComponent.duration"); else if (Configuration.doAutoCreate()) this.duration = new Duration(); // cc return this.duration; }
/** * @return {@link #retentionTime} (The usual time that a specimen of this kind is retained after the ordered tests are completed, for the purpose of additional testing.) */ public Duration getRetentionTime() { if (this.retentionTime == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SpecimenDefinitionTypeTestedComponent.retentionTime"); else if (Configuration.doAutoCreate()) this.retentionTime = new Duration(); // cc return this.retentionTime; }
/** * @return {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.) */ public Duration getMaxTreatmentPeriod() { if (this.maxTreatmentPeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicinalProductPharmaceuticalRouteOfAdministrationComponent.maxTreatmentPeriod"); else if (Configuration.doAutoCreate()) this.maxTreatmentPeriod = new Duration(); // cc return this.maxTreatmentPeriod; }
/** * @return {@link #duration} (The span of time over which the collection of a specimen occurred.) */ public Duration getDuration() { if (this.duration == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SpecimenCollectionComponent.duration"); else if (Configuration.doAutoCreate()) this.duration = new Duration(); // cc return this.duration; }
/** * @return {@link #maxDuration} (The maximum time interval of preservation of the specimen with these conditions.) */ public Duration getMaxDuration() { if (this.maxDuration == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SpecimenDefinitionTypeTestedHandlingComponent.maxDuration"); else if (Configuration.doAutoCreate()) this.maxDuration = new Duration(); // cc return this.maxDuration; }
if (this.length == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Encounter.length"); else if (Configuration.doAutoCreate()) this.length = new Duration(); // cc return this.length; } public boolean hasLength() { return this.length != null && !this.length.isEmpty(); }
/** * @return {@link #participantEffectiveTimeFromStart} (Indicates duration from the participant's study entry.) */ public Duration getParticipantEffectiveTimeFromStart() { if (this.participantEffectiveTimeFromStart == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ResearchElementDefinitionCharacteristicComponent.participantEffectiveTimeFromStart"); else if (Configuration.doAutoCreate()) this.participantEffectiveTimeFromStart = new Duration(); // cc return this.participantEffectiveTimeFromStart; }
/** * @return {@link #period} (The period that applies to the maximum number of units.) */ public Duration getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationKnowledgeRegulatoryMaxDispenseComponent.period"); else if (Configuration.doAutoCreate()) this.period = new Duration(); // cc return this.period; }
/** * @return {@link #halfLifePeriod} (The time required for any specified property (e.g., the concentration of a substance in the body) to decrease by half.) */ public Duration getHalfLifePeriod() { if (this.halfLifePeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationKnowledgeKineticsComponent.halfLifePeriod"); else if (Configuration.doAutoCreate()) this.halfLifePeriod = new Duration(); // cc return this.halfLifePeriod; }
public org.hl7.fhir.r4.model.Duration convertDuration(org.hl7.fhir.instance.model.Duration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Duration tgt = new org.hl7.fhir.r4.model.Duration(); 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; }