<tr>
		<td width="80" class="ltl">患者</td>
		<td>
        ID:<a href="<?php 
echo $router->urlfor('intention/patient', array('c' => 'intention', 'a' => 'patient', 'userId' => $user->id, 'showContent' => 1));
?>
" target="_blank" title="查看患者资料"><?php 
echo $user->name;
?>
</a>(<?php 
echo $followupOwner->patient->name;
?>
)&nbsp;
			性别:<?php 
if ($user->getFollowupPatient()->isNull() == false) {
    echo patient::getpatientSex($user->getFollowupPatient()->sex);
}
?>
&nbsp;
			出生年月:<?php 
echo $user->getFollowupPatient()->birthday;
?>
&nbsp;
            年龄 : <?php 
echo $user->getFollowupPatient()->getPatientAge();
?>
&nbsp;
            地区:<?php 
echo $user->getFollowupPatient()->province;
?>
&nbsp;<?php 
Ejemplo n.º 2
0
    private function getDetailOfProposal($proposal, $openid)
    {/*{{{*/
        $str = '';
        $patient = $proposal->patient;
        $bingliSet = $proposal->getBingLiSet();
        $titleAndDisease = NodeClient::getInstance()->getTitleAndDiseaseByRelatedObjIds(array($proposal->id), "Proposal");  
        $title = isset($titleAndDisease[$proposal->id]->title) ? $titleAndDisease[$proposal->id]->title : "";
        $diseaseName = isset($titleAndDisease[$proposal->id]->disease) ? $titleAndDisease[$proposal->id]->disease : "";
        $age = "";
        if(XDateTime::isDate($patient->birthday))
        {
            $age = $patient->getPatientAge(); 
        }
        else if ($patient->age)
        {
            $age = $patient->age;
        }
        $xiangyingTitle = $patient->userName . ":" . $title;
        $str = "---疾病信息---\n";
        $str .= "疾病:" . $diseaseName . "\n";
        $str .= "\n---患者基本资料---\n";

        $str .= "姓名:" . $patient->name . "\n";
        $str .= "性别:" . patient::getpatientSex($patient->sex) . "\n";
        $str .= "所在省市:" . $patient->province . " " . $patient->city . "\n";
        $str .= "提交时间:" . $proposal->ctime;
        $str .= "\n";
        $conditionDesc = "\n---病情描述---\n";
        foreach($bingliSet->conditiondesc as $dto)
        {
            $conditionDesc .= (''==$dto->conditionDesc)?'未填写': ($dto->conditionDesc)." ";
            $conditionDesc = str_replace("<br/>", "\n", $conditionDesc);
        }
        if(mb_strlen($conditionDesc) > 300)
        {
            $conditionDesc = mb_substr($conditionDesc, 0, 300) . "\n...";
        }
        $str .= $conditionDesc;
        $str .= "\n";
        $dto = array_pop($bingliSet->hopeHelp);
        if(!empty($dto))
        {
            $hopeHelp = empty($dto) ? '' : $dto->hopeHelp;
            $str .= "\n---希望提供的帮助---\n";
            $str .= $hopeHelp;
            $str .= "\n";
        }
        $hospitalName = '';
        $diagnozeStr = '';
        foreach($bingliSet->hospital as $dto) 
        { 
            $hospitalName .= $dto->hospitalName . " " . $dto->facultyName . "\n";
        } 
        if($hospitalName != '')
        {
            $diagnozeStr .= "所就诊医院科室:" . $hospitalName;
        }
        $medicine = "";
        foreach($bingliSet->medicine as $dto)
        {
            $medicine .= "药物名称:" . $dto->medicineName . " \n服用说明:" . $dto->medicineDesc . "\n"; 
        }
        if(mb_strlen($medicine) > 300)
        {
            $medicine = mb_substr($medicine, 0, 300) . "\n...";
        }
        if($medicine != '')
        {
            $diagnozeStr .= "-用药情况-\n";
            $diagnozeStr .= $medicine;
        }
        if($diagnozeStr != '')
        {
            $str .= "\n---诊断与治疗---\n";
            $str .= $diagnozeStr;
        }

        if (false == empty($bingliSet->patientAttachment))
        {
            $desc = "病历:点击【查看全文】查看患者上传病历";
            $str .= $desc;
        }
        $str .= "\n";
        $str .= "------------------------";
        $str .= "\n";
        $str .= "■ 病情不适合由您处理请回复数字 2
■ 需离开处理其它紧急事项请回复数字 3 ";

        $weixintype = WeixUser::WEIXINTYPE_SPACE;
        $config = WeixApi::getWeixConfigs($weixintype);
        $AppId = $config['AppId'];
        $domain = $config['domain'];
        $Url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' . $AppId . '&redirect_uri=' . $domain. '/wx/auth4space?proposalId=' .$proposal->id . '&response_type=code&scope=snsapi_base&state=#wechat_redirect';   


        $arr = array
            (
                array(
                    'Title' => $xiangyingTitle,
                    'Description' => $str,
                    'PicUrl' => '',
                    'Url' => $Url,
                ),
            );   

        return WeixApi::xiangyingNewsMsgWithArr($openid, WeixUser::WEIXINTYPE_SPACE, $arr);
    }/*}}}*/
Ejemplo n.º 3
0
	<?php if ($ticket != null && $ticket->isNull() == false) { ?>
	<input type="button" value="审核通过并继续下一条>>" class="case_comfirm" onclick="doSubmit('<?=$router->urlfor('nfsaudit/passOrdinarySignin',array('ticketId'=>$ticket->id)) ?>')"/>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<?php }?>
    <?php if (isset($inspectGroupName) && $inspectGroupName == PatientSigninInspectGroup::GROUP_PATIENTSIGNIN) { ?>
	<input type="button" value="上交并继续下一条>>" class="case_comfirm returnToX"/>
	&nbsp;&nbsp;&nbsp;&nbsp;
	<?php }?>
	</div>
</div>
<table cellpadding="0" cellspacing="0" border="1" class="adminlist" style="margin-bottom:5px;">
	<tr>
		<td width="80" class="ltl">患者</td>
		<td>
			ID:<a href="<?php echo $router->urlfor('intention/patient',array('c'=>'intention','a'=>'patient','userId'=>$patientSignin->user->id,'showContent'=>1));?>" target="_blank" title="查看患者资料"><?= $patientSignin->patient->name?></a>&nbsp;
			性别:<?php if($patientSignin->patient->isNull() == false) {echo patient::getpatientSex($patientSignin->patient->sex);}?>&nbsp;
			出生年月:<?= $patientSignin->patient->birthday ?>&nbsp;
            年龄 :<?= $patientSignin->patient->getPatientAge() ?>&nbsp;
            地区:<?= $patientSignin->patient->province ?>&nbsp;<?= $patientSignin->patient->city ?>&nbsp;
		</td>
	</tr>
    <tr>
		<td width="80" class="ltl">用户</td>
        <td>
            <?php 
            $space = $doctorPatientRef->space;
            $user = $doctorPatientRef->user;
            include('intention/proposal/_userspaceflow.php');
            ?>
        </td>
    </tr>
Ejemplo n.º 4
0
	<tr>
		<td width="80" class="ltl">患者</td>
		<td>
			ID:<a href="<?php 
echo $router->urlfor('intention/patient', array('c' => 'intention', 'a' => 'patient', 'userId' => $owner->user->id, 'showContent' => 1));
?>
" target="_blank" title="查看患者资料"><?php 
echo $owner->user->name;
?>
</a>(<?php 
echo $owner->patient->name;
?>
)&nbsp;
			性别:<?php 
if ($owner->patient->isNull() == false) {
    echo patient::getpatientSex($owner->patient->sex);
}
?>
&nbsp;
			出生年月:<?php 
echo $owner->patient->birthday;
?>
&nbsp;
            年龄 : <?php 
echo $owner->patient->getPatientAge();
?>
&nbsp;
            地区:<?php 
echo $owner->patient->province;
?>
&nbsp;<?php 
<table cellpadding="0" cellspacing="0" border="1" class="adminlist" style="margin-bottom:10px;">
	<tr>
		<td width="80" class="ltl">患者</td>
		<td>

性别:<?php 
if ($doctorPatientRef->patient->isNull() == false) {
    echo patient::getpatientSex($doctorPatientRef->patient->sex);
}
?>
&nbsp;
出生年月:<?php 
echo $doctorPatientRef->patient->birthday;
?>
&nbsp;
年龄 : <?php 
echo $doctorPatientRef->patient->getPatientAge();
?>
&nbsp;
地区:<?php 
echo $doctorPatientRef->patient->province;
?>
&nbsp;<?php 
echo $doctorPatientRef->patient->city;
?>

		</td>
	</tr>
    <tr>
		<td width="80" class="ltl">用户</td>
        <td>
Ejemplo n.º 6
0
            ?>
"></span>
                        <? } ?>
                    </td>
                    <td>
                        <p><?php 
            echo $app->patient->name;
            ?>
</p>
                        <p>
                            <?php 
            echo $app->patient->age ? $app->patient->age : $app->patient->getAgeNum();
            ?>
                            /
                            <?php 
            echo patient::getpatientSex($app->patient->sex);
            ?>
                        </p>
                        <p><?php 
            echo $app->patient->province;
            ?>
/<?php 
            echo $app->patient->city;
            ?>
</p>
                    </td>
                    <td><?php 
            echo $app->statusDesc4Intention();
            ?>
</td>
                </tr>
Ejemplo n.º 7
0
	self.location.href= url;
}
</script>
<style style="text/css">
.steam-box-floatImg{ position:absolute; right:-20px; top:40px;}
</style>
</head>
<body style="padding: 0 0 0 10px;">
	    <div class="pt10 pr10 pb10">
		  <table class="management-patients-details">
		    <tr>
			  <td class="fb tc management-patients-details-cell1">患者信息</td>
			  <td class="management-patients-details-cell2">
			    姓名:<span><?=$doctorPatientRef->patient->name?></span>
			    用户名:<span><?= $doctorPatientRef->user->name?></span>
			    性别:<span><?php if($doctorPatientRef->patient->isNull() == false) {echo patient::getpatientSex($doctorPatientRef->patient->sex);}?></span>
			    出生日期:<span><?= $doctorPatientRef->patient->birthday ?></span>
			    所在省市:<span><?= $doctorPatientRef->patient->province ?>&nbsp;<?= $doctorPatientRef->patient->city ?>&nbsp;</span>
			  </td>
			</tr>
		    <tr>
			  <td class="fb tc management-patients-details-cell1">医生信息</td>
			  <td class="management-patients-details-cell2">
			  <?php 
                              $Hospital = $doctorPatientRef->space->host->hospitalfaculty->hospital->name;
                              $Department = $doctorPatientRef->space->host->hospitalfaculty->name;    
	                  ?>		
			  <a href="<?= $doctorPatientRef->space->url ?>" target="_blank"><?= $doctorPatientRef->space->host->name?></a> - <?= $Hospital .' '. $Department ?>
		          </td>
			</tr>
<?php
Ejemplo n.º 8
0
<?php

if (false == $proposal->patient->isNull()) {
    ?>
<div class="mr_line mb30">
    <p class="mr_title1 pa_info f18">患者信息</p>
    <ul class="pa_friend gray2 flow_patient">
        <li>姓名:<?php 
    echo $proposal->patient->name;
    ?>
</li>
        <li>性别:<?php 
    echo patient::getpatientSex($proposal->patient->sex);
    ?>
</li>
        <li>年龄:
        <?php 
    if (XDateTime::isDate($proposal->patient->birthday)) {
        echo $proposal->patient->getPatientAge();
    } else {
        if ($proposal->patient->age) {
            echo $proposal->patient->age;
        }
    }
    ?>
        </li>
        <li>所在省市:<?php 
    echo $proposal->patient->province;
    ?>
&nbsp; <?php 
    echo $proposal->patient->city;
<div>
<div >
<table cellpadding="0" cellspacing="0" border="0" class="adminlist" style="margin:5px;width:90%;">
	<tr>
		<td width="80" class="ltl">患者</td>
		<td>
			ID:<a href="<?php 
echo $router->urlfor('intention/patient', array('c' => 'intention', 'a' => 'patient', 'userId' => $user->id, 'showContent' => 1));
?>
" target="_blank" title="查看患者资料"><?php 
echo $user->name;
?>
</a>&nbsp;
			性别:<?php 
if ($patient->isNull() == false) {
    echo patient::getpatientSex($patient->sex);
}
?>
&nbsp;
            出生年月:<?php 
echo $patient->birthday;
?>
&nbsp;
            年龄 :<?php 
echo $patient->getPatientAge();
?>
&nbsp; 
			地区:<?php 
echo $patient->province;
?>
&nbsp;<?php 
Ejemplo n.º 10
0
 <td rowspan="<?=$rowSpanCnt?>" class="td_nomalSpace">
     <?php if($intention->hasSpace()) { ?>
         <p><?=$intention->space->host->hospitalfaculty->hospital->commonName?></p>
         <p><?=$intention->space->host->hospitalfaculty->name?></p>
         <p><?=$intention->space->host->name?></p>
         <?php if($intention->isAuditing()){ ?>
             <span class="none spaceIdFlag" spaceId="<?=$intention->space->id?>" facultyId="<?=$intention->space->host->hospitalfaculty->id?>"></span>
         <?php } ?>
     <? } ?>
 </td>
 <td rowspan="<?=$rowSpanCnt?>">
     <p><?=$intention->patient->name?></p>
     <p>
         <?=$intention->patient->age ? $intention->patient->age : $intention->patient->getAgeNum()?>
         /
         <?=patient::getpatientSex($intention->patient->sex)?>
     </p>
     <p><?=$intention->patient->province?>/<?=$intention->patient->city?></p>
 </td>
 <?php
     $style = '';
     if($intention->isAuditing())
     {
         $style = 'style="background: #8cc2cf; color:fff;"';
     }
     else if($intention->isUnAuditableBecauseInterrupt())
     {
         $style = 'style="background:#ff7e7e; color:fff;"';
     }
 ?>
 <td rowspan="<?=$rowSpanCnt?>" <?=$style?> >