@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("amount[x]")) { this.amount = castToType(value); // Type } else if (name.equals("amountType")) { this.amountType = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("amountText")) { this.amountText = castToString(value); // StringType } else if (name.equals("referenceRange")) { this.referenceRange = (SubstanceAmountReferenceRangeComponent) value; // SubstanceAmountReferenceRangeComponent } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1413853096: // amount this.amount = castToType(value); // Type return value; case -1424857166: // amountType this.amountType = castToCodeableConcept(value); // CodeableConcept return value; case -1424876123: // amountText this.amountText = castToString(value); // StringType return value; case -1912545102: // referenceRange this.referenceRange = (SubstanceAmountReferenceRangeComponent) value; // SubstanceAmountReferenceRangeComponent return value; default: return super.setProperty(hash, name, value); } }
@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("amount[x]")) { this.amount = castToType(value); // Type } else if (name.equals("amountType")) { this.amountType = castToCodeableConcept(value); // CodeableConcept } else if (name.equals("amountText")) { this.amountText = castToString(value); // StringType } else if (name.equals("referenceRange")) { this.referenceRange = (SubstanceAmountReferenceRangeComponent) value; // SubstanceAmountReferenceRangeComponent } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1413853096: // amount this.amount = castToType(value); // Type return value; case -1424857166: // amountType this.amountType = castToCodeableConcept(value); // CodeableConcept return value; case -1424876123: // amountText this.amountText = castToString(value); // StringType return value; case -1912545102: // referenceRange this.referenceRange = (SubstanceAmountReferenceRangeComponent) value; // SubstanceAmountReferenceRangeComponent return value; default: return super.setProperty(hash, name, value); } }