public CareTeamComponent addCareTeam() { //3 CareTeamComponent t = new CareTeamComponent(); if (this.careTeam == null) this.careTeam = new ArrayList<CareTeamComponent>(); this.careTeam.add(t); return t; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("sequence")) { this.sequence = castToPositiveInt(value); // PositiveIntType } else if (name.equals("provider")) { this.provider = castToReference(value); // Reference } else if (name.equals("responsible")) { this.responsible = castToBoolean(value); // BooleanType } else if (name.equals("role")) { this.role = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("qualification")) { this.qualification = castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; }
dst.careTeam = new ArrayList<CareTeamComponent>(); for (CareTeamComponent i : careTeam) dst.careTeam.add(i.copy()); }; if (supportingInfo != null) {
dst.careTeam = new ArrayList<CareTeamComponent>(); for (CareTeamComponent i : careTeam) dst.careTeam.add(i.copy()); }; if (supportingInfo != null) {
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 1349547969: // sequence this.sequence = castToPositiveInt(value); // PositiveIntType return value; case -987494927: // provider this.provider = castToReference(value); // Reference return value; case 1847674614: // responsible this.responsible = castToBoolean(value); // BooleanType return value; case 3506294: // role this.role = castToCodeableConcept(value); // CodeableConcept return value; case -631333393: // qualification this.qualification = castToCodeableConcept(value); // CodeableConcept return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("sequence")) { this.sequence = castToPositiveInt(value); // PositiveIntType } else if (name.equals("provider")) { this.provider = castToReference(value); // Reference } else if (name.equals("responsible")) { this.responsible = castToBoolean(value); // BooleanType } else if (name.equals("role")) { this.role = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("qualification")) { this.qualification = castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; }
public CareTeamComponent addCareTeam() { //3 CareTeamComponent t = new CareTeamComponent(); if (this.careTeam == null) this.careTeam = new ArrayList<CareTeamComponent>(); this.careTeam.add(t); return t; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof CareTeamComponent)) return false; CareTeamComponent o = (CareTeamComponent) other_; return compareValues(sequence, o.sequence, true) && compareValues(responsible, o.responsible, true) ; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof CareTeamComponent)) return false; CareTeamComponent o = (CareTeamComponent) other_; return compareDeep(sequence, o.sequence, true) && compareDeep(provider, o.provider, true) && compareDeep(responsible, o.responsible, true) && compareDeep(role, o.role, true) && compareDeep(qualification, o.qualification, true); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 1349547969: return getSequenceElement(); case -987494927: return getProvider(); case 1847674614: return getResponsibleElement(); case 3506294: return getRole(); case -631333393: return getQualification(); default: return super.makeProperty(hash, name); } }
public CareTeamComponent copy() { CareTeamComponent dst = new CareTeamComponent(); copyValues(dst); dst.sequence = sequence == null ? null : sequence.copy(); dst.provider = provider == null ? null : provider.copy(); dst.responsible = responsible == null ? null : responsible.copy(); dst.role = role == null ? null : role.copy(); dst.qualification = qualification == null ? null : qualification.copy(); return dst; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 1349547969: // sequence this.sequence = castToPositiveInt(value); // PositiveIntType return value; case -987494927: // provider this.provider = castToReference(value); // Reference return value; case 1847674614: // responsible this.responsible = castToBoolean(value); // BooleanType return value; case 3506294: // role this.role = castToCodeableConcept(value); // CodeableConcept return value; case -631333393: // qualification this.qualification = castToCodeableConcept(value); // CodeableConcept return value; default: return super.setProperty(hash, name, value); } }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 1349547969: return getSequenceElement(); case -987494927: return getProvider(); case 1847674614: return getResponsibleElement(); case 3506294: return getRole(); case -631333393: return getQualification(); default: return super.makeProperty(hash, name); } }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof CareTeamComponent)) return false; CareTeamComponent o = (CareTeamComponent) other_; return compareDeep(sequence, o.sequence, true) && compareDeep(provider, o.provider, true) && compareDeep(responsible, o.responsible, true) && compareDeep(role, o.role, true) && compareDeep(qualification, o.qualification, true); }
public CareTeamComponent copy() { CareTeamComponent dst = new CareTeamComponent(); copyValues(dst); dst.sequence = sequence == null ? null : sequence.copy(); dst.provider = provider == null ? null : provider.copy(); dst.responsible = responsible == null ? null : responsible.copy(); dst.role = role == null ? null : role.copy(); dst.qualification = qualification == null ? null : qualification.copy(); return dst; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof CareTeamComponent)) return false; CareTeamComponent o = (CareTeamComponent) other_; return compareValues(sequence, o.sequence, true) && compareValues(responsible, o.responsible, true) ; }