consentTestData.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. /**
  2. * consent
  3. */
  4. var mplus_mobile_consent = function(){
  5. $hospitalServiceBaseUrl = contextPath + "/mobile/hospital";
  6. $patientServiceBaseUrl = contextPath + "/mobile";
  7. $consentServiceBaseUrl = contextPath + "/mobile/consent";
  8. var self = this;
  9. this.hospital = {
  10. //부서리스트
  11. getDeptList : function(request){
  12. var deptList = [
  13. {
  14. "deptnm": "전체",
  15. "deptcd": " "
  16. },
  17. {
  18. "deptnm": "육아상담실(영유아검진실)",
  19. "deptcd": "1111111111"
  20. },
  21. {
  22. "deptnm": "외과",
  23. "deptcd": "2222222222"
  24. }
  25. ];
  26. return deptList;
  27. },
  28. //의사리스트
  29. getDoctorList : function(request){
  30. var doctorList = [
  31. {
  32. "doctornm": "전체",
  33. "doctorid": " "
  34. },
  35. {
  36. "doctornm": "김예준",
  37. "doctorid": "111111"
  38. },
  39. {
  40. "doctornm": "김준수",
  41. "doctorid": "222222"
  42. }
  43. ];
  44. return doctorList;
  45. },
  46. //병동리스트
  47. getWardList : function(){
  48. var wardList = [
  49. {
  50. "deptnm": "전체",
  51. "deptcd": " "
  52. },
  53. {
  54. "deptnm": "00병동",
  55. "deptcd": "000000000"
  56. },
  57. {
  58. "deptnm": "11병동",
  59. "deptcd": "1111111111"
  60. },
  61. {
  62. "deptnm": "22병동",
  63. "deptcd": "2222222222"
  64. }
  65. ];
  66. return wardList;
  67. },
  68. // 환자정보조회
  69. getPatientInfo : function(request){
  70. var patientInfoList = [{
  71. ioaddate:"20160929",
  72. iodxNm:"유방암",
  73. iomaindrId:"123456",
  74. iomaindrNm:"김예준",
  75. ioptID:"2061272",
  76. ioptName:"홍길동",
  77. iorespiration:"02",
  78. ioroomNo:"123",
  79. iosexAgeYM:"F/21"
  80. },
  81. {
  82. ioaddate:"20160929",
  83. iodxNm:"유방암",
  84. iomaindrId:"123456",
  85. iomaindrNm:"김예준",
  86. ioptID:"2061272",
  87. ioptName:"김준수",
  88. iorespiration:"02",
  89. ioroomNo:"123",
  90. iosexAgeYM:"F/21"
  91. }
  92. ];
  93. return patientInfoList;
  94. }
  95. };
  96. this.patient = {
  97. //환자리스트 조회
  98. getPatientList : function(type, request){
  99. var patientList = [
  100. {
  101. deptnm:"육아상담실(영유아검진실)",
  102. doctorid:"123456",
  103. doctornm:"홍길동",
  104. hngnm:"성춘향",
  105. indd:"2016/09/29",
  106. instcd:"000",
  107. oproomnm:"",
  108. orddd:"20160928",
  109. orddeptcd:"2100000000",
  110. orddrid:"",
  111. orddrnm:"",
  112. ordtm:"N",
  113. ordtype:"I",
  114. pid:"1234567",
  115. roomcd:"123",
  116. sa:"F/21y11m"},
  117. {
  118. deptnm:"외과",
  119. doctorid:"123456",
  120. doctornm:"김예준",
  121. hngnm:"김준수",
  122. indd:"2016/09/29",
  123. instcd:"000",
  124. oproomnm:"",
  125. orddd:"20160928",
  126. orddeptcd:"2100000000",
  127. orddrid:"",
  128. orddrnm:"",
  129. ordtm:"N",
  130. ordtype:"I",
  131. pid:"1234567",
  132. roomcd:"123",
  133. sa:"F/21y11m"}
  134. ];
  135. return patientList;
  136. }
  137. };
  138. this.consent = {
  139. //동의서조회
  140. getConsentList : function(request){
  141. var consentList = [
  142. {
  143. "createUserId": "123456",
  144. "ocrNumber": "2016092912345",
  145. "orderCd": "0000000000",
  146. "roomCd": "123",
  147. "prntCnt": 1,
  148. "hosType": "111",
  149. "createUserName": "홍길동",
  150. "ward": "11",
  151. "clnDeptNm": "외과",
  152. "cosignDcId": null,
  153. "formCd": "",
  154. "formGuid": "",
  155. "patientCode": "1234567",
  156. "cosignDcName": null,
  157. "consentMstRid": 111,
  158. "orderNm": "외과",
  159. "orderNo": 111,
  160. "consentName": "폐결핵에 대한 설명 및 동의서",
  161. "visitType": "I",
  162. "createDateTime": "2016-09-29 14:23:17",
  163. "consentState": "TEMP",
  164. "doctor": "",
  165. "clnDate": "20150615",
  166. "consentStateDisp": "임시저장",
  167. "formRid": 185,
  168. "cretno": 1,
  169. "clnDeptCd": "2040000000"
  170. },
  171. {
  172. "createUserId": "123456",
  173. "ocrNumber": "2016092912345",
  174. "orderCd": "0000000000",
  175. "roomCd": "123",
  176. "prntCnt": 1,
  177. "hosType": "111",
  178. "createUserName": "김예준",
  179. "ward": "11",
  180. "clnDeptNm": "외과",
  181. "cosignDcId": null,
  182. "formCd": "",
  183. "formGuid": "",
  184. "patientCode": "1234567",
  185. "cosignDcName": null,
  186. "consentMstRid": 111,
  187. "orderNm": "외과",
  188. "orderNo": 111,
  189. "consentName": "폐결핵에 대한 설명 및 동의서",
  190. "visitType": "I",
  191. "createDateTime": "2016-09-29 14:23:17",
  192. "consentState": "UNFINISHED",
  193. "doctor": "",
  194. "clnDate": "20150615",
  195. "consentStateDisp": "미작성",
  196. "formRid": 185,
  197. "cretno": 1,
  198. "clnDeptCd": "2040000000"
  199. },
  200. {
  201. "createUserId": "123456",
  202. "ocrNumber": "2016092912345",
  203. "orderCd": "0000000000",
  204. "roomCd": "123",
  205. "prntCnt": 1,
  206. "hosType": "111",
  207. "createUserName": "김예준",
  208. "ward": "11",
  209. "clnDeptNm": "외과",
  210. "cosignDcId": null,
  211. "formCd": "",
  212. "formGuid": "",
  213. "patientCode": "1234567",
  214. "cosignDcName": null,
  215. "consentMstRid": 111,
  216. "orderNm": "외과",
  217. "orderNo": 111,
  218. "consentName": "폐결핵에 대한 설명 및 동의서",
  219. "visitType": "I",
  220. "createDateTime": "2016-09-29 14:23:17",
  221. "consentState": "ELECTR_CMP",
  222. "doctor": "",
  223. "clnDate": "20150615",
  224. "consentStateDisp": "서명",
  225. "formRid": 185,
  226. "cretno": 1,
  227. "clnDeptCd": "2040000000"
  228. },
  229. {
  230. "createUserId": "123456",
  231. "ocrNumber": "2016092912345",
  232. "orderCd": "0000000000",
  233. "roomCd": "123",
  234. "prntCnt": 1,
  235. "hosType": "111",
  236. "createUserName": "김예준",
  237. "ward": "11",
  238. "clnDeptNm": "외과",
  239. "cosignDcId": null,
  240. "formCd": "",
  241. "formGuid": "",
  242. "patientCode": "1234567",
  243. "cosignDcName": null,
  244. "consentMstRid": 111,
  245. "orderNm": "외과",
  246. "orderNo": 111,
  247. "consentName": "폐결핵에 대한 설명 및 동의서",
  248. "visitType": "I",
  249. "createDateTime": "2016-09-29 14:23:17",
  250. "consentState": "PAPER_OUT",
  251. "doctor": "",
  252. "clnDate": "20150615",
  253. "consentStateDisp": "출력",
  254. "formRid": 185,
  255. "cretno": 1,
  256. "clnDeptCd": "2040000000"
  257. },
  258. {
  259. "createUserId": "123456",
  260. "ocrNumber": "2016092912345",
  261. "orderCd": "0000000000",
  262. "roomCd": "123",
  263. "prntCnt": 1,
  264. "hosType": "111",
  265. "createUserName": "김예준",
  266. "ward": "11",
  267. "clnDeptNm": "외과",
  268. "cosignDcId": null,
  269. "formCd": "",
  270. "formGuid": "",
  271. "patientCode": "1234567",
  272. "cosignDcName": null,
  273. "consentMstRid": 111,
  274. "orderNm": "외과",
  275. "orderNo": 111,
  276. "consentName": "폐결핵에 대한 설명 및 동의서",
  277. "visitType": "I",
  278. "createDateTime": "2016-09-29 14:23:17",
  279. "consentState": "CERTIFY_CMP",
  280. "doctor": "",
  281. "clnDate": "20150615",
  282. "consentStateDisp": "인증",
  283. "formRid": 185,
  284. "cretno": 1,
  285. "clnDeptCd": "2040000000"
  286. },
  287. {
  288. "createUserId": "123456",
  289. "ocrNumber": "2016092912345",
  290. "orderCd": "0000000000",
  291. "roomCd": "123",
  292. "prntCnt": 1,
  293. "hosType": "111",
  294. "createUserName": "김예준",
  295. "ward": "11",
  296. "clnDeptNm": "외과",
  297. "cosignDcId": null,
  298. "formCd": "",
  299. "formGuid": "",
  300. "patientCode": "1234567",
  301. "cosignDcName": null,
  302. "consentMstRid": 111,
  303. "orderNm": "외과",
  304. "orderNo": 111,
  305. "consentName": "폐결핵에 대한 설명 및 동의서",
  306. "visitType": "I",
  307. "createDateTime": "2016-09-29 14:23:17",
  308. "consentState": "VERBAL",
  309. "doctor": "",
  310. "clnDate": "20150615",
  311. "consentStateDisp": "구두",
  312. "formRid": 185,
  313. "cretno": 1,
  314. "clnDeptCd": "2040000000"
  315. }
  316. ];
  317. return consentList;
  318. },
  319. //동의서 검색
  320. getConsentBySearch: function(request){
  321. var consentList = [
  322. {
  323. "formName": "자기공명영상(MRI)검사 설명 및 동의서"
  324. },
  325. {
  326. "formName": "컴퓨터단층촬영(CT) 검사 설명 및 동의서"
  327. }
  328. ];
  329. return consentList;
  330. },
  331. //동의서 set조회
  332. getConsentSetList: function(request){
  333. var consentList = [
  334. {
  335. "formName": "자기공명영상(MRI)검사 설명 및 동의서"
  336. },
  337. {
  338. "formName": "컴퓨터단층촬영(CT) 검사 설명 및 동의서"
  339. }
  340. ];
  341. return consentList;
  342. },
  343. //카테고리리스트 조회
  344. getCategoryForDropdown: function(request){
  345. var categoryList = [
  346. {
  347. "categoryName": "전체",
  348. "categoryId": "1"
  349. },
  350. {
  351. "categoryName": "cate",
  352. "categoryId": "2"
  353. },
  354. {
  355. "categoryName": "gory",
  356. "categoryId": "3"
  357. }
  358. ];
  359. return categoryList;
  360. },
  361. makeConsentStateParam: function() {
  362. // 체크된 박스들
  363. var checkedStatus = $('.consentSearchBox input:checked');
  364. // 체크된게 없으면 일단 이렇게 처리
  365. if( checkedStatus == undefined ) {
  366. alert('동의서 상태 조건을 선택하세요!');
  367. }
  368. var consentStatus = '';
  369. for(var i = 0; i < checkedStatus.length; i++) {
  370. // 전체가 체크된 경우 뒤도 돌아보지않고 ALL만 리턴하도록
  371. if( checkedStatus[i].value == 'ALL') {
  372. consentStatus = checkedStatus[i].value;
  373. return consentStatus;
  374. } else {
  375. consentStatus = consentStatus + checkedStatus[i].value;
  376. }
  377. // 콤마 구분자 추가
  378. if(i != checkedStatus.length - 1) {
  379. consentStatus = consentStatus + ',';
  380. }
  381. }
  382. return consentStatus;
  383. }
  384. };
  385. };