public function render(Zend_View_Interface $view = null) { $date = date('Y-m-d H:i', strtotime("now - " . rand(1, 25) . " days")); $str = <<<EOL TEST, ONE - 3601 DOB: 1954-02-01 ENCOUNTER: {$date} PHYSICIAN: Doctor, Test LOCATION: Main Office - Exam 2 TRANSCRIBED: jdoe Medical Star Health Clinic 1 Main St Phoenix, AZ 85224 877-571-7679 www.clear-health.com EOL; $str .= genText(); $str .= <<<EOL ORIENTATION: Ms. Yudell returns today in followup for stage II dysgerminoma, resected and then treated with BEP times two. She is being followed today with last cycle being 02/01/09. She is doing quite well. She has excellent performance status. She is eating well. She has had no further intercurrent issues and she looks great overall. PHYSICAL EXAMINATION: Vital signs: Weight 127 pounds. Temperature 97.8. Blood pressure 110/88. Pulse 67. Constitutional: Eyes: no conjunctivitis. ENT: Good dentition. No stomatitis, no mucositis, no thrush. Neck: Nontender, no masses, no thyromegaly, no nodules. Resp: Chest clear to auscultation and percussion, normal respiratory effort. CV: Normal S1, S2. No murmurs, gallops or rub. Normal PMI. Abdomen: No hepatomegaly, splenomegaly, ascites or tenderness. Lymphatic: No cervical, supraclavicular, axillary, inguinal adenopathy. Muscular: Normal gait, no nail changes. Strength symmetric 5/5 in all four extremities. Skin: No rashes, ecchymoses, petechiae. No palpable masses Psych: Oriented times three. Normal affect. Neuro: Cranial nerves II/XI grossly intact. No focal motor defects. LABORATORY: Hemoglobin 13.6, hematocrit 41.0, white blood cells 4,200, with platelets of 169. She had an alpha fetoprotein and beta HCG which are pending. Last was 1.8 on the alpha fetoprotein and 3 on the beta HCG titer, well within normal limits. The others will be reviewed when they come in. Assessment and Plan: 1. Stage II Dysgermomia s/p BEP times two now in long term follow up. She will followup again with Dr. Test and have CT scan in May with CT of the chest, abdomen and pelvis and repeat labs. EOL; $str = nl2br($str); return $str; }
/** * 生成表单域对应的html * @param array $input * @param array $field 字段信息 * @return string */ public function genHtml(&$input, $field) { $width = $input['width']; $height = $input['height']; $value = $input['value']; $type = $input['type']; $remark = $input['remark']; $class = 'input'; if ('file' == $type) { $fn = "{$field['name']}"; } else { $fn = "{$field['model']}[{$field['name']}]"; } $html = ''; if ('text' == $type) { $html = genText($fn, $width, $value, $class); } else { if ('password' == $type) { $html = genPassword($fn, $width, $value, $class); } else { if ('select' == $type) { $list = $this->optValueToArray($input['opt_value']); $html = genSelect($fn, $list['opt_value'], $list['selected']); } else { if ('radio' == $type) { $list = $this->optValueToArray($input['opt_value']); $html = genRadios($fn, $list['opt_value'], $list['selected']); } else { if ('checkbox' == $type) { $list = $this->optValueToArray($input['opt_value'], true); $html = genCheckboxs($fn, $list['opt_value'], $list['selected']); } else { if ('file' == $type) { $html = genFile($fn); } else { if ('textarea' == $type) { $html = genTextarea($fn, $value, $width, $height, $remark); } else { if ('date' == $type) { $html = genDate($fn, $value, $class); } else { if ('relation_select' == $type) { $relaOpts = $this->getRelationOpts($field); $input['opt_value'] = $this->optArrayToString($relaOpts); $html = genSelect($fn, $relaOpts['opt_value']); } else { if ('editor' == $type) { $html = genEditor($fn, empty($value) ? $remark : $value, $width, $height, $input['editor']); } } } } } } } } } } $input['html'] = $html; }