public function getStructuredDisordersForSection(OphCoCvi_ClinicalInfo_Disorder_Section $disorder_section, $header_rows = 0)
{
$data = array();
for ($i = 0; $i < $header_rows; $i++) {
$data[] = array('', '', '', '', '');
}
foreach ($this->getAllDisordersForSection($disorder_section) as $i => $disorder) {
$section_name = '';
if ($i == 0) {
$section_name = $disorder_section->name;
}
$data[] = array($section_name, $disorder->name, $disorder->code, $this->getStructuredTextForDisorderSide($disorder, 'right'), $this->getStructuredTextForDisorderSide($disorder, 'left'));
}
if ($disorder_section->comments_allowed) {
$comments_obj = $this->getDisorderSectionComment($disorder_section);
$text = $disorder_section->comments_label . ' : ';
if ($comments_obj) {
$text .= $comments_obj->comments;
}
$data[] = array('', $text, '', '', '');
}
return $data;
}