@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; }
@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; }
@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(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); } }