<link rel="stylesheet" href="/thmz/css/bootstrap/css/bootstrap-select.css" xmlns="http://www.w3.org/1999/html"/>
<link rel="stylesheet" href="/thmz/css/bootstrap/css/daterangepicker.css"/>
<link rel="stylesheet" href="/thmz/css/iCheck/blue.css">
<link rel="stylesheet" href="/thmz/css/custom.min.css">
<link rel="stylesheet" href="/thmz/css/jquery.webui-popover.min.css">
<link rel="stylesheet" href="/thmz/zTree_v3/css/zTreeStyle/zTreeStyle.css"/>
<link rel="stylesheet" href="/thmz/css/registration.css">
<script src="/thmz/js/dependent/bootstrap-select.js"></script>
<script src="/thmz/js/dependent/daterangepicker.js"></script>
<script src="/thmz/js/dependent/icheck.js"></script>
<script src="/thmz/js/dependent/jquery.webui-popover.min.js"></script>
<script src="/thmz/js/dependent/jquery.smartWizard.js"></script>
<script src="/thmz/js/dependent/validator.js"></script>
<script src="/thmz/js/common/map-util.js"></script>
<script src="/thmz/zTree_v3/js/jquery.ztree.all.js"></script>
<script src="/thmz/js/mz/clinic.js"></script>
<title>就诊</title>
<style>
    .thmz_alert .alert::after {
        content: '';
        display: block;
        height: 0;
        width: 0;
        border-color: transparent transparent #CE5454 transparent;
        border-style: solid;
        border-width: 11px 7px;
        position: absolute;
        left: 23px;
        top: -23px;
    }

    .thmz_alert .alert {
        float: right;
        margin-right: 10px;
        margin-top: 12px;
    }

    .thmz_group_alert .alert {
        margin-top: 0px;
    }

    .input-group-own {
        margin-bottom: 0px;
    }

    .my_label {
        width: 65px;
        float: left;
        text-align: right;
        font-weight: 400;
        line-height: 34px;
    }

    .my_label_input {
        width: calc(100% - 65px);
    }

    .my_label_input input {
        border: none !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #ddd !important;
        height: 20px !important;
        color: #2e69eb !important;
        text-align: center;
        width: 40px;
        background-color: #EBEBE4;
    }

    .my_label_2 {
        width: 45px;
        float: left;
        text-align: right;
        font-weight: 400;
        line-height: 34px;
    }

    .my_label_input_2 {
        width: 85px;
    }

    /*鼠标悬停修改处方字体颜色*/
    div.rb_item div.form-group:hover {
        color: #2E69EB;
    }

    /*隐藏修改处方按钮*/
    div.rb_item i {
        visibility: hidden;
    }

    /*鼠标悬停显示修改处方按钮*/
    div.rb_item div.form-group:hover i {
        visibility: visible;
    }

    .hasCharge {
        width: 78px;
        height: 50px;
        position: absolute;
        top: 80px;
        right: 10px;
        z-index: 99;
    }

    .tagZdy {
        display: inline-block;
        padding: 6px 20px;
        font-size: 14px;
        margin-right: 10px;
        margin-left: -30px;
    }

    .tagZdy-back {
        color: #fff;
        background-color: #f95f55;
        margin-left: -10px;
    }

    .tagZdy-back-green {
        color: #fff;
        background-color: #24c17a;
        margin-left: -10px;
    }

    #box-arrow-left :hover {
        color: #2E69EB;
    }

    button.button_color:hover {
        border: 1px solid red;
        background-color: white;
        color: #2e69eb;
    }

    .el-select__tags {
        position: absolute;
        line-height: normal;
        white-space: normal;
        z-index: 1;
        top: 50%;
        transform: translateY(-50%);
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .el-tag--mainDiagnosis {
        background-color: #f95f55 !important;
        float: left;
        margin-left: 10px;
        height: 28px;
        line-height: 28px;
        padding: 0 10px;
        border-radius: 4px;
    }

    .el-tag--secondaryDiagnosis {
        color: #24c17a !important;
        background-color: #e9f9f1 !important;
        float: left;
        margin-left: 10px;
        height: 28px;
        line-height: 28px;
        padding: 0 10px;
        border-radius: 4px;
    }

    .el-icon-close {
        border-radius: 50%;
        text-align: center;
        position: relative;
        cursor: pointer;
        font-size: 12px;
        height: 16px;
        width: 16px;
        line-height: 16px;
        right: -7px;
        top: 0;
        color: #fff;
        float: left;
        margin-left: 10px;
        height: 16px;
        width: 16px;
        margin-right: 5px;
        cursor: pointer;
    }

    .el-select__tags-text {
        float: left;
        height: 28px;
        line-height: 28px;
    }
</style>
<div class="row" style="height: calc(100% - 60px);overflow-y: auto;">
    <div style="margin-top: 10px;width: 310px;float: left;height: calc(100% - 10px);">
        <!--<div class="title">-->
        <!--<div>就诊</div>-->
        <!--</div>-->
        <form class="form-horizontal form-label-left mz-fixed-form" novalidate id="regi_form" autocomplete="off"
              style="height: 100%;overflow-y: auto;">
            <div class="item form-group">
                <div class="col-md-6 col-sm-6 col-xs-12">
                    <span style="cursor: default;margin-bottom: 10px !important;color: #2E69EB;">
                        今日就诊
                    </span>
                </div>
                <div class="col-md-6 col-sm-6 col-xs-12">
                </div>
            </div>
            <div class="item form-group thmz_alert">
                <div class="col-md-12 col-sm-12 col-xs-12 item">
                    <label style="width: 40px;float: left;text-align: right;font-weight: 400;line-height: 34px;">日期：</label>
                    <div id="reportrange" class="form-control pull-left"
                         style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc;width: calc(100% - 40px);">
                        <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
                        <span>December 30, 2014 - January 28, 2015</span> <b class="caret"></b>
                    </div>
                </div>
            </div>
            <div class="item form-group thmz_alert">
                <div class="col-md-12 col-sm-12 col-xs-12 item">

                    <label style="width: 40px;float: left;text-align: right;font-weight: 400;line-height: 34px;">姓名：</label>
                    <input id="userName" class="form-control col-md-7 col-xs-12"
                           placeholder="姓名/门诊ID" type="text" data-placement="bottom-right"
                           style="width: calc(100% - 80px);">
                    <button type="button"
                            style="margin-bottom: 10px !important;float: right;margin-right: -1px;width: 34px"
                            class="btn btn-primary" onclick="refreshClinic()">
                        <i class="fa fa-search"></i>
                    </button>
                </div>
            </div>
            <div class="item form-group" style="margin-top: 20px;">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <button type="button" class="btn btn-default" id="confirmFee"
                            style="width: calc(100% - 20px);color: rgb(46, 105, 235);border-color: rgb(46, 105, 235);"
                            onclick="rapidAcceptsModal()">
                        <span>快速接诊</span>
                    </button>
                </div>
            </div>
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel_mine" style="background: #EBEBE4;">
                    <div class="x_title">
                        <!--<h2>候诊患者 <small>2</small></h2>-->
                        <h2>候诊患者 (</h2>
                        <h2 id="unClinicNum">0</h2>
                        <h2>)</h2>
                        <ul class="nav navbar-right panel_toolbox">
                            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <table id="tb_table_un_clinic"></table>
                    </div>
                </div>
            </div>
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div  class="x_panel_mine" style="background: #EBEBE4;">
                    <div class="x_title">
                        <!--<h2>候诊患者 <small>2</small></h2>-->
                        <h2>接诊中 (</h2>
                        <h2 id="inClinicNum">0</h2>
                        <h2>)</h2>
                        <ul class="nav navbar-right panel_toolbox">
                            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <table id="tb_table_in_clinic"></table>
                    </div>
                </div>
            </div>
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div  class="x_panel_mine" style="background: #EBEBE4;">
                    <div class="x_title">
                        <!--<h2>候诊患者 <small>2</small></h2>-->
                        <h2>已诊患者 (</h2>
                        <h2 id="ClinicNum">0</h2>
                        <h2>)</h2>
                        <ul class="nav navbar-right panel_toolbox">
                            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">
                        <table id="tb_table_clinic"></table>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div style="margin-top: 10px;border-left: 1px solid #ddd;border-right: 1px solid #ddd;width: calc(100% - 360px);float: left;height: calc(100% - 10px);">
        <div style="height: calc(100% - 60px);overflow-y: auto;border-bottom: 1px solid #ddd;">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="item form-group">
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <p>
                            <input type="radio" class="flat" name="firstOrNot" id="first" value="0" checked=""
                                   required/>
                            初诊&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <input type="radio" class="flat" name="firstOrNot" id="not" value="1"/>&nbsp;复诊
                        </p>
                    </div>
                    <div class="col-md-4 col-sm-4 col-xs-12" style="text-align: right;">
                        <a style="cursor: pointer;font-size: 14px;color: #2e69eb!important;" onclick="clearWorkSpace()">&nbsp;&nbsp;清空工作台</i></a>
                        <a style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"
                           onclick="configWorkspaceModal()">&nbsp;&nbsp;配置</i></a>
                    </div>
                </div>
            </div>
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div style="background-color: #E0E0D9;height: 30px;line-height: 30px;">
                    <div class="col-md-8 col-sm-8 col-xs-12">
                        <span>姓名:</span> <label><span id="patientName"></span></label>&nbsp;&nbsp;
                        <span>年龄: </span> <label><span id="patientAge"></span></label>&nbsp;&nbsp;
                        <span>性别: </span> <label><span id="patientGender"></span></label>&nbsp;&nbsp;
                        <label style="font-weight:normal" id="patientPhoneLabel" hidden><span>手机号: </span> <label><span
                                id="patientPhone"></span></label>&nbsp;&nbsp;</label>
                        <span>病人性质: </span> <label><span id="patientResponseType"></span></label>
                        <!--当前接诊病人id-->
                        <input id="patientId" type="hidden"/>
                        <!--当前接诊病人分诊流水号-->
                        <input type="hidden" id="mzfzSerialNoInClick"/>
                    </div>
                    <div class="col-md-4 col-sm-4 col-xs-12" style="text-align: right;">
                        <a style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"
                           onclick="editUserModal()"><i
                                class="fa fa-edit">&nbsp;&nbsp;编辑</i></a>
                        <a onclick="clearUser()"
                           style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"><i
                                class="fa fa-trash">&nbsp;&nbsp;清空</i></a>
                    </div>
                </div>
            </div>
            <div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 10px;">
                <form class="form-horizontal form-label-left mz-fixed-form" novalidate autocomplete="off">
                    <div class="item form-group" id="symptomFlag">
                        <label class="my_label">主诉：</label>
                        <div class="form-group has-feedback" style="float: right;width: calc(100% - 65px);">
                            <input type="text" class="form-control has-feedback-left" id="symptom"
                                   placeholder="请输入" style="padding-left: 10px;">
                            <span class="fa fa-search form-control-feedback right" aria-hidden="true"
                                  style="right: 0px;"></span>
                        </div>
                    </div>
                    <div class="item form-group" id="emrHpiFlag">
                        <label class="my_label">现病史：</label>
                        <!--   <input id="emrHpi" class="form-control my_label_input"
                                  placeholder="请输入" type="text" data-placement="bottom-right">-->
                        <textarea id="emrHpi" class="form-control my_label_input" placeholder="请输入"></textarea>
                    </div>
                    <div class="item form-group" id="emrPsFlag">
                        <label class="my_label">既往史：</label>
                        <input id="emrPs" class="form-control my_label_input"
                               placeholder="请输入" type="text" data-placement="bottom-right">
                    </div>
                    <div class="item form-group" id="personalHistoryFlag">
                        <label class="my_label">个人史：</label>
                        <input id="personalHistory" class="form-control my_label_input"
                               placeholder="请输入" type="text" data-placement="bottom-right">
                    </div>
                    <div class="item form-group" id="familyHistoryFlag">
                        <label class="my_label">家族史：</label>
                        <input id="familyHistory" class="form-control my_label_input"
                               placeholder="请输入" type="text" data-placement="bottom-right">
                    </div>
                    <div class="item form-group" id="obstericalHistoryFlag">
                        <label class="my_label">婚育史：</label>
                        <input id="obstericalHistory" class="form-control my_label_input"
                               placeholder="请输入" type="text" data-placement="bottom-right">
                    </div>
                    <div class="item form-group">
                        <label class="my_label">体格检查：</label>
                        <div class="my_label_input" style="height: 34px;line-height: 34px;">
                            <div style="float: left;">
                                体重<input id="weight"/>kg&nbsp;&nbsp;
                                体温<input id="temperature"/>℃&nbsp;&nbsp;
                                脉搏<input id="sphygmus"/>次/分&nbsp;&nbsp;
                                呼吸<input id="breathe"/>次/分&nbsp;&nbsp;
                                血压<input id="pressure_high"/>&nbsp;/
                                <input id="pressure_floor"/>mmhg
                            </div>
                            <div id="pressureLeftFlag" style="float: left;margin-left: 5px;"> 血压（左）<input
                                    id="pressure_high_left"/>&nbsp;/
                                <input id="pressure_floor_left"/>mmhg
                            </div>

                        </div>
                    </div>
                    <!--<div class="item form-group">-->
                    <!--<label class="my_label"></label>-->
                    <!--<div class="form-group has-feedback" style="float: right;width: calc(100% - 65px);">-->
                    <!--<input type="text" class="form-control has-feedback-left" id="healthCheckUp" style="display: block">-->
                    <!--</div>-->
                    <!--</div>-->
                    <div class="item form-group">
                        <label class="my_label">其他检查：</label>
                        <input id="otherCheck" class="form-control my_label_input"
                               placeholder="请输入" type="text" data-placement="bottom-right">
                    </div>
                    <div class="item form-group">
                        <label class="my_label">诊断：</label>
                        <div class="form-group has-feedback" style="float: right;width: calc(100% - 65px);">
                            <div class="el-select__tags"><span id="diagnoseTags"></span></div>
                            <input type="text" class="form-control has-feedback-left" id="diagnose"
                                   placeholder="请输入" style="padding-left: 10px;" readonly>
                            <input id="diagnoseValue" type="hidden"/>
                            <span class="fa fa-search form-control-feedback right" aria-hidden="true"
                                  style="right: 0px;"></span>
                        </div>
                    </div>
                    <div class="item form-group" id="tentativeDiagnosisFlag">
                        <label class="my_label">初步诊断：</label>
                        <textarea id="tentativeDiagnosis" class="form-control my_label_input" placeholder="请输入"></textarea>
                    </div>
                    <div class="item form-group">
                        <div class="btn-group" id="bill_item_group" style="float: left">
                            <button class="btn btn-sm btn-primary" type="button" onclick="billItemButtonChange(this,0)">
                                &nbsp;&nbsp;西成药&nbsp;&nbsp;
                            </button>
                            <button class="btn btn-sm btn-default" type="button" onclick="billItemButtonChange(this,1)">
                                &nbsp;&nbsp;中草药&nbsp;&nbsp;
                            </button>
                            <button class="btn btn-sm btn-default" type="button" onclick="billItemButtonChange(this,2)">
                                &nbsp;&nbsp;医技与诊疗&nbsp;&nbsp;
                            </button>
                            <!--<button class="btn btn-sm btn-default" type="button" onclick="billItemButtonChange(this)">&nbsp;&nbsp;麻、精一&nbsp;&nbsp;-->
                            <!--</button>-->
                            <!--<button class="btn btn-sm btn-default" type="button" onclick="billItemButtonChange(this)">&nbsp;&nbsp;&nbsp;精二&nbsp;&nbsp;&nbsp;&nbsp;-->
                            <!--</button>-->
                        </div>
                        <div style="float: left;margin-left: 30px;">
                            <button type="button" class="btn btn-primary"
                                    style="height: 30px;line-height: 15px;" id="treeButton"><i
                                    class="fa fa-search">&nbsp;&nbsp;</i>查看帮助字典
                            </button>
                        </div>
                        <div style="float: right;">
                            <button type="button" class="btn btn-primary" id="saveapidAccepts"
                                    style="height: 30px;line-height: 15px;"><i
                                    class="fa fa-file-word-o">&nbsp;&nbsp;</i>存为范本
                            </button>
                        </div>
                    </div>
                    <div class="item form-group">
                        <!--当前选中药品规格-->
                        <input id="current_serial" type="hidden"/>
                        <!-- 当前选中药品编码-->
                        <input id="current_code" type="hidden"/>
                        <!-- 当前选中药品是否是修改状态 true 修改 false 新增-->
                        <input id="update_flag" type="hidden"/>
                        <!-- 当前中药的药品类型-->
                        <input id="current_zyClassType" type="hidden"/>
                        <!-- 当前药房编码-->
                        <input id="current_groupNo" type="hidden"/>
                        <div style="margin-top: 5px;width: 386px;float: left;" class="thmz_alert" id="rp_form0">
                            <form class="form-horizontal form-label-left mz-fixed-form" novalidate autocomplete="off">
                                <div class="item form-group">
                                    <div style="width: 130px;float: left;">
                                        <label class="my_label_2">组号：</label>
                                        <div style="width: 85px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    title="请选择" onchange="groupIdChange()"
                                                    id="groupId">
                                            </select>
                                        </div>
                                    </div>
                                    <div style="width: 256px;float: left;">
                                        <label class="my_label">药品<span
                                                class="required">*</span>：</label>
                                        <div class="form-group has-feedback" style="float: right;width: 190px;">
                                            <input type="text" class="form-control has-feedback-left"
                                                   id="western_medicine_name"
                                                   placeholder="请输入" style="padding-left: 10px;width: 95%"
                                                   required="required" onKeyUp="loadYpList(0)">
                                            <span class="fa fa-search form-control-feedback right"
                                                  aria-hidden="true"></span>
                                        </div>
                                    </div>
                                </div>
                                <div class="item form-group">
                                    <div style="width: 130px;float: left;">
                                        <label class="my_label_2">用法：</label>
                                        <div style="width: 85px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    title="请选择" data-live-search="true"
                                                    id="supplyType">
                                            </select>
                                        </div>
                                    </div>
                                    <div style="width: 256px;float: left;">
                                        <label class="my_label">剂量：</label>
                                        <div style="float: left;width: 85px"><input type="text"
                                                                                    class="form-control my_label_input_2"
                                                                                    id="drugWin" onchange="calculate()">
                                            <!--最小剂量-->
                                            <input type="hidden" id="drugWinDb"/>
                                            <!--包装数量-->
                                            <input type="hidden" id="packSize"/>
                                        </div>
                                        <div style="width: 85px;float: left;margin-left: 13px;">
                                            <select class="form-control selectpicker show-tick"
                                                    title="请选择" onchange="drugWinUnitChange()"
                                                    id="drugWinUnit">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="item form-group">
                                    <div style="width: 130px;float: left;">
                                        <label class="my_label_2">天数<span
                                                class="required">*</span>：</label>
                                        <div style="width: 85px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    title="请选择" onchange="calculate()"
                                                    id="dayNum">
                                            </select>
                                        </div>
                                    </div>
                                    <div style="width: 256px;float: left;">
                                        <label class="my_label">频次：</label>
                                        <div style="width: 85px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    title="请选择" data-live-search="true" onchange="calculate()"
                                                    id="orderFrequency">
                                            </select>
                                        </div>
                                        <div class="checkbox hide" style="margin-left: 15px;width: 55px;float: left;">
                                            <label style="padding-left: 0px;">
                                                <input type="checkbox" class="flat" id="tryFlag">&nbsp;&nbsp;皮试
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="item form-group">
                                    <div style="width: 130px;float: left;">
                                        <label class="my_label_2">总量：</label>
                                        <input type="text" class="form-control my_label_input_2" id="gross" onkeyup ="calculateSimple()"
                                               style="padding-left: 10px;" readonly>
                                    </div>
                                    <div style="width: 256px;float: left;">
                                        <label class="my_label">单位：</label>
                                        <div style="width: 85px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    title="请选择"
                                                    id="packUnit">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="item form-group">
                                    <div style="width: 130px;float: left;">
                                        <label class="my_label_2">单价：</label>
                                        <input type="text" class="form-control my_label_input_2" id="packRetprice"
                                               style="padding-left: 10px;" readonly>
                                    </div>
                                    <div style="width: 256px;float: left;">
                                        <label class="my_label">金额：</label>
                                        <input type="text" class="form-control my_label_input_2" id="totalRetprice"
                                               style="padding-left: 10px;" readonly>
                                    </div>
                                </div>
                                <div class="item form-group">
                                    <div style="width: 100%">
                                        <label class="my_label_2">医嘱：</label>
                                        <div style="width: 340px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    id="medicalAdvice" title="请选择">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div style="width: 100%;height: 22px;line-height: 22px;">
                                    <div style="float: left;display: inline-block;"><a
                                            onclick="clearWesternMedicine(true)"
                                            style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"><i
                                            class="fa fa-trash">&nbsp;&nbsp;清空</i></a></div>

                                    <div style="float: right;display: inline-block;"><a style="cursor: pointer;font-size: 14px;color: #333333;"  onclick="saveMedicine(0)">&nbsp;&nbsp;保存到右侧<i
                                            class="fa fa-long-arrow-right"
                                            style="font-size: 20px;vertical-align: middle;width: 30px;height: 20px;text-align: center;background-color: #337AB7;color: white;margin-left: 10px"></i></a>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div style="margin-top: 5px;width: 386px;float: left;" class="thmz_alert hide" id="rp_form1">
                            <form class="form-horizontal form-label-left mz-fixed-form" novalidate autocomplete="off">
                                <div class="item form-group">
                                    <div style="width: 130px;float: left;">
                                        <label class="my_label_2">类型：</label>
                                        <div style="width: 85px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    id="zyClassType" onchange="clearChineseMedicine()">
                                            </select>
                                        </div>
                                    </div>
                                    <div style="width: 256px;float: left;">
                                        <label class="my_label_2">药品<span
                                                class="required">*</span>：</label>
                                        <div class="form-group has-feedback" style="float: right;width: 210px;">
                                            <input type="text" class="form-control has-feedback-left"
                                                   id="chinese_medicine_name"
                                                   placeholder="请输入" style="padding-left: 10px;width: 99%"
                                                   required="required" onkeyup="loadYpList(1)">
                                            <span class="fa fa-search form-control-feedback right"
                                                  aria-hidden="true"></span>
                                        </div>
                                    </div>
                                </div>
                                <div class="item form-group">
                                    <div style="width: 130px;float: left;">
                                        <label class="my_label_2">单价：</label>
                                        <input type="text" class="form-control my_label_input_2" id="zy_packRetprice"
                                               style="padding-left: 10px;" readonly="">
                                    </div>
                                    <div style="width: 256px;float: left;">
                                        <label class="my_label_2">剂量：</label>
                                        <div style="float: left;width: 160px"><input type="text"
                                                                                     class="form-control"
                                                                                     id="zy_drugWin" onchange="">
                                        </div>
                                        <div style="width: 38px;float: left;margin-left: 13px;">
                                            <span style="line-height: 30px;font-size: 20px;">g</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="item form-group">
                                    <div style="width: 100%">
                                        <label class="my_label_2">医嘱：</label>
                                        <div style="width: 340px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    id="zyInstruction" title="请选择">
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div style="width: 100%;height: 22px;line-height: 22px;">
                                    <div style="float: left;display: inline-block;"><a id="clearRegistration8"
                                                                                       onclick="clearChineseMedicine()"
                                                                                       style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"><i
                                            class="fa fa-trash">&nbsp;&nbsp;清空</i></a></div>

                                    <div style="float: right;display: inline-block;"><a id="clearRegistration9"
                                                                                        style="cursor: pointer;font-size: 14px;color: #333333;"
                                                                                        onclick="saveMedicine(1)">&nbsp;&nbsp;保存到右侧<i
                                            class="fa fa-long-arrow-right"
                                            style="font-size: 20px;vertical-align: middle;width: 30px;height: 20px;text-align: center;background-color: #337AB7;color: white;margin-left: 10px"></i></a>
                                    </div>

                                </div>
                            </form>
                        </div>
                        <div style="margin-top: 5px;width: 386px;float: left;" class="thmz_alert hide" id="rp_form2">
                            <form class="form-horizontal form-label-left mz-fixed-form" novalidate autocomplete="off">
                                <div class="item form-group">
                                    <div style="width: 386px;float: left;">
                                        <label class="my_label_2">项目<span
                                                class="required">*</span>：</label>
                                        <div class="form-group has-feedback" style="float: right;width: 340px;">
                                            <input type="text" class="form-control has-feedback-left" id="jcJyItem"
                                                   placeholder="请输入" style="padding-left: 10px;width: 99%"
                                                   onKeyUp="loadjcJyItemList()"
                                                   required="required">
                                            <span class="fa fa-search form-control-feedback right"
                                                  aria-hidden="true"></span>
                                        </div>
                                    </div>
                                </div>
                                <div class="item form-group">
                                    <div style="width: 130px;float: left;">
                                        <label class="my_label_2">单价：</label>
                                        <input type="text" class="form-control my_label_input_2" id="jcjyItemPrice"
                                               style="padding-left: 10px;" readonly>
                                    </div>
                                    <div style="width: 256px;float: left;" class="hide" id="chargeUnitDiv">
                                        <label class="my_label">描述<span
                                                class="required">*</span>：</label>
                                        <input type="text" class="form-control my_label_input_2" id="chargeUnit"
                                               style="padding-left: 10px;" required="required">
                                    </div>
                                    <div style="width: 256px;float: left;" class="hide" id="jyZdSampleDiv">
                                        <label class="my_label">检验物<span
                                                class="required">*</span>：</label>
                                        <div style="width: 188px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    id="jyZdSample">
                                            </select>
                                        </div>
                                    </div>
                                    <div style="width: 256px;float: left;" class="hide" id="yshPartDiv">
                                        <label class="my_label" style="width: 85px">检查部位</label>
                                        <div style="width: 168px;float: left;">
                                            <select class="form-control selectpicker show-tick"
                                                    id="yshPart">
                                            </select>
                                        </div>
                                    </div>
                                    <input type="hidden" id="jcJyZltype"/>
                                </div>
                                <!--<div class="item form-group">-->
                                <!--<div style="width: 100%">-->
                                <!--<label class="my_label_2">内涵：</label>-->
                                <!--<input type="text" class="form-control " id="symptom130"-->
                                <!--style="padding-left: 10px;width: 340px;" placeholder="请输入">-->
                                <!--</div>-->
                                <!--</div>-->
                                <div class="item form-group">
                                    <div style="width: 100%">
                                        <label class="my_label_2">备注：</label>
                                        <input type="text" class="form-control " id="remark"
                                               style="padding-left: 10px;width: 340px;" placeholder="请输入">
                                    </div>
                                </div>
                                <div style="width: 100%;height: 22px;line-height: 22px;">
                                    <div style="float: left;display: inline-block;"><a onclick="clearJyJcItem()"
                                                                                       style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"><i
                                            class="fa fa-trash">&nbsp;&nbsp;清空</i></a>
                                        <a style="cursor: pointer;font-size: 14px;color: #2e69eb!important;margin-left: 20px;"
                                           onclick="getJcJyItemChargeByCode(null)" id="jcJyItemChargeDetail"
                                           class="hide"><i
                                                class="fa fa-eye">&nbsp;&nbsp;查看明细</i></a>
                                    </div>

                                    <div style="float: right;display: inline-block;">
                                        <a id="clearRegistration5"
                                           style="cursor: pointer;font-size: 14px;color: #333333;"
                                           onclick="saveJyJcItem(true)">&nbsp;&nbsp;保存到右侧<i
                                                class="fa fa-long-arrow-right"
                                                style="font-size: 20px;vertical-align: middle;width: 30px;height: 20px;text-align: center;background-color: #337AB7;color: white;margin-left: 10px"></i></a>
                                    </div>

                                </div>
                            </form>
                        </div>
                        <div style="width: calc(100% - 396px);float: right;border-left: 1px solid #ddd;padding-left: 10px;min-height: 360px;">
                            <!-- 选项卡菜单-->
                            <ul id="xyTab" class="nav nav-tabs" role="tablist">
                            </ul>
                            <!-- 选项卡面板 -->
                            <div id="xyTabContent" class="tab-content"
                                 style="height: calc(100% - 75px);min-height: 285px;">
                            </div>
                            <!-- 选项卡菜单-->
                            <ul id="zyTab" class="nav nav-tabs hide" role="tablist">
                            </ul>
                            <!-- 选项卡面板 -->
                            <div id="zyTabContent" class="tab-content hide"
                                 style="height: calc(100% - 75px);min-height: 285px;">
                            </div>
                            <!-- 选项卡菜单-->
                            <ul id="zlTab" class="nav nav-tabs hide" role="tablist">
                            </ul>
                            <!-- 选项卡面板 -->
                            <div id="zlTabContent" class="tab-content hide"
                                 style="height: calc(100% - 75px);min-height: 285px;">
                            </div>
                        </div>
                    </div>
                    <div class="item form-group" style="margin-top: 20px;">
                        <label class="my_label">健康教育：</label>
                        <!--   <input id="emrHpi" class="form-control my_label_input"
                                  placeholder="请输入" type="text" data-placement="bottom-right">-->
                        <textarea id="healthEducation" class="form-control my_label_input" placeholder="请输入"></textarea>
                    </div>
                </form>
            </div>
        </div>
        <div style="height: 60px;line-height: 60px;">
            <div style="float: left;padding-left: 10px;font-weight: 700;font-size: 20px;">
                合计：<span style="color: #2E69EB;"><span id="totalAmount">0.00</span>元</span>
            </div>
            <div style="float: right;">
                <button type="button" class="btn btn-primary"
                        style="height: 30px;line-height: 15px;" onclick="savePrescription()"><i
                        class="fa fa-save">&nbsp;&nbsp;</i>保存处方
                </button>
            </div>
        </div>
    </div>
    <div style="margin-top: 10px;width: 40px;float: left;height: calc(100% - 10px);">
        <a onclick="contentMethod()" style="cursor: pointer;" id="box-arrow-left" data-container="body"
           data-toggle="popover" data-placement="left">
            <svg class="bi" width="1em" height="1em" fill="currentColor"
                 style="width: 32px;height: 32px;margin-left: 10px!important;vertical-align: -.15em;margin-right: 10px!important;">
                <use xlink:href="/thmz/css/bootstrap/bootstrap-icons-1.5.0/bootstrap-icons.svg#arrow-bar-left"></use>
            </svg>
        </a>
    </div>

</div>


<!--快速接诊弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="rapidAcceptsModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 680px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" onclick="clearRapidAccepts()"><span
                        aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">快速接诊</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate id="rapidAcceptsForm" autocomplete="off">
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="rapidAcceptsUserName">姓名
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="rapidAcceptsUserName" class="form-control col-md-7 col-xs-12"
                                       placeholder="请输入" type="text">
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12"
                                   for="rapidAcceptsUserCode">门诊ID</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="rapidAcceptsUserCode" class="form-control col-md-7 col-xs-12" type="text"
                                       readonly="readonly">
                                <!-- 隐藏的病人id，当次域有值时，说明是已经查询出来的数据-->
                                <input id="patientIdDb" type="hidden"/>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="rapidAcceptsUserCardNo">卡号
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group demo2 input-group-own">
                                    <input id="rapidAcceptsUserCardNo" class="form-control col-md-7 col-xs-12"
                                           placeholder="请输入" type="text">
                                    <span class="input-group-addon"><a href="#"><i
                                            class="fa fa-credit-card"></i></a></span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="rapidAcceptsUserGender">性别
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick"
                                        id="rapidAcceptsUserGender" disabled="disabled">
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="rapidAcceptsUserPhoneNum">手机号码
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="rapidAcceptsUserPhoneNum" class="form-control col-md-7 col-xs-12"
                                       placeholder="请输入" type="text" readonly="readonly">
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="rapidAcceptsUserIdCard">身份证
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group demo2 input-group-own">
                                    <input id="rapidAcceptsUserIdCard" class="form-control col-md-7 col-xs-12"
                                           placeholder="请输入" type="text" readonly="readonly">
                                    <span class="input-group-addon"><a href="#"><i
                                            class="fa fa-newspaper-o"></i></a></span>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <div style="float: left;display: inline-block;"><a id="clearRegistration1"
                                                                   style="cursor: pointer;font-size: 14px;color: #2e69eb!important;"
                                                                   onclick="clearRapidAccepts()"><i
                        class="fa fa-trash">&nbsp;&nbsp;清空</i></a></div>
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="clearRapidAccepts()">取消
                </button>
                <input type="hidden" id="mzfzSerialNo"/>
                <button type="button" class="btn btn-primary" id="clinicalReception">接诊</button>
            </div>
        </div>
    </div>
</div>
<!--快速接诊弹窗结尾-->


<!--修改用户信息弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="editUserModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 680px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">患者档案【修改】</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate id="editUserForm" autocomplete="off">
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <button type="button" style="cursor: default;margin-bottom: 10px !important;"
                                    class="btn btn-primary">
                                基本信息
                            </button>
                        </div>
                    </div>

                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserCode">编码</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserCode" class="form-control col-md-7 col-xs-12" type="text" readonly>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserName">姓名 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserName" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,16"
                                       placeholder="请输入" required="required" type="text">
                            </div>
                        </div>
                    </div>

                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserAge">年龄 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group input-group-own">
                                    <input id="editUserAge" type="number" class="form-control"
                                           data-validate-minmax="0,200"
                                           placeholder="请输入" required="required">
                                    <div class="input-group-btn">
                                        <button type="button" class="btn btn-default dropdown-toggle"
                                                data-toggle="dropdown"
                                                aria-expanded="false" style="margin-right: 0px;">岁 <span
                                                class="caret"></span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserGender">性别 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick" required="required"
                                        id="editUserGender">
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserBirthDayGroup">出生日期
                                <span
                                        class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class='input-group date input-group-own' id='editUserBirthDayGroup'>
                                    <input type='text' class="form-control" id="editUserBirthDay"/>
                                    <span class="input-group-addon">
                            <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserCardNo">卡号 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group demo2 input-group-own">
                                    <input id="editUserCardNo" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="1,8"
                                           placeholder="请输入" required="required" type="text">
                                    <span class="input-group-addon"><a href="#"><i
                                            class="fa fa-credit-card"></i></a></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserPhoneNum">手机号码 <span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserPhoneNum" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="11,11"
                                       placeholder="请输入" required="required" type="text">
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserPatientsNature">病人性质
                                <span
                                        class="required">*</span>
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick" required="required"
                                        id="editUserPatientsNature">
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserIdCard">身份证
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <div class="input-group demo2 input-group-own">
                                    <input id="editUserIdCard" class="form-control col-md-7 col-xs-12"
                                           data-validate-length-range="18,18"
                                           placeholder="请输入" type="text">
                                    <span class="input-group-addon"><a href="#"><i
                                            class="fa fa-newspaper-o"></i></a></span>
                                </div>
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserAddress">地址</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserAddress" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,10"
                                       placeholder="请输入" required="required" type="text">
                            </div>
                        </div>
                    </div>

                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <button type="button" style="cursor: default;margin-bottom: 10px !important;"
                                    class="btn btn-primary">
                                紧急联系人
                            </button>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="editUserContact">联系人</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserContact" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,10"
                                       placeholder="请输入" type="text">
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12"
                                   for="editUserContactPhone">联系电话</label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="editUserContactPhone" class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="2,10"
                                       placeholder="请输入" type="text">
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="saveEditUser">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--修改用户信息弹窗结尾-->


<!--就诊【详情】信息弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="visitingDetailModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 680px;height: 600px;overflow-y: auto;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">就诊【详情】</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate id="visitingDetailForm" autocomplete="off">
                    <div class="item form-group thmz_alert">
                        <div class="col-md-12 col-sm-12 col-xs-12 item"
                             style="font-size: 16px;border: 1px solid #ddd;    margin-top: 0px !important;padding: 10px 0px 10px 20px !important;">
                            患者: <span id="visitingDetailPatientName"></span> (<span
                                id="visitingDetailPatientAge"></span>岁) <span id="visitingDetailPatientGender"
                                                                                style="margin-right: 15px;"></span>就诊时间:<span
                                id="visitingDetailDate" style="margin-right: 15px;"></span>科室医生:
                            <span id="visitingDetailDoctor"></span> <span id="visitingDetailDept"></span>
                        </div>
                    </div>

                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item">
                            <div id="visitFlag"
                                 style="margin-left: -10px;width: 80px; height: 30px; background: #337AB7; border-radius: 15px; line-height: 30px; text-align: center; color: rgb(255, 255, 255); margin-bottom: 10px;">
                            </div>
                        </div>
                        <div class="hasCharge"><img id="chargeImage" src="/thmz/images/nocharge.png" alt=""
                                                    style="width: 100%;height: 100%;"></div>
                    </div>
                    <div class="item form-group">
                        <div class="checkbox">
                            <label style="padding-left: 0px;">
                                <input type="checkbox" class="flat" checked="checked">&nbsp;&nbsp;简明病历
                            </label>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item"
                             style="color: #2e69eb!important;margin-left: -10px;">
                            诊断:
                        </div>
                    </div>
                    <div class="item form-group thmz_alert"
                         style="border-bottom: 1px solid rgb(221, 221, 221);padding-bottom: 10px;">
                        <div class="col-md-12 col-sm-12 col-xs-12 item" id="prescriptionDetail_zd">
                            <!--<div class="tagZdy tagZdy-back">-->
                                <!--肺嗜酸性粒细胞增多肺嗜酸性粒细胞增多肺嗜酸性粒细胞增多肺嗜酸-->
                            <!--</div>-->
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="checkbox">
                            <label style="padding-left: 0px;">
                                <input type="checkbox" class="flat" checked="checked">&nbsp;&nbsp;处方明细
                            </label>
                        </div>
                    </div>
                    <div class="conent" style="margin-bottom: 5px;">
                        <div style="color: #2e69eb!important;margin-bottom: 5px;" id="prescriptionDetail_xyzlTitle">
                            西药治疗:
                        </div>
                        <div id="prescriptionDetail_xyzlContent">
                            <!--<div>
                                <span>1.</span>
                                <span>抗骨增生片</span>
                                <span>(1)</span>
                                <span>4片</span>
                                <span>共8片</span>
                                <span>用法:口服</span>
                                <span>每日两次(bid)</span>
                                <span>1天</span>
                            </div>-->
                        </div>
                    </div>
                    <div class="conent" style="margin-bottom: 5px;" id="prescriptionDetail_zyzlTitle">
                        <div style="color: #2e69eb!important;margin-bottom: 5px;">
                            中药治疗:
                        </div>
                        <div id="prescriptionDetail_zyzlContent">
                            <!--<span>滇柴胡</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                            <!--<span style="margin-left: 10px;">僵蚕</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                            <!--<span style="margin-left: 10px;">蜜麻黄</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                            <!--<div>-->
                                <!--<div style="text-indent: 2em;">-->
                                    <!--<div>-->
                                        <!--x<span>5</span> 付-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        </div>
                    </div>
                    <div class="conent" style="margin-bottom: 5px;" id="prescriptionDetail_zlyjTitle">
                        <div style="color: #2e69eb!important;margin-bottom: 5px;">
                            诊疗与医技:
                        </div>
                        <div id="prescriptionDetail_zlyjContent">
                            <!--<span>14×17吋干式胶片</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>片</span>-->
                            <!--<span>2.7锁定螺钉</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>枚</span>-->
                            <!--<span>β2微球蛋白测定(免疫学法等)</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>项</span>-->
                            <!--<span>经纤维喉镜咽喉异物取出术</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>次</span>-->
                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary hide" id="printPrescription">打印</button>
                <button type="button" class="btn btn-primary hide" id="callPrescription">调用</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--就诊【详情】信息弹窗结尾-->


<!--医疗范文【详情】信息弹窗开始-->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" id="medicalModelModal">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" style="width: 680px;height: 600px;overflow-y: auto;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">医疗范文【详情】</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate id="medicalModelForm" autocomplete="off">
                    <div class="item form-group thmz_alert">
                        <div class="col-md-12 col-sm-12 col-xs-12 item"
                             style="font-size: 16px;border: 1px solid #ddd;    margin-top: 0px !important;padding: 10px 0px 10px 20px !important;">
                            范文名称: <span id="vmedicalModelName"></span>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="checkbox">
                            <label style="padding-left: 0px;">
                                <input type="checkbox" class="flat" checked="checked">&nbsp;&nbsp;简明病历
                            </label>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item"
                             style="color: #2e69eb!important;margin-left: -10px;">
                            主诉:
                        </div>
                    </div>
                    <div class="item form-group thmz_alert"
                         style="padding-bottom: 10px;">
                        <div class="col-md-12 col-sm-12 col-xs-12 item">
                            <div class="tagZdy" id="zsTemplate">
                                <!--流涕咽疼3天。-->
                            </div>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item"
                             style="color: #2e69eb!important;margin-left: -10px;">
                            现病史:
                        </div>
                    </div>
                    <div class="item form-group thmz_alert"
                         style="padding-bottom: 10px;">
                        <div class="col-md-12 col-sm-12 col-xs-12 item">
                            <div class="tagZdy" id="xbsTemplate">
                                <!--患者在3 天前因受凉后出现流涕、咽疼，无咳嗽、咯痰，无发热，曾自服感冒药症状加重，来诊。-->
                            </div>
                        </div>
                    </div>
                    <div class="item form-group thmz_alert">
                        <div class="col-md-6 col-sm-6 col-xs-12 item"
                             style="color: #2e69eb!important;margin-left: -10px;">
                            诊断:
                        </div>
                    </div>
                    <div class="item form-group thmz_alert"
                         style="border-bottom: 1px solid rgb(221, 221, 221);padding-bottom: 10px;">
                        <div class="col-md-12 col-sm-12 col-xs-12 item" id="zdTemplate">
                            <!--<div class="tagZdy tagZdy-back">-->
                                <!--肺嗜酸性粒细胞增多肺-->
                            <!--</div>-->
                            <!--<div class="tagZdy tagZdy-back-green">-->
                                <!--肺嗜酸性粒细胞增-->
                            <!--</div>-->
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="checkbox">
                            <label style="padding-left: 0px;">
                                <input type="checkbox" class="flat" checked="checked">&nbsp;&nbsp;处方明细
                            </label>
                        </div>
                    </div>
                    <div class="conent" style="margin-bottom: 5px;">
                        <div style="color: #2e69eb!important;margin-bottom: 5px;" id="xyzlTitle">
                            西药治疗:
                        </div>
                        <div id="xyzlContent">
                            <!--<div>-->
                                <!--<span>1.</span>-->
                                <!--<span>抗骨增生片</span>-->
                                <!--<span>(1)</span>-->
                                <!--<span>4片</span>-->
                                <!--<span>共8片</span>-->
                                <!--<span>用法:口服</span>-->
                                <!--<span>每日两次(bid)</span>-->
                                <!--<span>1天</span>-->
                            <!--</div>-->
                            <!--<div>-->
                                <!--<span>1.</span>-->
                                <!--<span>兰索拉唑肠溶片</span>-->
                                <!--<span>(15mg)</span>-->
                                <!--<span>15mg</span>-->
                                <!--<span>共2片</span>-->
                                <!--<span>用法:口服</span>-->
                                <!--<span>每日两次(bid)</span>-->
                                <!--<span>1天</span>-->
                            <!--</div>-->
                            <!--<div>-->
                                <!--<span>1.</span>-->
                                <!--<span>复方氯唑沙宗胶囊</span>-->
                                <!--<span>(1)</span>-->
                                <!--<span>2粒</span>-->
                                <!--<span>共4粒</span>-->
                                <!--<span>用法:口服</span>-->
                                <!--<span>每日两次(bid)</span>-->
                                <!--<span>1天</span>-->
                            <!--</div>-->
                        </div>
                    </div>
                    <div class="conent" style="margin-bottom: 5px;">
                        <div style="color: #2e69eb!important;margin-bottom: 5px;" id="zyzlTitle">
                            中药治疗:
                        </div>
                        <div id="zyzlContent">
                            <!--<span>滇柴胡</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                            <!--<span style="margin-left: 10px;">僵蚕</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                            <!--<span style="margin-left: 10px;">蜜麻黄</span>&nbsp;&nbsp;<span>1</span>&nbsp;&nbsp;g-->
                            <!--<div>-->
                                <!--<div style="text-indent: 2em;">-->
                                    <!--<div>-->
                                        <!--x<span>5</span> 付-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        </div>
                    </div>
                    <div class="conent" style="margin-bottom: 5px;">
                        <div style="color: #2e69eb!important;margin-bottom: 5px;" id="zlyjTitle">
                            诊疗与医技:
                        </div>
                        <div id="zlyjContent">
                           <!-- <span>14×17吋干式胶片</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>片</span>
                            <span>2.7锁定螺钉</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>枚</span>
                            <span>β2微球蛋白测定(免疫学法等)</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>项</span>
                            <span>经纤维喉镜咽喉异物取出术</span>&nbsp;&nbsp;<span>1 </span>&nbsp;&nbsp;<span>次</span>-->
                        </div>
                    </div>

                </form>
            </div>
            <div class="modal-footer">
                <input type="hidden" id="idTemplate"/>
                <button type="button" class="btn btn-primary" onclick="callTemplate()">调用</button>
                <button type="button" class="btn btn-danger" onclick="removeTemplate()">停用</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--医疗范文【详情】信息弹窗结尾-->


<!--提示弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="messageModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 480px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">提示</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="col-md-2 col-sm-2 col-xs-12">
                        <i class="fa fa-info-circle blue fa-3x"></i>
                    </div>
                    <div class="col-md-10 col-sm-10 col-xs-12"
                         style="font-size: 14px;font-weight: 700;height: 39px;line-height: 39px;" id="messageContent">
                        当前有病人正在接诊，是否切换?
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="messageButton">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--提示弹窗结尾-->


<!--配置工作台弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="configWorkspaceModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 550px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">配置</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="col-md-12 col-sm-12 col-xs-12"
                         style="font-size: 14px;font-weight: 700;line-height: 39px;">
                        <div class="checkbox">
                            <label style="padding-left: 0px;" class="col-md-3 col-sm-3 col-xs-3">
                                <input type="checkbox" class="flat" id="symptomFlagCheck">&nbsp;&nbsp;主诉
                            </label>
                            <label style="padding-left: 0px;" class="col-md-3 col-sm-3 col-xs-3">
                                <input type="checkbox" class="flat" id="emrHpiFlagCheck">&nbsp;&nbsp;现病史
                            </label>
                            <label style="padding-left: 0px;" class="col-md-3 col-sm-3 col-xs-3">
                                <input type="checkbox" class="flat" id="emrPsFlagCheck">&nbsp;&nbsp;既往史
                            </label>
                            <label style="padding-left: 0px;" class="col-md-3 col-sm-3 col-xs-3">
                                <input type="checkbox" class="flat" id="personalHistoryFlagCheck">&nbsp;&nbsp;个人史
                            </label>
                            <label style="padding-left: 0px;" class="col-md-3 col-sm-3 col-xs-3">
                                <input type="checkbox" class="flat" id="familyHistoryFlagCheck">&nbsp;&nbsp;家族史
                            </label>
                            <label style="padding-left: 0px;" class="col-md-3 col-sm-3 col-xs-3">
                                <input type="checkbox" class="flat" id="obstericalHistoryFlagCheck">&nbsp;&nbsp;婚育史
                            </label>
                            <label style="padding-left: 0px;" class="col-md-3 col-sm-3 col-xs-3">
                                <input type="checkbox" class="flat" id="pressureLeftFlagCheck">&nbsp;&nbsp;血压（左）
                            </label>
                            <label style="padding-left: 0px;" class="col-md-3 col-sm-3 col-xs-3">
                                <input type="checkbox" class="flat" id="tentativeDiagnosisFlagCheck">&nbsp;&nbsp;初步诊断
                            </label>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="saveWorkspaceConfig()">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>
<!--配置工作台弹窗结尾-->


<!--诊疗与医技明细弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="jcJyItemModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 780px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">提示</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <table id="jcJyItemTable"></table>
                    <!-- 用来查看已经保存到 处方区域的项目明细-->
                    <input type="hidden" id="itemCodeSearch"/>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
<!--诊疗与医技明细弹窗结尾-->





<!--保存医疗范文弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="saveapidAcceptsModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 550px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" onclick="clearApidAcceptsModal()"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">医疗范文</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="item form-group">
                        <div class="col-md-12 col-sm-12 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="templateName">范文名称
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <input id="templateName" class="form-control col-md-7 col-xs-12"
                                       placeholder="请输入" type="text">
                            </div>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-12 col-sm-12 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="templateType">范文类型
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick"
                                        id="templateType">
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="item form-group">
                        <div class="col-md-12 col-sm-12 col-xs-12 item">
                            <label class="control-label col-md-4 col-sm-4 col-xs-12" for="templateStatus">范文状态
                            </label>
                            <div class="col-md-8 col-sm-8 col-xs-12">
                                <select class="form-control selectpicker show-tick"
                                        id="templateStatus">
                                </select>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <input type="hidden" id="templateId"/>
                <button type="button" class="btn btn-primary" onclick="saveapidAccepts()">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="clearApidAcceptsModal()">取消</button>
            </div>
        </div>
    </div>
</div>
<!--保存医疗范文弹窗结尾-->




<!--切换接诊提示弹窗开始-->
<div class="modal fade bs-example-modal-sm in" tabindex="-1" role="dialog" aria-hidden="true" id="messagePrescriptionModal"
     style="top:20%;">
    <div class="modal-dialog modal-sm">
        <div class="modal-content" style="width: 480px;">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title modal-title-thmz">提示</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-label-left" novalidate>
                    <div class="col-md-2 col-sm-2 col-xs-12">
                        <i class="fa fa-info-circle blue fa-3x"></i>
                    </div>
                    <div class="col-md-10 col-sm-10 col-xs-12"
                         style="font-size: 14px;font-weight: 700;height: 39px;line-height: 39px;" id="messagePrescriptionContent">
                        当前有病人正在接诊，是否保存？
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="confirmPrescriptionButton">保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal" id="cancelPrescriptionButton">不保存</button>
            </div>
        </div>
    </div>
</div>
<!--切换接诊提示弹窗结尾-->
