Ejemplo n.º 1
0
<?php }?>
</p>
</DIV>
</DIV>

<?php if(false == empty($userItem->patients)) {?>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;姓名
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  出生日期
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  性别
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 城市
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;与本人关系
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 手机号


<?php foreach($userItem->patients as $userPatient) {?>
<LABEL for=u86>
<DIV id=u87 class="u87" >
<DIV id=u87_rtf><p style="text-align:left;"><span style="font-family:微软雅黑;font-size:14px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">
<input type="radio" name="patientid" value="<?=$userPatient->id?>" />&nbsp;&nbsp;
<input type="hidden" id="<?=$userPatient->id?>" value="<?=$userPatient->mobile?>" />&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <font color="red"><?= $userPatient->name?$userPatient->name:'无'?></font>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 
<?= XDateTime::isDate($userPatient->birthday)?$userPatient->birthday:"无&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"?>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <?= $sexDef[$userPatient->sex]?>&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; <?= $userPatient->province ?><?= $userPatient->city ?>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?= $relationDef[(int)$userPatient->relation]?>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?=$userPatient->mobile?></span></p>
</DIV>
</DIV>
</LABEL>

<?php }}?>
<a href="addorder?isCreatePatient=true&createuserid=<?=$userItem->id?>&type=<?=$type?>&phone=<?=$phone?>&taskid=<?=$taskid?>" class="dil gray-btn1 fb ml10" >新增患者信息</a>
</br>
<?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);
    }/*}}}*/
}
?>
>女</option>
	   </select>
	</p>
	<?php 
if (XDateTime::isDate($patientSignin->patient->birthday)) {
    $bornYear = date("Y", strtotime($patientSignin->patient->birthday));
    $bornMonth = date("m", strtotime($patientSignin->patient->birthday));
    $bornDay = date("d", strtotime($patientSignin->patient->birthday));
}
?>
	<script type="text/javascript">
    
<?php 
if ('' != $patientSignin->patient->birthday && XDateTime::isDate($patientSignin->patient->birthday)) {
    ?>
            $(function(){
                inityear($("#dateyear"),<?php 
    echo $bornYear;
    ?>
);
                initmonth($("#datemonth"),<?php 
    echo $bornMonth;
    ?>
);
                initday($("#dateday"),31,<?php 
    echo $bornDay;
    ?>
);
            });
Ejemplo n.º 4
0
 public function savePatient($request, $response)
 {/*{{{*/
     $name = mb_convert_encoding($request->patientname, 'gbk', 'auto');
     $mobile = $request->mobile;
     $sex = $request->sex == null ? Patient::SEX_UNDEFINE : $request->sex;
     $province = $request->province == null ? '' : $request->province;
     $city = $request->city == null ? '' : $request->city;
     $idcard = $request->idcard == null ? '' : $request->idcard;
     $paperstype = $request->paperstype == null ? 0 : $request->paperstype;
     $birthday = $request->dateyear && $request->datemonth && $request->dateday ? $request->dateyear . "-" . $request->datemonth . "-" . $request->dateday : '';
     $birthday = XDateTime::isDate($birthday) ? $birthday : '';
     $relation = $request->relation ? $request->relation : '';
     $age = $request->age ? $request->age : 0;
     $newPatient = PatientClient::getInstance()->addOrMergePatient($this->user, $name, $mobile, $sex, $age, $province, $city, $idcard, $paperstype, $birthday, $relation);
     $forward = $request->forward;
     $results = array();
     if($forward)
     {
         if(strpos($forward, 'selectpatientofreport'))
         {
             $response->setRedirect($response->router->urlfor('attach/uploadattach4signin', array('spaceId' => $request->spaceid, 'patientId' => $newPatient->id)));
         }
         echo json_encode($newPatient->id);
         return self::DIRECT_OUTPUT;
     }
     else
     {
         $response->setRedirect($response->router->urlfor('user/patientlist'));
     }
 }/*}}}*/
Ejemplo n.º 5
0
 private function getPatientAge($patient)
 {/*{{{*/
     if(XDateTime::isDate($patient->birthday))
     {
         $age = $patient->getPatientAge();
     }
     else if($patient->age)
     {
         $age = $patient->age;
     }
     else
     {
         $age = '';
     }
     return $age;
 }/*}}}*/
                             <?php } ?>
                         </select>
                         </td>
                         <td width="75" align="center" style="width:75px;" class="br_e bb_e select_style2">
                         <select check_function="check_datemonth" onchange="changedate('dateyear','datemonth','dateday');" defmsg="succ" class="display_tip select_box_n1" style="font-size:14px; width:90%;" id="datemonth" name="datemonth" <?=(false==$patient->isNull() && XDateTime::isDate($patient->birthday) && XDateTime::valueOf($patient->birthday)->getMonth())? "disabled":''?> >
                             <?php if(false == $patient->isNull() && !empty($patient->birthday)){ ?>
                             <option selected="selected" value='<?=XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : ""?>'><?=XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : ""?></option>
                             <?php } else { ?>
                             <option selected="selected" value=''>请选择</option>
                             <?php } ?>
                         </select>
                         </td>
                         <td width="75" align="center" style="width:75px;" class="bb_e b_ra5_2 select_style2">
                         <select check_function="check_dateday" defmsg="succ" style="font-size:14px; width:90%;" class="display_tip select_box_n1" id="dateday" name="dateday" <?=(false==$patient->isNull() && XDateTime::isDate($patient->birthday) && XDateTime::valueOf($patient->birthday)->getDay())? "disabled":''?>>
                             <?php if(false == $patient->isNull() && !empty($patient->birthday)){ ?>
                             <option selected="selected" value='<?=XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : ""?>'><?=XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : ""?></option>
                             <?php } else { ?>
                             <option selected="selected" value=''>请选择</option>
                             <?php } ?>
                         </select>
                         </td>
                     </tr>
                 </tbody></table>
             </div>
 </div>
 <div class="item clearfix">
     <div class="tit">性别:</div>
     <div class="input_box f17">
         <div class="clearfix">
             <p class="f19 pt5 fl pr10">
                 <input type="radio" name="sex" id="radio1" <?=(false == $patient->isNull()) ? (((int)($patient->sex) ==Patient::SEX_MALE )?"checked=true":''):''?> value="<?=Patient::SEX_MALE?>" <?=(false==$patient->isNull() && $patient->sex!='' && (int)($patient->sex)!=Patient::SEX_UNDEFINE)?"disabled":''?>>
        <img class="vm ml5" src="http://i1.hdfimg.com/doctorzone/images/doc_at.png"/>
<?php 
    }
    ?>
    </p>
    <ul class="pa_friend flow_patient">
        <li>姓名:<?php 
    echo $ref->patient->name;
    ?>
</li>
        <li>性别:<?php 
    echo patient::getPatientSex($ref->patient->sex);
    ?>
</li>
<?php 
    if (XDateTime::isDate($ref->patient->birthday) && $ref->patient->getPatientAge()) {
        echo "<li>年龄:" . $ref->patient->getPatientAge() . "</li>";
    } else {
        if ($ref->patient->age) {
            echo "<li>年龄:" . $ref->patient->age . "</li>";
        } else {
            echo "";
        }
    }
    ?>
        <li>所在省市: <?php 
    echo $ref->patient->province;
    ?>
 <?php 
    echo $ref->patient->city;
    ?>
Ejemplo n.º 8
0
 private function getSearchEndTime($request)
 {/*{{{*/
     $searchEndTime = $request->searchEndTime;
     if(XDateTime::isDate($searchEndTime))
     {
         $tmpTime2 = substr($searchEndTime, 0, 10);
         $searchEndTime = $tmpTime2." 23:59:59";
     }
     return $searchEndTime;
 }/*}}}*/
Ejemplo n.º 9
0
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;
    ?>
</li>
Ejemplo n.º 10
0
    }   

    return true;
}/*}}}*/

function submitForm(patientId)
{
    if (checkPatientForm(patientId))
    {
        $('#patientForm'+patientId).submit();
    }
}
</script>

<?php 
if (isset($patient->birthday) && $patient->birthday && XDateTime::isDate($patient->birthday)) {
    list($year, $month, $day) = explode('-', $patient->birthday);
}
?>
    <p id="modifyUser" class="clearfix h30 fb f14 pl10 pt10">
        修改患者资料<span id="s_<?php 
echo $patient->id;
?>
">&nbsp;</span>
        <?php 
if (isset($msg)) {
    ?>
        <span class="green" style="margin-left:350px" ><?php 
    echo $msg;
    ?>
</span>
Ejemplo n.º 11
0
		<a target="_blank" href="http://www.haodf.com/faculty/<?=Codec::getInstance()->encodeId($space->host->hospitalfaculty->id)?>.htm"><?=$space->host->hospitalfaculty->name?></a>|
        <a target="_blank" href="/spacebusinessrequirement/showdoctordetaillist?id=<?=$spaceBusinessRequirement->id?>" >查看详情</a></td>
  </tr>
  <tr>
    <td valign="middle" width="100px">性别:</td>
    <td valign="middle"><?=$order->patient->getSexTitle()?></td>
    <td valign="middle" width="100px">电话:</td>
    <td valign="middle">
    <a target="_blank" href="/?a=showsmsstat&c=message&type=1&tel=<?=$doctorMobileEncoded?>&orderid=<?=$order->id?>"><?=$doctorMobileFaked?></a> | 
    <?php if($isCallPanelLinkShown){ ?>
    <a target="_blank" href="http://<?=URL_PREFIX?>callcenter.haodf.com/operator/index?username=<?=$space->user->name?>">点击进入呼叫医生界面</a>
    <?php }?>
    </td>
  </tr>
  <tr>
  <?php if(XDateTime::isDate($order->patient->birthday)){?>
  	<td valign="middle" width="100px">出生日期:</td>
    <td valign="middle"><?=$order->patient->birthday ?></td>
  <?php }else{?>
    <td valign="middle" width="100px">年龄:</td>
    <td valign="middle"><?=$order->patient->age ?></td>
  <?php }?>  
    <td valign="middle" width="100px">加号要求:</td>
    <td valign="middle"><?=$spaceBusinessRequirement->getConfirmedValueOf('disease')?></td>
  </tr>
  <tr>
    <td valign="middle" width="100px">证件类型:</td>
    <td valign="middle"><?=Patient::$paperstypes[$order->patient->paperstype]?></td>
    <td valign="middle" width="100px">患者要求:</td>
    <td valign="middle"><?=($spaceBusinessRequirement->getConfirmedValueOfPatientFreshnessDef() == false)?SpaceBusinessRequirement::$patientFreshnessDef[SpaceBusinessRequirement::PATIENT_FRESH_ALL]:$spaceBusinessRequirement->getConfirmedValueOfPatientFreshnessDef()?></td>
  </tr>
Ejemplo n.º 12
0
 public function getBookingOrderByDoctorId($doctorId, $bookingOrderId)
 {/*{{{*/
     $paperstypes = array(0 => "身份证", 1=>"护照", 2=>"军人证", 3=>"台胞证", 4=>"港澳居民内地通行证");
     $sexs = array(0=>"女", 1=>"男");
     $goals = array(1=>"检查/诊断", 2=>"治疗/手术", 3=>"检查/诊断 治疗/手术", 4=>"复诊", 5=>"检查/诊断 复诊", 6=>"治疗/手术 复诊", 7=>"检查/诊断 治疗/手术 复诊");
     $doctor = DAL::get()->find('doctor', $doctorId);
     $res = $this->checkDoctorAndSpace($doctor);
     if($res)
     {
         $this->setErrorCode($res);
         return 0;
     }
     $bookingOrder = DAL::get()->find('bookingorder', $bookingOrderId);
     if ($bookingOrder->isNull())
     {
         $this->setErrorCode(158);
         return 0;
     }
     if($bookingOrder->space->host->id != $doctorId)
     {
         $this->setErrorCode(159);
         return 0;
     }
     $result = array();
     $result['id'] = $bookingOrder->id;
     $result['schedule'] = strtotime($bookingOrder->schedule);
     $result['address'] = $bookingOrder->address;
     $patient = $bookingOrder->patient;
     $result['patientName'] = $patient->name;
     $result['age'] = $patient->age == '' ? 0 : $patient->age;
     $result['birthday'] = XDateTime::isDate($patient->birthday) == false ? 0 : $patient->birthday;
     $result['sex'] = $sexs[$patient->sex];
     $result['idType'] = $paperstypes[$patient->paperstype];
     $result['idNumber'] = $patient->idcard;
     $result['province'] = $patient->province.$patient->city;
     if($patient->province == $patient->city)
     {
         $result['province'] = $patient->province;
     }
     $helper = BingLiDtoHelper::create($bookingOrder->getBingLiSource());
     $result['disease'] = $helper->getDiseasesStr();
     $result['treatmentStatus'] = $helper->getLastUserCategory();//是否得到过该医生的诊治1是,0否
     $result['purpose'] = $goals[$helper->getLastGoal()];//本次预约的目的 1诊察/诊断  2治疗/手术  3复诊
     $result['lastTreatmentTitle'] = $helper->getLastUserCategoryDescription();//上次在大夫处就诊时间,最后一次就诊医院 两种情况
     $result['lastTreatmentInfo'] = $helper->getLastHospitalOrLastTreatedTime();
     $result['recentTreatment'] = XString::getContentWithOutHtml($helper->getLastConditionDesc());
     $result['status'] = $this->getBookingOrderStatus4Doctor($bookingOrder);
     $result['canConfirm'] = 0;
     if (BookingOrder::STATUS_AUDIT == $bookingOrder->status && !$bookingOrder->isOverdue()) 
     {
         $result['canConfirm'] = 1;
     }
     $result['canDeny'] = 0;
     if (BookingOrder::STATUS_AUDIT == $bookingOrder->status)
     {
         $result['canDeny'] = 1;
     }
     $result['canFinish'] = 0;
     if (BookingOrder::STATUS_FINISHED == $bookingOrder->status) 
     {
         $result['canFinish'] = 1;
     }
     $this->content = $result;
 }/*}}}*/
Ejemplo n.º 13
0
 public function checkPatientNameIsExists($request, $response)
 {/*{{{*/
     $user = DAL::get()->find('user', $request->userid);
     $results = array();
     if ($user instanceof User)
     {
         $patient = $user->getPatientByName($request->patientName);
         if(false == $patient->isNull())
         {
             $results = array(
                 'id' => $patient->id, 
                 'patientIdCard' => $patient->idcard, 
                 'paperstype' => $patient->paperstype, 
                 'sex' => $patient->sex, 
                 'birthday' => ('--' != $patient->birthday) ? $patient->birthday : '',
                 'year' => XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getYear() : '', 
                 'month' => XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : '', 
                 'day' => XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getDay() : '', 
                 'province' => $patient->province,
                 'city' => $patient->city,
                 'relation' => $patient->relation, 
                 'patientMobile' => $patient->mobile, 
                 'phone' => $patient->phone, 
                 'backupPhone' => $patient->backupPhone
             ); 
         }
     }
     header("Content-Type: text/html; charset=UTF-8");
     echo $request->callback.'(';
     echo Json::encode($results);
     echo ');';
     return parent::DIRECT_OUTPUT;
 }/*}}}*/
    private function getBookingOrderPatientMessage($patient)
    {/*{{{*/
        $sexs = array(0=>"女", 1=>"男");
        $paperstypes = array(0 => "身份证", 1=>"护照", 2=>"军人证", 3=>"台胞证", 4=>"港澳居民内地通行证");

        $result['patientName'] = $patient->name;
        $result['age'] = $patient->age ? $patient->age.'岁' : $patient->getPatientAge();
        $result['birthday'] = XDateTime::isDate($patient->birthday) == false ? 0 : $patient->birthday;
        $result['sex'] = $sexs[$patient->sex];
        $result['idType'] = $paperstypes[$patient->paperstype];
        $result['idNumber'] = MainDataBucket::getPrivateIdCard4Mobile($patient);
        $result['province'] = $patient->province.$patient->city;
        $result['mobile'] = $patient->mobile;
        if($patient->province == $patient->city)
        {
            $result['province'] = $patient->province;
        }
        return $result;
    }/*}}}*/
Ejemplo n.º 15
0
 <div class="borderDiv detail-module" style="width:70%;margin-bottom:0px;margin-top:-20px;">
     <div class="detail-module_splitter">
         <div class="detail-module_title" >
             <h3>患者信息</h3>
         </div>
         <div class="detail-patientinfo">
                 <div class="detail-patientinfo_basic" id="standarDisease">
                    <span class="tb">姓名:</span> <?php 
echo $patient->name;
?>
                    <?php 
if (XDateTime::isDate($patient->birthday)) {
    ?>
                    <span class="tb">出生年月:</span> <?php 
    echo $patient->birthday;
    ?>
                    <?php 
}
?>
                    <span class="tb">性别:</span> <?php 
echo Patient::getPatientSex($patient->sex);
?>
                    <span class="tb">地区:</span><?php 
echo $patient->province;
?>
 <?php 
echo $patient->city;
?>
                    <span class="tb">&nbsp;&nbsp;&nbsp;<a href="/?c=patientfile&a=applylist&Status=&PatientId=<?php 
echo $patient->id;
?>
Ejemplo n.º 16
0
<?php

$canModify = true;
if ($patient->isNull() == false && XDateTime::isDate($patient->birthday)) {
    $canModify = false;
    list($year, $month, $day) = explode('-', $patient->birthday);
}
?>
 <div class="record_user_info checkPatients-msg">
        <p class="hint_word3">提示:网站承诺,您的个人信息及联系方式我们将为您保密,仅医患双方可见。</p>
        <p class="p20 pt20 pb10">
            <span class="red">*</span>
            <span class="fb ml5">称呼:</span>
            <?php 
if ($canModify) {
    ?>
                <input type="text" class="input_tel_user" defmsg="succ" check_function="check_patient_name" name="patient[name]" id="p_name" value="<?php 
    echo $patient->isNull() == false ? $patient->name : '电话咨询用户';
    ?>
"/>
            <?php 
} else {
    echo $patient->name;
}
?>
        </p>
        <p class="p20 pt20 pb10">
            <span class="fb">身份证件:</span>
            <select id="paperstype" name="paperstype" style="">
<?php 
foreach (Patient::$paperstypes as $key => $paperstype) {
 public function proposalDetail($request, $response)
 {
     if(false == $this->isBind($request, $response))
     {
         echo "没有绑定医生,不能查看";
         return false;
     }
     $proposalId = $request->proposalId;//'1818212628';//
     $proposal = DAL::get()->find("Proposal", $proposalId);
     DBC::requireFalse($proposal->isNull(), "没有这个方案");
     DBC::requireFalse($proposal->isCanceled(), "方案已被删除或不存在");
    // DBC::requireTrue($proposal->space->id == , "只有被绑定的sapce才能看");
     $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;
     }
     $response->age = $age;
     $response->proposal = $proposal;
     $response->description = '';
     $response->keywords = '';
     $response->proposalTitle = $title;
     $response->proposalDisease = $diseaseName;
 }
Ejemplo n.º 18
0
 private function doSavePatientInfo($request, $response)
 {
     /*{{{*/
     $signinId = $request->signinId;
     $patientSignin = DAL::get()->find('FollowupOwner', $signinId);
     $params = $request->vars;
     $birthDate = $request->birthday;
     if (XDateTime::isDate($birthDate)) {
         $params['birthday'] = XDateTime::valueOf($birthDate)->toString();
     }
     $patient = $patientSignin->patient;
     if ($patient->isNull() == false) {
         PatientClient::getInstance()->modifyInfo($patient->id, $params);
     }
 }
Ejemplo n.º 19
0
 public function ajaxGetTelCustomer($request, $response)
 {/*{{{*/
     $request->convertToGbk();
     $patientNames = array();
     $telCustomerForce = null;
     $telContactForce = null;
     $telCustomerForce = DAL::get()->find('telcustomer',$request->customerid);
     if($telCustomerForce && $telCustomerForce->isNull() == false)
     {
         if(XDateTime::isDate($telCustomerForce->birthday))
             $response->birthdaypart = explode('-',$telCustomerForce->birthday);
         if($telCustomerForce->customerLocation)
             $response->customerLocation = explode('-',$telCustomerForce->customerLocation);
         $telContactForceId = DAL::get()->find_id_by_customerid_and_tel('telcustomercontact',$telCustomerForce->id,$request->tel);
         if($telContactForceId)
         {
             $telContactForce = DAL::get()->find('telcustomercontact',$telContactForceId[0]);
         }
     }
     else
     {
         $patients[] = DAL::get()->find_all_by_mobile('patient',$request->tel); 
         if($request->secondtel != '')
         {
             $patients[] = DAL::get()->find_all_by_mobile('patient',$request->secondtel);
         }
         foreach($patients as $key=>$patientArray)
         {
             foreach($patientArray as $patient)
             {
                 if($patient->name != '')
                 {
                     $patientNames[$patient->name][] = $patient->birthday;
                     $patientNames[$patient->name][] = $patient->province."-".$patient->city;
                 }
             }
         }
     }
     $response->telLocation = $request->telLocation;
     $response->telContactForce = $telContactForce;
     $response->telCustomerForce = $telCustomerForce;
     $response->patientNames = $patientNames;
     $response->user = $this->curUser;
 }/*}}}*/
Ejemplo n.º 20
0
<?php 
if (false == ($firstThread instanceof Proposal))
{
    include(dirname(__FILE__).'/_patientinfo.php');
}
else
{ ?>
<h3 class="case_xq_title">服务申请</h3>
<div class="sick_info">
    <div class="sick_title">患者信息</div>
    <dl class="sick_info_con" style="width:60%">
        <dt><img src="http://i1.hdfimg.com/touch/images/case_img3.png" /></dt>
        <dd><span>患者:</span><font class="patient_name"><?=$userPrivateName?></font></dd>
        <dd><span>性别:</span><?=patient::getPatientSex($ref->patient->sex)?></dd>
        <dd><span>年龄:</span><?=XDateTime::isDate($ref->patient->birthday) ? $ref->patient->getPatientAge() : $ref->patient->age?></dd>
    </dl>
</div>
<h4 class="case_xq_list_title">病情资料</h4>
<div class="condition_data">
<?php 
$bingliSet = $firstThread->getBingLiSet(); 
$patient = $firstThread->patient;
include dirname(__FILE__).'/../../common_inc/'.'_binglidtos.php';
?>
</div>

<?php 
} ?>
<script type="text/javascript">
$(document).ready(function(){
    $(".post_content div").each(function(){
Ejemplo n.º 21
0
            <input type="text" id="patientIdCard" name="patient[idcard]" onchange="processPatientIdCard();" size="25" class="display_tip" defmsg="succ" check_function="check_patient_name">
            &nbsp;&nbsp;<span type="hidden" style="display:none" id="private" class='gray3'>(保密不会公开)</span>
<?php 
} else {
    echo Patient::$paperstypes[$patient->paperstype] . "&nbsp;&nbsp;<font class='fy f14 lh180 ml5'>" . $patient->idcard . "</font>&nbsp;&nbsp;<span class='gray3'>(保密不会公开)</span>";
}
?>
    </p>
    <p class="orange1 pl50 ml30">注:请确认患者姓名和身份证件号码真实正确,否则不能正常就诊,如填写错误,请选择“为其他人
    <br/>预约”后重新填写。儿童身份证号请查看户口本;暂未上户口儿童请填写父亲或母亲身份证件。
    </p>
    <div class="pt10 pb10">
        <font class="orange1 mr5">*</font><span class="fb">患者出生日期:</span>

<?php 
if ($patient->isNull() || false == XDateTime::isDate($patient->birthday)) {
    ?>
            <select name="dateyear" id="dateyear" onchange="changedate('dateyear','datemonth','dateday');"
                class="display_tip" defMSG="succ" check_function="check_dateyear">
                <option value="">请选择</option>
            </select> 年
            <td><select name="datemonth" id="datemonth" onchange="changedate('dateyear','datemonth','dateday');"
                class="display_tip" defMSG="succ" check_function="check_datemonth">
                <option value="">请选择</option>
            </select> 月
            <select name="dateday" id="dateday" class="display_tip" defMSG="succ" check_function="check_dateday">
                <option value="">请选择</option>
            </select> 日

            <script>            
            $(function(){