@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("outcome")) this.outcome = castToCodeableConcept(value); // CodeableConcept else if (name.equals("probability[x]")) this.probability = (Type) value; // Type else if (name.equals("relativeRisk")) this.relativeRisk = castToDecimal(value); // DecimalType else if (name.equals("when[x]")) this.when = (Type) value; // Type else if (name.equals("rationale")) this.rationale = castToString(value); // StringType else super.setProperty(name, value); }
@Override public void setProperty(String name, Base value) throws FHIRException { if (name.equals("outcome")) this.outcome = castToCodeableConcept(value); // CodeableConcept else if (name.equals("probability[x]")) this.probability = (Type) value; // Type else if (name.equals("relativeRisk")) this.relativeRisk = castToDecimal(value); // DecimalType else if (name.equals("when[x]")) this.when = (Type) value; // Type else if (name.equals("rationale")) this.rationale = castToString(value); // StringType else super.setProperty(name, value); }