<%@page import="com.dbs.mplus.MPlusConstants"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
if (request.getProtocol().equals("HTTP/1.1")){	
        response.setHeader("Cache-Control", "no-cache");
}
%>
<%   String strClientIp = request.getHeader("X-Forwarded-For");  
        if (strClientIp == null || strClientIp.length() == 0 || "unknown".equalsIgnoreCase(strClientIp)) {  
            strClientIp = request.getHeader("Proxy-Client-IP");  
        }  
        if (strClientIp == null || strClientIp.length() == 0 || "unknown".equalsIgnoreCase(strClientIp)) {  
            strClientIp = request.getHeader("WL-Proxy-Client-IP");  
        }  
        if (strClientIp == null || strClientIp.length() == 0 || "unknown".equalsIgnoreCase(strClientIp)) {  
            strClientIp = request.getHeader("HTTP_CLIENT_IP");  
        }  
        if (strClientIp == null || strClientIp.length() == 0 || "unknown".equalsIgnoreCase(strClientIp)) {  
            strClientIp = request.getHeader("HTTP_X_FORWARDED_FOR");  
        }  
        if (strClientIp == null || strClientIp.length() == 0 || "unknown".equalsIgnoreCase(strClientIp)) {  
            strClientIp = request.getRemoteAddr();  
        }
%>
<meta property="og:type" content="website" />
<meta property="og:title" content="M-Care Plus" />
<meta property="og:description" content="M-Care Plus 서비스입니다." />
<meta name="fstrClientIpmat-detection" content="telephone=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%-- <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=3.0" /> --%>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<link rel="shortcut icon" href="<c:url value="/resources/css/images/favicon.ico" />" />

<html>
<body>
<!-- ======================================================== 기존 소스에서 사용하던 소스 } ======================================================== -->
<!-- 정렬용 모달 : 사용하지 않음 -->
	<div class="modal" id="sortModal" tabindex="-1" role="dialog" aria-labelledby="modalLabel" style="display: none; z-index: 1050">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title" id="modalLabel">정렬 방법</h4>
				</div>
				<div class="modal-body">
					<div id="" class="modal-btn mb10">
						<div class="col-xs-2"></div>
						<div class="col-xs-4 radio3 radio-check pd0">
							<input type="radio" id="sortRadio1" checked name="sortRadio" value="up"> <label for="sortRadio1">오름차순</label>
						</div>
						<div class="col-xs-4 radio3 radio-check pd0">
							<input type="radio" id="sortRadio2" name="sortRadio" value="down"> <label for="sortRadio2">내림차순</label>
						</div>
						<div class="col-xs-2"></div>
					</div>

					<select id="sltSort">
					</select>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-style-1" id="sortConfirmBtn">확인</button>
					<button type="button" class="btn btn-style-2" data-dismiss="modal">취소</button>
				</div>
			</div>
		</div>
	</div>

<!-- mplus 경고창 : 사용중 -->
<%-- 	<div class="modal" tabindex="-1" role="dialog" id="mplusAlert" style="display: none; z-index: 1051;">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">알림</h4>
				</div>
				<div class="modal-body"></div>
				<div class="modal-footer">
					<button type="button" class="btn btn-style-1 alertBtn" data-dismiss="modal">확인</button>
				</div>
			</div>
		</div>
	</div> --%>

	<div class="modal fade-scale" id="mplusAlert" tabindex="-1" role="dialog" style="display: none; z-index: 1051;">
		<div class="modal-dialog modal-dialog-centered" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<h5 class="modal-title" id="firstViewCheckModalLabel">알림</h5>
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">×</span>
					</button>
				</div>
				<div class="modal-body">
					초기화면이 선택되지 않았습니다.<br> 초기화면 설정으로 이동 하시겠습니까?
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-dialog-blue btn-lg" data-dismiss="modal">확인</button>
				</div>
			</div>
		</div>
	</div>

    <!-- 의사상세정보 -->
	<div class="modal fade-scale" id="mplusAlertDoctorInfo" tabindex="-1" role="dialog" style="display: none; z-index: 1051;">
		<div class="modal-dialog modal-dialog-centered" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<h5 class="modal-title" id="firstViewCheckModalLabel">의사정보</h5>
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">×</span>
					</button>
				</div>
				<div id="mplusAlertDoctorInfoBody" class="modal-body">
					<div class="col-xs-12 col-sm-12 pd0">
			        	<div class="col-xs-4 col-sm-4 text-right">
			        		<span>주치의 : </span>
			        	</div>
			        	<div class="col-xs-8 col-sm-8 text-left">
			        		<label id="txtDoctorInfoDoctorNm"></label>
			        	</div>
			        </div>
			        <div class="col-xs-12 col-sm-12 pd0">
			        	<div class="col-xs-4 col-sm-4 text-right">
			        		<span>전문분야 : </span>
			        	</div>
			        	<div class="col-xs-8 col-sm-8 text-left">
			        		<div id="txtDoctorInfoSpeciality" class="doctor-special-area"></div>
			        	</div>
			        </div>
			        <div class="col-xs-12 col-sm-12 pd0 doctorTel">
			        	<div class="col-xs-4 col-sm-4 text-right" style="margin-top: 3px">
			        		<span>전화번호 : </span>
			        	</div>
			        	<div class="col-xs-8 col-sm-8 text-left">
			        		<label id="txtDoctorInfoDoctorTel"></label>
				        	<button type="button" class="btn btn-danger btn-sm" id="btnDoctorInfoDoctorTelCall">
								<i class="fa fa-phone"></i><span class="hidden">전화걸기</span>
							</button>
			        	</div>
			        </div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-dialog-blue btn-lg" data-dismiss="modal">확인</button>
				</div>
			</div>
		</div>
	</div>
	
	<!-- 투약정보 처리 -->
	<div class="modal fade-scale" id="mplusAlertDrugInfo" tabindex="-1" role="dialog" style="display: none; z-index: 1051;">
		<div class="modal-dialog modal-dialog-centered" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<h5 class="modal-title" id="firstViewCheckModalLabel">약품정보</h5>
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">×</span>
					</button>
				</div>
				
				<div class="modal-body main_fixed_wrap" style="padding:12px 15px !important;;">
					<div class="drug_wrapper ">
						<div class="col-xs-12 select_toggle" style="width:100%; background:white; padding:0px;">
							<div class="col-xs-8" style="padding: 6px 0px 0px 0px; text-align:left">
								<div class="col-xs-2 drug_nm">
								</div>
								<div class="col-xs-10" style="padding: 0px;">
									<span id="spanDrugNmKr" style="font-size:16px"></span>
								</div>
							</div>
							<div class="col-xs-4" style="padding:0px 0px 5px 0px;">
								<select id="sltDrugInfoSearch">
				                  <option value="1">의약품 정보</option>
				                  <option value="2">상세 정보</option>
				                  <option value="3">보험인증기준</option>
				                </select>
							</div>
						</div>
						<div class="drug_photo_wrapper">
							<img id="imgDrugNoImage" class="drug_no_image" data-type="kor" style="width:100%;"
								src="<c:url value="/resources/css/images/mobile/no_image.jpg"/>" />
							<img id="imgDrugImage" class="" data-type="kor" style="width:100%;" style="display: none;"/>
						</div>
						<div id="divDrugInfoRows" class="" >
							<div id="divDrugInfoRowHeader">
								<table class="table table-bordered" style="width:100%;">
									<tr>
										<td style="width:30%; font-size:13px">1
										</td>
										<td style="width:70%; font-size:13px">2
										</td>
									</tr>
									<tr>
										<td style="width:30%; font-size:13px">3
										</td>
										<td style="width:70%; font-size:13px">4
										</td>
									</tr>
								</table>
							</div>
							<div id="divDrugInfoRowTail">
								<table class="table table-bordered" style="width:100%;">
									<tr>
										<td style="width:30%; font-size:13px">1
										</td>
										<td style="width:70%; font-size:13px">2
										</td>
									</tr>
									<tr>
										<td style="width:30%; font-size:13px">3
										</td>
										<td style="width:70%; font-size:13px">4
										</td>
									</tr>
								</table>
							</div>							
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-dialog-blue btn-lg" data-dismiss="modal">닫기</button>
				</div>
			</div>
		</div>
	</div>
	
<!--  mplus 경고창 - 중복로그인 경고화면 : 사용중  -->
	<div class="modal fade-scale" id="mplusAlertDuplicationLogin" tabindex="-1" role="dialog" style="display: none; z-index: 1052;">
		<div class="modal-dialog modal-dialog-centered" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<h5 class="modal-title" id="firstViewCheckModalLabel">알림</h5>
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">×</span>
					</button>
				</div>
				<div class="modal-body">
					다른 기기에서 같은 ID로 로그인 했습니다.
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-dialog-blue btn-lg" onClick="location.href='${pageContext.request.contextPath}/login.page';">확인</button>
				</div>
			</div>
		</div>
	</div>

<!-- mplus 확인창 : 사용중 -->
<%-- 	<div class="modal" tabindex="-1" role="dialog" id="mplusConfirm" style="display: none; z-index: 1053">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">알림</h4>
				</div>
				<div class="modal-body"></div>
				<div class="modal-footer">
					<button type="button" class="btn btn-style-1 popupCallback confirmBtn">확인</button>
					<button type="button" class="btn btn-style-2 popupCancel confirmBtn" data-dismiss="modal">취소</button>
				</div>
			</div>
		</div>
	</div> --%>
	
	<div class="modal fade-scale" id="mplusConfirm" tabindex="-1" role="dialog" style="display: none; z-index: 1053;">
		<div class="modal-dialog modal-dialog-centered" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<h5 class="modal-title">알림</h5>
					<!-- 
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">×</span>
					</button>
					 -->
				</div>
				<div class="modal-body">
					초기화면이 선택되지 않았습니다.<br> 초기화면 설정으로 이동 하시겠습니까?
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-dialog-blue btn-lg popupCallback confirmBtn">확인</button>
					<button type="button" class="btn btn-dialog btn-lg popupCancel confirmBtn" data-dismiss="modal">취소</button>
				</div>
			</div>
		</div>
	</div>
	
<!-- PACS 샘플 이미제공용 popup -->
	<div class="modal fade" tabindex="-1" role="dialog" id="modalSamplePACS" style="display: none; z-index: 1054">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">sample PACS Image</h4>
				</div>
				<div class="modal-body">
					<img src="<c:url value="/resources/css/images/mobile/sample/pacs_sample.png" />" style="max-width: 100%; max-height: 100%;">
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-style-1 btn-sm" data-dismiss="modal">확인</button>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
<!-- ======================================================== 기존 소스에서 사용하던 소스 } ======================================================== -->

<!-- ======================================================================================================================================= -->	
<!-- ======================================================================================================================================= -->
<!-- 최 상단 메뉴 바 : old -->
<%--  	<div>
		<div id="divHeader" style="position: fixed; background-color: #555555; width: 100%; text-align: center; display: none;">
			<div style="position: fixed; left: 0px; top: 0px; width: 70px;">
				<button type="button" id="myModalBtn" class="btn btn-primary">
					<span>modal</span>
				</button>
			</div>
			<span id="divHeaderTitle" style="font-size: 24px; color: #ffffff"> </span>
			<div style="position: fixed; right: 0px; top: 0px; width: 130px;">
				<button type="button" id="btnQuickMenu" class="btn btn-info">
					<span>Quick</span>
				</button>
				<button type="button" id="btnMainMenu" class="btn btn-info">
					<span>Menu</span>
				</button>
			</div>
		</div>
	</div> --%>
	
<!-- ======================================================================================================================================= -->
<!-- 로딩이미지 -->
	<div class="wrap-loading" style="display: none" id="wrapLoding">
	    <div class="loader"><img src="<c:url value='/resources/css/images/loading3.gif'/>" style="width: 50px;"></div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 테스트 modal 들 -->
	<div class="modal" id="myModal" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title">Modal 1</h4>
				</div>
				<div class="container"></div>
				<div class="modal-body">
					Content for the dialog / modal goes here. <br> <br> <br>
					<p>more content</p>
					<br> <br> <br> <a data-toggle="modal" href="#myModal2" class="btn btn-primary">Launch modal</a>
				</div>
				<div class="modal-footer">
					<a href="#" data-dismiss="modal" class="btn">Close</a> <a href="#" class="btn btn-primary">Save changes</a>
				</div>
			</div>
		</div>
	</div>

	<div class="modal" id="myModal2" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title">Modal 2</h4>
				</div>
				<div class="container"></div>
				<div class="modal-body">
					Content for the dialog / modal goes here. <br> <br>
					<p>come content</p>
					<br> <br> <br> <a data-toggle="modal" href="#myModal3" class="btn btn-primary">Launch modal</a>
				</div>
				<div class="modal-footer">
					<a href="#" data-dismiss="modal" class="btn">Close</a> <a href="#" class="btn btn-primary">Save changes</a>
				</div>
			</div>
		</div>
	</div>

	<div class="modal" id="myModal3" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title">Modal 3</h4>
				</div>
				<div class="container"></div>
				<div class="modal-body">
					Content for the dialog / modal goes here. <br> <br> <br> <br> <br> <a data-toggle="modal" href="#myModal4" class="btn btn-primary">Launch modal</a>
				</div>
				<div class="modal-footer">
					<a href="#" data-dismiss="modal" class="btn">Close</a> <a href="#" class="btn btn-primary">Save changes</a>
				</div>
			</div>
		</div>
	</div>

	<div class="modal" id="myModal4" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title">Modal 4</h4>
				</div>
				<div class="container"></div>
				<div class="modal-body">Content for the dialog / modal goes here.</div>
				<div class="modal-footer">
					<a href="#" data-dismiss="modal" class="btn">Close</a> <a href="#" class="btn btn-primary">Save changes</a>
				</div>
			</div>
		</div>
	</div>

<!-- ======================================================================================================================================= -->
<!-- 부서 변경 창	ChangeDept	modalChangeDept -->
<%-- 	<div class="modal" id="modalChangeDept" data-backdrop="static" style="display: none;">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title">부서를 선택해 주세요</h4>
				</div>
				<div class="container"></div>
				<div class="modal-body">
					<div class="radio3 radio-check">
						<input name="modalChangeDeptRadio" type="radio" id="modalChangeDeptRadio0" value="d001" deptname="진료과1" checked="checked">
						<label for="modalChangeDeptRadio0">진료과1</label>
					</div>
				</div>
				<div class="modal-footer">
					<a href="#" data-dismiss="modal" class="btn">Close</a> <a href="#" class="btn btn-primary" id="btnModalChangeDept">Save changes</a>
				</div>
			</div>
		</div>
	</div> --%>

	<div class="modal" id="modalChangeDept" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
				<!--컨테이너 안에 있는 html부터 서브 시작-->
				<div class="fixed_navi_wrap">
					<div class="navigation">
						<h1>사용할 부서 선택</h1>
						<div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
						<!--end::class::navi_menu_wrap-->
					</div>
					<!--end::class::navigation-->
				</div>
				<div class="sub_wrap layout_has_fixed_bottom">
					<!--하단 fixed버튼 있을때 감싸기-->
					<div class="row">
						<div class="col-md-12 modal-body">
							<div class="custom-control custom-radio wide">
								<input name="modalChangeDeptRadio" type="radio" class="custom-control-input" id="modalChangeDeptRadio0" value="d001" deptname="진료과1"> 
								<label class="cst-control-label" for="modalChangeDeptRadio0">진료과1</label>
							</div>
							<!-- <div class="custom-control custom-checkbox wide">
								<input type="checkbox" id="viewSet01" name="viewSet" class="custom-control-input" checked=""> <label class="cst-control-label" for="viewSet01">입원</label>
							</div>
							<div class="custom-control custom-checkbox wide">
								<input type="checkbox" id="viewSet02" name="viewSet" class="custom-control-input"> <label class="cst-control-label" for="viewSet02">외래</label>
							</div>
							<div class="custom-control custom-checkbox wide">
								<input type="checkbox" id="viewSet03" name="viewSet" class="custom-control-input"> <label class="cst-control-label" for="viewSet03">응급</label>
							</div>
							<div class="custom-control custom-checkbox wide">
								<input type="checkbox" id="viewSet04" name="viewSet" class="custom-control-input"> <label class="cst-control-label" for="viewSet04">수술</label>
							</div>
							<div class="custom-control custom-checkbox wide">
								<input type="checkbox" id="viewSet05" name="viewSet" class="custom-control-input"> <label class="cst-control-label" for="viewSet05">시술</label>
							</div>
							<div class="custom-control custom-checkbox wide">
								<input type="checkbox" id="viewSet06" name="viewSet" class="custom-control-input"> <label class="cst-control-label" for="viewSet06">협진</label>
							</div>
							<div class="custom-control custom-radio wide">
								<input type="radio" id="viewSet07" name="viewSet" class="custom-control-input"> <label class="cst-control-label" for="viewSet07">라디오버튼</label>
							</div> -->
						</div>
					</div>
				</div>
				<div class="bottom-fixed-menu">
					<button type="button" class="btn btn-bottom-fixed btn-sky" id="btnModalChangeDept">확인</button>
					<button type="button" class="btn btn-bottom-fixed btn-blue-green" data-dismiss="modal">취소</button>
				</div>
			</div>
	</div>

<!-- ======================================================================================================================================= -->
<!-- 기본 부서 선택 창	DefaultDept	modalDefaultDept -->
<%-- 	<div class="modal" id="modalDefaultDept" data-backdrop="static" style="display: none;">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title">기본 부서 선택</h4>
				</div>
				<div class="container"></div>
				<div class="modal-body">
					<div class="radio3 radio-check">
						<input name="modalDefaultDeptRadio" type="radio" id="modalDefaultDeptRadio0" value="d001" deptname="진료과1" checked="checked">
						<label for="modalDefaultDeptRadio0">진료과1</label>
					</div>
				</div>
				<div class="modal-footer">
					<a href="#" data-dismiss="modal" class="btn">Close</a> <a href="#" class="btn btn-primary" id="btnModalDefaultDept">Save changes</a>
				</div>
			</div>
		</div>
	</div> --%>
	
	<div class="modal" id="modalDefaultDept" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<!--컨테이너 안에 있는 html부터 서브 시작-->
				<div class="fixed_navi_wrap">
					<div class="navigation">
						<h1>기본 부서 선택</h1>
						<div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
						<!--end::class::navi_menu_wrap-->
					</div>
					<!--end::class::navigation-->
				</div>
				<div class="sub_wrap layout_has_fixed_bottom">
					<!--하단 fixed버튼 있을때 감싸기-->
					<div class="row">
						<div class="col-md-12 modal-body">
							<div class="custom-control custom-radio wide">
								<input name="modalDefaultDeptRadio" type="radio" class="custom-control-input" id="modalDefaultDeptRadio0" value="d001" deptname="진료과1"> 
								<label class="cst-control-label" for="modalDefaultDeptRadio0">진료과1</label>
							</div>
						</div>
					</div>
				</div>
				<div class="bottom-fixed-menu">
					<button type="button" class="btn btn-bottom-fixed btn-sky" id="btnModalDefaultDept">저장</button>
					<button type="button" class="btn btn-bottom-fixed btn-blue-green" data-dismiss="modal">취소</button>
				</div>
			</div>
		</div>
	</div>	
<!-- ======================================================================================================================================= -->
<!-- 기본 화면 선택 창	DefaultPage	modalDefaultPage -->
<%-- 	<div class="modal" id="modalDefaultPage" data-backdrop="static" style="display: none;">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title">기본 화면 선택</h4>
				</div>
				<div class="container"></div>
				<div class="modal-body">					
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio0" value="inpatient">
						<label for="modalDefaultPageRadio0">입원</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio1" value="outpatient">
						<label for="modalDefaultPageRadio1">외래</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio2" value="empatient">
						<label for="modalDefaultPageRadio2">응급</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio3" value="oppatient">
						<label for="modalDefaultPageRadio3">수술</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio4" value="copatient">
						<label for="modalDefaultPageRadio4">협진</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio5" value="trpatient">
						<label for="modalDefaultPageRadio5">시술</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio6" value="barpatient">
						<label for="modalDefaultPageRadio6">바코드</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio7" value="qrpatient">
						<label for="modalDefaultPageRadio7">QR코드</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio8" value="nfcpatient">
						<label for="modalDefaultPageRadio8">NFC</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio9" value="doctorworksch">
						<label for="modalDefaultPageRadio9">의사당직</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio10" value="nurseworksch">
						<label for="modalDefaultPageRadio10">간호사당직</label>
					</div>
					<div class="radio3 radio-check">
						<input name="modalDefaultPageRadio" type="radio" id="modalDefaultPageRadio11" value="outpatientsch">
						<label for="modalDefaultPageRadio11">외래진료일정</label>
					</div>
				</div>
				<div class="modal-footer">
					<a href="#" data-dismiss="modal" class="btn">Close</a> <a href="#" class="btn btn-primary" id="btnModalDefaultPage">Save changes</a>
				</div>
			</div>
		</div>
	</div> --%>
	
	<div class="modal" id="modalDefaultPage" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<!--컨테이너 안에 있는 html부터 서브 시작-->
				<div class="fixed_navi_wrap">
					<div class="navigation">
						<h1>기본 화면 선택</h1>
						<div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
						<!--end::class::navi_menu_wrap-->
					</div>
					<!--end::class::navigation-->
				</div>
				<div class="sub_wrap layout_has_fixed_bottom">
					<!--하단 fixed버튼 있을때 감싸기-->
					<div class="row">
						<div class="col-xs-6 col-sm-6">
							<div class="custom-control custom-radio wide" style="margin: 10px 0px;">
								<input name="modalDefaultPageRadio" type="radio" class="custom-control-input" id="modalDefaultPageRadio0" value="injection">
								<label class="cst-control-label" for="modalDefaultPageRadio0">투약</label>
							</div>
						</div>
						<div class="col-xs-6 col-sm-6" style="margin: 10px 0px;">	
							<div class="custom-control custom-radio wide">
								<input name="modalDefaultPageRadio" type="radio" class="custom-control-input" id="modalDefaultPageRadio1" value="bleeding">
								<label class="cst-control-label" for="modalDefaultPageRadio1">채혈</label>
							</div>
						</div>
						<div class="col-xs-6 col-sm-6" style="margin: 10px 0px;">	
							<div class="custom-control custom-radio wide">
								<input name="modalDefaultPageRadio" type="radio" class="custom-control-input" id="modalDefaultPageRadio2" value="bloodmanagement">
								<label class="cst-control-label" for="modalDefaultPageRadio2">수혈</label>
							</div>
						</div>
					</div>
				</div>
				<div class="bottom-fixed-menu">
					<button type="button" class="btn btn-bottom-fixed btn-sky" id="btnModalDefaultPage">저장</button>
					<button type="button" class="btn btn-bottom-fixed btn-blue-green" data-dismiss="modal">취소</button>
				</div>
			</div>
		</div>
	</div>	
<!-- ======================================================================================================================================= -->
<!-- 환경 설정 목록 창	ConfigList	modalConfigList  -->
	<div class="modal" id="modalConfigList" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<!--컨테이너 안에 있는 html부터 서브 시작-->
				<div class="fixed_navi_wrap">
					<div class="navigation">
						<h1>환경 설정 선택</h1>
						<div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
						<!--end::class::navi_menu_wrap-->
					</div>
					<!--end::class::navigation-->
				</div>
				<div class="sub_wrap layout_has_fixed_bottom">
					<!--하단 fixed버튼 있을때 감싸기-->
					<div class="row">
						<div class="col-md-12 modal-body">
							<div class="custom-control custom-radio wide control-disabled">
								<input type="check" class="custom-control-input control-disabled" id="chkConfigListRegistFido" onfocus="blur()">
								<label class="cst-control-label" for="chkConfigListRegistFido">FIDO 등록 / 재등록</label>
							</div>
							<div class="custom-control custom-radio wide control-disabled">
								<input type="check" class="custom-control-input control-disabled" id="chkConfigListRemoveFido" onfocus="blur()">
								<label class="cst-control-label" for="chkConfigListRemoveFido">FIDO 삭제</label>
							</div>
							<div class="custom-control custom-radio wide">
								<input type="check" class="custom-control-input" id="chkConfigListChangeAppPwd" onfocus="blur()">
								<label class="cst-control-label" for="chkConfigListChangeAppPwd">APP 암호 변경</label>
							</div>
							<div class="custom-control custom-radio wide">
								<input type="check" class="custom-control-input" id="chkConfigListDefaultDept" onfocus="blur()">
								<label class="cst-control-label" for="chkConfigListDefaultDept">기본 부서 설정</label>
							</div>
							<div class="custom-control custom-radio wide">
								<input type="check" class="custom-control-input" id="chkConfigListDefaultPage" onfocus="blur()">
								<label class="cst-control-label" for="chkConfigListDefaultPage">기본 페이지 설정</label>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>	
<!-- ======================================================================================================================================= -->
<!-- 샘플용 Modal : Sample modalSample -->
	<%-- 	<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">검사결과</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				 <div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="collapse show">
						<div class="inquiry-slide-wrap" style="display: block;">
				            <div class="row">
				              <div class="col-xs-3 px-0">
				                <button id="btnExamOneDaySearch" type="button" name="button" class="inquiry-btn first-btn">1일</button>
				              </div>
				              <div class="col-xs-3 px-0">
				                <button id="btnExamOneWeekSearch" type="button" name="button" class="inquiry-btn">1주</button>
				              </div>
				              <div class="col-xs-3 px-0">
				                <button id="btnExamOneMonthSearch" type="button" name="button" class="inquiry-btn">1개월</button>
				              </div>
				              <div class="col-xs-3 px-0">
				                <button id="btnExamThreeMonthSearch" type="button" name="button" class="inquiry-btn">3개월</button>
				              </div>
				            </div>
				            <div class="row">
				              <div class="col-xs-5 px-0">
				                <div class="input-date-wrap first-wrap">
				                  <input id="txtExamStartDt" type="date" value="시작일" id="datepickerStart">
				                </div>
				              </div>
				              <div class="col-xs-2 px-0">
				              	<div class="input-date-wrap text-center">
									<p>~</p>
								</div>
							  </div>
				              <div class="col-xs-5 px-0">
				                <div class="input-date-wrap">
				                  <input id="txtExamEndDt" type="date" value="종료일" id="datepickerEnd">
				                </div>
				              </div>
				            </div>
				          </div>
					</div>
					<div class="dropdown">
					  <button type="button" name="button" class="reset" id="btnExamReset">초기화</button>
					  <button type="button" name="button" class="dropdown_btn"><strong>접기</strong> </button>
					  <button type="button" name="button" class="submit" id="btnExamSearch">조회</button>
					</div>
					<div id="divExamListResultHeader" class="chart-info prescription">
					  <div class="chart-title well">
						<div class="row">
						  <div class="col-xs-3 text-center">
							<p>구분</p>
						  </div>
						  <div class="col-xs-2 text-center">
							<p>접수일</p>
						  </div>
						  <div class="col-xs-2 text-center">
							<p>결과일</p>
						  </div>
						  <div class="col-xs-5 text-center">
							<p>검사명</p>
						  </div>
						</div>
					  </div>
					</div>
				  </div><!--end::class::main_fixed_wrap-->
				
				
				<div id="divExamResultRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
			</div>
		</div>
	 --%>

	<div class="modal" id="modalSample" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">

				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
						<h1 id="divSampleTitle">sampe 화면</h1>
						<div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
						<!--end::class::navi_menu_wrap-->
					</div>
					<!--end::class::navigation-->
				</div>
				<!-- Modal Title layout { -->

				<!-- Modal Patient Info layout { -->
				<div class="sub_wrap modal-patient-info">
					<div class="">
						<div class="col-xs-12">
							<p class="patient-name">
								<span class="modal-patient-name">이지은</span>
							 	(<span class="modal-patient-id">0123456</span>)
							 </p>
						</div>
						<div class="">
							<div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					</div>
				</div>
				<!-- Modal Patient Info layout } -->

				<!-- Modal Service layout { -->
				<div class="sub_wrap">
					<p> .... </p>
				</div>
				<!-- Modal Modal Service layout } -->

			</div>
		</div>
	</div>
	
<!-- ======================================================================================================================================= -->
<!-- 환자 정보 modal : PatientInfo	modalPatientInfo -->
	
	<%-- <div class="modal" id="modalPatientInfo" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div id="divPatientInfoHeader" style="background-color: #555555; width: 100%; text-align: center;">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<span id="divPatientInfoTitle" style="font-size: 24px; color: #ffffff">환자 정보</span>
				</div>
				<div class="modal-patient-info">
					<table>
						<tr>
							<td class="modal-patient-id" width="100px">0123456</td>
							<td class="modal-patient-name" width="100px">김길동</td>
							<td class="modal-patient-age-gender" width="100px">20/M</td>
						<tr>
					</table>
				</div>
				<div id="divPatientInfoContent">
					<div id="divPatientInfoCondition" style="background-color: #eeeeee; height: 120px; display:none;">
						<span style="">조건부</span>
					</div>
					<div id="divPatientInfoResult">
						
					</div>
				</div>
			</div>
		</div>
	</div> --%>

	<div class="modal" id="modalPatientInfo" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">

				<div class="fixed_navi_wrap">
					<div class="navigation">
						<h1>환자정보</h1>
						<div class="navi_menu_wrap">
						
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						
						</div>
						<!--end::class::navi_menu_wrap-->
					</div>
					<!--end::class::navigation-->
				</div>
				<div id="divPatientInfoResult" class="sub_wrap">
					<!-- Service Info Input -->
				</div>	
			</div>
		</div>
	</div>

<!-- ======================================================================================================================================= -->
<!-- 과거 진료 이력 조회 창	MedicalHistory	modalMedicalHistory -->
	<div class="modal" id="modalMedicalHistory" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">과거 진료 이력 조회</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				 <div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="collapse show">
						<div class="select_toggle" style="display: block;">
				            <div class="row">
							  <div class="col-xs-4 ">
								<button id="btnMedicalHisOneDaySearch" type="button" name="button" class="btn btn-info">1일</button>
							  </div>
				              <div class="col-xs-4 ">
				                <button id="btnMedicalHisOneMonthSearch" type="button" name="button" class="btn btn-info">1개월</button>
				              </div>
				              <div class="col-xs-4 ">
				                <button id="btnMedicalHisThreeMonthSearch" type="button" name="button" class="btn btn-info">3개월</button>
				              </div>
								<!--
				              <div class="col-xs-3 ">
				                <button id="btnMedicalHisSixMonthSearch" type="button" name="button" class="btn btn-info">6개월</button>
				              </div>
				              <div class="col-xs-3 ">
				                <button id="btnMedicalHisOneYearSearch" type="button" name="button" class="btn btn-info">1년</button>
				              </div>
				              -->
				            </div>
				            <div class="row">
				              <div class="col-xs-5 px-0">
				                <div class="">
				                  <input id="txtInMedicalHisStartDt" type="date" value="" placeholder="시작일">
				                </div>
				              </div>
				              <div class="col-xs-2 px-0">
				              	<div class="text-center" style="line-height: 40px;">
									<p>~</p>
								</div>
							  </div>
				              <div class="col-xs-5 px-0">
				                <div class="">
				                  <input id="txtInMedicalHisEndDt" type="date" value="" placeholder="종료일">
				                </div>
				              </div>
				            </div>
				          </div>
					</div>
					<div class="dropdown">
					<!--  <button type="button" name="button" class="reset" id="btnExamReset">초기화</button>	-->
					  <button type="button" name="button" class="dropdown_btn"><strong>접기</strong> </button>
					  <button type="button" name="button" class="submit" id="btnMedicalHisSearch">조회</button>
					</div>
					<div id="divExamListResultHeader" class="chart-info prescription">
					  <div class="chart-title well">
						<div class="row ">
							<div class="col-xs-12 col-sm-6 col-lg-6" style="padding:0px;">
								<div class="col-xs-2 col-sm-3 col-lg-3 text-center" style="padding: 4px 0px;">
									<p>구분</p>
								</div>
								<div class="col-xs-4 col-sm-3 col-lg-3 text-center" style="padding: 4px 0px;">
									<p>진료일</p>
								</div>
								<div class="col-xs-3 col-sm-3 col-lg-3 text-center" style="padding: 4px 0px;">
									<p>진료과</p>
								</div>
								<div class="col-xs-3  col-sm-3 col-lg-3 text-center" style="padding: 4px 0px;">
									<p>진료의</p>
								</div>
							</div>
							<div class="col-xs-12 col-sm-6 col-lg-6" style="padding:0px;">
								<div class="col-xs-4  col-sm-3 col-lg-3 text-center" style="padding: 0px 0px;">
									<p>병동<p>병실/병상</p></p>
								</div>
						  		<div class="col-xs-8 col-sm-3 col-lg-3 text-center" style="padding: 4px 0px;">
									<p>진단명</p>
						  		</div>
							</div>
						</div>						
					  </div>
					</div>
				  </div><!--end::class::main_fixed_wrap-->
				<!-- 수술 입원 외래 순으로 요청 2019.03.25 -->
				<div id="divMedicalOpHistoryResultRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
				<div id="divMedicalInHistoryResultRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
				<div id="divMedicalOutHistoryResultRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
				
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 진료기록 목록 창	MedicalRecord	modalMedicalRecord -->
	<div class="modal" id="modalMedicalRecord" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">진료기록 조회</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				 <div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="collapse show">
						<div class="select_toggle" style="display: block;">
				            <div class="row">
				              <div class="col-xs-2 ">
				                <button id="btnMedicalRecordOneWeekSearch" type="button" name="button" class="btn btn-info">1주</button>
				              </div>
				              <div class="col-xs-2 ">
				                <button id="btnMedicalRecordOneMonthSearch" type="button" name="button" class="btn btn-info">1개월</button>
				              </div>
				              <div class="col-xs-2 ">
				                <button id="btnMedicalRecordThreeMonthSearch" type="button" name="button" class="btn btn-info">3개월</button>
				              </div>
				              <div class="col-xs-4 ">
				              	<!-- 
				                <button id="btnExamThreeMonthSearch" type="button" name="button" class="inquiry-btn">3개월</button>
				                 
				                <button id="btnMedicalRecordListSearch" type="button" name="button" class="btn btn-info">기록목록조회</button>
				                -->
				                <select id="sltMedicalRecordListSearch">
				                  <option value="1">기록목록조회</option>
				                  <option value="2">기록내용조회</option>
				                </select>
				              </div>
				              <div class="col-xs-2">
				              		<div class="custom-control custom-checkbox shinhan">
										<input type="checkbox" id="chkMedicalRecordSelfList" name="chkInpatientIsNewPatient" class="custom-control-input"> <label class="cst-control-label" for="chkMedicalRecordSelfList">본인</label>
									</div>
				              </div>
				            </div>
				            <div class="row">
				            	<div class="col-xs-5 px-0">
				            		<div class="">
										<input id="txtMedicalRecordStartDt" type="date" value="" placeholder="시작일">
									</div>
								</div>
				              	<div class="col-xs-2 px-0">
				              		<div class="text-center" style="line-height: 40px;">
										<p>~</p>
									</div>
							  	</div>
				              	<div class="col-xs-5 px-0">
				                	<div class="">
				                  		<input id="txtMedicalRecordEndDt" type="date" value="" placeholder="종료일">
				                	</div>
				              	</div>		            	
				          	</div>
						</div>
					</div>
					<div class="dropdown">
					  <button type="button" name="button" class="reset" id="btnMedicalRecordReset">초기화</button>
					  <button type="button" name="button" class="dropdown_btn"><strong>접기</strong> </button>
					  <button type="button" name="button" class="submit" id="btnMedicalRecordSearch">조회</button>
					</div>
					<div id="divMedicalRecordListResultHeader" class="chart-info prescription">
					  <div class="chart-title well">
						<div class="row">
						  <div class="col-xs-3 text-center" style="padding: 4px 0px;">
							<p>접수일</p>
						  </div>
						  <div class="col-xs-4 text-center" style="padding: 4px 0px;">
							<p>서식명</p>
						  </div>
						  <div class="col-xs-3 text-center" style="padding: 4px 0px;">
							<p>부제목</p>
						  </div>
						  <div class="col-xs-2 text-center" style="padding: 4px 0px;">
							<p>최종작성</p>
						  </div>
						</div>
					  </div>
					</div>
				  </div><!--end::class::main_fixed_wrap-->
				
				
				<div id="divMedicalRecordRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 진료기록 목록 - 진료기록 상세	modalMedicalRecord	modalMedicalRecordRslt -->
	<div class="modal" id="modalMedicalRecordRslt" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">진료기록 상세</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				<div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="sub_wrap">
				        <div class="chart-view-item ">
				          <div class="row">
				            <div class="col-xs-12" >
				              <p class="view-item-title"><i class="icon-patient01"></i> <span id="spanMedicalRecordRsltExamNm">기록명</span></p>
				            </div>
				          </div>
				          <div class="row">
				            <div id="divMedicalRecordResult" style="overflow-x: auto;">
				             
				            </div>
				          </div>
				        </div>				        
				     </div>
				  </div><!--end::class::main_fixed_wrap-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 처방조회 창	Prescription	modalPrescription -->
	<div class="modal" id="modalPrescription" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">처방 조회</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				 <div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="collapse show">
						<div class="select_toggle">
				            <div class="row" id="divInPrescriptionHospitalizationDt">
				              <div class="col-xs-7">
				                <select id="sltInPrescriptionHospitalizationDt">
				                  <option>입원일자</option>
				                </select>
				              </div>
				              <div class="col-xs-5">				                
				                <input id="txtPrescriptionVisitDt" type="date" value="" placeholder="처방일">
				              </div>
				            </div>
				            <div class="row" id="divOutPrescriptionHospitalizationDt">
				              <div class="col-xs-12">
				                <select id="sltOutPrescriptionHospitalizationDt">
				                  <option>진료일자</option>
				                </select>
				              </div>
				            </div>
				            <div class="row">
				              <div class="col-xs-6">
				                <select id="sltPrescriptionClsCd">
				                  <option value="">분류</option>
				                </select>
				              </div>
				              <div class="col-xs-6">
				                <select id="sltPrescriptionStatCd">
				                  <option value="">상태</option>
				                </select>
				              </div>
                                <!-- 20190521 dkchoi75 백병원 요청 사항, 구분은 안씀-->
                                <!--
				              <div class="col-xs-4">
				                <select id="sltPrescriptionClass">
				                  <option value="">구분</option>
				                </select>
				              </div>
				              -->
				            </div>
				          </div>
					</div>
					<div class="dropdown">
					  <!-- <button id="btnExamReset" type="button" name="button" class="reset" >초기화</button> -->
					  <button type="button" name="button" class="dropdown_btn"><strong>접기</strong> </button>
					  <button id="btnPrescriptionSearch" type="button" name="button" class="submit">조회</button>
					</div>
					<div id="divExamListResultHeader" class="chart-info prescription">
					  <div class="chart-title well">
						<div class="row">
						  <div class="col-xs-1 text-center">
							<p>상태</p>
						  </div>
						  <div class="col-xs-1 text-center">
							<p>분류</p>
						  </div>
						  <div class="col-xs-1 text-center">
							<p>구분</p>
						  </div>
						  <div class="col-xs-9 text-center">
							<p>처방명</p>
						  </div>
						</div>
					  </div>
					</div>
				  </div><!--end::class::main_fixed_wrap-->
				
				
				<div id="divPrescriptionResultRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 복약 안내 창	DrugInfo	modalDrugInfo -->
	<div class="modal" id="modalDrugInfo" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div id="divDrugInfoHeader" style="background-color: #555555; width: 100%; text-align: center;">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<span id="divDrugInfoTitle" style="font-size: 24px; color: #ffffff">복약 안내</span>
				</div>
				<div class="modal-patient-info">
					<table>
						<tr>
							<td class="modal-patient-id" width="100px">0123456</td>
							<td class="modal-patient-name" width="100px">김길동</td>
							<td class="modal-patient-age-gender" width="100px">20/M</td>
						<tr>
					</table>
				</div>
				<div id="divDrugInfoContent">
					<div id="divDrugInfoCondition" style="background-color: #eeeeee; height: 120px;">
						<span style="">조건부</span>
					</div>
					<div id="divDrugInfoResult">
						<div align="center">
				 			<button type="button" class="btn btn-info">확인</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 검사결과 리스트 창	ExamList	modalExamList -->
	<div class="modal" id="modalExamList" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">검사결과 조회</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				 <div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="collapse show">
						<div class="select_toggle" style="display: block;">
				            <div class="row">
				              <div class="col-xs-2 ">
				                <button id="btnExamOneDaySearch" type="button" name="button" class="btn btn-info">1일</button>
				              </div>
                                <!--
				              <div class="col-xs-2 ">
				                <button id="btnExamOneWeekSearch" type="button" name="button" class="btn btn-info">1주</button>
				              </div>
				              -->
				              <div class="col-xs-2 ">
				                <button id="btnExamOneMonthSearch" type="button" name="button" class="btn btn-info">1개월</button>
				              </div>
                              <div class="col-xs-2 ">
                                 <button id="btnExamThreeMonthSearch" type="button" name="button" class="btn btn-info">3개월</button>
                              </div>
				              <div class="col-xs-6 ">
				              	<!-- 
				                <button id="btnExamThreeMonthSearch" type="button" name="button" class="inquiry-btn">3개월</button>
				                 -->
				                <select class="inquiry-sel" id="selReceiptDept">
				                	<option value="">접수부서</option>
								</select>
				              </div>
				            </div>
				            <div class="row">
				              <div class="col-xs-5 px-0">
				                <div class="">
				                  <input id="txtExamStartDt" type="date" value="" placeholder="시작일">
				                </div>
				              </div>
				              <div class="col-xs-2 px-0">
				              	<div class="text-center" style="line-height: 40px;">
									<p>~</p>
								</div>
							  </div>
				              <div class="col-xs-5 px-0">
				                <div class="">
				                  <input id="txtExamEndDt" type="date" value="" placeholder="종료일">
				                </div>
				              </div>
				            </div>
				          </div>
					</div>
					<div class="dropdown">
					  <!-- <button type="button" name="button" class="reset" id="btnExamReset">초기화</button>  -->
					  <button type="button" name="button" class="dropdown_btn"><strong>접기</strong> </button>
					  <button type="button" name="button" class="submit" id="btnExamSearch">조회</button>
					</div>
					<div id="divExamListResultHeader" class="chart-info prescription">
					  <div class="chart-title well">
						<div class="row">
						  <div class="col-xs-1 text-center" style="padding: 4px 0px;">
							<p>구분</p>
						  </div>
						  <div class="col-xs-3 text-center" style="padding: 4px 0px;">
							<p>접수일시</p>
						  </div>
						  <div class="col-xs-2 text-center" style="padding: 4px 0px;">
							<p>결과일</p>
						  </div>
						  <div class="col-xs-6 text-center" style="padding: 4px 0px;">
							<p>검사명</p>
						  </div>
						</div>
					  </div>
					</div>
				  </div><!--end::class::main_fixed_wrap-->
				
				
				<div id="divExamResultRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 검사결과 타입1 - 검체검사 창	ExamRsltTy1	modalExamRsltTy1 -->
	<div class="modal" id="modalExamRsltTy1" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">검사결과 상세</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				<div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="sub_wrap">
				        <div class="chart-view-item ">
				          <div class="row">
				            <div class="col-xs-12" >
				              <p class="view-item-title"><i class="icon-patient01"></i> <span id="spanExamRsltTy1ExamDtExamNm">검사일 / 검사명</span></p>
				            </div>
				          </div>
				          <div class="row">
				            <div id="divExamRsltTy1Result" style="overflow-x: auto;">
				             
				            </div>
				          </div>
				        </div>				        
				     </div>
				  </div><!--end::class::main_fixed_wrap-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 검사결과 타입2 - 판독결과 창	ExamRsltTy2	modalExamRsltTy2 -->
	<div class="modal" id="modalExamRsltTy2" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">검사결과 상세</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				<div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="sub_wrap">
				        <div class="chart-view-item ">
				          <div class="row">
				            <div class="col-xs-12">
				            	<div class="col-xs-10">
				            		<p class="view-item-title"><i class="icon-patient01"></i> <span id="spanExamRsltTy2ExamDtExamNm">검사일 / 검사명</span></p>
				            	</div>
				            	<div class="col-xs-2" style="padding-left: 0px; padding-right: 0px;">
				            		<button id="btnExamPACS" type="button" class="btn btn-info hidden" style="color: #ffffff;background-color: #5bc0de;border-color: #46b8da;">PACS</button>
				            	</div>
				            </div>
				          </div>ㄱ
				          <div class="row">
				            <div id="divExamRsltTy2Result" style="overflow-x: auto;">
				             
				            </div>
				          </div>
				        </div>				        
				     </div>
				  </div><!--end::class::main_fixed_wrap-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 수술 상세 창	OperationDetail	modalOperationDetail -->
	<div class="modal" id="modalOperationDetail" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div class="fixed_navi_wrap">
			        <div class="navigation">
			          <h1>수술 상세</h1>
			          <div class="navi_menu_wrap">
			            <button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
							<i class="icon">닫기</i>
						</button>
			          </div><!--end::class::navi_menu_wrap-->
			        </div><!--end::class::navigation-->
			      </div>
			      <div class="sub_wrap">
			        <div class="chart-view-top">
			          <div class="row">
			            <div class="col-xs-12">
			            	<p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
							</p>
			            </div>
			          </div>
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span></p>
			            </div>
			            <div class="col-xs-12">
			              <p class="patient-info"><span>진료</span> <span class="modal-patient-treat-cls">외래</span>
			            </div>
			          </div>
			          <div class="row description">
			            <div class="col-xs-12" style="padding-left: 0px; padding-right: 0px;">
			              	<div class="col-xs-4" style="padding-right: 0px;">
			          			<p class="patient-info"><span style="float:left; margin-top: 5px;">수술 이력</span></p>
			          		</div>
			          		<div class="col-xs-8" style="padding-left: 0px; padding-right: 1px;">
			          			<p class="patient-info select_toggle inner" style="margin-top: 0px;">
			          			<select id="selOperationHistory">
			          				<option>TEST</option>
			          			</select>
			          			</p>
			          		</div>
			            </div>
			          </div>
			        </div><!-- /chart-view-top -->
			        <div class="procedure-detail">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-info"><span>병동 / 병실 / 병상</span> <span class="description" id="spanOperationDetailWardRoomBed">병동/병실/병상내용</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>집도과 / 집도의</span> <span class="description" id="spanOperationDeptDrNm">Op. 2018-09-14  / ㈜ Excision of hemorrhoids</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>상태</span> <span class="description" id="spanOperationStatNm">상태</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>수술일</span> <span class="description" id="spanOperationStartDt">수술일</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>수술실 / 수술방</span> <span class="description" id="spanOperationCntrRoomNm">수술실</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>진단명</span> <span class="description" id="spanOperationDiagnosisNm">진단명</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>수술명</span> <span class="description" id="spanOperationNm">수술명</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>수술시간</span> <span class="description" id="spanOperationStartEndTm">2시간</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>특이사항</span> <span class="description" id="spanOperationRmk">없음</span></p>
						</div>
					  </div>
					</div>
			
			        <!--  <button type="button" name="goTopBtn" class="go-top-btn">상단으로</button> -->
			      </div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 시술 상세 창	TreatmentDetail	modalTreatmentDetail -->
	<div class="modal" id="modalTreatmentDetail" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div class="fixed_navi_wrap">
			        <div class="navigation">
			          <h1>시술 상세</h1>
			          <div class="navi_menu_wrap">
			            <button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
							<i class="icon">닫기</i>
						</button>
			          </div><!--end::class::navi_menu_wrap-->
			        </div><!--end::class::navigation-->
			      </div>
			      <div class="sub_wrap">
			        <div class="chart-view-top">
			          <div class="row">
			            <div class="col-xs-12">
			            	<p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
							</p>
			            </div>
			          </div>
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span></p>
			            </div>
			            <div class="col-xs-12">
			              <p class="patient-info"><span>진료</span> <span class="modal-patient-treat-cls">외래</span>
			            </div>
			          </div>
			          <div class="row description">
			            <div class="col-xs-12" style="padding-left: 0px; padding-right: 0px;">
			              	<div class="col-xs-4" style="padding-right: 0px;">
			          			<p class="patient-info"><span style="float:left; margin-top: 5px;">시술 이력</span></p>
			          		</div>
			          		<div class="col-xs-8" style="padding-left: 0px; padding-right: 1px;">
			          			<p class="patient-info select_toggle inner" style="margin-top: 0px;">
			          			<select id="selTreatmentHistory">
			          				<option>TEST</option>
			          			</select>
			          			</p>
			          		</div>
			            </div>
			          </div>
			        </div><!-- /chart-view-top -->
			        <div class="procedure-detail">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-info"><span>병동 / 병실 / 병상</span> <span class="description" id="spanTreatmentDetailWardRoomBed">병동/병실/병상내용</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>집도과 / 집도의</span> <span class="description" id="spanTreatmentDeptDrNm">Op. 2018-09-14  / ㈜ Excision of hemorrhoids</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>상태</span> <span class="description" id="spanTreatmentStatNm">상태</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>시술일</span> <span class="description" id="spanTreatmentStartDt">시술일</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>시술실</span> <span class="description" id="spanTreatmentCntrRoomNm">시술실</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>진단명</span> <span class="description" id="spanTreatmentDiagnosisNm">진단명</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>시술명</span> <span class="description" id="spanTreatmentNm">시술명</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>시술시간</span> <span class="description" id="spanTreatmentStartEndTm">2시간</span></p>
						</div>
					  </div>
					  <div class="row description">
						<div class="col-xs-12">
						  <p class="patient-info"><span>특이사항</span> <span class="description" id="spanTreatmentRmk">없음</span></p>
						</div>
					  </div>
					</div>
			
			        <!--  <button type="button" name="goTopBtn" class="go-top-btn">상단으로</button> -->
			      </div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 협진 상세 창	CollaborationDetail	modalCollaborationDetail -->
	<div class="modal" id="modalCollaborationDetail" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div class="fixed_navi_wrap">
			        <div class="navigation">
			          <h1>협진 상세</h1>
			          <div class="navi_menu_wrap">
			            <button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
							<i class="icon">닫기</i>
						</button>
			          </div><!--end::class::navi_menu_wrap-->
			        </div><!--end::class::navigation-->
			      </div>
			      <div class="sub_wrap">
			        <div class="chart-view-top">
			          <div class="row">
			            <div class="col-xs-12">
			            	<p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
							</p>
			            </div>
			          </div>
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span></p>
			            </div>
			            <div class="col-xs-12">
			              <p class="patient-info"><span>진료</span> <span class="modal-patient-treat-cls">외래</span>
			            </div>
			          </div>
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>진료과</span> <span id="spanCollaborationDetailDeptNm">이빈인후-두경부외과</span></p>
			            </div>
			          </div>
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>주치의</span> <span id="spanCollaborationDetailDoctorNm">유의태 <a href="sms:010-5555-5555" class="sms"><i>문자</i></a> <a href="tel:02-1234-1234" class="tel"><i>전화</i></a></span></p>
			            </div>
			          </div>
			          <div class="row description">
			            <div class="col-xs-12" style="padding-left: 0px; padding-right: 0px;">
			              	<div class="col-xs-4" style="padding-right: 0px;">
			          			<p class="patient-info"><span style="float:left; margin-top: 5px;">협진요청</span></p>
			          		</div>
			          		<div class="col-xs-8" style="padding-left: 0px; padding-right: 1px;">
			          			<p class="patient-info select_toggle inner" style="margin-top: 0px;">
			          			<select id="selCollaborationHistory">
			          				<option>TEST</option>
			          			</select>
			          			</p>
			          		</div>
			            </div>
			          </div>
			          <div class="row description">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>주진단명</span> <span id="spanCollaborationDetailDiagnosisNm" class="description">diabetes mellitus type 2 without complication</span></p>
			            </div>
			          </div>
			          <div class="row description">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>수술일시 / 주 수술 명</span> <span id="spanCollaborationDetailOperationDtNm" class="description">Op. 2018-09-14  / ㈜ Excision of hemorrhoids</span></p>
			            </div>
			          </div>
			        </div><!-- /chart-view-top -->
			        <div class="chart-view-history-top">
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>요청일시 / 응답일시</span> <span id="spanCollaborationDetailCollaborationReResqDt">2018-10-16/2018-10-17</span></p>
			            </div>
			          </div>
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="patient-info"><span>협진과 / 협진의</span> <span id="spanCollaborationDetailCollaborationDeptDocNm">재활의학과/유재석 <a href="sms:010-5555-5555" class="sms"><i>문자</i></a> <a href="tel:02-1234-1234" class="tel"><i>전화</i></a></span></p>
			            </div>
			          </div>
			        </div>
			        <div class="chart-view-item ">
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="view-item-title"><i class="icon-patient01"></i> <span>의뢰내용</span></p>
			            </div>
			          </div>
			          <div class="row">
			            <div class="col-xs-12">
                            <!-- 20190611 dkchoi75 상계백병원 요구사항-->
                          <!--
			              <p id="pCollaborationDetailCollaborationReqTxt" class="view-history-text">
			                안녕하십니까 교수님 상기 24세여환, 교수님께 진료받았었던 Knownpt로 Gastic Outlet obstructio으로 본과 수술예정인 분입니다.<br>
			                상환 귀화적에대한 oprisk 여쭙고자 협진의뢰 드리오니 고진 선처 부탁드립니다.
			              </p>
			              -->
                            <div id="pCollaborationDetailCollaborationReqTxt" style="overflow-x: auto;">
							</div>
			            </div>
			          </div>
			        </div>
			        <div class="chart-view-item">
			          <div class="row">
			            <div class="col-xs-12">
			              <p class="view-item-title"><i class="icon-patient01"></i> <span>회신내용</span></p>
			            </div>
			          </div>
			          <div class="row">
			            <div class="col-xs-12">
                            <!-- 20190611 dkchoi75 상계백병원 요구사항-->
                            <!--
			              <p id="pCollaborationDetailCollaborationResTxt" class="view-history-text">
			                CC) OPrisk <br>
			                86/favicon<br>
			                최근 보건소에서 HTN 있다는 얘기들었다. <br>
			                마비온 적은 없었다.<br>
			                평소에 허리가 굽어 자세교정 치료 등등 활동에 무리 없었다.
			              </p>
			              -->
							<div id="pCollaborationDetailCollaborationResTxt" style="overflow-x: auto;">
							</div>
			            </div>
			          </div>
			        </div>
			
			        <!--  <button type="button" name="goTopBtn" class="go-top-btn">상단으로</button> -->
			      </div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 임상관찰 등록 창	Vital	modalVital  -->
	<div class="modal" id="modalVital" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div id="divVitalHeader" style="background-color: #555555; width: 100%; text-align: center;">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<span id="divVitalTitle" style="font-size: 24px; color: #ffffff">임상관찰 등록</span>
				</div>
				<div class="modal-patient-info">
					<table>
						<tr>
							<td class="modal-patient-id" width="100px">0123456</td>
							<td class="modal-patient-name" width="100px">김길동</td>
							<td class="modal-patient-age-gender" width="100px">20/M</td>
						<tr>
					</table>
				</div>
				<div id="divVitalContent">
					<div id="divVitalCondition" style="background-color: #eeeeee; height: 120px;">
						<span style="">조건부</span>
					</div>
					<div id="divVitalResult">
						<div align="center">
				 			<button type="button" class="btn btn-info">확인</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 임상관찰 조회 창	VitalList	modalVitalList -->
	<div class="modal" id="modalVitalList" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">임상관찰 조회</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				 <div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="collapse show">
						<div class="select_toggle" style="display: block;">
				            <div class="row">
				               <div class="col-xs-6 divVitalListView">
					              <div class="col-xs-4 ">
					                <button id="btnVitalListOneDaySearch" type="button" name="button" class="btn btn-info">1일</button>
					              </div>
					              <!-- 
					              <div class="col-xs-2 ">
					                <button id="btnVitalListThreeDaySearch" type="button" name="button" class="btn btn-info">3일</button>
					              </div>
					              <div class="col-xs-6" >
					                <button id="btnVitalListOneWeekSearch" type="button" name="button" class="btn btn-info">1주</button>
					              </div>
					              -->
								   <div class="col-xs-4 ">
									   <button id="btnVitalListOneMonthSearch" type="button" name="button" class="btn btn-info">1개월</button>
								   </div>
								   <div class="col-xs-4 ">
									   <button id="btnVitalListThreeMonthSearch" type="button" name="button" class="btn btn-info">3개월</button>
								   </div>
					          </div>
					          <div class="col-xs-6 divVitalListSumView" style="display: none;">
					          	<div class="col-xs-12">
				                	<div class="">
				                  		<input id="txtVitalListSumEndDt" type="date" value="" placeholder="검색일">
				                	</div>
				              	</div>		
					          </div>
				              <div class="col-xs-6 ">
				              	<select id="sltVitalListSearch">
				                  <option value="1">임상관찰조회</option>
				                  <option value="2">I/O합계조회</option>
				                </select>
				              </div>
				            </div>
				            <div class="row divVitalListView" style="margin-top: 4px;">
				            	<div class="col-xs-5 px-0">
				            		<div class="">
										<input id="txtVitalListStartDt" type="date" value="" placeholder="시작일">
									</div>
								</div>
				              	<div class="col-xs-2 px-0">
				              		<div class="text-center" style="line-height: 40px;">
										<p>~</p>
									</div>
							  	</div>
				              	<div class="col-xs-5 px-0">
				                	<div class="">
				                  		<input id="txtVitalListEndDt" type="date" value="" placeholder="종료일">
				                	</div>
				              	</div>		            	
				          	</div>
				          	<div class="row divVitalListSumView text-center" style="display: none; margin-top: 4px; background-color: white;">
				          		<span style="font-size:13px">I/O 합계는 3일을 기준으로 조회됩니다.</span>
				          	</div>
						</div>
					</div>
					<div class="dropdown">
					  <!-- <button type="button" name="button" class="reset" id="btnVitalListReset">초기화</button> -->
					  <button type="button" name="button" class="dropdown_btn"><strong>접기</strong> </button>
					  <button type="button" name="button" class="submit" id="btnVitalListSearch">조회</button>
					</div>
					<div id="divVitalListResultHeader" class="chart-info prescription">
					  <div class="chart-title well">
						<div class="row">
						  <div class="col-xs-3 text-center" style="padding: 4px 0px; border-right:1px solid grey;">
							<p>기록일시</p>
						  </div>
						  <div class="col-xs-9 text-center" style="padding: 0px">
							  <div class="col-xs-2 text-center" style="padding: 4px 0px; border-right:1px solid grey; color:red;">
								<p>맥박</p>
							  </div>
							  <div class="col-xs-2 text-center" style="padding: 4px 0px; border-right:1px solid grey; color:green;">
								<p>호흡</p>
							  </div>
							  <div class="col-xs-2 text-center" style="padding: 4px 0px; border-right:1px solid grey; color:blue;">
								<p>체온</p>
							  </div>
							  <div class="col-xs-2 text-center" style="padding: 4px 0px; border-right:1px solid grey;">
								<p>SBP</p>
							  </div>
							  <div class="col-xs-2 text-center" style="padding: 4px 0px; border-right:1px solid grey;">
								<p>DBP</p>
							  </div>
							  <div class="col-xs-2 text-center" style="padding: 4px 0px;">
								<p>SpO2</p>
							  </div>
						  </div>
						</div>
					  </div>
					</div>
				  </div><!--end::class::main_fixed_wrap-->
				
				
				<div id="divVitalListRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 투약실시 등록 창	Medication	modalMedication -->
	<div class="modal" id="modalMedication" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div id="divMedicationHeader" style="background-color: #555555; width: 100%; text-align: center;">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<span id="divMedicationTitle" style="font-size: 24px; color: #ffffff">임상관찰 조회</span>
				</div>
				<div class="modal-patient-info">
					<table>
						<tr>
							<td class="modal-patient-id" width="100px">0123456</td>
							<td class="modal-patient-name" width="100px">김길동</td>
							<td class="modal-patient-age-gender" width="100px">20/M</td>
						<tr>
					</table>
				</div>
				<div id="divMedicationContent">
					<div id="divMedicationCondition" style="background-color: #eeeeee; height: 120px;">
						<span style="">조건부</span>
					</div>
					<div id="divMedicationResult">
						<div align="center">
				 			<button type="button" class="btn btn-info">확인</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 투약조회 창	MedicationList	modalMedicationList -->
	<div class="modal" id="modalMedicationList" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
			
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">투약 조회</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				  </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				 <div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span class="modal-patient-name">이지은</span>
							(<span class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					  <div class="row">
						<div class="col-xs-12">
						  <div class="col-xs-6">
								<p class="patient-info">
									<span>나이/성별</span> <span class="modal-patient-age-gender">24/여</span>
								</p>
							</div>
							<div class="col-xs-6">
								<p class="patient-info">
									<span>진료</span> <span class="modal-patient-treat-cls">외래</span>
								</p>
							</div>
						</div>
					  </div>
					</div>
					<div class="collapse show">
						<div class="select_toggle" style="display: block;">
				            <div class="row">
				              <div class="col-xs-4 ">
				                <button id="btnMedicationListOneDaySearch" type="button" name="button" class="btn btn-info">1일</button>
				              </div>
							  <!--
				              <div class="col-xs-6 ">
				                <button id="btnMedicationListOneWeekSearch" type="button" name="button" class="btn btn-info">1주</button>
				              </div
				              <div class="col-xs-4 ">
				                <button id="btnMedicationListOneMonthSearch" type="button" name="button" class="btn btn-info">1개월</button>
				              </div>
				               -->
							  <div class="col-xs-4 ">
								<button id="btnMedicationListOneMonthSearch" type="button" name="button" class="btn btn-info">1개월</button>
							  </div>
							  <div class="col-xs-4 ">
								<button id="btnMedicationListThreeMonthSearch" type="button" name="button" class="btn btn-info">3개월</button>
							  </div>
				            </div>
				            <div class="row">
				              <div class="col-xs-5 px-0">
				                <div class="">
				                  <input id="txtMedicationListStartDt" type="date" value="" placeholder="시작일">
				                </div>
				              </div>
				              <div class="col-xs-2 px-0">
				              	<div class="text-center" style="line-height: 40px;">
									<p>~</p>
								</div>
							  </div>
				              <div class="col-xs-5 px-0">
				                <div class="">
				                  <input id="txtMedicationListEndDt" type="date" value="" placeholder="종료일">
				                </div>
				              </div>
				            </div>
				          </div>
					</div>
					<div class="dropdown">
					  <!-- <button type="button" name="button" class="reset" id="btnMedicationListReset">초기화</button>  -->
					  <button type="button" name="button" class="dropdown_btn"><strong>접기</strong> </button>
					  <button type="button" name="button" class="submit" id="btnMedicationListSearch">조회</button>
					</div>
					<div id="divMedicationListResultHeader" class="chart-info prescription">
					  <div class="chart-title well">
						<div class="row">
							<div class="col-xs-1 text-center" style="padding: 4px 0px;">
								<p>번호</p>
						  	</div>
							<div class="col-xs-1 text-center" style="padding: 4px 0px;">
								<p>구분</p>
							</div>
							<div class="col-xs-10 text-center" style="padding: 4px 0px;">
								처방명
							</div>
						</div>
						<div class="row">
							<div class="col-xs-2 text-center" style="padding: 4px 0px;">
								<p>투약<span>일시</span></p>
							</div>
							<div class="col-xs-3 text-center" style="padding: 4px 0px;">
								차수
							</div>
							<div class="col-xs-3 text-center" style="padding: 4px 0px;">
								용량
							</div>
							<div class="col-xs-4 text-center" style="padding: 4px 0px;">
								투여방법
							</div>
						</div>
					  </div>
					</div>
				  </div><!--end::class::main_fixed_wrap-->
				
				
				<div id="divMedicationListResultRows" class="chart-info list prescription">
					<div class="chart-content">
						
					</div>
				</div><!--end::class::chart-info-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 의사 당직 상세 일정 창	DoctorWorkSchDetail	modalDoctorWorkSchDetail -->
	<div class="modal" id="modalDoctorWorkSchDetail" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content container-fluid container duty common personal">
				<!-- Modal Title layout { -->
				<div class="fixed_navi_wrap">
					<div class="navigation">
					  <h1 id="divSampleTitle">의사 당직 일정</h1>
					  <div class="navi_menu_wrap">
							<button type="button" name="pageCloseBtn" class="page_close_btn" data-dismiss="modal">
								<i class="icon">닫기</i>
							</button>
						</div>
					</div><!--end::class::navigation-->
				 </div><!--end::class::fixed_navi_wrap-->
				 <!-- Modal Title layout } --> 

				 <div class="main_fixed_wrap prescription">
					<div class="chart-view-top">
					  <div class="row">
						<div class="col-xs-12">
						  <p class="patient-name">
							<span id="spanDoctorWorkSchDocNm" class="modal-patient-name">이지은</span>
							(<span id="spanDoctorWorkSchDocId" class="modal-patient-id">0123456</span>)
						  </p>
						</div>
					  </div>
					</div>
					<div class="collapse show" style="height: 70px;">
						<div class="select_toggle" style="padding-top:10px;">
							<div class="row">
				              <div class="col-xs-2 col-sm-2">
				                <button type="button" class="date-prev" id="btnDoctorWorkSchMonthSchBefore">
				                  <img src="${pageContext.request.contextPath}/resources/css/images/publishing/btn-date-prev.png" alt="date-prev">
				                </button>
				              </div>
				              <div class="col-xs-8 col-sm-8">
				                <div class="starting-date">
				               		<p class="data-day" style="font-size:30px">
				                  		<span class="data-month"  id="txtDoctorWorkSchYear">2019</span>년
					                    <span class="data-month"  id="txtDoctorWorkSchMonth">11</span>월
									</p>
				                </div>				             
				              </div>
				              <div class="col-xs-2 col-sm-2">
				                <button type="button" class="date-next" id="btnDoctorWorkSchMonthSchNext">
				                  <img src="${pageContext.request.contextPath}/resources/css/images/publishing/btn-date-next.png" alt="date-next">
				                </button>
				              </div>
				            </div>	
						</div>
					</div>
					<div class="dropdown">
					  <button id="btnExamReset" type="button" name="button" class="reset" >초기화</button>
					  <button type="button" name="button" class="dropdown_btn"><strong>접기</strong> </button>
					  <button id="btnPrescriptionSearch" type="button" name="button" class="submit">조회</button>
					</div>
					<div class="duty-schedule"  style="padding-top: 20px; background: white;">
				        <div class="duty-tit styleVer2" style="height:40px;">
				          <div class="row">
				            <div class="col-sm-2 col-xs-2  sun"><p>일</p></div>
				            <div class="col-sm-2 col-xs-2"><p>월</p></div>
				            <div class="col-sm-2 col-xs-2"><p>화</p></div>
				            <div class="col-sm-2 col-xs-2"><p>수</p></div>
				            <div class="col-sm-2 col-xs-2"><p>목</p></div>
				            <div class="col-sm-2 col-xs-2"><p>금</p></div>
				          	<div class="col-sm-2 col-xs-2 sat"><p>토</p></div>
				          </div>
				        </div>
				        <div id="divDoctorWorkSchResultRows" class="duty-calendar">
				          <div class="row">
				            <div class="col-sm-2 col-xs-2 disable"><p>23</p><p>ICU</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>24</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>25</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>26</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>27</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>28</p></div>
				            <div class="col-sm-2 col-xs-2"><p>1</p></div>
				          </div>
				          <div class="row">
				            <div class="col-sm-2 col-xs-2"><p>2</p></div>
				            <div class="col-sm-2 col-xs-2"><p>3</p></div>
				            <div class="col-sm-2 col-xs-2"><p>4</p><p>ICU</p><p>병동/<br/>IM1</p></div>
				            <div class="col-sm-2 col-xs-2"><p>5</p></div>
				            <div class="col-sm-2 col-xs-2"><p>6</p></div>
				            <div class="col-sm-2 col-xs-2"><p>7</p></div>
				            <div class="col-sm-2 col-xs-2"><p>8</p></div>
				          </div>
				          <div class="row">
				            <div class="col-sm-2 col-xs-2"><p>9</p></div>
				            <div class="col-sm-2 col-xs-2"><p>10</p></div>
				            <div class="col-sm-2 col-xs-2"><p>11</p></div>
				            <div class="col-sm-2 col-xs-2"><p>12</p></div>
				            <div class="col-sm-2 col-xs-2"><p>13</p></div>
				            <div class="col-sm-2 col-xs-2"><p>14</p></div>
				            <div class="col-sm-2 col-xs-2"><p>15</p></div>
				          </div>
				          <div class="row">
				            <div class="col-sm-2 col-xs-2"><p>16</p></div>
				            <div class="col-sm-2 col-xs-2"><p>17</p></div>
				            <div class="col-sm-2 col-xs-2"><p>18</p></div>
				            <div class="col-sm-2 col-xs-2"><p>19</p></div>
				            <div class="col-sm-2 col-xs-2"><p>20</p></div>
				            <div class="col-sm-2 col-xs-2"><p>21</p></div>
				            <div class="col-sm-2 col-xs-2"><p>22</p></div>
				          </div>
				          <div class="row">
				            <div class="col-sm-2 col-xs-2"><p>23</p></div>
				            <div class="col-sm-2 col-xs-2"><p>24</p></div>
				            <div class="col-sm-2 col-xs-2"><p>25</p></div>
				            <div class="col-sm-2 col-xs-2"><p>26</p></div>
				            <div class="col-sm-2 col-xs-2"><p>27</p></div>
				            <div class="col-sm-2 col-xs-2"><p>28</p></div>
				            <div class="col-sm-2 col-xs-2"><p>29</p></div>
				          </div>
				          <div class="row">
				            <div class="col-sm-2 col-xs-2"><p>30</p></div>
				            <div class="col-sm-2 col-xs-2"><p>31</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>1</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>2</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>3</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>4</p></div>
				            <div class="col-sm-2 col-xs-2 disable"><p>5</p></div>
				          </div>
				        </div>
				      </div>
				  </div><!--end::class::main_fixed_wrap-->
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 간호사 당직 상세 일정 창	NurseWorkSchDetail	modalNurseWorkSchDetail -->
	<div class="modal" id="modalNurseWorkSchDetail" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div id="divNurseWorkSchDetailHeader" style="background-color: #555555; width: 100%; text-align: center;">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<span id="divNurseWorkSchDetailTitle" style="font-size: 24px; color: #ffffff">간호사 당직 상세 일정</span>
				</div>
				<div class="modal-patient-info">
					<table>
						<tr>
							<td class="modal-patient-id" width="100px">0123456</td>
							<td class="modal-patient-name" width="100px">김길동</td>
							<td class="modal-patient-age-gender" width="100px">20/M</td>
						<tr>
					</table>
				</div>
				<div id="divNurseWorkSchDetailContent">
					<div id="divNurseWorkSchDetailCondition" style="background-color: #eeeeee; height: 120px;">
						<span style="">조건부</span>
					</div>
					<div id="divNurseWorkSchDetailResult">
						<div align="center">
				 			<button type="button" class="btn btn-info">확인</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 인턴 근무 상세 일정 창	InternWorkSchDetail	modalInternWorkSchDetail -->
	<div class="modal" id="modalInternWorkSchDetail" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div id="divInternWorkSchDetailHeader" style="background-color: #555555; width: 100%; text-align: center;">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<span id="divInternWorkSchDetailTitle" style="font-size: 24px; color: #ffffff">인턴 근무 상세 일정</span>
				</div>
				<div class="modal-patient-info">
					<table>
						<tr>
							<td class="modal-patient-id" width="100px">0123456</td>
							<td class="modal-patient-name" width="100px">김길동</td>
							<td class="modal-patient-age-gender" width="100px">20/M</td>
						<tr>
					</table>
				</div>
				<div id="divInternWorkSchDetailContent">
					<div id="divInternWorkSchDetailCondition" style="background-color: #eeeeee; height: 120px;">
						<span style="">조건부</span>
					</div>
					<div id="divInternWorkSchDetailResult">
						<div align="center">
				 			<button type="button" class="btn btn-info">확인</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!-- 의사 정보 창	DoctorInfo	modalDoctorInfo -->
	<div class="modal" id="modalDoctorInfo" data-backdrop="static" style="display: none;">
		<div class="modal-dialog modal-full">
			<div class="modal-content">
				<div id="divDoctorInfoHeader" style="background-color: #555555; width: 100%; text-align: center;">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<span id="divDoctorInfoTitle" style="font-size: 24px; color: #ffffff">간호사 당직 상세 일정</span>
				</div>
				<div class="modal-patient-info">
					<table>
						<tr>
							<td class="modal-patient-id" width="100px">0123456</td>
							<td class="modal-patient-name" width="100px">김길동</td>
							<td class="modal-patient-age-gender" width="100px">20/M</td>
						<tr>
					</table>
				</div>
				<div id="divDoctorInfoContent">
					<div id="divDoctorInfoCondition" style="background-color: #eeeeee; height: 120px;">
						<span style="">조건부</span>
					</div>
					<div id="divDoctorInfoResult">
						<div align="center">
				 			<button type="button" class="btn btn-info">확인</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<!-- ======================================================================================================================================= -->
<!--  -->

<!-- ======================================================================================================================================= -->
<!--  -->

<!-- ======================================================================================================================================= -->
<!--  -->

<!-- ======================================================================================================================================= -->
<!--  -->



<!-- ======================================================================================================================================= -->
<!-- ======================================================================================================================================= -->	
	
	
</body>
</html>


<script type="text/javascript" src="<c:url value="/resources/plugins/jquery/jquery-2.1.4.min.js" />"></script>
<script type="text/javascript" src="<c:url value="/resources/plugins/jquery/jquery.event.scroll.js" />"></script>
<script type="text/javascript" src="<c:url value="/resources/plugins/jquery/jquery.form.min.js" />"></script>


<script type="text/javascript">
$(document).ready(function() { 
	var mplusCommon = new mplus_common();
	mplusCommon.init();
	
	/* 삭제예정
	if($(window).width()>414){
		 $('.cure-responsive-size').css({'width': '100%', 'min-width': '100%'});			 
	 }else{
		  $('.cure-responsive-size').css({'width': 'max-content', 'max-width': 'initial'});		  			 
	 };
	 
	 if($(window).width()>568){
		 $('.cureDetail-responsive-size').css({'width': '100%', 'min-width': '100%'});			 
	 }else{
		  $('.cureDetail-responsive-size').css({'width': 'max-content', 'max-width': 'initial'});		  			 
	 };
	 wh=$(window).height();
	 $('#cureList, #vitalSearch').css({
		 'height': (wh-217)
	 });
	  */
	/* $('#cureDetail, #vitalInfo').css({
		 'height': (wh-181),
		 'position': 'absolute',
		 'z-index': 10, 
		 'background-color': '#fff',
		 'overflow-y': 'auto'
	 }); */
});


//==== 전역 변수 설정 ====
var contextPath = "${pageContext.request.contextPath}";
//삭제예정 var loginUserId = "${sessionScope.MP_USER_ID}";		
//삭제예정 var loginUserName = "${sessionScope.MP_USER_NAME}";
var gLoginUserId = "${sessionScope.MP_USER_ID}";
var gLoginUserNm = "${sessionScope.MP_USER_NAME}";
var gPatientId = ""; 	// 환자 ID, 최초에는 null 값이며, 환자 선택시 값을 등록하고 사용함
var gPatientNm = ""; 	// 환자 명, 최초에는 null 값이며, 환자 선택시 값을 등록하고 사용함
var gPatientAge = ""; 	// 환자 나이, 최초에는 null 값이며, 환자 선택시 값을 등록하고 사용함
var gPatientGender = ""; 	// 환자 성별, 최초에는 null 값이며, 환자 선택시 값을 등록하고 사용함
var gPatientTreatCls = ""; 	// 환자 진료 구분, 최초에는 null 값이며, 환자 선택시 값을 등록하고 사용함
var gPatientDeptCd = ""; // 환자의 진료과, 최초에는 null 값이며, 환자 선택시 값을 등록하고 사용함
var gPatientDoctorId = ""; // 환자의 진료의, 최초에는 null 값이며, 환자 선택시 값을 등록하고 사용함
var gPatientHospitalizationDt = "";// 환자의 입원일자, 최초에는 null 값이며, 환자 선택시 값을 등록하고 사용함
var gClientIp = "<%= strClientIp %>";

var gDeviceId = "NONE";	// device ID 값이 추출되지 않은 상태는 'NONE'
var gAppKind = "A";
var gAppVersion = "1.0";
var gPhoneKind = "폰기종";

//삭제예정 var selectDeptName = localStorage.getItem('selectedDeptNm');
//삭제예정 var accessMenu = '${sessionScope.MP_ACCESS_MENU}';
//삭제예정 var jobKindCd = '${sessionScope.MP_JOB_KIND_CD}';
//삭제예정 var jobKindName = '${sessionScope.MP_JOB_KIND_NM}';

$(document).on('mobileinit', function() {
	$.mobile.ajaxEnabled = false;
	$.mobile.defaultPageTransition = 'none';
	$.mobile.page.prototype.options.domCache = false;
	$.mobile.selectmenu.prototype.options.nativeMenu = true;
	$.fn.buttonMarkup.defaults.corners = false;
});
$(document).on('pageloadfailed', function(e, data) {
	e.preventDefault();
    var page = $(data.xhr.responseText);
    $.mobile.pageContainer.empty();
    $.mobile.pageContainer.append(page);
    $.mobile.pageContainer.trigger('create');
});
$(document).on('pageshow', function(e, ui) {
    ui.prevPage.remove();
});
$(window).resize(function(){
	 wh=$(window).height();
	 if($(window).width()>414){
		 $('.cure-responsive-size').css({'width': '100%', 'min-width': '100%'});			 
	 }else{
		  $('.cure-responsive-size').css({'width': 'max-content', 'max-width': 'initial'});		  			 
	 };
	 
	 if($(window).width()>568){
		 $('.cureDetail-responsive-size').css({'width': '100%', 'min-width': '100%'});			 
	 }else{
		  $('.cureDetail-responsive-size').css({'width': 'max-content', 'max-width': 'initial'});		  			 
	 };
	 $('#cureList, #vitalSearch').css({
		 'height': (wh-217)
	 });
	 
	 /* $('#cureDetail, #vitalInfo').css({
		 'height': (wh-181),
		 'position': 'absolute',
		 'z-index': 10, 
		 'background-color': '#fff',
		 'overflow-y': 'auto' 
	 }); */
})

//pc 접근 제어
// $(document).ready(function(){
// 	if (/win32|win64|mac/i.test(navigator.platform.toLowerCase())) { 
// 		window.location.href = "http://www.knuh.kr/"; 
// 	} 
// });

//하단API는 추후 확인 후 제거 예정
function changeLocale(lang) {
	location.href = location.pathname + '?' + location.search.replace(/^\?|&?_locale=../g, '').concat('&_locale=' + lang);
};

/**
 * 앱 종료
 */
 
function exitApp() { 
	/* $(".sidemenu").parent().removeClass("active"); */
	var mplus = new mplus_mobile(); 
	mplus.confirm("앱을 종료하시겠습니까?", function(confirm){
		if(confirm){
			var jsonMsg = {
					type : "command", 
					functionType : "exitApp"
				}; 
			mplus.toNative(jsonMsg); 
		}else{
			$('#sidebarMenu li a').removeClass('active');
		};
	});
	
};

/**
 * 화면잠금설정
 */
function lockscreen() {
	var mplus = new mplus_mobile();
	var jsonMsg = {
			type : "command", 
			functionType : "lockscreen"
		};
	mplus.toNative(jsonMsg);
};


/**
 * 이전 버튼 이벤트
 */
function triggerBackBtn(){
	var mplus = new mplus_mobile();
	if( mplus.isAndroid() ){
		historyBack();
	 } 
};
/**
 * 홈버튼 이벤트
 */
function triggerSidebarBtn(){
	var mplus = new mplus_mobile();
	//헤더 백,메뉴버튼 숨어 있으면 리턴
	/* if( $("#menuBars_btn,#headerArrowLeft_btn").css("display") === "none" ){
		return;
	} */
	if( mplus.isAndroid() ){		
		/* $("a#menuBars_btn").trigger("click"); */
	}
}

/**
 * 프로그램 버전 확인
 */
function checkProgramVersion(){
	$("#sidebar .ui-listview li").removeClass("active");
	var jsonMsg = {
			type : "command", 
			functionType : "version",
			value : {
				callbackFn : "window.versionCallback"
			}
		}; 
		
		var mplus = new mplus_mobile(); 
		mplus.toNative(jsonMsg); 
};
window.versionCallback = function(data){
	var popup = $('#mplusAlert'),
		callback = popup.find(".popupCallback");		
	
	var alertMsg = $("<p></p>").text(data);
	$('#mplusAlert .modal-body').empty();
	$('#mplusAlert .modal-body').append(alertMsg);
		
	$('#mplusAlert').modal('show');
	
	
};


var strCode = "";
/**
* domain 저장
*/
function setDomain( code ){
	var strUrl = ""; 
	if( code === "1" ){
		strUrl = '<%=MPlusConstants.HOSPITAL.MPLUS.getDomain()+MPlusConstants.HOSPITAL.MPLUS.getContextName()%>';
		strCode = '<%=MPlusConstants.HOSPITAL.MPLUS.getCode()%>';
	} else {
		strUrl = '<%=MPlusConstants.HOSPITAL.MPLUS_COOK.getDomain()+MPlusConstants.HOSPITAL.MPLUS_COOK.getContextName()%>';
		strCode = '<%=MPlusConstants.HOSPITAL.MPLUS_COOK.getCode()%>';
	}
	var obj = {
			"type" : "command", 
		    "functionType" : "setRecentDomain",
		    "value" : {
		        "url" : strUrl,
		        "callbackFn": "window.redirectSidePage"
		    }	
	};
	try{		
		var mplus = new mplus_mobile();
		mplus.toNative( obj );
	} catch(e) {
		console.log(e);
	}
};
/**
* callback
**/
window.redirectSidePage = function(data){
	if( typeof data === "string" ){			
		data = JSON.parse( data );
	}
	
	if( data["success"] ){
		if( strCode.indexOf('031') >= 0 ){
			window.location.href = '<%=MPlusConstants.HOSPITAL.MPLUS.getDomain() + MPlusConstants.HOSPITAL.MPLUS.getContextName() + MPlusConstants.HOSPITAL.MPLUS.getStartPage()%>';
		} else {
			window.location.href = '<%=MPlusConstants.HOSPITAL.MPLUS_COOK.getDomain() + MPlusConstants.HOSPITAL.MPLUS_COOK.getContextName() + MPlusConstants.HOSPITAL.MPLUS_COOK.getStartPage()%>';
		}
	} else {
		mplus.alert( data["result"] );
	}
};
/**
 * 정렬팝업 오픈
**/
function sortPopOpen(sortList, callback){
	$('#sltSort').empty();
	for(var i=0; i<sortList.length; i++){
		var option = $('<option></option>').clone().attr('value', sortList[i].key).attr('type', sortList[i].type).text(sortList[i].value);
		$('#sltSort').append(option);
	};
	var popup = $('#sortModal'),
		callbackBtn = popup.find("#sortConfirmBtn");
	callbackBtn.unbind();
	callbackBtn.on("click",function(e){
		$('#sortModal').modal('hide');
		callback($('input[type="radio"][name="sortRadio"]:checked').val(), $('#sltSort option:selected').attr('type'), $('#sltSort').val());
	});
	
	$('#sortModal').modal('show');
}
function sortInit(sortList){
	$('.header span').css('display', 'none');
	$('#sltSort').empty();
	$('input[type="radio"][name="sortRadio"][value="up"]').prop('checked', true);
	for(var i=0; i<sortList.length; i++){
		var option = $('<option></option>').clone().attr('value', sortList[i].key).attr('type', sortList[i].type).text(sortList[i].value);
		$('#sltSort').append(option);
	};
};
/**
* 뒤로가기버튼 더블클릭 먹히지 않도록 
**/
var lastTouchEnd = 0;

$('[id*="prevBtn"]').on("click",function(e){
	var now = (new Date()).getTime();
				if (now - lastTouchEnd <= 300) {
					event.preventDefault();
				};
				lastTouchEnd = now;
});


/**
* 뒤로가기 함수 
**/
function historyBack(){
	if($('#sidebarMenu').css('right')=='0px'){
		$('#sidebarMenu').stop().animate({right:-5000},500);
		$('#sidebarMenu li a').removeClass('active');
		return;
	}
	if($('#patientPopup').css('bottom')=='0px' && $('#patientPopup').css('display')=='block'){
		if($('#patientPopup .popup-content.in:not(#popContentExamineInfo)').length>0 && $('#patientPopup #popContentExamineInfo').hasClass('in')){
			$('#patientPopup .popup-content#popContentExamineInfo').removeClass('in');
		}else if($('#patientPopup .popup-content.in:not(#popContentConsultDetail)').length>0 && $('#patientPopup #popContentConsultDetail').hasClass('in')){
			$('#patientPopup .popup-content.in:not(#popContentConsultDetail)').removeClass('in');
			$('.bottom-menu.selected').removeClass('selected');
			headerTitle.text("협진상세");
		} else {
			$('#patientPopup .popup-content').removeClass('in');
			$('#patientPopup').css('display', 'none');
			if( $('#clinicTab').length > 0 ) {
				headerTitle.text("환자목록");
			} else if ( $('#consultTab').length > 0 ) {
				headerTitle.text("협진");
			}
		}
		return;
	}else if($('#nursingPopup').css('bottom')=='0px' && $('#nursingPopup').css('display')=='block'){
		$('#openToggle').css({bottom:10}); //에니메이션을 넣으니 화면이  이동된후에 에니메이션 동작이 되어서 css만변경
		$('#overlay').stop().animate({bottom:-290},500);
		$('#nursingPopup').stop().animate({bottom:-max},500);
		$('#newPopupFooter').css('display', 'none');
		$('#patientList').css('margin-bottom', '0');
		$('#searchPatientList').css('margin-bottom', '0');
		$('#openToggle').removeClass('on');
		$('#openToggle').find('.fa').removeClass('fa-chevron-down');
		$('#openToggle').find('.fa').addClass('fa-chevron-up');
		headerTitle.text("환자목록");
		
		//새창이 아닌 아래에서 올라오는 팝업이므로 굳이 필요없게됨. 혹시나싶어서 남겨둠 
		/* if($('#newPopupPage  #popContentNursingRecode').hasClass('in')){
			if($('#tabCure').hasClass('active') && $('#cureDetail')[0].style['display']=='block'){
				$('#cureDetail').css('display', 'none');
				$('#cureList').css('display', 'block');	
			}else if($('#tabVital').hasClass('active') && $('#vitalInfo')[0].style['display']=='block'){
				$('#vitalInfo').css('display', 'none');
				$('#vitalSearch').css('display', 'block');	
			}else{
				$('#newPopupPage .popup-content').removeClass('in');
				$('#newPopupPage').css('display', 'none');	
				headerTitle.text("환자목록");
			};
		}else{
			$('#newPopupPage .popup-content').removeClass('in');
			$('#newPopupPage').css('display', 'none');
			headerTitle.text("환자목록");
		}; */
		return;
	};
	/* if($('#modalDetailContent').css('display')=='block'&&$('#emrListInfo').css('display')=='none'){
		$('#modalDetailContent').css('display', 'none');
		$('#modalContent').css('display', 'block');
		return;
	}; */
	//dialog 열려있으면 닫기
	if($('.modal').is(':visible')){
		$('.modal').modal('hide');
		return;
	};
	//index 면 종료
	if(    (window.location.href).indexOf("inpatient.page") > 0 || (window.location.href).indexOf("outpatient.page") > 0 || (window.location.href).indexOf("oppatient.page") > 0 
	    || (window.location.href).indexOf("trpatient.page") > 0   || (window.location.href).indexOf("empatient.page") > 0  || (window.location.href).indexOf("copatient.page") > 0 
	    || (window.location.href).indexOf("login.page") > 0){
		exitApp();
		return;
	};
	history.back();
};


//다국어 사용
var i18n = function(){
	var message = {
		"error500" : "<s:message code='mplus.error.500'/>",
		"unauthenticated" : "<s:message code='mplus.auth.unauthenticated'/>"
	};
	
	this.getMessage = function( code ){
		return message[code];
	};
};

// PACS 경로
var pacsUrl = function(){
	var gePacsUrl = {
			"01" : "<s:eval expression="@mplusConfig['ge.pacs.image.path.01']"/>",
 			"10" : "<s:eval expression="@mplusConfig['ge.pacs.image.path.10']"/>"
	};
	var musePacsUrl = {
			"01" : "<s:eval expression="@mplusConfig['muse.pacs.image.path.01']"/>",
			"10" : "<s:eval expression="@mplusConfig['muse.pacs.image.path.10']"/>"
	};
	
	this.getPacsUrl = function (type, hospitalCd) {
		if( type == 'S' ) {
			return gePacsUrl[hospitalCd];
		} else if( type == 'M' )	{
			return musePacsUrl[hospitalCd];
		}
	};
};

</script>

<link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/font-awesome.css" />" />
<script type="text/javascript" src="<c:url value="/resources/plugins/jquery-number-2.1.6/jquery.number.js" /> "></script>

<!-- 부트스트랩 css및 스크립트 -->
<link rel="stylesheet" href="<c:url value="/resources/plugins/bootstrap/css/bootstrap.css" /> ">
<script type="text/javascript" src="<c:url value="/resources/plugins/bootstrap/js/bootstrap.min.js" /> "></script>

<link rel="stylesheet" href="<c:url value="/resources/plugins/jquery-datetimepicker/css/jquery.datetimepicker.min.css" /> ">
<script type="text/javascript" src="<c:url value="/resources/plugins/jquery-datetimepicker/js/jquery.datetimepicker.full.min.js" /> "></script>

<script type="text/javascript" src="<c:url value="/resources/plugins/bootstrap-datepicker/js/moment.js" /> "></script>
<script type="text/javascript" src="<c:url value="/resources/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js" /> "></script>
<link rel="stylesheet" href="<c:url value="/resources/plugins/bootstrap-datepicker/css/datepicker.css" /> ">
<script type="text/javascript" src="<c:url value="/resources/plugins/slick/slick/slick.min.js"/> "></script>
<link rel="stylesheet" href="<c:url value="/resources/plugins/slick/slick/slick.css" /> ">
<link rel="stylesheet" type="text/css" href="<c:url value="/resources/plugins/slick/slick/slick-theme.css"/>" />

<script type="text/javascript" src="<c:url value="/resources/plugins/bootstrap-slider-master/js/bootstrap-slider.js" /> "></script>
<link rel="stylesheet" href="<c:url value="/resources/plugins/bootstrap-slider-master/css/bootstrap-slider.css" /> ">

<!-- mcare-plus javascript -->
<script type="text/javascript" src="<c:url value="/resources/js/core/mplus.core.js?version=" /><s:message code="mp.version"/>"></script>
<script type="text/javascript" src="<c:url value="/resources/js/mobile/mplus.common.js?version=" /><s:message code="mp.version"/>"></script>
<script type="text/javascript" src="<c:url value="/resources/js/mobile/common.js?version=" /><s:message code="mp.version"/>"></script>
<%-- <script type="text/javascript" src="<c:url value="/resources/js/mobile/patient/patient.js?version=" /><s:message code="mp.version"/>"></script>
<script type="text/javascript" src="<c:url value="/resources/js/mobile/patient/nursing.js?version=" /><s:message code="mp.version"/>"></script>  --%>


<link rel="stylesheet" href="<c:url value="/resources/css/mobile/mplus.tablet.css?version=" /><s:message code="mp.version"/>"/>
<link rel="stylesheet" href="<c:url value="/resources/css/mobile/mplus.mobile.css?version=" /><s:message code="mp.version"/>"/>
<link rel="stylesheet" href="<c:url value="/resources/css/mobile_poc/mobile.css?version=" /><s:message code="mp.version"/>"/>
<link rel="stylesheet" href="<c:url value="/resources/css/mobile_poc/reset.css?version=" /><s:message code="mp.version"/>"/>


<%-- <link rel="stylesheet" href="<c:url value="/resources/css/mobile/common.css?version=" /><s:message code="mp.version"/>"/> --%>

<!-- publishing design -->
<%-- <link rel="stylesheet" href="<c:url value='/resources/css/publishing/mobile.css?version=' /><s:message code='mp.version'/>"/>
<link rel="stylesheet" href="<c:url value='/resources/css/publishing/tablet.css?version=' /><s:message code='mp.version'/>"/> --%>
<script type="text/javascript" src="<c:url value='/resources/js/publishing/common.js?version=' /><s:message code='mp.version'/>"></script>
