public void setEncounterType(Encounter obj, int index) { CodedConceptValueObject embeddedClass = new CodedConceptValueObject(); setEncounterTypeCode(embeddedClass, index); setEncounterTypeCodeSystem(embeddedClass, index); setEncounterTypeDisplayName(embeddedClass, index); setEncounterTypeCodeSystemName(embeddedClass, index); setEncounterTypeOriginalText(embeddedClass, index); setEncounterTypeCodeSystemVersion(embeddedClass, index); obj.setEncounterType(embeddedClass); }