$ae_url = APP_PATH_WEBROOT_FULL . "redcap_v" . $redcap_version . "/DataEntry/index.php?pid=$project_id&page=adverse_events&id=$subjid&event_id=$event_id";
		foreach ($event AS $field => $item) {
			if ($item != '') {
				if (!in_array($field, array('ae_aestdtc', 'ae_aeendtc'))) {
					if ($field == 'ae_oth_aeterm') {
						if ($item != '') {
							$item = $event['ae_oth_aeterm'];
							$event['ae_aeterm'] = $event['ae_oth_aeterm'];
						}
						continue;
					}
					if ($field == 'ae_aeterm' && $item = 'OTHER') {
						$item = $event['ae_oth_aeterm'];
					}
					if (!in_array($field, array('ae_aeterm', 'ae_oth_aeterm'))) {
						$desc_array[] = get_field_label($field, $project_id) . ': <strong>' . $item . "</strong>";
					}
				}
			}
		}
		if ($event['ae_aestdtc'] != '') {
			$eventAtts[] = get_event_array($event['ae_aestdtc'], $event['ae_aeendtc'], '', implode("<br />", $desc_array), $event['ae_aeterm'], $color, '', $ae_url);
		}
	}
}
/**
 * transplants
 */
$fields = array('livtrp_cestdtc');
$data = REDCap::getData('array', $subjid, $fields);
foreach ($data AS $subject) {
 function the_field_label($selector, $post_id = false)
 {
     echo get_field_label($selector, $post_id);
 }