@Override public Base addChild(String name) throws FHIRException { if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.description"); } else if (name.equals("during")) { this.during = new Period(); return this.during; } else return super.addChild(name); }
public boolean isEmpty() { return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (issued == null || issued.isEmpty()) && (applies == null || applies.isEmpty()) && (subject == null || subject.isEmpty()) && (authority == null || authority.isEmpty()) && (domain == null || domain.isEmpty()) && (type == null || type.isEmpty()) && (subType == null || subType.isEmpty()) && (action == null || action.isEmpty()) && (actionReason == null || actionReason.isEmpty()) && (actor == null || actor.isEmpty()) && (valuedItem == null || valuedItem.isEmpty()) && (signer == null || signer.isEmpty()) && (term == null || term.isEmpty()) && (binding == null || binding.isEmpty()) && (friendly == null || friendly.isEmpty()) && (legal == null || legal.isEmpty()) && (rule == null || rule.isEmpty()); }
@Override public void 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 super.setProperty(name, value); }
public Period copy() { Period dst = new Period(); copyValues(dst); dst.start = start == null ? null : start.copy(); dst.end = end == null ? null : end.copy(); return dst; }
public org.hl7.fhir.dstu3.model.Period convertPeriod(org.hl7.fhir.instance.model.Period src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Period tgt = new org.hl7.fhir.dstu3.model.Period(); copyElement(src, tgt); tgt.setStart(src.getStart()); tgt.setEnd(src.getEnd()); return tgt; }
public org.hl7.fhir.instance.model.Period convertPeriod(org.hl7.fhir.dstu3.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; }
protected Period typedCopy() { return copy(); }
private void checkPeriod(List<ValidationMessage> errors, String path, WrapperElement focus, Period fixed) { checkFixedValue(errors, path + ".start", focus.getNamedChild("start"), fixed.getStartElement(), "start"); checkFixedValue(errors, path + ".end", focus.getNamedChild("end"), fixed.getEndElement(), "end"); }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof Period)) return false; Period o = (Period) other; return compareDeep(start, o.start, true) && compareDeep(end, o.end, true); }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof Period)) return false; Period o = (Period) other; return compareValues(start, o.start, true) && compareValues(end, o.end, true); }
public org.hl7.fhir.r4.model.Period convertPeriod(org.hl7.fhir.instance.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); tgt.setStart(src.getStart()); tgt.setEnd(src.getEnd()); return tgt; }
public CompositionEventComponent copy() { CompositionEventComponent dst = new CompositionEventComponent(); copyValues(dst); if (code != null) { dst.code = new ArrayList<CodeableConcept>(); for (CodeableConcept i : code) dst.code.add(i.copy()); }; dst.period = period == null ? null : period.copy(); if (detail != null) { dst.detail = new ArrayList<Reference>(); for (Reference i : detail) dst.detail.add(i.copy()); }; return dst; }
public Period copy() { Period dst = new Period(); copyValues(dst); dst.start = start == null ? null : start.copy(); dst.end = end == null ? null : end.copy(); return dst; }
private void checkPeriod(List<ValidationMessage> errors, String path, WrapperElement focus, Period fixed) { checkFixedValue(errors, path + ".start", focus.getNamedChild("start"), fixed.getStartElement(), "start"); checkFixedValue(errors, path + ".end", focus.getNamedChild("end"), fixed.getEndElement(), "end"); }
@Override public boolean equalsDeep(Base other) { if (!super.equalsDeep(other)) return false; if (!(other instanceof Period)) return false; Period o = (Period) other; return compareDeep(start, o.start, true) && compareDeep(end, o.end, true); }
@Override public boolean equalsShallow(Base other) { if (!super.equalsShallow(other)) return false; if (!(other instanceof Period)) return false; Period o = (Period) other; return compareValues(start, o.start, true) && compareValues(end, o.end, true); }
public boolean isEmpty() { return super.isEmpty() && (use == null || use.isEmpty()) && (text == null || text.isEmpty()) && (family == null || family.isEmpty()) && (given == null || given.isEmpty()) && (prefix == null || prefix.isEmpty()) && (suffix == null || suffix.isEmpty()) && (period == null || period.isEmpty()); }
@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); }
public org.hl7.fhir.dstu3.model.Period convertPeriod(org.hl7.fhir.instance.model.Period src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Period tgt = new org.hl7.fhir.dstu3.model.Period(); copyElement(src, tgt); tgt.setStart(src.getStart()); tgt.setEnd(src.getEnd()); return tgt; }
public EncounterParticipantComponent copy() { EncounterParticipantComponent dst = new EncounterParticipantComponent(); copyValues(dst); if (type != null) { dst.type = new ArrayList<CodeableConcept>(); for (CodeableConcept i : type) dst.type.add(i.copy()); }; dst.period = period == null ? null : period.copy(); dst.individual = individual == null ? null : individual.copy(); return dst; }