/** * @return {@link #occurred} (The period during which the activity occurred.) */ public Period getOccurredPeriod() throws FHIRException { if (this.occurred == null) this.occurred = new Period(); if (!(this.occurred instanceof Period)) throw new FHIRException("Type mismatch: the type Period was expected, but "+this.occurred.getClass().getName()+" was encountered"); return (Period) this.occurred; }
/** * @return {@link #participantEffective} (Indicates what effective period the study covers.) */ public Period getParticipantEffectivePeriod() throws FHIRException { if (this.participantEffective == null) this.participantEffective = new Period(); if (!(this.participantEffective instanceof Period)) throw new FHIRException("Type mismatch: the type Period was expected, but "+this.participantEffective.getClass().getName()+" was encountered"); return (Period) this.participantEffective; }
/** * @return {@link #serviced} (The date or dates when the service or product was supplied, performed or completed.) */ public Period getServicedPeriod() throws FHIRException { if (this.serviced == null) this.serviced = new Period(); if (!(this.serviced instanceof Period)) throw new FHIRException("Type mismatch: the type Period was expected, but "+this.serviced.getClass().getName()+" was encountered"); return (Period) this.serviced; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); } else if (name.equals("period")) { this.period = new Period(); return this.period; } else return super.addChild(name); }
/** * @return {@link #period} (The dates the subject began and ended their participation in the study.) */ public Period getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ResearchSubject.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; }
/** * @return {@link #period} (The period of time during which this relationship is or was active. If there are no dates defined, then the interval is unknown.) */ public Period getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create RelatedPerson.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; }
/** * @return {@link #effectivePeriod} (The period during which the questionnaire content was or is planned to be in active use.) */ public Period getEffectivePeriod() { if (this.effectivePeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Questionnaire.effectivePeriod"); else if (Configuration.doAutoCreate()) this.effectivePeriod = new Period(); // cc return this.effectivePeriod; }
/** * @return {@link #period} (The period of time covered by the documentation. There is no assertion that the documentation is a complete representation for this period, only that it documents events during this time.) */ public Period getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CompositionEventComponent.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; }
/** * @return {@link #period} (The timeframe during which the guarantor accepts responsibility for the account.) */ public Period getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create GuarantorComponent.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; }
/** * @return {@link #during} (Service is not available (seasonally or for a public holiday) from this date.) */ public Period getDuring() { if (this.during == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create HealthcareServiceNotAvailableComponent.during"); else if (Configuration.doAutoCreate()) this.during = new Period(); // cc return this.during; }
/** * @return {@link #effectivePeriod} (The period during which the library content was or is planned to be in active use.) */ public Period getEffectivePeriod() { if (this.effectivePeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Library.effectivePeriod"); else if (Configuration.doAutoCreate()) this.effectivePeriod = new Period(); // cc return this.effectivePeriod; }
/** * @return {@link #validityPeriod} (This indicates the validity period of a prescription (stale dating the Prescription).) */ public Period getValidityPeriod() { if (this.validityPeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationRequestDispenseRequestComponent.validityPeriod"); else if (Configuration.doAutoCreate()) this.validityPeriod = new Period(); // cc return this.validityPeriod; }
if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create StatusHistoryComponent.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; } public boolean hasPeriod() { return this.period != null && !this.period.isEmpty(); }
if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Encounter.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; } public boolean hasPeriod() { return this.period != null && !this.period.isEmpty(); }
/** * @return {@link #billablePeriod} (The period for which charges are being submitted.) */ public Period getBillablePeriod() { if (this.billablePeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ExplanationOfBenefit.billablePeriod"); else if (Configuration.doAutoCreate()) this.billablePeriod = new Period(); // cc return this.billablePeriod; }
/** * @return {@link #benefitPeriod} (The term of the benefits documented in this response.) */ public Period getBenefitPeriod() { if (this.benefitPeriod == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ExplanationOfBenefit.benefitPeriod"); else if (Configuration.doAutoCreate()) this.benefitPeriod = new Period(); // cc return this.benefitPeriod; }
/** * @return {@link #period} (Indicates the period of time when this name was valid for the named person.) */ public Period getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create HumanName.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; }
/** * @return {@link #period} (The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.) */ public Period getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create GroupCharacteristicComponent.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; }
/** * @return {@link #period} (The period that the member was in the group, if known.) */ public Period getPeriod() { if (this.period == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create GroupMemberComponent.period"); else if (Configuration.doAutoCreate()) this.period = new Period(); // cc return this.period; }
public static org.hl7.fhir.r4.model.Period convertPeriod(org.hl7.fhir.dstu2016may.model.Period src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Period tgt = new org.hl7.fhir.r4.model.Period(); copyElement(src, tgt); if (src.hasStart()) tgt.setStart(src.getStart()); if (src.hasEnd()) tgt.setEnd(src.getEnd()); return tgt; }