Example #1
0
              ?>           
             <p class="stream-icon6"><?=$doctorPatientRef->user->name?></p>
             <p>(<a href="#" class="fb"><?=$patientName ?></a>)</p>
             <p>状态:<span class="red2"><?=$doctorPatientRef->isTreated() == true ? '就诊后' : '就诊前' ?></span></p>
<?php if($doctorPatientRef->isVip()){?>
             <p><img src="http://i1.hdfimg.com/userspace/images/medicalhelpservice.gif"/></p>
<?php }?>
           </div>
           <div class="stream-box-content-r fl">
             <div class="strem-box-pControl" style="margin-top:15px;">
	       <?php if ($flow instanceof HealthDiary && $flow->isMedicineHealthDiary()) { foreach ($flow->getMedicineLogs() as $log) { ?> <p><?=$log->getDisplayName()?></p>
	       <?php   }
	             } else {
			$contentList = explode("\n", $postContent);
			foreach ($contentList as $c) {
				echo ''.HealthDiary::transform2Img($c).'<br />';
			}
		     }
			if (($flow instanceof DoctorPatientPost) && (false == empty($flow->adminComment)) && ($newUser->id == $flow->user->id || $flow->isPrivated() == false))
			{
				echo "<p class='pre'><img align='absmiddle' src='http://i1.hdfimg.com/space/images/iconwarning.gif'> 好大夫在线友情提示:<br>".$flow->adminComment."</p>";				
			}	
			?>               
             </div>

             <?php
            if (false == $flow instanceof HealthDiary && false == empty($flow->attachmentIds)) { ?>
                   <div id="el_patient_attachment_show_<?= $flow->id ?>"></div>
                <script type="text/javascript">showBingliDetail("el_patient_attachment_show_<?= $flow->id ?>", "<?= implode(',', $flow->attachmentIds) ?>");</script>
            <?php } ?>
           </div>
Example #2
0
    }
    ?>
                        <div class="strem-box-pControl">
<?php 
    if (false == $flow->flowable() && mb_strlen($content, 'gbk') > 170) {
        $contentList = explode("\n", $content);
        echo '<div name="xiang" class="dn">';
        foreach ($contentList as $c) {
            echo '<p>' . HealthDiary::transform2Img($c) . '</p>';
        }
        echo '<a class="diaryShowMore blue cp un_unl">收起<< </a> </div>';
        echo '<div name="jian">' . XString::truncate($content, 200, "...") . '<a class="diaryShowMore blue cp un_unl">详细>></a></div>';
    } else {
        $contentList = explode("\n", $content);
        foreach ($contentList as $c) {
            echo '<p>' . HealthDiary::transform2Img($c) . '</p>';
        }
    }
    ?>
					   </div>
<?php 
}
if ($object == 'space' && $patientSigninRefExists && $flow instanceof DoctorPatientPost) {
    ?>
                    <div class="fl stream-box-ml120">
                    <a class="blue" target='_blank' href="<?php 
    echo $flow->doctorPatientRef->space->url;
    ?>
flow/patientdiarylist?refid=<?php 
    echo Codec::getInstance()->encodeId($flow->doctorPatientRef->id);
    ?>
Example #3
0
<?php 
    if ($abnormalStatus[$diary->id] || false == $diary->flowable()) {
        ?>
	  <div class="t2"><?php 
        if (isset($unwellAnswer)) {
            echo HealthDiary::transform2Img($unwellAnswer->value);
        }
        ?>
</div>
<?php 
    }
    if ($diary->isNormalHealthDiary()) {
        $contentList = explode("\n", $diary->showContent());
        foreach ($contentList as $c) {
            echo '<p class="content">' . HealthDiary::transform2Img($c) . '</p>';
        }
    } else {
        echo nl2br($diary->showContent());
    }
    $abnormalRecord = DAL::get()->find_by_sourceId('abnormalrecord', $diary->id);
    if ($abnormalRecord instanceof AbnormalRecord) {
        echo "<p class='content'>异常: {$abnormalRecord->description} </p> ";
    }
    $sourceId = $diary->id;
    $sourceType = 'HealthDiary';
    $annotation = DAL::get()->find_by_hostid_and_hosttype('NfsAnnotation', $sourceId, $sourceType);
    if (false == $annotation->isNull()) {
        ?>
		<div class='annotation'>
		<div><strong>批注:</strong>
Example #4
0
        if ($flow instanceof HealthDiary && $flow->isMedicineHealthDiary()) {
            foreach ($flow->getMedicineLogs() as $log) {
                ?>
                         <p><?php 
                echo $log->getDisplayName();
                ?>
</p>
<?php 
            }
        } else {
            $contentList = explode("\n", $postContent);
            foreach ($contentList as $c) {
                ?>
                        <p class="f14 pb10">
<?php 
                echo '' . HealthDiary::transform2Img($c);
                ?>
                        </p>
<?php 
            }
        }
        if (false == empty($flow->attachmentIds)) {
            $attachmentIdsStr = is_array($flow->attachmentIds) ? implode(',', $flow->attachmentIds) : $flow->attachmentIds;
            ?>
                   <div id="el_patient_attachment_show_<?php 
            echo $flow->id;
            ?>
"></div>
                    <script type="text/javascript">
                    $(function(){
                        showBingliDetail("el_patient_attachment_show_<?php 
    private function getHealthDiaryFlowDesc($order)
    {/*{{{*/
        $desc = "";
        if($order->isMedicineHealthDiary())
        {
            foreach ($order->getMedicineLogs() as $log) 
            {
                $desc .= $log->getDisplayName()."</br>";
            }
        }
        $unwellAnswer = null;
        $relationAnswerList = DAL::get()->find('HealthRecordAnswer', $order->relationAnswerIds); 
        foreach ($relationAnswerList as $ans) 
        {
            $p = $ans->problem;
            if ($p->isAboutUnwell()) 
            {
                $unwellAnswer = $ans;
            } 
            else if ($p->isWithOutOption()) 
            {
                //显示分类名
                if(false == isset($categoryShowed[$p->category->id]) && $p->category->isNeeded() )
                {
                    $desc .= $p->category->displayTitle." </br>";
                    $categoryShowed[$p->category->id]= 1;
                }
                $desc .= $p->displayTitle.' '.$ans->value.' '.$ans->unit."</br>";
            } 
            else if ($p->isWithOption()) 
            {
                $desc .= $p->displayTitle.' '.$ans->getDisplayOptionValue().' '.$ans->unit."</br>";
            }
        }
        $content = $order->content; 
        if (isset($unwellAnswer) && ($abnormalStatus[$order->id] || false == $order->flowable())) 
        {
            $content = $unwellAnswer->value."\n".$content; 
        }
        if (false == $order->flowable() && mb_strlen($content, 'gbk') > 170) 
        { 
            $contentList = explode("\n", $content);
            foreach ($contentList as $c) {
                $desc .= '<p>'.HealthDiary::transform2Img($c).'</p>';
            }
        } 
        else 
        {
            $contentList = explode("\n", $content);
            foreach ($contentList as $c) 
            {
                $desc .= '<p>'.HealthDiary::transform2Img($c).'</p>';
            }
        }

        return $desc;
    }/*}}}*/