From 75b9618a26d71a91f7461c49a6879a809afb7aac Mon Sep 17 00:00:00 2001 From: Hasyim Kai Date: Fri, 5 Dec 2025 14:16:05 +0700 Subject: [PATCH] Squashed commit of the following: commit 9f5ede3aeae4f55a8ee84ee6c95c179252d10b9e Merge: 16858dc dbe8e34 Author: Munawwirul Jamal <57973347+munaja@users.noreply.github.com> Date: Fri Dec 5 09:26:33 2025 +0700 Merge pull request #213 from dikstub-rssa/feat/things-munaja Feat/things munaja commit dbe8e34d07d0d55e2e963cdc9bf1bdb6420600cb Author: Munawwirul Jamal Date: Fri Dec 5 09:26:00 2025 +0700 feat/things-munaja: fix enc status commit 786107ddd9da543fbc3f1c87ee71c20e768f4257 Author: Munawwirul Jamal Date: Thu Dec 4 22:57:33 2025 +0700 feat/things-munaja: content switcher commit 4450cb943e28f8895acee8d991c86e26f7605e0b Merge: 9136093 16858dc Author: Munawwirul Jamal Date: Thu Dec 4 19:31:30 2025 +0700 Merge branch 'dev' into feat/things-munaja commit 9136093fd6ae317c06300e3b2e88f667e3c53149 Author: Munawwirul Jamal Date: Thu Dec 4 18:02:14 2025 +0700 feat/things-munaja: cleaning commit 16858dc2a02df05945fdd0905f61c30c73b78e5c Merge: 82e33c6 67a5154 Author: Munawwirul Jamal <57973347+munaja@users.noreply.github.com> Date: Thu Dec 4 14:30:35 2025 +0700 Merge pull request #212 from dikstub-rssa/feat/encounter-adjustment-163 Enhancement SEP commit 67a515478cf9412dbe7ef56885ea84d662be0de4 Author: riefive Date: Thu Dec 4 13:39:36 2025 +0700 fix: save sep commit 82e33c6dbf0cfe04b298903495b3464d27628311 Merge: f96cbdb eba740a Author: Munawwirul Jamal <57973347+munaja@users.noreply.github.com> Date: Thu Dec 4 13:21:37 2025 +0700 Merge pull request #209 from dikstub-rssa/feat/move-kai-ui-to-sidebar-195 Feat/move kai UI to sidebar 195 commit e6b74a4949383014a1e665928165f4a4d3af5663 Author: riefive Date: Thu Dec 4 12:36:53 2025 +0700 fix: encounter update form commit 434f8471ce90c5dc296c1388cfd6dee173ac3248 Author: riefive Date: Thu Dec 4 12:20:07 2025 +0700 fix: update save again commit bae087aa6d5b25cf80688e512963854242b49ae6 Author: riefive Date: Thu Dec 4 12:19:37 2025 +0700 fix: update save commit f96cbdb173a67972c98400936117aec3cd8468b3 Merge: 5de0057 62556a5 Author: Munawwirul Jamal <57973347+munaja@users.noreply.github.com> Date: Thu Dec 4 12:07:25 2025 +0700 Merge pull request #210 from dikstub-rssa/feat/procedure-room-order Feat/procedure room order commit 62556a5c7df292d7d1d72ec6c2301482ef5e65e8 Merge: 93a294d 5de0057 Author: Munawwirul Jamal <57973347+munaja@users.noreply.github.com> Date: Thu Dec 4 12:07:18 2025 +0700 Merge branch 'dev' into feat/procedure-room-order commit 5da439720f541fa48ad5015617cb98a847b0fcfc Author: riefive Date: Thu Dec 4 11:59:37 2025 +0700 feat: implement encounter entry form for patient, doctor, payment, and SEP management commit 5de0057278aef9ba4d12bcd7c711a3fb5278670f Merge: 71ca7f9 782034c Author: Andsky Date: Thu Dec 4 11:56:31 2025 +0700 Merge pull request #211 from dikstub-rssa/feat/micro-lab-order-50 Feat/micro lab order 50 commit 93a294d8d09744b89f4dc446fdbc27916010b5b7 Merge: 6c26367 26365bb Author: Andrian Roshandy Date: Thu Dec 4 11:18:49 2025 +0700 Merge branch 'dev' into feat/procedure-room-order commit 26365bbd2e5e2fe6ee9d2a4c76263284f0549c98 Merge: b6b56d1 e7cab6c Author: Andrian Roshandy Date: Thu Dec 4 11:18:33 2025 +0700 Merge branch 'dev' of github.com:dikstub-rssa/simrs-fe into dev commit 6c26367c1de555497287c2d1d5a664fdc3011405 Author: Andrian Roshandy Date: Thu Dec 4 10:51:40 2025 +0700 feat/procedure-room-order: added item commit d2ceda37bf0e9b76cefb4aa26112bafb17abeace Author: riefive Date: Thu Dec 4 10:58:16 2025 +0700 feat: Implement encounter list management with search, date range filtering, and record actions. commit a0dfd214e59c8295d8f18fedb90dad2b7865697c Author: Andrian Roshandy Date: Thu Dec 4 10:25:50 2025 +0700 feat/procedure-room-order: finishing commit acb573e279869d6ac326f8cb3337d11043ab3b87 Author: Andrian Roshandy Date: Thu Dec 4 10:25:35 2025 +0700 feat/procedure-room-order: adjust procedure-room-order commit 9adb77d10b1d0fbf4217437ee3ab212979b84bb0 Author: Andrian Roshandy Date: Thu Dec 4 10:24:52 2025 +0700 feat/procedure-room-order: adjust material-package commit 52454a019e3e9b8ade23e4daacf6d08658f1a044 Merge: 0a0fb73 b6b56d1 Author: Andrian Roshandy Date: Thu Dec 4 10:23:14 2025 +0700 Merge branch 'dev' into feat/procedure-room-order commit b6b56d186d4885ec5ed7a8029cf40d13fc10a767 Author: Munawwirul Jamal Date: Thu Dec 4 10:17:16 2025 +0700 dev: hotfix, cleaning some pubs commit acc45b205f9df0f5862985909cd6fc5231f6876c Author: riefive Date: Wed Dec 3 16:25:15 2025 +0700 fix: upload sep + sipp file commit 0a0fb73483adcc60d08d229ea26da227c15bb605 Author: Munawwirul Jamal Date: Wed Dec 3 14:33:13 2025 +0700 feat/procedure-room-order: flow for procedure room commit 7b4b4eecf9cc3106f6348c2b7244bea12bafb584 Merge: 9f72e1d b172125 Author: Andrian Roshandy Date: Wed Dec 3 10:18:15 2025 +0700 Merge branch 'feat/mcu-order' into feat/procedure-room-order commit 782034c2b1d6f58f039b3d2126ef0bb2604e9f50 Merge: bae0a22 b80ee5a Author: Andrian Roshandy Date: Wed Dec 3 10:16:45 2025 +0700 Merge branch 'dev' into feat/micro-lab-order-50 commit 9f72e1df477d7262bb9c6eb2f86f2e4e1e37031a Merge: fa0ae98 b80ee5a Author: Andrian Roshandy Date: Wed Dec 3 10:02:57 2025 +0700 Merge branch 'dev' into feat/procedure-room-order commit fa0ae9866e8e255430fca01b129ee8264ad50491 Author: Andrian Roshandy Date: Wed Dec 3 09:44:33 2025 +0700 feat/procedure-room-order: wip #3 commit ce93f996d94a3c56d963363cd6e8bd9ddb4ccce2 Author: Andrian Roshandy Date: Wed Dec 3 09:43:36 2025 +0700 feat/procedure-room-order: wip #2 + procedure-room commit 4444e87cb3db639bc3631c2761ab7705459336c5 Author: Andrian Roshandy Date: Wed Dec 3 09:42:31 2025 +0700 feat/procedure-room-order: wip #1 + material-package + material-package-item commit b172125d9950fdb75d74b08756bf5aec7910f869 Merge: b2d3c14 9b7a719 Author: Andrian Roshandy Date: Mon Dec 1 20:41:58 2025 +0700 Merge branch 'feat/page-cleaning' into feat/mcu-order commit bae0a222b8b7e79fc6cc2507ffaec53c406ee669 Author: Andrian Roshandy Date: Mon Dec 1 01:51:04 2025 +0700 feat/micro-lab-order-50: adjust for antibiotic commit 1ee0f39e7d417d8f91a11cd463c0a9cf7bc94846 Author: Andrian Roshandy Date: Mon Dec 1 01:50:39 2025 +0700 feat/micro-lab-order-50: added antibiotic commit 95e27a8b6f6dddf24c31df329aa9077f08b0c64d Author: Andrian Roshandy Date: Sun Nov 30 13:00:04 2025 +0700 feat/micro-lab-order-50: wip commit a002ef6c6ea481865f08dd0f1dde768722463a31 Merge: fb2f01b b2d3c14 Author: Andrian Roshandy Date: Sun Nov 30 12:50:31 2025 +0700 Merge branch 'feat/mcu-order' into feat/micro-lab-order-50 commit b2d3c14ddc71fd6d6a23c8a7fd9c922c8b62327e Author: Andrian Roshandy Date: Sun Nov 30 12:48:11 2025 +0700 feat/mcu-order: adjustment commit fb2f01bd36e1c9e150b08773fc227871ca907ffb Merge: 9a481fe 5c92f8b Author: Andrian Roshandy Date: Sun Nov 30 12:43:11 2025 +0700 Merge branch 'feat/mcu-order' into feat/micro-lab-order-50 commit 5c92f8b9465b11c798db33602e1d5351abe7646b Author: Andrian Roshandy Date: Sun Nov 30 12:30:19 2025 +0700 feat/mcu-order: added the components commit 9a481fec148a4f884243306494a0d7a85b1e246f Merge: 4251239 78fc289 Author: Andrian Roshandy Date: Fri Nov 28 21:18:10 2025 +0700 Merge branch 'dev' into feat/micro-lab-order-50 commit 4251239f7cd7185cb3841f912dae8df23012ca36 Author: Andrian Roshandy Date: Fri Nov 28 21:17:18 2025 +0700 feat/micro-lab-order-50: wip commit cf5789549e7e86b6e93f9d784e3ccb433e22619f Author: Munawwirul Jamal Date: Sun Nov 23 15:56:31 2025 +0700 feat/mcu: improved wip commit a40eac35f8ec61875fc1c2145034b65186fc04be Merge: 3211972 baf6ab1 Author: Andrian Roshandy Date: Wed Nov 19 22:23:18 2025 +0700 Merge branch 'dev' into feat/radiology-order-54 commit 3211972a846f26a90e6ae8a42162c0b48104f429 Merge: e3fc1e4 ccabe01 Author: Andrian Roshandy Date: Sat Nov 15 20:15:07 2025 +0700 Merge branch 'dev' into feat/radiology-order-54 commit e3fc1e4ab9014e0948dda6c412433509b03310de Author: Andrian Roshandy Date: Sat Nov 15 20:14:38 2025 +0700 feat/radiology-order-54: adjust wip --- .../app/encounter/check-in-entry.vue | 31 ++-- .../app/encounter/check-in-view.vue | 45 +++--- .../app/encounter/check-out-view.vue | 7 +- app/components/app/encounter/entry-form.vue | 78 +++++++--- app/components/app/encounter/filter-nav.vue | 80 ++++++----- app/components/app/encounter/quick-info.vue | 10 +- .../app/encounter/quick-shortcut.vue | 80 ++++++----- app/components/app/prescription/flat-list.vue | 6 - .../app/prescription/grouped-list.vue | 6 - app/components/app/sep/entry-form.vue | 1 - app/components/content/encounter/list.vue | 68 +++++---- app/components/content/encounter/process.vue | 40 +++--- app/components/content/encounter/status.vue | 30 ++-- .../content-switcher/content-switcher.vue | 82 ++++------- app/components/pub/my-ui/doc-entry/block.vue | 4 +- app/components/pub/my-ui/menus/submenu.vue | 11 +- app/const/page-permission/ambulatory.ts | 134 +++++++++++++++++- app/handlers/encounter-entry.handler.ts | 54 +++++-- app/handlers/encounter-init.handler.ts | 68 +++++---- app/handlers/encounter-process.handler.ts | 8 +- app/handlers/integration-sep-entry.handler.ts | 6 +- app/handlers/supporting-document.handler.ts | 14 ++ app/models/encounter.ts | 2 +- app/models/nurse.ts | 2 + .../ambulatory/encounter/[id]/process.vue | 32 +++-- app/schemas/encounter.schema.ts | 5 +- 26 files changed, 571 insertions(+), 333 deletions(-) diff --git a/app/components/app/encounter/check-in-entry.vue b/app/components/app/encounter/check-in-entry.vue index ad7de5d6..ea897a31 100644 --- a/app/components/app/encounter/check-in-entry.vue +++ b/app/components/app/encounter/check-in-entry.vue @@ -10,12 +10,13 @@ import ComboBox from '~/components/pub/my-ui/combobox/combobox.vue' import * as DE from '~/components/pub/my-ui/doc-entry' import type { CheckInFormData } from '~/schemas/encounter.schema' import type { Encounter } from '~/models/encounter' +import { now } from '@internationalized/date'; interface Props { schema: z.ZodSchema values: any doctors: { value: string; label: string }[] - employees: { value: string; label: string }[] + // employees: { value: string; label: string }[] encounter: Encounter isLoading?: boolean isReadonly?: boolean @@ -36,18 +37,23 @@ const { defineField, errors, meta } = useForm({ } as Partial, }) -const [responsible_doctor_id, responsible_doctor_idAttrs] = defineField('responsible_doctor_id') -const [adm_employee_id, adm_employee_idAttrs] = defineField('discharge_method_code') +const [responsible_doctor_code, responsible_doctor_codeAttrs] = defineField('responsible_doctor_code') +// const [adm_employee_id, adm_employee_idAttrs] = defineField('discharge_method_code') const [registeredAt, registeredAtAttrs] = defineField('registeredAt') function submitForm() { const formData: CheckInFormData = { - responsible_doctor_id: responsible_doctor_id.value, - adm_employee_id: adm_employee_id.value, - // registeredAt: registeredAt.value || '', + responsible_doctor_code: responsible_doctor_code.value, + // adm_employee_id: adm_employee_id.value, + registeredAt: registeredAt.value || '', } emit('submit', formData) } + +function setTime() { + const today = new Date() + registeredAt.value = today.toISOString().substring(0, 10) + ' ' + today.toLocaleTimeString('id-ID').substring(0, 5).replace('.', ':'); +} diff --git a/app/components/app/encounter/quick-info.vue b/app/components/app/encounter/quick-info.vue index 4705264b..2c486a73 100644 --- a/app/components/app/encounter/quick-info.vue +++ b/app/components/app/encounter/quick-info.vue @@ -42,14 +42,14 @@ if (props.data.responsible_doctor) {