@Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = castToCode(value); // CodeType } else if (name.equals("display")) { this.display = castToString(value); // StringType } else if (name.equals("definition")) { this.definition = castToString(value); // StringType } else if (name.equals("designation")) { this.getDesignation().add((ConceptDefinitionDesignationComponent) value); } else if (name.equals("property")) { this.getProperty().add((ConceptPropertyComponent) value); } else if (name.equals("concept")) { this.getConcept().add((ConceptDefinitionComponent) value); } else return super.setProperty(name, value); return value; }
@Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code this.code = castToCode(value); // CodeType return value; case 1671764162: // display this.display = castToString(value); // StringType return value; case -1014418093: // definition this.definition = castToString(value); // StringType return value; case -900931593: // designation this.getDesignation().add((ConceptDefinitionDesignationComponent) value); // ConceptDefinitionDesignationComponent return value; case -993141291: // property this.getProperty().add((ConceptPropertyComponent) value); // ConceptPropertyComponent return value; case 951024232: // concept this.getConcept().add((ConceptDefinitionComponent) value); // ConceptDefinitionComponent return value; default: return super.setProperty(hash, name, value); } }