{"level":"error","message":"This is a test error!","stack":"Error: This is a test error!\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\server.js:113:8\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:149:13)\n    at Route.dispatch (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:119:3)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:284:15\n    at Function.process_params (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:346:12)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:280:10)\n    at jsonParser (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:113:7)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)","timestamp":"2025-09-24 11:48:55","url":"/error"}
{"level":"error","message":"This is a test error!","stack":"Error: This is a test error!\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\server.js:113:8\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:149:13)\n    at Route.dispatch (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:119:3)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:284:15\n    at Function.process_params (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:346:12)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:280:10)\n    at jsonParser (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:113:7)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)","timestamp":"2025-09-24 11:51:50","url":"/error"}
{"level":"error","message":"This is a test error!","stack":"Error: This is a test error!\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\server.js:113:8\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:149:13)\n    at Route.dispatch (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:119:3)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:284:15\n    at Function.process_params (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:346:12)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:280:10)\n    at jsonParser (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:113:7)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)","timestamp":"2025-09-24 11:58:41","url":"/error"}
{"level":"error","message":"This is a test error!","stack":"Error: This is a test error!\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\server.js:113:8\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:149:13)\n    at Route.dispatch (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:119:3)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:284:15\n    at Function.process_params (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:346:12)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:280:10)\n    at jsonParser (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:113:7)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)","timestamp":"2025-09-24 11:59:06","url":"/error"}
{"level":"error","message":"This is a test error!","stack":"Error: This is a test error!\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\server.js:113:8\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:149:13)\n    at Route.dispatch (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:119:3)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:284:15\n    at Function.process_params (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:346:12)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:280:10)\n    at jsonParser (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:113:7)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)","timestamp":"2025-09-24 11:59:44","url":"/error"}
{"level":"error","message":"This is a test error!","stack":"Error: This is a test error!\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\server.js:113:8\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:149:13)\n    at Route.dispatch (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:119:3)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:284:15\n    at Function.process_params (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:346:12)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\index.js:280:10)\n    at jsonParser (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:113:7)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)","timestamp":"2025-09-24 12:01:43","url":"/error"}
{"level":"error","message":"err.msg.join is not a function","stack":"TypeError: err.msg.join is not a function\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\middleware\\valiationMiddleware.js:84:54\n    at Array.map (<anonymous>)\n    at validateStaffLogin (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\middleware\\valiationMiddleware.js:84:33)\n    at Layer.handle [as handle_request] (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\layer.js:95:5)\n    at next (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express\\lib\\router\\route.js:149:13)\n    at middleware (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\express-validator\\lib\\middlewares\\check.js:16:13)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-09-30 06:51:35","url":"/api/v1/auth/staff/login"}
{"level":"error","message":"Expected ',' or '}' after property value in JSON at position 471 (line 18 column 1)","stack":"SyntaxError: Expected ',' or '}' after property value in JSON at position 471 (line 18 column 1)\n    at JSON.parse (<anonymous>)\n    at parse (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:92:19)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\read.js:128:18\n    at AsyncResource.runInAsyncScope (node:async_hooks:214:14)\n    at invokeCallback (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:238:16)\n    at done (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:227:7)\n    at IncomingMessage.onEnd (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:287:7)\n    at IncomingMessage.emit (node:events:518:28)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-10-20 17:12:09","url":"/api/v1/patient/register"}
{"level":"error","message":"Expected ',' or '}' after property value in JSON at position 471 (line 18 column 1)","stack":"SyntaxError: Expected ',' or '}' after property value in JSON at position 471 (line 18 column 1)\n    at JSON.parse (<anonymous>)\n    at parse (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:92:19)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\read.js:128:18\n    at AsyncResource.runInAsyncScope (node:async_hooks:214:14)\n    at invokeCallback (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:238:16)\n    at done (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:227:7)\n    at IncomingMessage.onEnd (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:287:7)\n    at IncomingMessage.emit (node:events:518:28)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-10-20 17:21:31","url":"/api/v1/patient/register"}
{"level":"error","message":"Expected ',' or '}' after property value in JSON at position 469 (line 17 column 1)","stack":"SyntaxError: Expected ',' or '}' after property value in JSON at position 469 (line 17 column 1)\n    at JSON.parse (<anonymous>)\n    at parse (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\types\\json.js:92:19)\n    at C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\body-parser\\lib\\read.js:128:18\n    at AsyncResource.runInAsyncScope (node:async_hooks:214:14)\n    at invokeCallback (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:238:16)\n    at done (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:227:7)\n    at IncomingMessage.onEnd (C:\\Users\\onyew\\Desktop\\HOLY-FAMILY-HOSPITAL-API\\node_modules\\raw-body\\index.js:287:7)\n    at IncomingMessage.emit (node:events:518:28)\n    at endReadableNT (node:internal/streams/readable:1698:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-10-20 17:29:49","url":"/api/v1/patient/register"}
