当前位置: 首页>>代码示例>>PHP>>正文


PHP Patient::getPatientSex方法代码示例

本文整理汇总了PHP中Patient::getPatientSex方法的典型用法代码示例。如果您正苦于以下问题:PHP Patient::getPatientSex方法的具体用法?PHP Patient::getPatientSex怎么用?PHP Patient::getPatientSex使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Patient的用法示例。


在下文中一共展示了Patient::getPatientSex方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ckDemographics

 /**
  * this method will always return true unless one of the conditions is met.
  * @param $rule
  * @return bool
  */
 private function ckDemographics($rule)
 {
     $age = $this->Patient->getPatientAge();
     // if age_start if not unlimited and patient age is less than age_start, return false
     if ($rule['age_start'] > 0 && $age['DMY']['years'] < $rule['age_start']) {
         return false;
     }
     // if age_end if not unlimited and patient age is grater than age_end, return false
     if ($rule['age_end'] > 0 && $age['DMY']['years'] > $rule['age_end']) {
         return false;
     }
     if ($rule['sex'] !== '' && $this->Patient->getPatientSex() != $rule['sex']) {
         return false;
     }
     return true;
 }
开发者ID:igez,项目名称:gaiaehr,代码行数:21,代码来源:DecisionSupport.php

示例2: addPatientLogInfo

 private function addPatientLogInfo($params, $patient)
 {
     /*{{{*/
     DBC::requireTrue($patient->isNull() == false, "患者不能为空");
     $content = '管理员' . $this->curInspector->realName . '修改患者信息: </br>';
     foreach ($params as $key => $value) {
         if (false == empty($value) && $patient->{$key} != $value) {
             /*{{{*/
             switch ($key) {
                 case $key == "name":
                     $keyName = "患者姓名";
                     break;
                 case $key == "sex":
                     $patient->sex = Patient::getPatientSex($patient->sex);
                     $value = Patient::getPatientSex($value);
                     $keyName = "性别";
                     break;
                 case $key == "paperstype":
                     $patient->paperstype = Patient::$paperstypes[$patient->paperstype];
                     $value = Patient::$paperstypes[$value];
                     $keyName = "身份证件";
                     break;
                 case $key == "idcard":
                     $keyName = "身份证件号";
                     break;
                 case $key == "province":
                     $keyName = "省";
                     break;
                 case $key == "city":
                     $keyName = "市";
                     break;
                 case $key == "birthday":
                     $keyName = "出生日期";
                     break;
                 case $key == "relation":
                     $relationDef = patient::relationDef();
                     $patient->{$key} = $relationDef[$patient->{$key}];
                     $value = $relationDef[$value];
                     $keyName = "与患者关系";
                     break;
                 case $key == "mobile":
                     $keyName = "手机";
                     break;
                 case $key == "phone":
                     $keyName = "备用电话1";
                     break;
                 case $key == "backupPhone":
                     $keyName = "备用电话2";
                     break;
             }
             $content .= "<font style='font-weight:bold;'>" . $keyName . '</font>  从  ' . $patient->{$key} . "  修改为  " . $value . "</br>";
         }
         /*}}}*/
     }
     return $content;
 }
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:56,代码来源:intentioncontroller.php

示例3: foreach

<head>
    <meta charset="UTF-8">
<title>我的好大夫</title>
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link href="http://i1.hdfimg.com/touch/css/base_t.8d7f622c.css" rel="stylesheet" type="text/css">
    <link href="http://i1.hdfimg.com/touch/css/wx.d09b7809.css" rel="stylesheet" type="text/css">
</head>
    <div class="wx_head_box">
        <div class="con">向<?=$space->name?>大夫报到</div>
    </div>
    <div class="m_checkuser">
    <!--提示开始-->
    <div class="m_checkuser_tips"><b>选择患者:</b><br>哪位患者向<?=$space->name?>大夫报到?</div>
    <!--提示结束-->
    <!--选择用户开始-->
    <ul class="m_checkuser_list" id="m_checkuser_list">
       <?php foreach($patients as $patient){ ?>
        <?php
            $url = "finishsignin?patientid=".$patient->id."&spaceid=".$space->id."&disease=".$disease;
        ?>
        <li class="clearfix" onclick="location.href='<?=$url?>'">
            <div class="name"><?=$patient->name?></div>
            <div class="sex"><?=Patient::getPatientSex($patient->sex)?></div>
            <div class="age"><?=$patient->getPatientAge()?></div>
        </li>
       <?php } ?>
    </ul>
    <a class="m_bluetips_right tu" href="showaddpatient?userid=<?=$userId?>&spaceid=<?=$space->id?>&patientName=<?=$patientName?>&disease=<?=$disease?>">+新增患者</a>
</div>
<?php include_once dirname(__file__).'/../_innerfooter.php' ?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:30,代码来源:checkpatient.php

示例4:

         <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;
?>
&from=user" target="_blank">(查看患者健康申请列表)</a></span>
                     <p class="pt10">
                        <span class="tb">标准疾病:</span> 
                         <?php 
foreach ($diseaseList as $disease) {
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:_patient.php

示例5: foreach

<?php foreach($patients as $patient) {
    if (is_array($patient))
    {
        $patientId = $patient['id'];
        $patientName = $patient['name'];
        $patientSex = Patient::getPatientSex($patient['sex']);
        $patientDef = Patient::relationDef();
        $patientRelation = $patientDef[$patient['relation']];
    }
    else
    {
        $patientId = $patient->id;
        $patientName = $patient->name;
        $patientSex = $patient->getSexRef();
        $patientRelation = $patient->getRelationString();
    }
?>
<div class="clearfix mb15">
    <div class="ch_checkbox">
        <input type="radio" name="checkbox" <?=$sessionPatientId == $patientId ? 'checked' : ''?> id="<?=$patientId?>" onclick="selectpatient('<?=$patientId?>')">
    </div>
    <label for="<?=$patientId?>" hidefocus="true">
    <div class="bg_w bd b_ra5 f17 lh160 ml40">            
        <ul class="yy_ul">
            <li>
                姓名:<span class="black"><?=$patientName?></span>
            </li>
            <li>
                性别:<span class="black"><?=$patientSex?></span>
            </li>
            <li>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:_patientlistcontent.php

示例6:

            <p class="line_x mr20 green4"><span class="m_title pl20 f20">患者信息</span></p>
            <div class="clearfix pl20 pt20 mb20 fs">
<?php 
    if ($ref->isVip()) {
        ?>
                    <p class="fl"><img src="http://i1.hdfimg.com/doctorzone/images/doc_at.png" alt="医助服务组" align="absmiddle"></p>
<?php 
    }
    ?>
                <ul class="fl pahis_info pl20">
                    <li><span class="fyhei fb">姓名:</span><?php 
    echo $ref->patient->name;
    ?>
</li>
                    <li><span class="fyhei fb">性别:</span><?php 
    echo Patient::getPatientSex($ref->patient->sex);
    ?>
</li>       
                    <li><span class="fyhei fb">年龄:</span>
<?php 
    if (XDateTime::isDate($ref->patient->birthday)) {
        echo $ref->patient->getPatientAge();
    } else {
        if ($ref->patient->age) {
            echo $ref->patient->age;
        } else {
            echo "";
        }
    }
    ?>
                    </li>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:patientcasehistorylist.php


注:本文中的Patient::getPatientSex方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。