@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("collector")) { this.collector = castToReference(value); // Reference } else if (name.equals("collected[x]")) { this.collected = castToType(value); // Type } else if (name.equals("duration")) { this.duration = castToDuration(value); // Duration } else if (name.equals("quantity")) { this.quantity = castToQuantity(value); // Quantity } else if (name.equals("method")) { this.method = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("bodySite")) { this.bodySite = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("fastingStatus[x]")) { this.fastingStatus = castToType(value); // Type } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("collector")) { this.collector = castToReference(value); // Reference } else if (name.equals("collected[x]")) { this.collected = castToType(value); // Type } else if (name.equals("duration")) { this.duration = castToDuration(value); // Duration } else if (name.equals("quantity")) { this.quantity = castToQuantity(value); // Quantity } else if (name.equals("method")) { this.method = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("bodySite")) { this.bodySite = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("fastingStatus[x]")) { this.fastingStatus = castToType(value); // Type } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 1883491469: // collector this.collector = castToReference(value); // Reference return value; case 1883491145: // collected this.collected = castToType(value); // Type return value; case -1992012396: // duration this.duration = castToDuration(value); // Duration return value; case -1285004149: // quantity this.quantity = castToQuantity(value); // Quantity return value; case -1077554975: // method this.method = castToCodeableConcept(value); // CodeableConcept return value; case 1702620169: // bodySite this.bodySite = castToCodeableConcept(value); // CodeableConcept return value; case -701550184: // fastingStatus this.fastingStatus = castToType(value); // Type return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 1883491469: // collector this.collector = castToReference(value); // Reference return value; case 1883491145: // collected this.collected = castToType(value); // Type return value; case -1992012396: // duration this.duration = castToDuration(value); // Duration return value; case -1285004149: // quantity this.quantity = castToQuantity(value); // Quantity return value; case -1077554975: // method this.method = castToCodeableConcept(value); // CodeableConcept return value; case 1702620169: // bodySite this.bodySite = castToCodeableConcept(value); // CodeableConcept return value; case -701550184: // fastingStatus this.fastingStatus = castToType(value); // Type return value; default: return super.setProperty(hash, name, value); } }