protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $growchartid = $input->getArgument('growchartid');
     $dialog = $this->getHelperSet()->get('dialog');
     $previousgrowchartid = $dialog->ask($output, '<info>Please entry the previous growchartid</info>');
     $babydob = $dialog->ask($output, '<info>Please entry the baby birth (YYYYMMDD):</info>');
     $babygender = $dialog->select($output, '<info>Please entry the baby gender(M):</info>', array('M' => 'Male', 'F' => 'Female'), 'M');
     $birthweight = $dialog->ask($output, '<info>Please entry baby weight(g):</info>');
     $birthgestation = $dialog->ask($output, '<info>Please entry birth gestation:</info>');
     $baby = new Baby();
     $baby->setBabydob($babydob);
     $baby->setBabygender($babygender);
     $baby->setBirthgestation($birthgestation);
     $baby->setBirthweight($birthweight);
     $baby->setGrowchartid($growchartid);
     $baby->setPreviousGrowchartid($previousgrowchartid);
     try {
         $res = $this->client->registerBaby($baby);
     } catch (Exception $ex) {
         $output->writeln('<error>' . $ex->getMessage() . '</error>');
     }
     $output->writeln($res);
 }