public InsuranceComponent addInsurance() { //3 InsuranceComponent t = new InsuranceComponent(); if (this.insurance == null) this.insurance = new ArrayList<InsuranceComponent>(); this.insurance.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("focal")) { this.focal = castToBoolean(value); // BooleanType } else if (name.equals("coverage")) { this.coverage = castToReference(value); // Reference } else if (name.equals("businessArrangement")) { this.businessArrangement = castToString(value); // StringType } else if (name.equals("claimResponse")) { this.claimResponse = castToReference(value); // Reference } else return super.setProperty(name, value); return value; }
dst.insurance = new ArrayList<InsuranceComponent>(); for (InsuranceComponent i : insurance) dst.insurance.add(i.copy()); }; if (error != null) {
dst.insurance = new ArrayList<InsuranceComponent>(); for (InsuranceComponent i : insurance) dst.insurance.add(i.copy()); }; if (error != 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 97604197: // focal this.focal = castToBoolean(value); // BooleanType return value; case -351767064: // coverage this.coverage = castToReference(value); // Reference return value; case 259920682: // businessArrangement this.businessArrangement = castToString(value); // StringType return value; case 689513629: // claimResponse this.claimResponse = castToReference(value); // Reference 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("focal")) { this.focal = castToBoolean(value); // BooleanType } else if (name.equals("coverage")) { this.coverage = castToReference(value); // Reference } else if (name.equals("businessArrangement")) { this.businessArrangement = castToString(value); // StringType } else if (name.equals("claimResponse")) { this.claimResponse = castToReference(value); // Reference } else return super.setProperty(name, value); return value; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof InsuranceComponent)) return false; InsuranceComponent o = (InsuranceComponent) other_; return compareDeep(sequence, o.sequence, true) && compareDeep(focal, o.focal, true) && compareDeep(coverage, o.coverage, true) && compareDeep(businessArrangement, o.businessArrangement, true) && compareDeep(claimResponse, o.claimResponse, true) ; }
public InsuranceComponent copy() { InsuranceComponent dst = new InsuranceComponent(); copyValues(dst); dst.sequence = sequence == null ? null : sequence.copy(); dst.focal = focal == null ? null : focal.copy(); dst.coverage = coverage == null ? null : coverage.copy(); dst.businessArrangement = businessArrangement == null ? null : businessArrangement.copy(); dst.claimResponse = claimResponse == null ? null : claimResponse.copy(); return dst; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 1349547969: return getSequenceElement(); case 97604197: return getFocalElement(); case -351767064: return getCoverage(); case 259920682: return getBusinessArrangementElement(); case 689513629: return getClaimResponse(); default: return super.makeProperty(hash, name); } }
public InsuranceComponent addInsurance() { //3 InsuranceComponent t = new InsuranceComponent(); if (this.insurance == null) this.insurance = new ArrayList<InsuranceComponent>(); this.insurance.add(t); return t; }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof InsuranceComponent)) return false; InsuranceComponent o = (InsuranceComponent) other_; return compareValues(sequence, o.sequence, true) && compareValues(focal, o.focal, true) && compareValues(businessArrangement, o.businessArrangement, true) ; }
@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 97604197: // focal this.focal = castToBoolean(value); // BooleanType return value; case -351767064: // coverage this.coverage = castToReference(value); // Reference return value; case 259920682: // businessArrangement this.businessArrangement = castToString(value); // StringType return value; case 689513629: // claimResponse this.claimResponse = castToReference(value); // Reference return value; default: return super.setProperty(hash, name, value); } }
@Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; if (!(other_ instanceof InsuranceComponent)) return false; InsuranceComponent o = (InsuranceComponent) other_; return compareValues(sequence, o.sequence, true) && compareValues(focal, o.focal, true) && compareValues(businessArrangement, o.businessArrangement, true) ; }
@Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; if (!(other_ instanceof InsuranceComponent)) return false; InsuranceComponent o = (InsuranceComponent) other_; return compareDeep(sequence, o.sequence, true) && compareDeep(focal, o.focal, true) && compareDeep(coverage, o.coverage, true) && compareDeep(businessArrangement, o.businessArrangement, true) && compareDeep(claimResponse, o.claimResponse, true) ; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 1349547969: return getSequenceElement(); case 97604197: return getFocalElement(); case -351767064: return getCoverage(); case 259920682: return getBusinessArrangementElement(); case 689513629: return getClaimResponse(); default: return super.makeProperty(hash, name); } }
public InsuranceComponent copy() { InsuranceComponent dst = new InsuranceComponent(); copyValues(dst); dst.sequence = sequence == null ? null : sequence.copy(); dst.focal = focal == null ? null : focal.copy(); dst.coverage = coverage == null ? null : coverage.copy(); dst.businessArrangement = businessArrangement == null ? null : businessArrangement.copy(); dst.claimResponse = claimResponse == null ? null : claimResponse.copy(); return dst; }