public function getStructuredDataForPrint()
{
$result = array();
$result['patientFactors'] = $this->generateStructuredPatientFactors();
$result['employmentStatus'] = $this->generateStructuredEmploymentStatus();
$result['contactUrgency'] = $this->generateStructuredContactUrgency();
if ($fmt = $this->preferred_info_fmt) {
$result['preferredInfoFormat' . $fmt->code] = 'X';
if ($fmt->require_email) {
$result['preferredInfoFormatEmailAddress'] = $this->info_email ?: ' ';
} else {
$result['preferredInfoFormatEmailAddress'] = ' ';
}
}
$result['preferredLanguage'] = $this->preferred_language ? $this->preferred_language->name : ' ';
$result['socialServiceComments'] = $this->social_service_comments;
return $result;
}