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; }
continue; nextEntity = new ResourceIndexedSearchParamDate(nextSpDef.getName(), nextValue.getStart(), nextValue.getEnd(), nextValue.getStartElement().getValueAsString()); } else if (nextObject instanceof Timing) { Timing nextValue = (Timing) nextObject;
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; }
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; }