/** * @param value {@link #length} (Quantity of time the encounter lasted. This excludes the time during leaves of absence.) */ public Encounter setLength(Duration value) {
public boolean hasTimeFromStart() { return this.timeFromStart != null && !this.timeFromStart.isEmpty(); }
public boolean hasStudyEffectiveTimeFromStart() { return this.studyEffectiveTimeFromStart != null && !this.studyEffectiveTimeFromStart.isEmpty(); }
public boolean hasParticipantEffectiveTimeFromStart() { return this.participantEffectiveTimeFromStart != null && !this.participantEffectiveTimeFromStart.isEmpty(); }
public boolean hasRetentionTime() { return this.retentionTime != null && !this.retentionTime.isEmpty(); }
public boolean hasMaxTreatmentPeriod() { return this.maxTreatmentPeriod != null && !this.maxTreatmentPeriod.isEmpty(); }
public boolean hasExpectedSupplyDuration() { return this.expectedSupplyDuration != null && !this.expectedSupplyDuration.isEmpty(); }
public boolean hasDuration() { return this.duration != null && !this.duration.isEmpty(); }
public boolean hasDuration() { return this.duration != null && !this.duration.isEmpty(); }
public boolean hasMaxDuration() { return this.maxDuration != null && !this.maxDuration.isEmpty(); }
public boolean hasPeriod() { return this.period != null && !this.period.isEmpty(); }
public boolean hasHalfLifePeriod() { return this.halfLifePeriod != null && !this.halfLifePeriod.isEmpty(); }
public boolean hasDue() { return this.due != null && !this.due.isEmpty(); }
public boolean hasDispenseInterval() { return this.dispenseInterval != null && !this.dispenseInterval.isEmpty(); }
/** * @param value {@link #length} (Quantity of time the encounter lasted. This excludes the time during leaves of absence.) */ public Encounter setLength(Duration value) {
public boolean hasHalfLifePeriod() { return this.halfLifePeriod != null && !this.halfLifePeriod.isEmpty(); }
public boolean hasMaxTreatmentPeriod() { return this.maxTreatmentPeriod != null && !this.maxTreatmentPeriod.isEmpty(); }
public org.hl7.fhir.instance.model.Duration convertDuration(org.hl7.fhir.r4.model.Duration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Duration tgt = new org.hl7.fhir.instance.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; }
public static org.hl7.fhir.dstu2016may.model.Duration convertDuration(org.hl7.fhir.r4.model.Duration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Duration tgt = new org.hl7.fhir.dstu2016may.model.Duration(); copyElement(src, tgt); if (src.hasValue()) tgt.setValue(src.getValue()); tgt.setComparator(convertQuantityComparator(src.getComparator())); if (src.hasUnit()) tgt.setUnit(src.getUnit()); if (src.hasSystem()) tgt.setSystem(src.getSystem()); if (src.hasCode()) tgt.setCode(src.getCode()); return tgt; }
public org.hl7.fhir.instance.model.Duration convertDuration(org.hl7.fhir.r4.model.Duration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Duration tgt = new org.hl7.fhir.instance.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; }