public boolean hasRequestedPeriod() { if (this.requestedPeriod == null) return false; for (Period item : this.requestedPeriod) if (!item.isEmpty()) return true; return false; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 109757538: return getStartElement(); case 100571: return getEndElement(); default: return super.makeProperty(hash, name); } }
public Period addPeriod() { //3 Period t = new Period(); if (this.period == null) this.period = new ArrayList<Period>(); this.period.add(t); return t; }
public static org.hl7.fhir.dstu2016may.model.Period convertPeriod(org.hl7.fhir.r4.model.Period src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Period tgt = new org.hl7.fhir.dstu2016may.model.Period(); copyElement(src, tgt); if (src.hasStart()) tgt.setStart(src.getStart()); if (src.hasEnd()) tgt.setEnd(src.getEnd()); return tgt; }
} else if (nextObject instanceof Period) { Period nextValue = (Period) nextObject; if (nextValue.isEmpty()) { continue; nextEntity = new ResourceIndexedSearchParamDate(nextSpDef.getName(), nextValue.getStart(), nextValue.getEnd(), nextValue.getStartElement().getValueAsString()); } else if (nextObject instanceof Timing) { Timing nextValue = (Timing) nextObject;
public org.hl7.fhir.instance.model.Period convertPeriod(org.hl7.fhir.r4.model.Period src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Period tgt = new org.hl7.fhir.instance.model.Period(); copyElement(src, tgt); tgt.setStart(src.getStart()); tgt.setEnd(src.getEnd()); return tgt; }
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; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 109757538: // start this.start = castToDateTime(value); // DateTimeType return value; case 100571: // end this.end = castToDateTime(value); // DateTimeType return value; default: return super.setProperty(hash, name, value); } }
public static org.hl7.fhir.dstu2016may.model.Period convertPeriod(org.hl7.fhir.r4.model.Period src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Period tgt = new org.hl7.fhir.dstu2016may.model.Period(); copyElement(src, tgt); if (src.hasStart()) tgt.setStart(src.getStart()); if (src.hasEnd()) tgt.setEnd(src.getEnd()); return tgt; }
public org.hl7.fhir.instance.model.Period convertPeriod(org.hl7.fhir.r4.model.Period src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Period tgt = new org.hl7.fhir.instance.model.Period(); copyElement(src, tgt); tgt.setStart(src.getStart()); tgt.setEnd(src.getEnd()); return tgt; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("start")) { this.start = castToDateTime(value); // DateTimeType } else if (name.equals("end")) { this.end = castToDateTime(value); // DateTimeType } else return super.setProperty(name, value); return value; }
public boolean hasUsePeriod() { if (this.usePeriod == null) return false; for (Period item : this.usePeriod) if (!item.isEmpty()) return true; return false; }
public Period addPreAuthRefPeriod() { //3 Period t = new Period(); if (this.preAuthRefPeriod == null) this.preAuthRefPeriod = new ArrayList<Period>(); this.preAuthRefPeriod.add(t); return t; }
private void checkPeriod(List<ValidationMessage> errors, String path, Element focus, Period fixed) { checkFixedValue(errors, path + ".start", focus.getNamedChild("start"), fixed.getStartElement(), "start", focus); checkFixedValue(errors, path + ".end", focus.getNamedChild("end"), fixed.getEndElement(), "end", focus); }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 109757538: // start this.start = castToDateTime(value); // DateTimeType return value; case 100571: // end this.end = castToDateTime(value); // DateTimeType return value; default: return super.setProperty(hash, name, value); } }
public boolean hasPeriod() { if (this.period == null) return false; for (Period item : this.period) if (!item.isEmpty()) return true; return false; }
/** * @return {@link #time} (A record of the time or period when the specimen processing occurred. For example the time of sample fixation or the period of time the sample was in formalin.) */ public Period getTimePeriod() throws FHIRException { if (this.time == null) this.time = new Period(); if (!(this.time instanceof Period)) throw new FHIRException("Type mismatch: the type Period was expected, but "+this.time.getClass().getName()+" was encountered"); return (Period) this.time; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 109757538: return getStartElement(); case 100571: return getEndElement(); default: return super.makeProperty(hash, name); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("start")) { this.start = castToDateTime(value); // DateTimeType } else if (name.equals("end")) { this.end = castToDateTime(value); // DateTimeType } else return super.setProperty(name, value); return value; }
/** * @param value {@link #period} (The period of time that the specified participant participated in the encounter. These can overlap or be sub-sets of the overall encounter's period.) */ public EncounterParticipantComponent setPeriod(Period value) {