Compare commits

..
1229 Commits
Author SHA1 Message Date
munawwirul_jamal d21cae7ded dev: hotfix, Dockerfile after final 2025-12-12 11:09:54 +07:00
munawwirul_jamal 1ec7cf517e dev: hotfix, Dockerfile final 2025-12-12 11:02:39 +07:00
munawwirul_jamal 87baa898f6 dev: hotfixes
+ moved cmd/simgos-sync* to cmd/snync*
+ adjust Dockerfiles
2025-12-12 10:51:37 +07:00
munawwirul_jamal 44b37e2d49 dev: hotfix - chore: Dockerfiles 2025-12-12 10:44:09 +07:00
munawwirul_jamal ec2a02dffd dev: hotfix- chorse: exclude Dockerfile 2025-12-12 10:42:27 +07:00
Dwi Atmoko Purbo Sakti 46f85ea7ac Merge pull request #214 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-12-12 10:38:56 +07:00
vaniliacahya bafd7dbeb0 Merge pull request #213 from dikstub-rssa/feat/sync-seeder
Feat/sync seeder
2025-12-12 10:29:32 +07:00
vanilia b840f801c8 fix error 2025-12-12 10:23:29 +07:00
vanilia ba4283a020 merged 2025-12-12 10:19:13 +07:00
vaniliacahya b41a3d00a7 Merge pull request #212 from dikstub-rssa/migration-vanilia
set instalation_code to ptr
2025-12-12 10:18:07 +07:00
vanilia 1c6292158d fix error ongoing 2025-12-12 10:16:45 +07:00
dpurbosakti 58db5b5043 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-12-12 10:12:49 +07:00
dpurbosakti 0e7d50265d feat (resume): add doctor into response 2025-12-12 10:12:39 +07:00
Munawwirul Jamal 191a850bde Merge pull request #211 from dikstub-rssa/refactor/unit-dropping
Refactor/unit dropping
2025-12-12 09:55:29 +07:00
munawwirul_jamal d5023bd93c reafactor/unit-dropping: missing 1 change 2025-12-12 09:54:45 +07:00
munawwirul_jamal ad7cb3c42a Merge branch 'dev' into refactor/unit-dropping 2025-12-12 09:54:40 +07:00
munawwirul_jamal f651a185b3 refactor/unit-dropping: perbaikan 2025-12-12 09:46:28 +07:00
Munawwirul Jamal a8c83f9547 Merge pull request #210 from dikstub-rssa/feat/sync-seeder
Feat/sync seeder
2025-12-12 07:55:41 +07:00
vanilia aa3877c68e Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-seeder
# Conflicts:
#	internal/interface/main-handler/main-handler.go
#	internal/use-case/main-use-case/encounter/tycovar.go
2025-12-12 07:50:54 +07:00
vanilia ee3413e15b seed complete 2025-12-12 07:49:21 +07:00
vanilia 158e57f6f2 seed complete 2025-12-12 07:47:28 +07:00
vanilia 125c43bc66 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-seeder 2025-12-11 20:27:02 +07:00
vanilia 2011b318ca set instalation_code to ptr 2025-12-11 20:26:12 +07:00
vanilia bc1209a270 seeder ongoing 2025-12-11 20:22:37 +07:00
vaniliacahya da86cb2bc6 Merge pull request #209 from dikstub-rssa/migration-vanilia
adjust subspecialist entity
2025-12-11 20:17:52 +07:00
vanilia 233918cecf Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-seeder
# Conflicts:
#	internal/interface/main-handler/main-handler.go
2025-12-11 18:44:36 +07:00
vanilia 3e266f1d0c adjust subspecialist entity 2025-12-11 18:40:48 +07:00
vanilia a892e5ee43 ongoing seed subspecialist 2025-12-11 18:35:43 +07:00
munawwirul_jamal ed19aa7d59 refactor/unit-dropping: done 2025-12-11 17:55:54 +07:00
munawwirul_jamal 8dd427d3f7 dev: chore, moved Dockerfile* to example 2025-12-11 17:55:23 +07:00
dpurbosakti 079294a66e feat (encounter): create-with-patient done, tested with positif case only 2025-12-11 17:55:23 +07:00
dpurbosakti 741b5069ec feat (encounter): create-with-patient wip 2025-12-11 17:55:22 +07:00
munawwirul_jamal 355f773fec feat/dockerize: added assets 2025-12-11 17:55:22 +07:00
munawwirul_jamal 261f3cdeb3 refactor/unit-dropping: done 2025-12-11 17:51:08 +07:00
munawwirul_jamal c7f2876e6e dev: chore, moved Dockerfile* to example 2025-12-11 16:43:14 +07:00
Dwi Atmoko Purbo Sakti 37f2c215ef Merge pull request #208 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-12-11 15:52:43 +07:00
dpurbosakti 4a62316548 feat (encounter): create-with-patient done, tested with positif case only 2025-12-11 15:51:55 +07:00
Munawwirul Jamal 2c22acc556 Merge pull request #207 from dikstub-rssa/feat/dockerize
feat/dockerize: added assets
2025-12-11 15:41:19 +07:00
munawwirul_jamal 4214bd00bd feat/dockerize: added assets 2025-12-11 15:40:07 +07:00
dpurbosakti 67383eefdf bacot tlas atlas 2025-12-11 15:30:49 +07:00
dpurbosakti 2e70cd727c feat (encounter): create-with-patient wip 2025-12-11 15:29:01 +07:00
Munawwirul Jamal 4172ecc427 Merge pull request #206 from dikstub-rssa/feat/sync-seeder
Feat/sync seeder
2025-12-11 07:25:09 +07:00
vanilia 1527884766 delete unnessary code 2025-12-11 07:22:28 +07:00
vaniliacahya 4389cf6c11 Merge pull request #205 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-12-11 01:38:06 +07:00
vanilia 533a7a7e74 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-vanili 2025-12-11 01:36:29 +07:00
vanilia e6cc34ee94 seeder finish 2025-12-11 01:35:39 +07:00
vanilia 58e3cb15ae Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-vanili
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
2025-12-10 22:12:22 +07:00
vanilia 2ce91179b9 update name in user 2025-12-10 21:52:18 +07:00
vanilia 542ca7619b Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia 2025-12-10 21:49:12 +07:00
vanilia 56e2db2387 on going seeder 2025-12-10 21:48:26 +07:00
Dwi Atmoko Purbo Sakti 3e6094884d Merge pull request #204 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-12-10 12:36:03 +07:00
dpurbosakti 5143b71efd feat (vclaim-sep): use number on delete 2025-12-10 12:35:04 +07:00
dpurbosakti 5aa94df652 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-12-10 12:32:24 +07:00
dpurbosakti bd2f073dfc wip 2025-12-10 12:32:14 +07:00
vanilia c8fc0d7e61 on going 2025-12-10 12:14:48 +07:00
Munawwirul Jamal ab41552c6f Merge pull request #203 from dikstub-rssa/feat/dockerize
feat/dockerize: finsihed
2025-12-10 06:30:31 +07:00
munawwirul_jamal aced63686f feat/dockerize: finsihed 2025-12-10 06:29:49 +07:00
Munawwirul Jamal 0e21512280 Merge pull request #202 from dikstub-rssa/feat/dockerize
Feat/dockerize
2025-12-10 06:29:10 +07:00
munawwirul_jamal 8af8559122 Merge branch 'dev' into feat/dockerize 2025-12-10 05:15:27 +07:00
vanilia 0d907e0254 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-vanili 2025-12-09 19:21:28 +07:00
vanilia 4bbde1867a add seeder 2025-12-09 19:20:58 +07:00
Munawwirul Jamal f229d6dab1 Merge pull request #201 from dikstub-rssa/feat/user
dFeat/user
2025-12-09 16:23:59 +07:00
munawwirul_jamal bd1d5bdde6 feat/user: moved Registration to Registrator 2025-12-09 16:18:36 +07:00
vanilia 69b38865a6 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-vanili 2025-12-09 15:42:49 +07:00
vanilia 8917615521 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-vanili 2025-12-09 15:42:11 +07:00
vanilia 591f6e6311 add entity sync 2025-12-09 15:33:08 +07:00
vanilia 68b52e55e3 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
2025-12-09 15:08:21 +07:00
Munawwirul Jamal d898bccf0e Merge pull request #200 from dikstub-rssa/feat/user
Feat/user
2025-12-09 14:26:24 +07:00
munawwirul_jamal 36e65abfac feat/user: employee regisgtration flow 2025-12-09 14:24:28 +07:00
munawwirul_jamal 550b629bcb feat/user: adjust some entities 2025-12-09 14:24:07 +07:00
munawwirul_jamal 143b873c11 migration: adjust person entity 2025-12-09 14:02:30 +07:00
munawwirul_jamal 4e392f1162 Merge branch 'feat/user' into migration 2025-12-09 13:44:13 +07:00
munawwirul_jamal 792c7cc9d4 feat/user: added registration entity 2025-12-09 13:43:41 +07:00
dpurbosakti a6ab54c1db Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-12-09 13:21:37 +07:00
munawwirul_jamal 7ac123d71a Merge branch 'dev' into feat/user 2025-12-09 13:16:28 +07:00
Ubuntu e3869ea5e9 migration from server 2025-12-09 12:52:30 +07:00
dpurbosakti 7ef090bd17 update atlas, remove unnecessary code 2025-12-09 12:50:24 +07:00
dpurbosakti 09cc996dee Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration 2025-12-09 12:47:44 +07:00
dpurbosakti 30fa443e3e wip 2025-12-09 12:46:20 +07:00
kusuma_ari 3d61391756 Merge branch 'dev' into ruang_operasi 2025-12-09 12:38:59 +07:00
vanilia 3856246488 add reasons in plan 2025-12-09 12:18:13 +07:00
vaniliacahya 30fc18bd7c Merge pull request #198 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-12-09 10:47:28 +07:00
Dwi Atmoko Purbo Sakti 889729d92a Merge pull request #199 from dikstub-rssa/fix/anything-moko
fix (patient): missing authinfo on update
2025-12-09 10:24:54 +07:00
dpurbosakti e68b5fe019 fix (patient): missing authinfo on update 2025-12-09 10:24:20 +07:00
kusuma_ari 965b25a812 Merge branch 'dev' into ruang_operasi 2025-12-09 10:15:49 +07:00
kusuma_ari 6811ef0623 update 2025-12-09 10:13:50 +07:00
vanilia 9ba0d06ce3 update migration 2025-12-09 10:05:16 +07:00
vanilia 3e4a49f216 update migration 2025-12-09 10:02:01 +07:00
vanilia 4a22609243 update migration 2025-12-09 09:32:36 +07:00
vanilia 029ab7f20d Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
2025-12-09 09:30:42 +07:00
vanilia f22968e217 adjust chemo-plan 2025-12-09 09:28:15 +07:00
Dwi Atmoko Purbo Sakti a1c761aa5f Merge pull request #197 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-12-08 16:06:50 +07:00
dpurbosakti 569fb22080 fix (patient): fix condition 2025-12-08 16:06:14 +07:00
Ubuntu 5782b86e22 migration from server 2025-12-08 16:04:08 +07:00
dpurbosakti 9b4b6949df feat (patient): add guard for reg and sys 2025-12-08 16:02:40 +07:00
dpurbosakti 2cc7af845d feat (patient): add patient employee checker 2025-12-08 15:15:25 +07:00
munawwirul_jamal 1036cab53c feat/order-things: entity separation finalization 2025-12-08 05:19:46 +07:00
munawwirul_jamal 24d216ec56 feat/order-things: separated mcu-order-items 2025-12-08 04:08:01 +07:00
munawwirul_jamal b9e0d2beb0 feat/order-things: seperate mcu-order by scope 2025-12-08 04:07:14 +07:00
munawwirul_jamal faca8dfa14 feat/order-things: added ap-mcu-order 2025-12-07 09:07:28 +07:00
kusuma_ari 1740327814 update migration issue 2025-12-06 09:54:05 +07:00
kusuma_ari 019a413e9b update 2025-12-06 08:36:05 +07:00
kusuma_ari c38e54e709 Merge branch 'dev' into ruang_operasi 2025-12-06 08:31:20 +07:00
vanilia c5c4a10e2e adjust protoc 2025-12-06 05:11:58 +07:00
vanilia c4103539c9 adj chemoprotoc 2025-12-06 04:45:05 +07:00
vanilia d82e67ae5c add chemoplans entity in chemo protocol 2025-12-06 04:20:40 +07:00
Dwi Atmoko Purbo Sakti 26a29be85c Merge pull request #195 from dikstub-rssa/fix/anything-moko
feat (item): update handle buying price and selling price
2025-12-05 16:08:51 +07:00
dpurbosakti 5bc3c8783e feat (item): update handle buying price and selling price 2025-12-05 16:08:22 +07:00
vanilia 5af1d5218c revise chemo entity 2025-12-05 14:42:06 +07:00
Dwi Atmoko Purbo Sakti 77083a3c61 Merge pull request #194 from dikstub-rssa/fix/anything-moko
feat (item): fix get-detail by code
2025-12-05 14:19:22 +07:00
dpurbosakti 6c13b1ad51 feat (item): fix get-detail by code 2025-12-05 14:18:39 +07:00
Dwi Atmoko Purbo Sakti 6e9c57226c Merge pull request #193 from dikstub-rssa/feat/file-generator-169
Feat/file generator 169
2025-12-05 14:10:47 +07:00
dpurbosakti 6da11cc26a Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-12-05 14:09:26 +07:00
Dwi Atmoko Purbo Sakti 67b1bf89c3 Merge pull request #192 from dikstub-rssa/fix/anything-moko
feat (encounter): add more filter for list
2025-12-05 14:05:31 +07:00
dpurbosakti 935cc8aef5 feat (encounter): add more filter for list 2025-12-05 14:04:56 +07:00
kusuma_ari fd4295a803 Merge branch 'dev' into ruang_operasi 2025-12-05 09:48:59 +07:00
kusuma_ari ff0b7f1fab update non required val 2025-12-05 09:39:30 +07:00
kusuma_ari dc75980e30 update const 2025-12-05 09:31:13 +07:00
kusuma_ari 1a92e4539c update query 2025-12-04 14:03:41 +07:00
kusuma_ari 9d3a872eba update migration 2025-12-04 14:01:57 +07:00
Munawwirul Jamal f42c66271a Merge pull request #190 from dikstub-rssa/feat/order-things
Feat/order things
2025-12-04 13:55:36 +07:00
munawwirul_jamal 530add86f0 Merge branch 'dev' into feat/order-things 2025-12-04 13:54:28 +07:00
kusuma_ari 320ce99b0e update procedure report main api 2025-12-04 13:52:24 +07:00
Dwi Atmoko Purbo Sakti b51da534ad Merge pull request #189 from dikstub-rssa/fix/anything-moko
fix (referral): typo json
2025-12-04 13:12:31 +07:00
dpurbosakti 91e40cc2b7 fix (referral): typo json 2025-12-04 13:11:54 +07:00
vanilia 7734e184dc adjust hard delete in patient 2025-12-04 11:35:03 +07:00
Dwi Atmoko Purbo Sakti bc242b884e Merge pull request #187 from dikstub-rssa/fix/anything-moko
fix (encounter): fix list
2025-12-04 11:13:52 +07:00
dpurbosakti 521dbdd0a4 fix (encounter): fix list 2025-12-04 11:13:08 +07:00
munawwirul_jamal b79c36ed0e feat/order-things: adjust procedure-room-order 2025-12-04 10:32:51 +07:00
vaniliacahya 20beafd5e7 Merge pull request #186 from dikstub-rssa/feat/sync-vanili
Feat/sync vanili
2025-12-04 07:47:46 +07:00
vanilia 5406a9b292 solve entity and finish soapi 2025-12-04 07:45:16 +07:00
munawwirul_jamal 2fdb5fc9e0 feat/order-things: added procedure-room flow 2025-12-04 03:54:19 +07:00
munawwirul_jamal 8dba52cc17 feat/order-things: adjust table structure 2025-12-04 03:52:51 +07:00
munawwirul_jamal 5003614d6f Merge branch 'migration' into feat/order-things 2025-12-04 03:50:31 +07:00
Dwi Atmoko Purbo Sakti ac2165154f Merge pull request #185 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-12-03 17:33:17 +07:00
dpurbosakti 203b6f51d5 feat (encounter): add filter by range registered at, and patient name 2025-12-03 17:32:36 +07:00
dpurbosakti 18c5e41695 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-12-03 16:10:47 +07:00
dpurbosakti 5975721daf feat (generate-file): screening form a tested and ok, form b not fully tested 2025-12-03 16:10:23 +07:00
vanilia 3ea677ffd5 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-vanili 2025-12-03 15:26:31 +07:00
vaniliacahya c972f13ab0 Merge pull request #184 from dikstub-rssa/migration-vanilia
rollback patient
2025-12-03 15:25:36 +07:00
vanilia 0906887787 rollback patient 2025-12-03 15:24:28 +07:00
vanilia bd594eeb82 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-vanili 2025-12-03 14:29:56 +07:00
vaniliacahya 89e1b1f3c2 Merge pull request #183 from dikstub-rssa/migration-vanilia
add partial index for patient number
2025-12-03 14:21:43 +07:00
vanilia a44ba9ab1c add partial index for patient number 2025-12-03 14:20:28 +07:00
vanilia 7276b2a985 fix soapi sync 2025-12-03 14:02:29 +07:00
vaniliacahya 2d701e0992 Merge pull request #182 from dikstub-rssa/feat/sync-from-simgos-161
merge old-to-new/patient
2025-12-03 13:27:23 +07:00
vaniliacahya 99b302d987 Merge pull request #181 from dikstub-rssa/feat/sync-setting-vanili
Feat/sync setting vanili
2025-12-03 12:29:34 +07:00
vanilia cbd1a76011 solve create trekammedik 2025-12-03 12:26:35 +07:00
vanilia c979a17407 solve conflict 2025-12-03 12:13:07 +07:00
vanilia d3cc980f26 solve conflict 2025-12-03 12:09:12 +07:00
vanilia 3b689e4723 solve conflict 2025-12-03 12:04:50 +07:00
vanilia b88f6dff39 Merge branch 'feat/sync-from-simx-160' of https://github.com/dikstub-rssa/simrs-be into feat/sync-setting-vanili
# Conflicts:
#	internal/infra/sync-cfg/sync-cfg.go
#	internal/infra/sync-cfg/tycovar.go
2025-12-03 11:56:52 +07:00
vanilia 79ad9b8f60 update branch 2025-12-03 11:53:52 +07:00
vanilia 1c35eef133 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-setting-vanili 2025-12-03 11:52:49 +07:00
vanilia de783091bf Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-setting-vanili
# Conflicts:
#	internal/infra/sync-consumer-cfg/tycovar.go
2025-12-03 11:51:50 +07:00
vanilia 4e822c4cbc Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-12-03 11:45:45 +07:00
vanilia 7291720504 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-12-03 11:45:04 +07:00
vaniliacahya 6c0c891894 Merge pull request #180 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-12-03 11:44:00 +07:00
vanilia 106fea0ac9 finish soapi 2025-12-03 11:38:45 +07:00
poetrasapoetra 11ed6e3ad5 Using username from m_pasien.nip 2025-12-03 10:48:19 +07:00
poetrasapoetra 547a54cbe4 Fix CUD Patient 2025-12-03 10:37:50 +07:00
vanilia 5d26f2a04f Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-12-03 10:27:40 +07:00
dpurbosakti 4e88c591de Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-12-03 10:26:05 +07:00
vanilia da2bea8308 add t-rekammedik 2025-12-03 10:25:11 +07:00
vanilia 132ce5f5ed finish sync soapi early-medic 2025-12-03 10:19:44 +07:00
dpurbosakti cc16b6f1cb add doctype screening 2025-12-03 10:19:36 +07:00
Munawwirul Jamal 54ced88163 Merge pull request #179 from dikstub-rssa/feat/order-things
Feat/order things
2025-12-03 08:42:10 +07:00
munawwirul_jamal 495549dcf1 feat/order-things: just refersh migration hash 2025-12-03 08:41:44 +07:00
munawwirul_jamal 352262fdf0 Merge branch 'dev' into feat/order-things 2025-12-03 08:39:02 +07:00
munawwirul_jamal ba4b3e76dd Merge branch 'migration' into feat/order-things 2025-12-03 08:34:48 +07:00
munawwirul_jamal fd338d59fb feat/order-things: added flows
+ procedure-room-order
+ procedure-room-order-item
2025-12-03 08:34:44 +07:00
munawwirul_jamal b066165b16 Merge branch 'migration' into feat/order-things 2025-12-03 08:32:46 +07:00
munawwirul_jamal 255816b96f Merge branch 'migration' into feat/order-things 2025-12-03 06:11:08 +07:00
munawwirul_jamal 9b8110f8fa feat/order-things: entities adjustment 2025-12-03 06:06:56 +07:00
munawwirul_jamal aa5a3d898a feat/order-things: adjust structure + tags 2025-12-03 01:21:21 +07:00
munawwirul_jamal cbff83e4de feat/other-things: adjust const 2025-12-02 23:15:51 +07:00
munawwirul_jamal 5444061d0d Merge branch 'feat/order-things' into migration 2025-12-02 23:12:47 +07:00
munawwirul_jamal aa79933dd9 feat/order-things: adjust procedure-room order 2025-12-02 23:09:26 +07:00
munawwirul_jamal 83cdfcf0f8 feat/order-things: added material-package-item flow 2025-12-02 23:00:29 +07:00
munawwirul_jamal 7d7c0aee18 order-things: added material-package flow 2025-12-02 21:35:08 +07:00
munawwirul_jamal 118aa098ce feat/order-things: adjust package-room case 2025-12-02 20:56:00 +07:00
munawwirul_jamal 51e2527985 feat/order-things: adjust entities 2025-12-02 20:51:08 +07:00
munawwirul_jamal 9698210fb2 feat/order-things: adjust entities 2025-12-02 20:16:42 +07:00
munawwirul_jamal 681629f432 Merge branch 'migration' into feat/order-things 2025-12-02 19:31:09 +07:00
dpurbosakti 821c99833e fix template screening form a 2025-12-02 16:12:13 +07:00
vanilia 11955df8ec Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-12-02 14:55:51 +07:00
vanilia 6cd3a80007 add ticd and ticdcm entity 2025-12-02 14:54:17 +07:00
vanilia 80ee7f54bc add helper for t_diagnosadanterapi 2025-12-02 14:34:39 +07:00
dpurbosakti ef2189794f Merge branch 'feat/screening-193' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-12-02 14:32:35 +07:00
dpurbosakti d4f03f001b Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-12-02 14:28:51 +07:00
dpurbosakti 1d4fbda754 Merge branch 'feat/screening-193' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-12-02 14:28:15 +07:00
dpurbosakti 117baf5073 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/screening-193 2025-12-02 14:22:46 +07:00
dpurbosakti d8e617f363 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/screening-193 2025-12-02 14:22:08 +07:00
Ubuntu 6e62a341d9 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into dev 2025-12-02 14:20:21 +07:00
Ubuntu 432967ea6e Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into migration 2025-12-02 14:19:19 +07:00
Ubuntu ce8f3c35a0 migration from server 2025-12-02 14:17:52 +07:00
Dwi Atmoko Purbo Sakti b4f08960b7 Merge pull request #178 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-12-02 14:17:19 +07:00
dpurbosakti fd7609b080 add amb-resume into soapitypecode 2025-12-02 14:14:05 +07:00
Ubuntu a4155e4ef1 migration from server 2025-12-02 14:10:40 +07:00
Ubuntu e3f1e1f588 migration from server 2025-12-02 14:06:51 +07:00
munawwirul_jamal 2ebe23f943 feat/order-things: adjust mcu-order to pricing 2025-12-02 13:53:01 +07:00
Ubuntu 3797ac1d67 migration from server 2025-12-02 13:43:36 +07:00
dpurbosakti 050ba953e1 update size type soapi 2025-12-02 13:42:55 +07:00
dpurbosakti 5adb4e5666 wip 2025-12-02 13:37:26 +07:00
munawwirul_jamal f4f4711882 feat/mcu-order: adjust entity 2025-12-02 11:46:02 +07:00
munawwirul_jamal 72e45ad5fc Merge branch 'migration' into feat/mcu-order 2025-12-02 11:43:50 +07:00
dpurbosakti 7e454b0a2d feat (user): add screening role 2025-12-02 10:17:06 +07:00
dpurbosakti 40b0c68b1b Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/screening-193 2025-12-02 10:11:58 +07:00
dpurbosakti 82c0531908 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration 2025-12-02 10:11:25 +07:00
dpurbosakti 8787513408 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into migration 2025-12-02 10:09:24 +07:00
dpurbosakti 29d11c0e00 (screening): add file-url and status 2025-12-02 10:07:31 +07:00
munawwirul_jamal 5aa558e189 dev: hotfix, doctor getdetail 2025-12-02 09:34:51 +07:00
munawwirul_jamal 17bf6cd2ae feat/mcu-order: wip 2025-12-01 20:12:13 +07:00
munawwirul_jamal 16d3e71007 Merge branch 'dev' into feat/mcu-order 2025-12-01 20:09:45 +07:00
munawwirul_jamal 47d2e427c0 feat/action-report: adjust table structure 2025-12-01 18:50:37 +07:00
munawwirul_jamal b65c86750a feat/action-report: new migration 2025-12-01 18:39:28 +07:00
Munawwirul Jamal 941e3e2319 Merge pull request #177 from dikstub-rssa/feat/action-report
Feat/action report
2025-12-01 18:25:39 +07:00
munawwirul_jamal 4f6bc8da31 feat/action-report: migrated + finishing 2025-12-01 18:04:33 +07:00
munawwirul_jamal 2bc0ad0a1b Merge branch 'migration' into feat/action-report 2025-12-01 17:58:36 +07:00
dpurbosakti 50db75e014 add screening 2025-12-01 17:56:21 +07:00
munawwirul_jamal 8306e1217e feat/action-report: done 2025-12-01 17:47:59 +07:00
vanilia 5acd02287b Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-12-01 17:05:51 +07:00
vanilia df3ed7919e adjust diagnosaandterapi entity 2025-12-01 17:03:24 +07:00
vanilia 4ef04ae084 ongoing soapi 2025-12-01 16:59:23 +07:00
vanilia 4a95257849 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-12-01 16:46:07 +07:00
vanilia e8e4b501ff Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia 2025-12-01 16:38:30 +07:00
vanilia c98385792a add sync entities for soapi 2025-12-01 16:35:20 +07:00
vanilia c3c130558d on going soapi 2025-12-01 16:31:06 +07:00
vanilia e60cdd29f5 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-12-01 16:28:22 +07:00
vanilia 32461141ab add t_diagnosadanterapi and reference 2025-12-01 16:26:45 +07:00
dpurbosakti f8f6a88ff6 feat (screening): wip 2025-12-01 15:36:59 +07:00
dpurbosakti ece6a0b7a5 add screening 2025-12-01 15:14:20 +07:00
dpurbosakti a1ac59474b Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration 2025-12-01 14:58:11 +07:00
dpurbosakti 7a9784b4fb add therapy protocol template, not checked yet 2025-12-01 14:50:46 +07:00
poetrasapoetra 3b7d6eac29 Merge branch 'feat/sync-setting' into feat/sync-from-simgos-161 2025-12-01 13:07:43 +07:00
Dwi Atmoko Purbo Sakti c5a06e5351 Merge pull request #175 from dikstub-rssa/feat/file-generator-169
fix encounter id on read detail
2025-12-01 12:49:14 +07:00
dpurbosakti c3fae2ec52 fix encounter id on read detail 2025-12-01 12:47:57 +07:00
Dwi Atmoko Purbo Sakti 0217fa40bd Merge pull request #174 from dikstub-rssa/feat/file-generator-169
Feat/file generator 169
2025-12-01 12:47:08 +07:00
dpurbosakti cac9276f82 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-12-01 12:43:33 +07:00
dpurbosakti 2a979f60a6 feat (vclaim/bpjs/jkn): add several endpoint 2025-12-01 12:43:23 +07:00
vaniliacahya b07b5765c8 Merge pull request #173 from dikstub-rssa/feat/sync-setting-vanili
update entity encounter and apply sync from old source
2025-12-01 12:36:08 +07:00
vanilia 721b549e59 update entity encounter and apply sync from old source 2025-12-01 12:33:13 +07:00
Andrian Roshandy af7e61e40b Merge branch 'dev' into feat/mcu-order 2025-11-30 13:29:09 +07:00
Andrian Roshandy 6c07024eb1 Merge from 'dev' 2025-11-29 20:50:06 +07:00
poetrasapoetra 6a49f09180 Fix update patient 2025-11-28 19:43:53 +07:00
poetrasapoetra 214bbb0e4a Merge branch 'feat/sync-setting' into feat/sync-from-simgos-161 2025-11-28 17:33:47 +07:00
poetrasapoetra af6ff92948 Add header to handler 2025-11-28 17:29:12 +07:00
poetrasapoetra 0decd8330a Change Address 2025-11-28 17:26:58 +07:00
vaniliacahya c0762f412b Merge pull request #172 from dikstub-rssa/feat/sync-setting-vanili
Feat/sync setting vanili
2025-11-28 16:47:24 +07:00
vanilia 708bceccdd validate auth from old app and fill auth info 2025-11-28 16:43:01 +07:00
dpurbosakti 2a39301563 feat (vclaim-sep): create, read, delete done 2025-11-28 16:10:35 +07:00
poetrasapoetra 0126df058c Merge branch 'feat/sync-setting' into feat/sync-from-simgos-161 2025-11-28 13:18:29 +07:00
poetrasapoetra 856bcd8f3d Sync old-to-new patient handler 2025-11-28 12:53:44 +07:00
vanilia 219d30b9c3 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-setting-vanili 2025-11-28 12:29:27 +07:00
vanilia 0c8266d34d Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-setting-vanili 2025-11-28 12:23:34 +07:00
munawwirul_jamal 1cc8702109 feat/sync-setting: TODO to get credential 2025-11-28 10:00:29 +07:00
munawwirul_jamal b09c9f183c feat/sync-setting:
+ moved infra/sync-cfg to infra/sync-consumer-cfg
+ adjut anything related to old infra/sync
+ infra/sync is now have new setting for the sync
2025-11-28 09:16:38 +07:00
dpurbosakti abfbc568b0 feat (generate-file) hopefully resume.html doesnt make any trouble 2025-11-27 13:30:45 +07:00
Ubuntu 7c454a7c0d migration from server 2025-11-27 12:04:52 +07:00
vaniliacahya b74384f8dc Merge pull request #171 from dikstub-rssa/feat/sync-from-simx-160
Feat/sync from simx 160
2025-11-27 11:46:23 +07:00
vanilia f13a45119b fix import sequential 2025-11-27 11:43:42 +07:00
vanilia 0c77785374 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-11-27 11:29:31 +07:00
vanilia 0d8a4cd680 resolve conflict 2025-11-27 11:28:50 +07:00
vaniliacahya cfedec9cdd Merge pull request #170 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-27 11:23:12 +07:00
vanilia 4963a5b994 sync encounter 2025-11-27 11:18:18 +07:00
vanilia f2bedd0de8 add internalreference sync 2025-11-26 18:56:30 +07:00
vanilia 3b7e482ac1 adj sync request switch poly 2025-11-26 18:51:14 +07:00
dpurbosakti 04add70ac5 feat (generate-file): resume table is done 2025-11-26 17:23:48 +07:00
vanilia 94dbb8624f adjust table internalreference 2025-11-26 13:41:26 +07:00
vanilia 1067efb501 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia 2025-11-26 13:29:08 +07:00
vanilia 6d2e85a8fb adj checkout 2025-11-26 13:28:20 +07:00
munawwirul_jamal 8360da06c8 dev: hotfix, soaoi minor filtering 2025-11-25 21:20:28 +07:00
vanilia dfce53946b add nurse in encounter 2025-11-25 19:53:37 +07:00
vanilia 04312afcee testing 2025-11-25 19:47:47 +07:00
dpurbosakti d88d376112 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-25 16:01:23 +07:00
Dwi Atmoko Purbo Sakti 7a1e0b8b5e Merge pull request #169 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-11-25 15:53:51 +07:00
dpurbosakti 4109752121 fix (doctor): wrong code passed 2025-11-25 15:53:24 +07:00
dpurbosakti 864d3d8818 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-25 15:52:45 +07:00
dpurbosakti 3328cf2746 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-25 15:52:38 +07:00
dpurbosakti 8cf750c63f wip 2025-11-25 15:52:07 +07:00
dpurbosakti 250b446c37 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-25 14:32:08 +07:00
dpurbosakti d6c49b0991 update doctype conslist resume 2025-11-25 14:31:48 +07:00
dpurbosakti 63f9d5512b resume wip 2025-11-25 14:31:03 +07:00
dpurbosakti d64c9adeb3 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-25 14:11:22 +07:00
Dwi Atmoko Purbo Sakti e161208798 Merge pull request #168 from dikstub-rssa/feat/sync-from-simx-160
Feat/sync from simx 160
2025-11-25 14:11:05 +07:00
vanilia 782d272d91 fix conflict 2025-11-25 14:10:25 +07:00
vanilia ca0fee997e fix conflict 2025-11-25 14:10:01 +07:00
vanilia b188a55a8f resolve conflict 2025-11-25 13:59:22 +07:00
dpurbosakti efb8f12df8 update soapi conslist 2025-11-25 13:58:38 +07:00
vanilia a685eb5bd4 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-11-25 13:58:18 +07:00
vanilia 67d0e365fa approve and switch poly 2025-11-25 13:56:18 +07:00
dpurbosakti 5322e986e4 feat (resume): add verify and validate, base value structure 2025-11-24 17:13:40 +07:00
dpurbosakti 8eb94dcdba Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-24 14:23:34 +07:00
dpurbosakti d87a54c111 add doctor_code and status into resume 2025-11-24 14:18:04 +07:00
Dwi Atmoko Purbo Sakti bd483cf8e6 Merge pull request #165 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-24 12:41:00 +07:00
vanilia 66fc06ae10 resolve conflict 2025-11-24 12:38:35 +07:00
dpurbosakti 75a607ae80 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-24 12:32:01 +07:00
Ubuntu a4cc6c63d1 migration from server 2025-11-24 12:29:50 +07:00
Dwi Atmoko Purbo Sakti 011c68be01 Merge pull request #167 from dikstub-rssa/fix/anything-moko
fix (unit-position): wrong validation unit_code
2025-11-24 12:28:45 +07:00
dpurbosakti 8ea9162614 fix (unit-position): wrong validation unit_code 2025-11-24 12:28:15 +07:00
dpurbosakti da88637fe9 feat (resume): wip 2025-11-24 12:21:17 +07:00
Munawwirul Jamal 0d1fc12213 Merge pull request #166 from dikstub-rssa/feat/trx-orders
feat/trx-orders: fix doctor_code + id type
2025-11-24 11:41:27 +07:00
munawwirul_jamal f54a2b5b75 feat/trx-orders: fix doctor_code + id type 2025-11-24 11:37:57 +07:00
vanilia 6d51f95875 rename entity simgos 2025-11-24 10:50:00 +07:00
vanilia f4768490fb add t_pemeriksaan_entity 2025-11-24 10:36:57 +07:00
vanilia 157ea603a4 set checkin checkout 2025-11-24 10:17:37 +07:00
Munawwirul Jamal 849a14f883 Merge pull request #164 from dikstub-rssa/feat/things-munaja
Feat/things munaja
2025-11-24 05:13:57 +07:00
munawwirul_jamal 68e20cf576 Merge branch 'dev' into feat/things-munaja 2025-11-24 05:13:20 +07:00
Munawwirul Jamal f9abb20c97 Merge pull request #163 from dikstub-rssa/feat/trx-orders
Feat/trx orders
2025-11-24 05:10:13 +07:00
munawwirul_jamal 8c53dfb0de feat/things-munaja: added unit on login 2025-11-24 05:08:26 +07:00
munawwirul_jamal 8051552d70 feat/things-munaja: adjust employee - person 2025-11-23 18:37:56 +07:00
vanilia ee6f37bb54 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-11-21 20:28:27 +07:00
vanilia a4032b5fba apply deleted sep dto 2025-11-21 20:26:26 +07:00
vanilia c997c2472e add vclaim reference 2025-11-21 20:21:28 +07:00
vanilia 15bc0f1dbe Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-11-21 10:43:45 +07:00
vanilia 0b0676214c add vclaimreference 2025-11-21 10:39:37 +07:00
vanilia dd5f6f78e3 add cud sync encounter 2025-11-21 10:21:21 +07:00
dpurbosakti 990f50e50c add resume entity 2025-11-20 14:45:18 +07:00
dpurbosakti 399a58f9df Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration 2025-11-20 14:30:39 +07:00
vanilia 46d0c17669 encounter mapping 2025-11-20 14:16:08 +07:00
munawwirul_jamal 7c600dce5f feat/things-munaja: device and mcu order 2025-11-20 13:39:51 +07:00
Ubuntu b5b15ed852 migration from server 2025-11-20 13:24:51 +07:00
Dwi Atmoko Purbo Sakti a43b3f4a66 Merge pull request #162 from dikstub-rssa/feat/file-generator-169
Feat/file generator 169
2025-11-20 13:22:48 +07:00
dpurbosakti 1d1cd430a9 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-20 13:21:13 +07:00
dpurbosakti ffb8c4e413 feat (generate-file): control letter done 2025-11-20 13:18:33 +07:00
Dwi Atmoko Purbo Sakti 6e2fe2c51e Merge pull request #161 from dikstub-rssa/feat/sync-from-simx-160
Feat/sync from simx 160
2025-11-20 10:06:12 +07:00
vanilia 9a056701c6 update nomr patient 2025-11-20 09:10:58 +07:00
munawwirul_jamal a8d19fb8d1 Merge branch 'feat/things-munaja' into migration 2025-11-20 07:57:14 +07:00
munawwirul_jamal 279636682d feat/things-munaja: updated mcu-order-item 2025-11-20 07:56:31 +07:00
dpurbosakti a5ea881e1f wip, need to test 2025-11-19 16:17:23 +07:00
vanilia 2cd5583e38 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160
# Conflicts:
#	internal/use-case/main-use-case/generate-file/tycovar.go
2025-11-19 16:13:30 +07:00
vanilia f8674b4eca adjust patient 2025-11-19 16:10:21 +07:00
vanilia 5bfa9785cc Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-11-19 15:30:05 +07:00
dpurbosakti 43ee820c0c Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-19 14:33:28 +07:00
dpurbosakti f00a39d1b0 add vclaim sep control letter 2025-11-19 14:27:56 +07:00
dpurbosakti f207b2716f adjust control letter template html 2025-11-19 14:10:28 +07:00
Dwi Atmoko Purbo Sakti 0819d84d44 Merge pull request #160 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-19 14:09:30 +07:00
vanilia 211ec21d12 update migration 2025-11-19 14:03:08 +07:00
vanilia 8015f28016 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
2025-11-19 14:00:36 +07:00
vanilia 015ab2d3fb update person entity 2025-11-19 13:59:19 +07:00
vanilia f1182896a4 add patient 2025-11-19 13:53:21 +07:00
vanilia 5740ea3b76 change index person 2025-11-19 13:35:19 +07:00
vanilia 8644bcaedc add patient 2025-11-19 13:21:04 +07:00
Dwi Atmoko Purbo Sakti db2d02cd05 Merge pull request #159 from dikstub-rssa/feat/file-generator-169
adjustment
2025-11-18 15:36:29 +07:00
dpurbosakti 8a95d681a0 adjustment 2025-11-18 15:34:58 +07:00
vanilia 7ea69720bb Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-11-18 15:32:08 +07:00
vanilia 03b7519636 add patient and encounter 2025-11-18 15:29:46 +07:00
Ubuntu 1ef408b514 migration from server 2025-11-18 15:13:25 +07:00
Dwi Atmoko Purbo Sakti b5beb3fef8 Merge pull request #158 from dikstub-rssa/feat/file-generator-169
Feat/file generator 169
2025-11-18 14:51:30 +07:00
dpurbosakti 2f4f9b681c Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-18 14:50:41 +07:00
dpurbosakti da8256e00e Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169 2025-11-18 14:50:31 +07:00
dpurbosakti 572eb57e09 adjust encounter and general-consent relation 2025-11-18 14:50:14 +07:00
dpurbosakti 0d340553b3 feat (generate-file): general-consent pdf done 2025-11-18 14:44:19 +07:00
Dwi Atmoko Purbo Sakti 9cd9cabc28 Merge pull request #157 from dikstub-rssa/feat/sync-from-simx-160
Feat/sync from simx 160
2025-11-18 13:52:53 +07:00
vanilia 94314e641d rename package 2025-11-18 13:51:27 +07:00
vanilia 7b170deffb Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-from-simx-160 2025-11-18 13:48:25 +07:00
dpurbosakti 601bed3600 update sum 2025-11-18 12:16:51 +07:00
dpurbosakti 6ab240b8d5 adjust html template 2025-11-18 12:15:04 +07:00
vanilia 12dda8a678 update dual trx 2025-11-18 12:02:10 +07:00
vanilia 938ec89c20 add enabled sync 2025-11-18 09:58:41 +07:00
vanilia d5d09c47bf Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-source 2025-11-17 19:00:26 +07:00
vanilia e8fbd042b6 add specialist and subspecialist 2025-11-17 18:59:45 +07:00
dpurbosakti c8e17619d8 feat (generate-file): add validation 2025-11-17 17:34:17 +07:00
Dwi Atmoko Purbo Sakti c489875517 Merge pull request #156 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-17 17:25:50 +07:00
dpurbosakti 69a13dd37d feat (generate-file): not tested yet 2025-11-17 17:18:22 +07:00
vanilia d4313f5668 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-source 2025-11-17 16:28:03 +07:00
vanilia f9bb097a50 add mpolihfis 2025-11-17 16:27:06 +07:00
dpurbosakti 8073236d06 feat (general-consent): add crud 2025-11-17 16:20:14 +07:00
vanilia 8911bb678c add divisi 2025-11-17 16:17:26 +07:00
dpurbosakti e78ad5aa83 add docs config parser 2025-11-17 15:29:46 +07:00
dpurbosakti 05f54e4e34 refactor (upload-file) 2025-11-17 15:20:24 +07:00
dpurbosakti cde7636639 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-17 14:55:30 +07:00
dpurbosakti 0bec4c3095 add fileUrl into general-consent 2025-11-17 14:55:10 +07:00
dpurbosakti 1a0828567e Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-17 14:49:52 +07:00
dpurbosakti 13ddfaab5f rename and adjust upload code into doctypecode 2025-11-17 14:49:34 +07:00
vanilia 18af731553 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-source 2025-11-17 14:39:12 +07:00
vanilia ea68107135 add division 2025-11-17 14:38:08 +07:00
dpurbosakti 9cf2843249 add general consent template 2025-11-17 14:33:49 +07:00
Dwi Atmoko Purbo Sakti b211ae3f24 Merge pull request #155 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-17 13:53:52 +07:00
vanilia 34b79e6472 on going division 2025-11-17 12:06:09 +07:00
vanilia b3a6820a13 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-source 2025-11-17 11:19:11 +07:00
vanilia 49c82c957e add entity sync for division, specialist and subspecialist 2025-11-17 11:17:43 +07:00
vanilia eec5bf79b8 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
2025-11-17 11:07:12 +07:00
vanilia ebb3500d34 unit finish 2025-11-17 11:05:21 +07:00
munawwirul_jamal 712de2fdb0 feat/things-munaja: migration 2025-11-17 08:00:04 +07:00
munawwirul_jamal 8230afc6f7 Merge branch 'migration' into feat/things-munaja 2025-11-17 07:59:14 +07:00
munawwirul_jamal 65f5c6dc20 feat/things-munaja: adjust DeviceOrder 2025-11-17 07:58:22 +07:00
munawwirul_jamal 03210549bb feat/things-munaja: adjust prescription 2025-11-17 07:57:22 +07:00
munawwirul_jamal c19965f4c3 feat/things-munaja: device order items preload 2025-11-15 01:16:21 +07:00
Ubuntu 12abbfa41a migration from server 2025-11-14 14:19:14 +07:00
vanilia bbf98b7a40 sync unit on going 2025-11-14 14:19:06 +07:00
vanilia 46407cdf57 sync unit on going 2025-11-14 14:18:10 +07:00
Dwi Atmoko Purbo Sakti 824ecd88f5 Merge pull request #154 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-11-14 14:16:38 +07:00
dpurbosakti d03c1c7a93 feat (therapy-protocol): add verification 2025-11-14 14:16:07 +07:00
vanilia fbd8d30ec6 add sync unit 2025-11-14 14:11:55 +07:00
dpurbosakti 1c04ff23f6 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-14 13:49:06 +07:00
dpurbosakti 6a50d1f024 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-14 13:45:38 +07:00
dpurbosakti b51606b408 add makefile command 2025-11-14 13:45:20 +07:00
dpurbosakti 12108e1176 add status code therapy protocol 2025-11-14 13:43:27 +07:00
Dwi Atmoko Purbo Sakti 86ff6bd2ee Merge pull request #153 from dikstub-rssa/feat/improve-uploads-154
Feat/improve uploads 154
2025-11-14 12:11:16 +07:00
vanilia c80633240c merge migration 2025-11-14 12:10:00 +07:00
vanilia 667936c161 merge migration 2025-11-14 12:09:10 +07:00
vanilia 4adf77ec07 merge migration 2025-11-14 12:04:43 +07:00
vanilia 85761d9be4 adjust upload 2025-11-14 12:03:18 +07:00
Dwi Atmoko Purbo Sakti c453aa0aa7 Merge pull request #152 from dikstub-rssa/migration-vanilia
add constant upload
2025-11-14 12:02:04 +07:00
vanilia 2296013ee1 adjust upload 2025-11-14 11:56:10 +07:00
vanilia b604216649 adjust upload 2025-11-14 11:27:43 +07:00
vanilia 05682754b5 add constant upload 2025-11-14 10:43:26 +07:00
Dwi Atmoko Purbo Sakti 37e03c72d2 Merge pull request #151 from dikstub-rssa/fix/anything-moko
fix (encounter): missmatch position checking
2025-11-14 10:38:05 +07:00
dpurbosakti 07e3c3b707 fix (encounter): missmatch position checking 2025-11-14 10:37:21 +07:00
Dwi Atmoko Purbo Sakti 650dbd719d Merge pull request #150 from dikstub-rssa/fix/anything-moko
feat (user): status_code static as active
2025-11-14 10:13:17 +07:00
Dwi Atmoko Purbo Sakti 5d76f410a9 Merge pull request #149 from dikstub-rssa/feat/sync-installation
Feat/sync installation
2025-11-14 10:12:43 +07:00
dpurbosakti d4c3b0e31c feat (user): status_code static as active 2025-11-14 10:11:10 +07:00
vanilia a053a35114 update sync 2025-11-14 10:08:49 +07:00
vanilia a05052d620 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/sync-installation
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
2025-11-14 09:58:04 +07:00
Dwi Atmoko Purbo Sakti 305caf8f26 Merge pull request #147 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-14 09:54:32 +07:00
vanilia 9e4357780b add sync installation 2025-11-14 09:52:50 +07:00
Dwi Atmoko Purbo Sakti aa27bb0abe Merge pull request #148 from dikstub-rssa/fix/anything-moko
feat (user): add position reg
2025-11-14 09:52:46 +07:00
dpurbosakti 73d869f4c9 feat (user): add position reg 2025-11-14 09:52:07 +07:00
Munawwirul Jamal c7219c630d Merge pull request #146 from dikstub-rssa/feat/prescription
Feat/prescription
2025-11-14 08:41:36 +07:00
munawwirul_jamal ae2ca4b115 feat/prescription: finalize Prescription 2025-11-14 08:40:17 +07:00
munawwirul_jamal 9d26054e1b feat/prescription: more flow on medicine 2025-11-14 08:39:50 +07:00
munawwirul_jamal d3ddebb226 feat/prescription: added MedicineForm flow 2025-11-14 08:39:01 +07:00
vanilia 8f41c965b4 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-infra 2025-11-13 21:01:56 +07:00
vanilia 435d3512fe revise instalasi entity 2025-11-13 21:01:03 +07:00
vanilia 29469d4c50 add installation 2025-11-13 20:54:35 +07:00
munawwirul_jamal 50b2c7b781 feat/prescription: relating MedicineForm 2025-11-13 19:07:04 +07:00
vanilia 86ce3d2113 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-infra 2025-11-13 17:32:49 +07:00
vanilia 403c085d56 revise m_instalasi 2025-11-13 17:31:49 +07:00
vanilia e75025f87d add create installation 2025-11-13 17:28:20 +07:00
munawwirul_jamal a552e51fa7 feat/prescription: updated entities 2025-11-13 17:27:59 +07:00
munawwirul_jamal 96d4f55925 Merge branch 'migration' into feat/prescription 2025-11-13 17:12:05 +07:00
munawwirul_jamal eb57a01a94 feat/sso-auth: entities adjustment 2025-11-13 16:50:49 +07:00
munawwirul_jamal fe804dabb3 feat/sso-auth: added the handler 2025-11-13 16:49:11 +07:00
munawwirul_jamal 5aa45088f4 feat/sso-auth: added the use cases 2025-11-13 16:49:11 +07:00
munawwirul_jamal 3720ca2e71 feat/sso-auth: wip 2025-11-13 16:37:13 +07:00
Dwi Atmoko Purbo Sakti f45bad4650 Merge pull request #145 from dikstub-rssa/fix/anything-moko
fix (encounter): add guard for create, delete and cancel
2025-11-13 14:52:29 +07:00
dpurbosakti 1e54d3bc3f fix (encounter): add guard for create, delete and cancel 2025-11-13 14:51:45 +07:00
vanilia 3ebd3a38d0 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-infra 2025-11-13 11:42:34 +07:00
vanilia 4f9663d98a update m_installation 2025-11-13 11:41:29 +07:00
vanilia 91afde0624 on going installation 2025-11-13 11:39:12 +07:00
vanilia 3e8a3610cf Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-infra 2025-11-13 10:59:10 +07:00
vanilia 8cfd561a6c add migration sync 2025-11-13 10:57:53 +07:00
vanilia d1938cb70a Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/sync-infra
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
#	internal/interface/migration/migration.go
#	internal/interface/migration/tycovar.go
2025-11-13 10:40:39 +07:00
vanilia 4b78e489ef add instalation entity 2025-11-13 10:37:54 +07:00
vanilia ebc2ca5659 set infra 2025-11-13 09:57:10 +07:00
munawwirul_jamal 7d0f42aba2 feat/dockerize: added the Dockerfile 2025-11-13 04:30:12 +07:00
Dwi Atmoko Purbo Sakti 3924c11829 Merge pull request #144 from dikstub-rssa/fix/anything-moko
refactor several data source tables from id into code
2025-11-12 16:58:36 +07:00
dpurbosakti ccc341be34 refactor several data source tables from id into code 2025-11-12 16:57:52 +07:00
Ubuntu 78f1502930 migration from server 2025-11-12 12:07:22 +07:00
Dwi Atmoko Purbo Sakti 94ce6bd5ee Merge pull request #143 from dikstub-rssa/feat/improve-uploads-154
Feat/improve uploads 154
2025-11-12 12:06:28 +07:00
vanilia e968c13b1d oke 2025-11-12 10:12:44 +07:00
vanilia 6faeb7abcb merge migration 2025-11-12 10:02:03 +07:00
vanilia a6e8f38011 finish upload 2025-11-12 10:01:18 +07:00
Dwi Atmoko Purbo Sakti 1888f019b9 Merge pull request #141 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-12 09:56:05 +07:00
vanilia 1e61c13eb5 revise upload 2025-11-12 09:03:56 +07:00
Munawwirul Jamal cc7e62cce9 Merge pull request #142 from dikstub-rssa/feat/sso-auth
feat/sso-auth: adjust role const
2025-11-12 07:30:34 +07:00
munawwirul_jamal a365f2aff6 feat/sso-auth: adjust role const 2025-11-12 07:20:51 +07:00
vanilia 271058b59b Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/improve-uploads-154
# Conflicts:
#	internal/use-case/main-use-case/authentication/case.go
2025-11-11 18:13:52 +07:00
vanilia 4f07f7f2a4 adjustment fileattachemnt to encounterDocument 2025-11-11 18:10:50 +07:00
vanilia 34267255b6 update migration 2025-11-11 17:19:39 +07:00
vanilia 79073e7a84 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
2025-11-11 17:05:49 +07:00
vanilia 62643ab6ce delete 2025-11-11 17:04:52 +07:00
vanilia 896306b06d upload oke 2025-11-11 16:59:05 +07:00
Dwi Atmoko Purbo Sakti 6c07f668d4 Merge pull request #140 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-11-11 16:26:57 +07:00
dpurbosakti 15be193e08 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-11 16:26:30 +07:00
dpurbosakti 46bbf30c27 language, and ethnic use code path 2025-11-11 16:26:11 +07:00
vanilia 5facaddedc upload finish 2025-11-11 16:18:24 +07:00
vanilia 9b7be9ca66 delete fk from encounter 2025-11-11 15:58:40 +07:00
vanilia ab8a729d2b tbc upload 2025-11-11 15:56:55 +07:00
vanilia d6426babaa update upload employee id 2025-11-11 15:37:52 +07:00
Dwi Atmoko Purbo Sakti 29dbaccbea Merge pull request #138 from dikstub-rssa/feat/adjustment-encounter-cancel
update encounter cancel flow
2025-11-11 15:36:22 +07:00
Dwi Atmoko Purbo Sakti aad1c8193d Merge pull request #139 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-11-11 15:36:11 +07:00
vanilia 733fb481b3 tbc 2025-11-11 15:35:19 +07:00
dpurbosakti 06fca51bcc fix conflict auth 2025-11-11 15:34:33 +07:00
dpurbosakti 4f29b60f35 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-11 15:27:55 +07:00
Ubuntu 9443e32963 migration from server 2025-11-11 15:25:09 +07:00
dpurbosakti 4d5bc188fc medicine_id into medicine_code in several medications related 2025-11-11 15:24:35 +07:00
Ubuntu aa56c987a9 migration from server 2025-11-11 15:07:30 +07:00
dpurbosakti 75bce77a39 add medicine code on medication related 2025-11-11 15:02:41 +07:00
dpurbosakti bdc441b8f9 changed mcu_id into code in mcu and mcu sub order item 2025-11-11 14:39:09 +07:00
Ubuntu 7357e0de4d migration from server 2025-11-11 14:32:08 +07:00
dpurbosakti ac8b44366b add mcusrc_code in mcu and mcu sub item 2025-11-11 14:30:14 +07:00
vanilia c6f5bbe8a2 update encounter cancel flow 2025-11-11 14:21:17 +07:00
vanilia a382dfdb3e improve upload done 2025-11-11 13:55:26 +07:00
Dwi Atmoko Purbo Sakti 6a50c1588f Merge pull request #137 from dikstub-rssa/fix/anything-moko
fix (subspecialist): change source, wrong query
2025-11-11 11:40:22 +07:00
dpurbosakti 6db21ad114 fix (subspecialist): change source, wrong query 2025-11-11 11:39:44 +07:00
Dwi Atmoko Purbo Sakti 9d256b08ff Merge pull request #136 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-11-11 11:24:39 +07:00
dpurbosakti ed0a22eb73 adjust org after refactor 2025-11-11 11:24:07 +07:00
vanilia ddc7376216 add entity fileattchemnt and update contslist 2025-11-11 11:04:56 +07:00
Munawwirul Jamal 6139081a72 Merge pull request #135 from dikstub-rssa/feat/sso-auth
Feat/sso auth
2025-11-11 08:50:44 +07:00
munawwirul_jamal 4b96e2e779 Merge branch 'dev' into feat/sso-auth 2025-11-11 08:50:13 +07:00
munawwirul_jamal 27a23594a9 feat/sso-auth: entities adjustment 2025-11-10 23:00:31 +07:00
munawwirul_jamal 122d08bed6 Merge branch 'migration' into feat/sso-auth 2025-11-10 22:54:10 +07:00
munawwirul_jamal 02b0aa66ec feat/sso-auth: added the handler 2025-11-10 22:54:08 +07:00
munawwirul_jamal 683ddd3ef2 feat/sso-auth: added the use cases 2025-11-10 22:53:32 +07:00
dpurbosakti 8a86876fdd Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-10 17:08:06 +07:00
Ubuntu 6cb09a7ca7 migration from server 2025-11-10 17:06:45 +07:00
dpurbosakti 98d063b8c3 remove ids from mcu related 2025-11-10 17:06:10 +07:00
Ubuntu b00e34a700 migration from server 2025-11-10 16:41:15 +07:00
dpurbosakti 698508603b add code into several mcu src related 2025-11-10 16:40:21 +07:00
Ubuntu 292494aef5 migration from server 2025-11-10 16:29:45 +07:00
dpurbosakti 8d301af4e3 change id into code for device and material order item 2025-11-10 16:29:03 +07:00
Ubuntu 9479a67493 migration from server 2025-11-10 16:22:16 +07:00
dpurbosakti f2af40a40f add deivice and material code for their orders 2025-11-10 16:21:47 +07:00
Ubuntu 84e8c02aa1 migration from server 2025-11-10 16:16:45 +07:00
dpurbosakti 9a31e3458a missing sql for orders 2025-11-10 16:15:43 +07:00
dpurbosakti 42ac3deeb0 change ids into codes for device-order,material-order,mcu-order 2025-11-10 16:14:31 +07:00
Ubuntu 2f1a857497 migration from server 2025-11-10 16:00:57 +07:00
dpurbosakti 46a67ea359 add doctor_code into device-order,material-order,mcu-order 2025-11-10 15:58:45 +07:00
Dwi Atmoko Purbo Sakti d2fe5f9419 Merge pull request #134 from dikstub-rssa/fix/refactor-vanilia
Fix/refactor vanilia
2025-11-10 15:48:18 +07:00
vanilia 850dce87cd revise encounter 2025-11-10 15:42:15 +07:00
vanilia 008bbfcc8c refactor encounter 2025-11-10 14:28:52 +07:00
vanilia d5d9182ad6 revise refactor 2025-11-10 14:17:56 +07:00
Ubuntu 9d8f09c0de migration from server 2025-11-10 13:37:58 +07:00
dpurbosakti 9417ff0705 change srcUnit_id into code 2025-11-10 13:37:15 +07:00
Ubuntu 156cb0fd93 migration from server 2025-11-10 13:34:56 +07:00
dpurbosakti be8acefeff change unit_id, insurance_company_id into code 2025-11-10 13:34:04 +07:00
Ubuntu 9a5516a1e9 migration from server 2025-11-10 13:27:04 +07:00
vanilia f4268efc3f add encounter document 2025-11-10 13:26:13 +07:00
dpurbosakti 6d49dca925 remove several ids and fix constraint 2025-11-10 13:25:00 +07:00
Ubuntu 363467a8cb migration from server 2025-11-10 12:39:13 +07:00
dpurbosakti 3c7b35ef04 several tables ids into codes 2025-11-10 12:29:58 +07:00
vanilia 99ac6c7c3f Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia 2025-11-10 11:54:03 +07:00
dpurbosakti 36cdf685e1 Merge branch 'fix/anything-moko' of github.com:dikstub-rssa/simrs-be into migration 2025-11-10 08:55:57 +07:00
vanilia 70caef2602 adjustment new entity 2025-11-10 08:55:01 +07:00
dpurbosakti a5acf657c1 Merge branch 'fix/anything-moko' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-10 08:52:12 +07:00
Dwi Atmoko Purbo Sakti 8c99db0408 Merge pull request #133 from dikstub-rssa/feat/encounter-adjustment-142
Feat/encounter adjustment 142
2025-11-10 08:51:41 +07:00
dpurbosakti 1c46354206 fix (auth): extract code 2025-11-10 08:50:46 +07:00
vanilia bfd44039c8 finish adjustment encounter 2025-11-10 08:47:59 +07:00
dpurbosakti d564e2e330 update hash 2025-11-10 08:45:42 +07:00
Dwi Atmoko Purbo Sakti e6623ae716 Merge pull request #132 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-10 08:44:00 +07:00
vanilia 3e5889574c delete comment 2025-11-10 08:43:19 +07:00
vanilia 1ff23f0847 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment-142
# Conflicts:
#	internal/domain/main-entities/rehab/dto.go
#	internal/use-case/main-use-case/encounter/lib.go
2025-11-10 08:27:55 +07:00
vanilia 5e13c6e414 merge migration 2025-11-10 08:23:39 +07:00
vanilia d7c62f6287 back to 0 2025-11-10 08:01:07 +07:00
vanilia 49922a6b72 adjustment update rehab in checkout 2025-11-09 23:12:09 +07:00
vanilia fcbec59a17 add switch poly and spprove 2025-11-09 22:25:55 +07:00
munawwirul_jamal fc7e74b1c6 feat/sso-auth: wip 2025-11-08 06:07:14 +07:00
munawwirul_jamal d784127525 Merge branch 'migration' into feat/sso-auth 2025-11-07 21:22:47 +07:00
Ubuntu 8d9fe70d41 migration from server 2025-11-07 16:21:03 +07:00
Dwi Atmoko Purbo Sakti 0649d02411 Merge pull request #131 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-11-07 16:20:44 +07:00
dpurbosakti 2ee462580f Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-07 16:18:47 +07:00
dpurbosakti e3b601f703 infra, item remove parent_id, infra_id 2025-11-07 16:17:16 +07:00
Ubuntu c9d7400dad migration from server 2025-11-07 15:34:05 +07:00
dpurbosakti a944105f72 infra, room, item, medicine, device, material ids into codes 2025-11-07 15:28:32 +07:00
Ubuntu feb54bd2f5 migration from server 2025-11-07 13:54:39 +07:00
dpurbosakti bfbbb38220 room ids into codes 2025-11-07 13:52:30 +07:00
munawwirul_jamal 0d787c1950 migration: 2025-11-07 08:39:57 +07:00
munawwirul_jamal c6a53b32df Merge branch 'migration' into feat/sso-auth 2025-11-07 08:19:31 +07:00
munawwirul_jamal 72e0a1ce24 feat/sso-auth: moved ext-user to user-fes 2025-11-07 08:19:21 +07:00
munawwirul_jamal afde2f7cf4 feat/sso-auth: added the migration 2025-11-06 21:49:19 +07:00
munawwirul_jamal d4e58e4f73 feat/sso-auth: added the migration 2025-11-06 21:48:42 +07:00
munawwirul_jamal 4a355a6251 Merge branch 'migration' into feat/sso-auth 2025-11-06 21:48:21 +07:00
munawwirul_jamal ad3501c1da feat/sso-auth: improved the entities 2025-11-06 21:42:19 +07:00
munawwirul_jamal 355c7053af migration: updated sum for whatever the reason is 2025-11-06 18:23:51 +07:00
munawwirul_jamal 6a2a8cc63c dev: hotfix, cleaning + shortent code for auth 2025-11-06 18:15:28 +07:00
munawwirul_jamal a73d7745e3 feat/sso-auth: added models 2025-11-06 18:14:01 +07:00
dpurbosakti 8caa419c0c Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-06 16:24:11 +07:00
dpurbosakti 590e91726a add detail on soapi coonstlist 2025-11-06 16:23:52 +07:00
Dwi Atmoko Purbo Sakti 559ea8b18e Merge pull request #130 from dikstub-rssa/fix/anything-moko
fix (specialist): fix read detail data
2025-11-06 16:10:03 +07:00
dpurbosakti 883249ab8c fix (specialist): fix read detail data 2025-11-06 16:09:20 +07:00
Dwi Atmoko Purbo Sakti 4633f4ef1c Merge pull request #129 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-11-06 16:02:34 +07:00
dpurbosakti b83e8971dc missing sql file for unit, installation 2025-11-06 16:00:48 +07:00
dpurbosakti 6ed038eb54 unit, unit-position,installation-position removes ids 2025-11-06 15:48:32 +07:00
dpurbosakti 42b1b48e36 unit,unit-position,installation-position ids into codes 2025-11-06 15:32:05 +07:00
dpurbosakti b597b76092 division, division-position ids into codes 2025-11-06 15:24:42 +07:00
vanilia 75e20a591e Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment-142 2025-11-06 15:11:09 +07:00
vanilia 3e3213da38 rename encounter rehab 2025-11-06 15:10:16 +07:00
vanilia 686f2fbd51 not yet finish 2025-11-06 15:03:51 +07:00
dpurbosakti 5ba60938df division, division-position ids into codes 2025-11-06 14:46:06 +07:00
vanilia dde3a458dc Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment-142 2025-11-06 14:36:49 +07:00
vanilia d5082d01ed fix import cycle encounter related 2025-11-06 14:34:44 +07:00
vanilia d5d4d663e1 update entity and conslist 2025-11-06 14:32:55 +07:00
dpurbosakti e821dc0347 remove ids fk 2025-11-06 14:32:54 +07:00
dpurbosakti 4aabf4ad52 specialist, subscpecialist, specialist-position, subspecialist-position ids into codes 2025-11-06 14:23:51 +07:00
dpurbosakti 7423621a30 prescription ids into codes 2025-11-06 13:34:49 +07:00
munawwirul_jamal 13b0ea571e feat/trx-orders: added antibiotic-in-use flow 2025-11-06 12:49:10 +07:00
munawwirul_jamal 7037ceae55 feat/trx-orders: added AntibioticSrc flow 2025-11-06 12:28:53 +07:00
dpurbosakti 264c316021 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into migration 2025-11-06 12:18:52 +07:00
Ubuntu 827c40dd06 migration from server 2025-11-06 12:18:16 +07:00
dpurbosakti 4e001555bb migration from server 2025-11-06 12:17:49 +07:00
Ubuntu 2238d148e8 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into migration 2025-11-06 12:16:17 +07:00
Ubuntu 03aceaac0b migration from server 2025-11-06 12:09:32 +07:00
dpurbosakti a2015a5c7e removes ids on doctor,nurse,specialist-intern 2025-11-06 12:08:36 +07:00
dpurbosakti 444fc5ce28 Merge branch 'fix/anything-moko' of github.com:dikstub-rssa/simrs-be into migration 2025-11-06 11:39:41 +07:00
dpurbosakti 9fb919229b remove ids 2025-11-06 11:39:36 +07:00
dpurbosakti 3126230f3e refactor (doctor,nurse,specialist-intern): done 2025-11-06 11:28:55 +07:00
dpurbosakti f22e25dc7c Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-06 11:22:04 +07:00
dpurbosakti 2580d38b72 specialist intern ids into codes 2025-11-06 11:21:45 +07:00
dpurbosakti 379b34d5ba wip 2025-11-06 11:18:37 +07:00
dpurbosakti c6da80880c Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-06 11:14:54 +07:00
dpurbosakti 867a68ac26 nurse ids into codes 2025-11-06 11:14:34 +07:00
dpurbosakti 9ebcb604c6 wip 2025-11-06 11:12:28 +07:00
dpurbosakti 7461e1cf91 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-11-06 11:05:48 +07:00
dpurbosakti 42265e95f7 doctor all ids into code 2025-11-06 11:04:40 +07:00
munawwirul_jamal 0e982d8ab4 feat/trx-orders: added AntibioticSrcCategory flow 2025-11-05 20:54:52 +07:00
munawwirul_jamal d1d63b7bb3 feat/trx-orders: removed Item from AntibioticSrc 2025-11-05 19:18:29 +07:00
Dwi Atmoko Purbo Sakti 2f7b4236ab Merge pull request #128 from dikstub-rssa/feat/control-letter-121
feat (control-letter): add query param
2025-11-05 13:15:02 +07:00
dpurbosakti c94a9e47fb feat (control-letter): add query param 2025-11-05 13:14:24 +07:00
Dwi Atmoko Purbo Sakti c27745538b Merge pull request #127 from dikstub-rssa/feat/control-letter-121
Feat/control letter 121
2025-11-05 13:10:58 +07:00
dpurbosakti 13dedc698b Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/control-letter-121 2025-11-05 13:10:20 +07:00
dpurbosakti 34af55c152 feat (control-letter): remove includes value on read detail 2025-11-05 13:10:06 +07:00
munawwirul_jamal c5643420f1 feat/tex-orders: updated migration 2025-11-05 11:50:07 +07:00
munawwirul_jamal e5fc25a00c Merge branch 'migration' into feat/trx-orders 2025-11-05 11:45:58 +07:00
munawwirul_jamal cd775e3366 feat/trx-order: added entities for antibiotic 2025-11-05 11:41:56 +07:00
Ubuntu 5c8c5511d9 migration from server 2025-11-05 11:18:38 +07:00
Dwi Atmoko Purbo Sakti 47843a393b Merge pull request #126 from dikstub-rssa/feat/encounter-adjustment
Feat/encounter adjustment
2025-11-05 11:16:38 +07:00
vanilia 4173b20165 delete debug 2025-11-04 16:27:47 +07:00
vanilia 460113dea0 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment 2025-11-04 16:14:45 +07:00
vanilia 28927d4c8b add chemo protocol 2025-11-04 16:13:19 +07:00
vanilia fe9f12fbe8 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment 2025-11-04 15:45:38 +07:00
Dwi Atmoko Purbo Sakti 5caddcbd46 Merge pull request #125 from dikstub-rssa/migration-vanilia
add chemo protocol entity
2025-11-04 15:45:08 +07:00
vanilia c53082fd26 add chemo protocol entity 2025-11-04 15:43:10 +07:00
vanilia 66ee63a9b6 add therapy protocol 2025-11-04 15:29:57 +07:00
Ubuntu 64879fced4 migration from server 2025-11-04 15:15:25 +07:00
Dwi Atmoko Purbo Sakti 3618c8ff59 Merge pull request #124 from dikstub-rssa/feat/control-letter-121
Feat/control letter 121
2025-11-04 15:14:26 +07:00
dpurbosakti 97e6437a4c feat (control-letter): add doctor_id 2025-11-04 15:13:09 +07:00
dpurbosakti cc96a0dcda Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/control-letter-121 2025-11-04 15:11:43 +07:00
dpurbosakti 98a567a5b3 add doctor_id in control-letter 2025-11-04 15:10:33 +07:00
vanilia c6eaaa2c10 finish adjustment encounter 2025-11-04 14:05:56 +07:00
vanilia 5180e6f1cb Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
#	internal/use-case/main-use-case/encounter/case.go
2025-11-04 11:51:19 +07:00
Dwi Atmoko Purbo Sakti 5ebd74ff5e Merge pull request #123 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-11-04 11:42:10 +07:00
vanilia c553952287 adjustment entity and constlist 2025-11-04 11:36:24 +07:00
vanilia 8d3675cbe3 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
#	internal/interface/migration/main-entities.go
2025-11-04 11:14:27 +07:00
vanilia 0f9305427c encounter-adjustment-finish 2025-11-04 11:11:24 +07:00
vanilia 63d6f7e98b Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
#	internal/interface/migration/main-entities.go
2025-11-04 10:27:43 +07:00
vanilia 8a3a140cde adjustment encounter 2025-11-04 10:26:11 +07:00
Ubuntu 21c678b823 migration from server 2025-11-03 15:46:44 +07:00
Dwi Atmoko Purbo Sakti 6a7ed4e59a Merge pull request #122 from dikstub-rssa/feat/control-letter-121
Feat/control letter 121
2025-11-03 15:44:59 +07:00
dpurbosakti ec877d73c2 feat (control-letter): add crud, renaming sync directory 2025-11-03 15:44:03 +07:00
dpurbosakti 793ff28a77 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/control-letter-121 2025-11-03 15:19:37 +07:00
dpurbosakti 4749392788 add control-letter 2025-11-03 15:17:11 +07:00
munawwirul_jamal 8e35aafca2 feat/trx-orders: changed set value for Doctor_Id and the setData 2025-11-03 14:59:03 +07:00
munawwirul_jamal 09a71f1ab3 Merge branch 'dev' into feat/trx-orders 2025-11-03 14:58:22 +07:00
munawwirul_jamal 9c39966bea dev: hotfix, adjust auth's attributes 2025-11-03 14:57:54 +07:00
munawwirul_jamal 388072ef51 feat/trx-order: ref changes for MCU 2025-11-03 08:07:19 +07:00
munawwirul_jamal 149253b00f feat/trx-orders: fixes
+ renamed a column on table McuOrderItem
+migration
2025-11-02 22:16:02 +07:00
vanilia e88f891d03 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment 2025-11-02 21:13:27 +07:00
vanilia 5f2a871c10 adjustment ambulatory, emergency, inpatient entity 2025-11-02 21:12:38 +07:00
vanilia 79f5c2c7db update dto encounter 2025-11-02 21:02:49 +07:00
vanilia 16bb34b8b4 add validation for class_code ambulatory 2025-11-02 20:58:13 +07:00
vanilia 5167b51c75 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment
# Conflicts:
#	internal/domain/main-entities/ambulatory/dto.go
2025-11-02 19:01:19 +07:00
vanilia 32b2b287aa adjust entity ambulatory and encounter 2025-11-02 18:59:30 +07:00
vanilia 616f900968 add rehab 2025-11-02 18:53:35 +07:00
vanilia 558bf5aa06 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment
# Conflicts:
#	cmd/main-migration/migrations/atlas.sum
2025-11-02 18:40:22 +07:00
vanilia 7e9914998f add rehab 2025-11-02 18:38:08 +07:00
munawwirul_jamal 3391ee0937 feat/trx-orders: added scope for order filtering 2025-11-02 16:18:35 +07:00
Munawwirul Jamal bf8ce37658 Merge pull request #120 from dikstub-rssa/feat/trx-orders
Feat/trx orders
2025-11-02 09:38:01 +07:00
munawwirul_jamal b5e25c531f Merge branch 'dev' into feat/trx-orders 2025-11-02 08:54:46 +07:00
munawwirul_jamal b43c174927 feat/trx-orders: applied migration 2025-11-02 07:30:18 +07:00
munawwirul_jamal 2b65922937 Merge branch 'migration' into feat/trx-orders 2025-11-02 07:19:58 +07:00
munawwirul_jamal 0997537c93 feat/trx-orders: added includes on prescription 2025-11-01 16:30:34 +07:00
munawwirul_jamal e69fe7bbb1 feat/trx-order: mcu
- added inlcude on the McuOrder
- reuse deleted data on the McuOrderItem
- added scope on the McuOrder
2025-11-01 16:19:47 +07:00
Dwi Atmoko Purbo Sakti 97f81105d0 Merge pull request #119 from dikstub-rssa/fix/anything-moko
feat (adime,soapi,sbar): no longer get employee id, use employee id f…
2025-10-31 16:27:55 +07:00
dpurbosakti 13e703b31b feat (adime,soapi,sbar): no longer get employee id, use employee id from authinfo 2025-10-31 16:27:05 +07:00
Dwi Atmoko Purbo Sakti 727e8362f7 Merge pull request #118 from dikstub-rssa/fix/anything-moko
at employee_position_code in claims
2025-10-31 16:07:08 +07:00
dpurbosakti ab9f1934fe at employee_position_code in claims 2025-10-31 16:06:36 +07:00
vanilia 034690c496 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment 2025-10-31 15:49:54 +07:00
Dwi Atmoko Purbo Sakti 86dd3bb61a Merge pull request #117 from dikstub-rssa/feat/functional-position-100
add response in subspecialis
2025-10-31 15:48:57 +07:00
vanilia a70e53f6f6 update entity 2025-10-31 15:47:18 +07:00
vanilia cfabd69451 update entity 2025-10-31 15:38:27 +07:00
vanilia b27e49954b update entity 2025-10-31 15:28:23 +07:00
vanilia fd2fcec2d6 add response in subspecialis 2025-10-31 15:14:16 +07:00
Dwi Atmoko Purbo Sakti 9e32a42521 Merge pull request #116 from dikstub-rssa/feat/functional-position-100
add response unit in specialist
2025-10-31 11:30:37 +07:00
vanilia 60f8db982d add response unit in specialist 2025-10-31 11:27:44 +07:00
Dwi Atmoko Purbo Sakti 2c964d635d Merge pull request #114 from dikstub-rssa/feat/functional-position-100
Feat/functional position 100
2025-10-30 15:33:49 +07:00
Dwi Atmoko Purbo Sakti 07f4d7e362 Merge pull request #115 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-30 15:33:28 +07:00
dpurbosakti 1b7c29dc11 feat (patient): now also create vclaim member + hit bpjs service 2025-10-30 15:32:36 +07:00
vanilia 2ce8ecb1b9 add json tag to unit response Dto 2025-10-30 13:59:28 +07:00
vanilia 43f9c0f4c8 add json tag to unit response Dto 2025-10-30 13:57:52 +07:00
dpurbosakti ca29e4d7fd Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-30 13:20:23 +07:00
Dwi Atmoko Purbo Sakti e29cb19bcf Merge pull request #111 from dikstub-rssa/feat/encounter-checkin
Feat/encounter checkin
2025-10-28 13:33:03 +07:00
vanilia 15179c746c add comment 2025-10-27 17:28:50 +07:00
vanilia 159db551eb set responsible doctor to required 2025-10-27 17:20:46 +07:00
vanilia 321b05e5a4 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-checkin 2025-10-27 17:10:43 +07:00
vanilia 95a8643ff9 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-checkin 2025-10-27 17:10:25 +07:00
vanilia 88e7f99e6d improve check-in 2025-10-27 17:10:00 +07:00
Ubuntu 5dca153790 migration from server 2025-10-27 16:25:12 +07:00
Dwi Atmoko Purbo Sakti f48e5ab8e0 Merge pull request #113 from dikstub-rssa/feat/specialist
Feat/specialist
2025-10-27 16:23:31 +07:00
dpurbosakti 3e1285d15b Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/specialist 2025-10-27 16:22:14 +07:00
dpurbosakti 2a66ce8361 specialist include subspecialist 2025-10-27 16:20:26 +07:00
dpurbosakti d524245325 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into migration 2025-10-27 16:08:56 +07:00
Dwi Atmoko Purbo Sakti b4115813a8 Merge pull request #112 from dikstub-rssa/migration-vanilia
add column in encounter
2025-10-27 15:15:44 +07:00
vanilia 6ccd887291 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-checkin 2025-10-27 14:55:49 +07:00
dpurbosakti c96ce50824 wip patient + parent number 2025-10-27 14:54:04 +07:00
vanilia 17172742ec add column in encounter 2025-10-27 14:52:55 +07:00
vanilia 0aa2ed730c add checkin 2025-10-27 14:34:52 +07:00
vanilia b0fe5cc416 fix conflict 2025-10-27 06:31:56 +07:00
vanilia a2ce9d9357 add encounter-checkin 2025-10-27 06:25:12 +07:00
Munawwirul Jamal 9226decb38 Merge pull request #110 from dikstub-rssa/feat/authentication
feat/authentication
2025-10-26 21:30:51 +07:00
munawwirul_jamal 2c432a7bef feat/authentication
+ moved pkg/auth-helper to internal/lib/auth
+ update AuthInfo
+ cleaning
2025-10-26 21:29:53 +07:00
munawwirul_jamal b5b0a8183d dev: hotfix, added system role 2025-10-25 18:01:37 +07:00
dpurbosakti de42ab3203 wip 2025-10-25 09:03:00 +07:00
dpurbosakti 98b26a219f add vclaim member, also marital and confidence in person 2025-10-25 08:37:00 +07:00
dpurbosakti 3ab77cab1a Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration 2025-10-25 08:25:29 +07:00
dpurbosakti 228b7a6208 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into migration 2025-10-25 08:24:34 +07:00
Dwi Atmoko Purbo Sakti abb314e950 Merge pull request #109 from dikstub-rssa/feat/functional-position-100
Feat/functional position 100
2025-10-25 08:23:57 +07:00
vanilia df38caabc1 Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/functional-position-100 2025-10-24 16:47:45 +07:00
vanilia 340af35e17 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/functional-position-100 2025-10-24 16:45:44 +07:00
vanilia a7ce13c76e add crud responsible doctor hist and adm employee hist 2025-10-24 16:45:00 +07:00
Dwi Atmoko Purbo Sakti f312a4a239 Merge pull request #107 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-10-24 16:37:34 +07:00
Dwi Atmoko Purbo Sakti 1317437116 Merge pull request #108 from dikstub-rssa/fix/patient-search
feat (patient): rework search
2025-10-24 16:26:07 +07:00
dpurbosakti 4ebeee02f0 feat (patient): rework search 2025-10-24 16:21:57 +07:00
vanilia 639776d510 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-checkin 2025-10-24 16:07:28 +07:00
vanilia bc76f9e985 adjustment detail installation,specialis, subspecialist 2025-10-24 16:04:09 +07:00
dpurbosakti e4093587e7 wip 2025-10-24 15:50:12 +07:00
vanilia 000c557efd Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/functional-position-100 2025-10-24 15:42:10 +07:00
vanilia d70a0a47f3 adjustment unit-position entity 2025-10-24 15:41:26 +07:00
vanilia 69f80b45ef adjustment detail installation 2025-10-24 15:39:14 +07:00
vanilia 8e50842f8e Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/functional-position-100 2025-10-24 14:54:20 +07:00
vanilia 49f0509273 adjustment division-position 2025-10-24 14:53:44 +07:00
vanilia c07b864d52 adjustment detail division - 2 2025-10-24 14:50:03 +07:00
vanilia fa1374484a remove division in employee 2025-10-24 14:44:04 +07:00
vanilia cdae478152 adjustment detail division 2025-10-24 14:41:41 +07:00
munawwirul_jamal 4d828b85d7 Merge branch 'migration' into feat/user 2025-10-24 12:56:35 +07:00
munawwirul_jamal e36114655f migration: added system const 2025-10-24 12:56:04 +07:00
munawwirul_jamal 8a9e0c7b7f dev: chore, updated README-APP.md 2025-10-24 12:49:35 +07:00
vanilia fac331ca21 Merge branch 'migration-vanilia' of https://github.com/dikstub-rssa/simrs-be into feat/functional-position-100 2025-10-24 12:19:48 +07:00
vanilia 066574e0fe adjustment positions 2025-10-24 12:16:36 +07:00
Ubuntu 0d0860dc90 migration from server 2025-10-24 11:05:01 +07:00
Dwi Atmoko Purbo Sakti 6b042162f8 Merge pull request #106 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-24 11:03:28 +07:00
dpurbosakti abebfd1d0c feat (user): add code on create and update, also handle midwife creation 2025-10-24 10:59:14 +07:00
dpurbosakti e95f28e442 add code in several actors 2025-10-24 10:54:37 +07:00
dpurbosakti 4fb276e69b Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-24 10:49:51 +07:00
dpurbosakti e7cff54b03 add code into several actor 2025-10-24 10:49:11 +07:00
Ubuntu ef30703798 migration from server 2025-10-23 15:57:04 +07:00
Dwi Atmoko Purbo Sakti e95efdbc1d Merge pull request #105 from dikstub-rssa/feat/functional-position-100
Feat/functional position 100
2025-10-23 15:55:05 +07:00
Dwi Atmoko Purbo Sakti fa0d39c287 Merge pull request #97 from dikstub-rssa/feat/simrs-sync
initial config for simrs sync
2025-10-23 15:53:33 +07:00
vanilia 92be0adf43 adjustment auth token with position 2025-10-23 15:34:33 +07:00
vanilia 4f3fe7588e Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/functional-position-100
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2025-10-23 11:57:39 +07:00
Dwi Atmoko Purbo Sakti 3773b9c33a Merge pull request #104 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-10-23 11:53:21 +07:00
vanilia aeffa7db65 add new entity for authentication and encounter 2025-10-23 11:46:04 +07:00
vanilia b45274bd99 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into migration-vanilia 2025-10-23 11:01:50 +07:00
Dwi Atmoko Purbo Sakti 07f1d62c2d Merge pull request #99 from dikstub-rssa/feat/edu-assessment
Feat/edu assessment
2025-10-22 16:36:44 +07:00
vanilia b3ed68fc1f crud edu-assessment 2025-10-22 16:34:29 +07:00
vanilia 8f8053daf4 crud edu-assessment 2025-10-22 16:31:55 +07:00
vanilia e107b624a1 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/edu-assessment 2025-10-22 15:36:52 +07:00
Dwi Atmoko Purbo Sakti 23ece20223 Merge pull request #98 from dikstub-rssa/feat/encounter-adjustment
move request validation to spesific folder
2025-10-22 15:35:11 +07:00
vanilia 73e4374366 move request validation to spesific folder 2025-10-22 15:28:26 +07:00
dpurbosakti 26fa5b8c8e initial config for simrs sync 2025-10-22 15:01:13 +07:00
Dwi Atmoko Purbo Sakti cd99c25715 Merge pull request #96 from dikstub-rssa/feat/encounter-adjustment
Feat/encounter adjustment
2025-10-22 12:30:01 +07:00
vanilia a2dd87a1b2 fix medicine mix preload 2025-10-22 12:24:44 +07:00
Ubuntu 704622beda migration from server 2025-10-22 11:53:22 +07:00
vanilia a9f3c5297d fix typo const 2025-10-22 11:50:54 +07:00
Dwi Atmoko Purbo Sakti 37dcec8be4 Merge pull request #95 from dikstub-rssa/feat/encounter-adjustment
Feat/encounter adjustment
2025-10-22 11:49:16 +07:00
vanilia 69797f9955 adjustment position_code 2025-10-22 11:44:30 +07:00
vanilia b8012f15d2 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment 2025-10-22 11:39:53 +07:00
vanilia 4fb856ed25 wip 2025-10-22 11:39:03 +07:00
vanilia 329a8899a4 wip 2025-10-22 11:35:56 +07:00
dpurbosakti 6274c92eff fixing error sql script 2025-10-22 11:02:54 +07:00
vanilia ea715ec9c5 update bulk insert 2025-10-22 10:49:28 +07:00
dpurbosakti ea3306aba0 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration 2025-10-22 10:44:39 +07:00
Munawwirul Jamal 2cf4e53565 Merge pull request #94 from dikstub-rssa/feat/user
Merge pull request #85 from dikstub-rssa/feat/encounter
2025-10-22 10:44:32 +07:00
Munawwirul Jamal ee9af72eb0 Merge pull request #85 from dikstub-rssa/feat/encounter
Feat/encounter
2025-10-22 10:43:49 +07:00
vanilia e290c585cf adjustment checkout 2025-10-22 09:34:33 +07:00
dpurbosakti 523bf9a580 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration 2025-10-22 09:13:00 +07:00
vanilia a795ccd747 add adjustment checkout 2025-10-22 09:03:19 +07:00
vanilia 4793eb3b3f Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment 2025-10-21 15:08:49 +07:00
Dwi Atmoko Purbo Sakti a62e8b512a Merge pull request #93 from dikstub-rssa/migration-vanilia
fix import cycle encounter related
2025-10-21 15:05:59 +07:00
vanilia 02004c9ee1 resolve conflict 2025-10-21 15:04:24 +07:00
vanilia 2fdfb257fe fix import cycle encounter related 2025-10-21 14:58:12 +07:00
vanilia b827509435 import cycle found 2025-10-21 14:43:13 +07:00
Dwi Atmoko Purbo Sakti 5213fcfd9e Merge pull request #92 from dikstub-rssa/migration-vanilia
add discharge_date in encpunter
2025-10-21 13:47:48 +07:00
vanilia 3430f85902 add discharge_date in encpunter 2025-10-21 13:42:32 +07:00
vanilia c852233bbf Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/encounter-adjustment 2025-10-21 12:36:18 +07:00
Dwi Atmoko Purbo Sakti 54ba72142c Merge pull request #91 from dikstub-rssa/migration-vanilia
fix typo
2025-10-21 12:33:39 +07:00
vanilia 281adf76aa fix typo 2025-10-21 12:31:19 +07:00
Dwi Atmoko Purbo Sakti 06560a01f4 Merge pull request #90 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-10-21 11:48:01 +07:00
vanilia bf126a9b57 remove deatch cause src 2025-10-21 11:15:03 +07:00
vanilia 591c49d661 add migration sql 2025-10-21 11:11:49 +07:00
vanilia 4b1a359b0e add new main erd and update const list 2025-10-21 11:00:07 +07:00
Dwi Atmoko Purbo Sakti 4ceebce29f Merge pull request #89 from dikstub-rssa/feat/ambulance-transport-76
Feat/ambulance transport 76
2025-10-20 14:31:36 +07:00
vanilia e1c441bdb0 update entitiy ambulance transport request 2025-10-20 14:21:03 +07:00
vanilia a9f1cc54b0 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/ambulance-transport-76 2025-10-20 14:08:24 +07:00
Dwi Atmoko Purbo Sakti 46bae889bd Merge pull request #88 from dikstub-rssa/migration-vanilia
rename column tupo
2025-10-20 13:30:07 +07:00
vanilia 15cd08397a rename column tupo 2025-10-20 13:27:29 +07:00
vanilia f4dbe13225 crud ambulance-transport-req 2025-10-20 13:21:59 +07:00
Dwi Atmoko Purbo Sakti 3cca394cb3 Merge pull request #87 from dikstub-rssa/feat/vehicle-src-75
adjust vehicle hist
2025-10-20 10:42:24 +07:00
vanilia 71cb7d621d adjust vehicle hist 2025-10-20 10:28:23 +07:00
Dwi Atmoko Purbo Sakti b460296f23 Merge pull request #86 from dikstub-rssa/feat/vehicle-src-75
Feat/vehicle src 75
2025-10-20 09:21:25 +07:00
vanilia d05ba1d2ca update handler 2025-10-20 09:09:39 +07:00
vanilia 7f5fd910ff i
merge branch 'migration into feat/vehicle-src-75

.
2025-10-20 08:54:30 +07:00
vanilia a11087a4de add crud vehicle 2025-10-20 08:53:36 +07:00
Munawwirul Jamal 9d312fc665 Merge pull request #85 from dikstub-rssa/feat/encounter
Feat/encounter
2025-10-19 21:59:49 +07:00
munawwirul_jamal 57d9f99468 feat/encounter: improved the processing 2025-10-19 21:58:07 +07:00
munawwirul_jamal 038c9f6a16 Merge branch 'dev' into feat/encounter 2025-10-19 19:09:56 +07:00
Munawwirul Jamal 5b78bd012f Merge pull request #84 from dikstub-rssa/feat/user
Feat/user
2025-10-19 18:11:02 +07:00
munawwirul_jamal 0f407e5df3 feat/user: auth reworking 2025-10-19 18:10:20 +07:00
munawwirul_jamal 4040c22d50 Merge branch 'migration' into feat/user 2025-10-19 17:25:51 +07:00
munawwirul_jamal 6ae8c88053 minor const 2025-10-19 17:24:42 +07:00
munawwirul_jamal a4c5895e8d Merge branch 'migration' into feat/user 2025-10-19 17:23:33 +07:00
munawwirul_jamal b133aa3116 updated sum 2025-10-19 17:16:15 +07:00
Ubuntu aeaa9b4f58 updated hash 2025-10-19 17:04:31 +07:00
munawwirul_jamal 11a07a96f4 added intern 2025-10-19 16:56:50 +07:00
Ubuntu a8aa3a22f1 updated hash from server 2025-10-19 15:20:05 +07:00
munawwirul_jamal 19e5ddf65d feat/user: reworking auth 2025-10-19 15:10:14 +07:00
Munawwirul Jamal 721a7e0467 Merge pull request #83 from dikstub-rssa/feat/user
Merge dev into feat/user
2025-10-19 11:03:52 +07:00
munawwirul_jamal 1cecf33e5e Merge branch 'dev' into feat/encounter 2025-10-19 10:52:57 +07:00
munawwirul_jamal d6c56b96b4 Merge dev into feat/user 2025-10-19 09:07:25 +07:00
Munawwirul Jamal 125434630e Merge pull request #82 from dikstub-rssa/migration
Migration - added intern
2025-10-19 08:12:34 +07:00
munawwirul_jamal 3d165447f5 migration:
+ added intern
+ updated employee
+ updated user
2025-10-19 07:09:48 +07:00
Ubuntu c82ee6a96c migration from server 2025-10-17 15:29:56 +07:00
Dwi Atmoko Purbo Sakti af1d698a05 Merge pull request #81 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-17 15:24:44 +07:00
dpurbosakti aa1c9e890b Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-17 15:22:53 +07:00
dpurbosakti 3bfabc9e4c update size item group code 2025-10-17 15:22:24 +07:00
dpurbosakti ded271dc6d feat (medical-action-src): add create item 2025-10-17 15:19:43 +07:00
dpurbosakti 99fd14ed55 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-17 14:54:34 +07:00
Ubuntu 063c511777 migration from server 2025-10-17 13:12:34 +07:00
Dwi Atmoko Purbo Sakti 51deef9566 Merge pull request #80 from dikstub-rssa/feat/patient-search-79
Feat/patient search 79
2025-10-17 13:09:50 +07:00
dpurbosakti 9ead9b7e76 feat (medical-action-src): add type code 2025-10-17 13:08:58 +07:00
dpurbosakti fe0971bb84 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/patient-search-79 2025-10-17 13:07:18 +07:00
dpurbosakti 0ff8c571d0 add type_code into medicalactionsrc 2025-10-17 13:06:49 +07:00
dpurbosakti 319da694af feat (patient): add search by identifier and nik only 2025-10-17 13:04:43 +07:00
Dwi Atmoko Purbo Sakti 1b6b5a73b4 Merge pull request #78 from dikstub-rssa/feat/bpjs-api-70
Feat/bpjs api 70
2025-10-17 11:53:48 +07:00
vanilia fba7bdbdc1 Merge branch 'migration' of https://github.com/dikstub-rssa/simrs-be into feat/vehicle-src-75
# Conflicts:
#	internal/domain/main-entities/person/entity.go
2025-10-17 09:36:51 +07:00
dpurbosakti 8c045b6446 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/bpjs-api-70 2025-10-16 17:22:21 +07:00
Dwi Atmoko Purbo Sakti e83edc1d7a Merge pull request #77 from dikstub-rssa/migration-vanilia
add entity for vehicle, vehicle-hist, ambulancetransportreq
2025-10-16 13:57:54 +07:00
vanilia e663fa0451 add entity for vehicle, vehicle-hist, ambulancetransportreq 2025-10-16 13:31:51 +07:00
dpurbosakti d4806d90fb feat (encounter): add flow to insert adm employee 2025-10-16 12:16:51 +07:00
dpurbosakti 2fb47d0d48 monitoring done 2025-10-16 11:26:09 +07:00
dpurbosakti c009a34f5e member, nik ok, bpjs tested but failed from 3rd party 2025-10-16 09:50:40 +07:00
dpurbosakti b4a4334504 feat (encounter): fix naming dto conventioon 2025-10-16 08:55:07 +07:00
dpurbosakti 609119c306 add person-insurance 2025-10-16 08:39:22 +07:00
dpurbosakti 93bcc39cfd Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/bpjs-api-70 2025-10-16 08:15:02 +07:00
dpurbosakti a8e41f055c add person-insurance, adjust person 2025-10-16 08:12:54 +07:00
Dwi Atmoko Purbo Sakti f2dd5a0f74 Merge pull request #73 from dikstub-rssa/feat/encounter-enhancement
Feat/encounter enhancement
2025-10-15 16:20:45 +07:00
dpurbosakti 7f279d8c8a adjust after qParam removed 2025-10-15 15:52:25 +07:00
dpurbosakti 42b9a6a3ca Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/bpjs-api-70 2025-10-15 15:50:35 +07:00
dpurbosakti 7871998c98 feat (reference): done 2025-10-15 15:49:05 +07:00
vanilia e3455254d5 merge migration 2025-10-15 14:15:38 +07:00
Dwi Atmoko Purbo Sakti 8b2f03f5d1 Merge pull request #72 from dikstub-rssa/migration-vanilia
add column in chemo table
2025-10-15 14:12:21 +07:00
vanilia 153036c6dd update helper encounter status code 2025-10-15 14:06:50 +07:00
vanilia 360543cfa7 enhancement update encounter status code 2025-10-15 14:05:26 +07:00
vanilia da65393633 enhancement update encounter status code 2025-10-15 13:59:04 +07:00
vanilia 0b864d8cd7 resolve typo name class code 2025-10-15 12:11:11 +07:00
vanilia b42dca81a5 add column in chemo table 2025-10-15 11:57:12 +07:00
dpurbosakti 3e4ce7d1bf almost done, not tested yet 2025-10-14 16:39:28 +07:00
Dwi Atmoko Purbo Sakti a77ff4d6aa Merge pull request #71 from dikstub-rssa/feat/internal-reference-68
Feat/internal reference 68
2025-10-14 16:26:02 +07:00
dpurbosakti d3f441dd56 wip 2025-10-14 14:31:40 +07:00
dpurbosakti 2d813408e4 wip 2025-10-14 14:25:09 +07:00
vanilia 6909519380 delete unused code 2025-10-14 13:44:49 +07:00
vanilia 40f5ca4263 resolved conflict 2025-10-14 13:43:11 +07:00
dpurbosakti 5b75edf170 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/bpjs-api-70 2025-10-14 13:40:50 +07:00
vanilia c42914ad04 resolved conflict 2025-10-14 13:40:33 +07:00
dpurbosakti 869837271d rename vclaim table 2025-10-14 13:40:24 +07:00
vanilia f93621ac2b revised lib and usecase update 2025-10-14 13:38:45 +07:00
vanilia 1b1f641c2c revised lib and usecase update 2025-10-14 13:35:48 +07:00
dpurbosakti 3976f74556 wip 2025-10-14 13:34:20 +07:00
dpurbosakti 9c49b90bb6 feat (encounter): update entity and adjust 2025-10-14 13:23:58 +07:00
dpurbosakti 467ed1401e Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/bpjs-api-70 2025-10-14 13:06:53 +07:00
dpurbosakti ec08939fa8 add sever table for vclaim, update encounter 2025-10-14 13:03:26 +07:00
vanilia fce7cfaf7b resolve conflict 2025-10-14 11:16:25 +07:00
vanilia 6c6ad16af9 add delete and update internal reference 2025-10-14 11:13:13 +07:00
vanilia 973af63bf6 add delete and update internal reference 2025-10-14 10:56:25 +07:00
vanilia bd6c76fee9 add list internal-reference 2025-10-13 16:25:30 +07:00
Dwi Atmoko Purbo Sakti 718200f872 Merge pull request #67 from dikstub-rssa/migration-vanilia
rename table to internal reference
2025-10-13 15:40:52 +07:00
vanilia 8abead652f rename table to internal reference 2025-10-13 15:20:24 +07:00
vanilia 73e044c6f0 add create internal reference 2025-10-13 15:07:00 +07:00
Dwi Atmoko Purbo Sakti a346244601 Merge pull request #66 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-13 12:18:08 +07:00
dpurbosakti 17e7875d4f feat (encounter): update validation maxlength dischargeMethod_code 2025-10-13 12:17:03 +07:00
dpurbosakti 26366c43c5 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-13 12:15:49 +07:00
dpurbosakti 378fd93b2d update conlist for dischargemethod and update its size in encounter 2025-10-13 12:15:21 +07:00
Dwi Atmoko Purbo Sakti c832da85c3 Merge pull request #65 from dikstub-rssa/migration-vanilia
Migration vanilia
2025-10-13 12:02:31 +07:00
vanilia de7fa4d4b1 stop tracking .idea folder 2025-10-13 11:56:12 +07:00
vanilia b2eb8344f3 add entity checkout-polies 2025-10-13 11:52:47 +07:00
vanilia 958884ecd6 add entity checkout-polies 2025-10-13 11:51:49 +07:00
vanilia b4a2317fc7 add entity checkout-polies 2025-10-13 11:50:00 +07:00
Dwi Atmoko Purbo Sakti e7be8c85ef Merge pull request #64 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-11 11:10:22 +07:00
dpurbosakti 03ad68e5f0 go mod tidy for getuk 2025-10-11 11:09:13 +07:00
dpurbosakti 1e77a82866 adjust after getuk updated 2025-10-11 10:34:52 +07:00
Dwi Atmoko Purbo Sakti afb566563a Merge pull request #63 from dikstub-rssa/fix/anything-moko
feat (user): add several position
2025-10-11 08:07:35 +07:00
dpurbosakti 5f88e912c8 feat (user): add several position 2025-10-11 08:07:00 +07:00
Ubuntu 8a1635981e migration from server 2025-10-10 14:44:41 +07:00
Dwi Atmoko Purbo Sakti 08b911aff6 Merge pull request #62 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-10 14:39:38 +07:00
dpurbosakti 0b93070217 feat (patient): adjust read detail after postalcode renamed 2025-10-10 14:38:14 +07:00
dpurbosakti 8107114598 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-10 14:29:15 +07:00
dpurbosakti 1cc9ef024e add fk village into person-address 2025-10-10 14:28:44 +07:00
dpurbosakti dc0b492951 wip 2025-10-10 14:26:15 +07:00
dpurbosakti ace549b418 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-10 14:17:14 +07:00
dpurbosakti a298f192d5 switch fk for personaddress 2025-10-10 14:12:05 +07:00
dpurbosakti 738ee5b517 change from postatlcode into postalregion, add location type into person address 2025-10-10 14:05:59 +07:00
Ubuntu f64b8e2c6e migration from server 2025-10-10 10:58:23 +07:00
Dwi Atmoko Purbo Sakti 6a0c7784a7 Merge pull request #61 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-10 10:48:09 +07:00
dpurbosakti fa2f7b745c feat (patient): more detail on preloading object 2025-10-10 10:46:48 +07:00
dpurbosakti df36789996 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-10 10:18:51 +07:00
dpurbosakti 5ef168a532 add fk postalcode in person address, and regency in person 2025-10-10 10:18:33 +07:00
Dwi Atmoko Purbo Sakti 93276a7b20 Merge pull request #60 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-09 12:54:37 +07:00
Ubuntu 080c90fc5d migration from server 2025-10-09 12:53:19 +07:00
dpurbosakti 9a68982afa feat (postal-code): add crud for postal-code 2025-10-09 12:49:19 +07:00
dpurbosakti 935e5d780c Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-09 12:30:01 +07:00
dpurbosakti 601bbd5a0a restructure area 2025-10-09 12:27:56 +07:00
dpurbosakti 63d2f2342c add postalcode 2025-10-09 11:29:49 +07:00
Dwi Atmoko Purbo Sakti 57d820cb2f Merge pull request #59 from dikstub-rssa/fix/anything-moko
feat (infra): remove preloaded data on update
2025-10-09 11:05:35 +07:00
dpurbosakti 55993113cc feat (infra): remove preloaded data on update 2025-10-09 11:04:59 +07:00
Dwi Atmoko Purbo Sakti 3cf3ebda8e Merge pull request #58 from dikstub-rssa/feat/getuk
Feat/getuk
2025-10-09 10:26:52 +07:00
dpurbosakti 496fccd249 adjust after getuk updated 2025-10-09 10:25:40 +07:00
dpurbosakti 76614abc32 adjust dto 2025-10-09 06:32:09 +07:00
Ubuntu 8b9fabd5e1 migration from server 2025-10-08 16:18:59 +07:00
Dwi Atmoko Purbo Sakti 47a8b34337 Merge pull request #56 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-08 16:17:59 +07:00
dpurbosakti 16906b0899 feat (infra): add preload for get detail 2025-10-08 16:17:02 +07:00
dpurbosakti fd2875d5ca Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-08 16:13:47 +07:00
dpurbosakti 1d4fc794f5 change structure room 2025-10-08 16:13:27 +07:00
munawwirul_jamal d9a79efd88 dev: chore, added README 2025-10-08 14:47:11 +07:00
Ubuntu 6440680486 migration from server 2025-10-08 14:40:50 +07:00
Dwi Atmoko Purbo Sakti 35c2708cf9 Merge pull request #55 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-08 14:39:25 +07:00
dpurbosakti 3dbd640aac change maxlength infragrup_code dto 2025-10-08 14:38:54 +07:00
dpurbosakti d7efbda32b Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-08 14:37:44 +07:00
dpurbosakti 1c57fac2bf expand infragroup_code size to 15 2025-10-08 14:36:58 +07:00
Dwi Atmoko Purbo Sakti c85449e038 Merge pull request #54 from dikstub-rssa/fix/anything-moko
change delimeter
2025-10-08 13:48:07 +07:00
dpurbosakti 53e805502d change delimeter 2025-10-08 13:47:26 +07:00
Dwi Atmoko Purbo Sakti 1b178a84bc Merge pull request #53 from dikstub-rssa/fix/anything-moko
add sort
2025-10-08 13:38:11 +07:00
dpurbosakti a8c79238d5 add sort 2025-10-08 13:25:04 +07:00
Dwi Atmoko Purbo Sakti 9b36ed0dcb Merge pull request #52 from dikstub-rssa/fix/anything-moko
change page-no-limit into bool and remove debug mode
2025-10-08 12:58:39 +07:00
dpurbosakti bd7ff974b1 change page-no-limit into bool and remove debug mode 2025-10-08 12:57:51 +07:00
Ubuntu 1c58708cd7 migration from server 2025-10-08 12:28:33 +07:00
Dwi Atmoko Purbo Sakti c04f74fe40 Merge pull request #51 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-08 12:27:16 +07:00
dpurbosakti 983a68d906 fix naming convention 2025-10-08 12:26:16 +07:00
dpurbosakti 3726475642 feat (division-position): add head status 2025-10-08 12:25:39 +07:00
dpurbosakti 094ba4a9bb Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-08 12:24:30 +07:00
dpurbosakti 7452acfa7d add headstatus into divisionPosition 2025-10-08 12:24:14 +07:00
dpurbosakti 7940c895b1 fix pagination and search 2025-10-08 12:21:42 +07:00
dpurbosakti e9b262175d fix (area): fix pagination area data source 2025-10-08 11:41:53 +07:00
dpurbosakti 2b0c5ac577 feat (midwife): add crud, user + midwife 2025-10-08 10:26:19 +07:00
dpurbosakti 6c47a8e176 feat (person-address): add postalCode 2025-10-08 10:25:58 +07:00
dpurbosakti cfe1c21ac9 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-08 10:16:51 +07:00
dpurbosakti 88ae9d5f30 update personaddress + midwife 2025-10-08 10:16:21 +07:00
Ubuntu e630e3ac38 migration from server 2025-10-07 16:33:48 +07:00
Dwi Atmoko Purbo Sakti 0565ec7ad5 Merge pull request #50 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-07 16:32:38 +07:00
dpurbosakti 20aa42012b Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-07 16:32:04 +07:00
dpurbosakti 386ffb15cc adjust room entity 2025-10-07 16:31:47 +07:00
dpurbosakti 6efffc9056 feat (infra): add rooms relation 2025-10-07 16:02:12 +07:00
dpurbosakti 3e25addf0a Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-07 15:46:26 +07:00
dpurbosakti 885992ffeb work around infra to handle rooms 2025-10-07 15:45:54 +07:00
dpurbosakti 7c4b8b4849 fix (installation): fix pagination 2025-10-07 15:03:04 +07:00
Ubuntu 1a97fbb998 migration from server 2025-10-07 09:35:01 +07:00
Dwi Atmoko Purbo Sakti 380e87885b Merge pull request #49 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-07 09:32:50 +07:00
dpurbosakti 34a85fa0fa feat (patient): adjust after newbornstatus added 2025-10-07 09:31:48 +07:00
dpurbosakti 187fd780ee Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-07 09:29:41 +07:00
dpurbosakti 7bd2a5105d add newbornstatus into patient 2025-10-07 09:29:17 +07:00
dpurbosakti 32bfbf2c03 set static status_code as new for orders 2025-10-07 09:19:17 +07:00
Ubuntu 33fcedae50 migration from server 2025-10-06 14:36:25 +07:00
Dwi Atmoko Purbo Sakti c4eee74229 Merge pull request #48 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-06 14:34:55 +07:00
dpurbosakti 40206abb2b handle nested preloads 2025-10-06 14:31:34 +07:00
dpurbosakti 8de44b1e4d update extractToken to read user_division_positions claim/jwt 2025-10-06 12:41:09 +07:00
dpurbosakti ec7cd9b929 feat (person): add coms issue and disability field 2025-10-06 12:03:25 +07:00
dpurbosakti 4ce3b566a2 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-06 12:00:07 +07:00
dpurbosakti cb7eac26ef fix disability column typo 2025-10-06 11:59:50 +07:00
dpurbosakti 7966cd11e1 add coms, and disabillty column into person 2025-10-06 11:57:31 +07:00
dpurbosakti 8e1fb56570 feat (auth): add user division position 2025-10-06 11:54:56 +07:00
dpurbosakti e7611c9078 feat (division-position): add employee id 2025-10-06 11:13:45 +07:00
dpurbosakti e0da5f5f0b Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-06 11:12:25 +07:00
dpurbosakti c262947d3f add employee id into division-position 2025-10-06 11:12:00 +07:00
dpurbosakti 1adc942ae7 auth wip 2025-10-06 11:08:55 +07:00
dpurbosakti 5794256f62 fix json convention for list 2025-10-06 11:08:43 +07:00
Dwi Atmoko Purbo Sakti 070f0c7035 Merge pull request #47 from dikstub-rssa/feat/chemo-46
Feat/chemo 46
2025-10-06 09:40:01 +07:00
dpurbosakti 854143ef42 feat (chemo): add handler, use case, and handle in encounter 2025-10-05 14:38:33 +07:00
dpurbosakti 0c2ad54b58 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into migration 2025-10-05 13:06:24 +07:00
dpurbosakti 6c91c6df59 run migration 2025-10-05 13:05:36 +07:00
dpurbosakti b603a05980 feat (person): add column nationality and adjust 2025-10-05 13:03:51 +07:00
dpurbosakti 3a68aac53e feat (consultation): update column and adjust 2025-10-05 13:02:19 +07:00
dpurbosakti ad358e4f79 feat (chemo): add entities 2025-10-05 13:01:43 +07:00
Dwi Atmoko Purbo Sakti 1531e316b0 Merge pull request #45 from dikstub-rssa/fix/anything-moko
feat (ambulatory): add checking class for chemo
2025-10-05 12:35:19 +07:00
dpurbosakti 1370edcd39 feat (ambulatory): add checking class for chemo 2025-10-05 12:24:08 +07:00
Dwi Atmoko Purbo Sakti 2bd81c670e Merge pull request #44 from dikstub-rssa/fix/anything-moko
feat (infra): add filter data that only have children
2025-10-04 15:43:09 +07:00
dpurbosakti 10ef340d63 feat (infra): add filter data that only have children 2025-10-04 15:42:40 +07:00
Dwi Atmoko Purbo Sakti 208a1e6123 Merge pull request #43 from dikstub-rssa/fix/anything-moko
fix pagination, filter to show only have children data on division
2025-10-03 17:16:04 +07:00
dpurbosakti bd6351e3a3 fix pagination, filter to show only have children data on division 2025-10-03 17:13:53 +07:00
Ubuntu 27ba102ca7 migration from server 2025-10-03 11:05:49 +07:00
Dwi Atmoko Purbo Sakti 26357e88e9 Merge pull request #42 from dikstub-rssa/fix/anything-moko
Fix/anything moko
2025-10-03 11:01:13 +07:00
dpurbosakti 06e7b1ce71 feat (mcu-order): add guard 2025-10-03 11:00:24 +07:00
dpurbosakti 06a6ac6424 feat (mcu-order): handle doctor_id on create and update 2025-10-03 11:00:07 +07:00
Dwi Atmoko Purbo Sakti 04ecc83507 Merge pull request #41 from dikstub-rssa/fix/anything-moko
feat: improve error handling on create and add search for objects wit…
2025-10-03 10:53:44 +07:00
dpurbosakti 39efdf4d57 material, device-order required doctor_id, infra search and parent,childrens 2025-10-03 10:53:06 +07:00
dpurbosakti c23df03d0e Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-03 10:21:49 +07:00
dpurbosakti 200c3e9c83 add doctor id into device-order, material-order, add fk parent and childrens for infra 2025-10-03 10:21:18 +07:00
dpurbosakti 47e855f91e feat (division): add fk and preloads for parent and childrens 2025-10-02 16:19:35 +07:00
dpurbosakti b10db970d6 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-02 16:13:17 +07:00
dpurbosakti 6d50ca233a change datatype parent_id 2025-10-02 16:12:43 +07:00
dpurbosakti 12522a4e67 wip 2025-10-02 16:11:25 +07:00
dpurbosakti 07914619d9 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/anything-moko 2025-10-02 16:08:20 +07:00
dpurbosakti 01ea6b0961 add comment in division entity 2025-10-02 16:06:44 +07:00
dpurbosakti c946380e4a stop tracking atlas.hcl files (ignored) 2025-10-02 16:05:21 +07:00
dpurbosakti 82fd71dbbf update gitignore to ignore atlas.hcl files 2025-10-02 16:03:26 +07:00
dpurbosakti fe0fcecf80 git commit -m "migration updates" 2025-10-02 16:02:47 +07:00
dpurbosakti fb437127dc update soapi struct 2025-10-02 08:11:24 +07:00
dpurbosakti 0870832b15 update constlist 2025-10-02 08:00:11 +07:00
dpurbosakti af090ed7c1 feat: improve error handling on create and add search for objects with code and name 2025-10-01 16:04:10 +07:00
Ubuntu 92d4fb8d38 migration from server 2025-10-01 11:27:32 +07:00
Dwi Atmoko Purbo Sakti 759b0ef318 Merge pull request #40 from dikstub-rssa/feat/medicine-mix-prescription-37
update libhelper on case sensitive
2025-10-01 11:15:14 +07:00
dpurbosakti ec4e624cbd update libhelper on case sensitive 2025-10-01 11:14:02 +07:00
Munawwirul Jamal 28b1d583bd Merge pull request #39 from dikstub-rssa/feat/medicine-mix-prescription-37
add search on several data source
2025-10-01 10:05:56 +07:00
dpurbosakti 8efc2a2c3c add search on several data source 2025-10-01 09:42:28 +07:00
Munawwirul Jamal e625ac770c Merge pull request #38 from dikstub-rssa/feat/medicine-mix-prescription-37
Feat/medicine mix prescription 37
2025-10-01 03:16:22 +07:00
dpurbosakti d3bca38104 feat (medication-item): add qty calculation if intervalMultiplier is not nil 2025-09-30 21:20:32 +07:00
dpurbosakti c7242536c9 feat (mcu-src): adjust after renaming CheckupCategory_code 2025-09-30 21:10:04 +07:00
dpurbosakti d054b97e5a Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/medicine-mix-prescription-37 2025-09-30 21:06:41 +07:00
dpurbosakti c90529c847 rename CheckupCategory_Code into McuSrcCategory_Code 2025-09-30 21:05:11 +07:00
dpurbosakti 74acd328bc add validation 2025-09-30 18:53:42 +07:00
dpurbosakti 78df1fd8b4 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/medicine-mix-prescription-37 2025-09-30 11:12:02 +07:00
dpurbosakti 0f86c0827c feat (prescription-item, medicine-mix, medication-item): adjust field, calculate qty 2025-09-30 10:43:31 +07:00
dpurbosakti 2cbd534b0d Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/medicine-mix-prescription-37 2025-09-30 10:04:40 +07:00
Munawwirul Jamal fee4f723d8 Merge pull request #35 from dikstub-rssa/fix/soapi
Fix/soapi
2025-09-30 09:59:07 +07:00
dpurbosakti 7fd8bca3f8 adjust for prescription item, medicinemix, medication item 2025-09-30 09:56:25 +07:00
dpurbosakti ff026914c4 rerun atlas migration 2025-09-30 09:39:51 +07:00
dpurbosakti 3b7b207f61 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into fix/soapi 2025-09-30 09:30:23 +07:00
Ubuntu 8d3113a860 update after run migration 2025-09-29 21:09:34 +07:00
dpurbosakti df46ba3335 fix (soapi): add type code 2025-09-29 10:47:28 +07:00
dpurbosakti 76511e02b2 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into fix/soapi 2025-09-29 10:45:53 +07:00
dpurbosakti f7edee1ac5 add soapiTypeCode, adjust soapi 2025-09-29 10:45:16 +07:00
Munawwirul Jamal b2ee2ac6db Merge pull request #34 from dikstub-rssa/fix/encounter
fix (encounter): add open orders guard
2025-09-26 15:16:30 +07:00
Munawwirul Jamal a8dc4be88f Merge pull request #33 from dikstub-rssa/feat/be-upload-berkas-pasien-32
Feat/be upload berkas pasien 32
2025-09-26 15:16:11 +07:00
dpurbosakti 7ea912b4a8 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/be-upload-berkas-pasien-32 2025-09-26 14:51:02 +07:00
Munawwirul Jamal d7fa7293a3 Merge pull request #29 from dikstub-rssa/feat/be-consultation-28
Feat/be consultation 28
2025-09-26 14:45:30 +07:00
dpurbosakti d34596d3e8 fix (encounter): add open orders guard 2025-09-25 11:38:04 +07:00
dpurbosakti a9e380f957 feat (patient): remove previously uploaded file when a new one is created 2025-09-25 11:14:47 +07:00
dpurbosakti ea50df44bd feat (consultation): add guard for diff doctor_id 2025-09-24 14:32:31 +07:00
dpurbosakti e7c6264e27 Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/be-consultation-28 2025-09-24 14:27:52 +07:00
dpurbosakti f618a2d6d0 feat (patient): upload done 2025-09-24 14:24:57 +07:00
dpurbosakti 016fcc667c Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/be-upload-berkas-pasien-32 2025-09-24 12:20:11 +07:00
dpurbosakti a1982dfe5f Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/be-upload-berkas-pasien-32 2025-09-24 12:14:48 +07:00
dpurbosakti d68a9bb7b7 add several columns for file url person 2025-09-24 12:13:57 +07:00
Munawwirul Jamal b8e3dbea4e Merge pull request #31 from dikstub-rssa/feat/be-setup-minio-30
feat (minio): done, upload wip
2025-09-24 09:55:59 +07:00
Munawwirul Jamal b532285426 Merge pull request #27 from dikstub-rssa/feat/orders
Feat/orders
2025-09-24 08:14:40 +07:00
dpurbosakti a50f62f5ec feat (minio): done, upload wip 2025-09-24 07:51:15 +07:00
dpurbosakti ef5f50957d feat (consultation): done 2025-09-23 10:20:06 +07:00
dpurbosakti 41eab2d9a1 Merge branch 'feat/orders' of github.com:dikstub-rssa/simrs-be into feat/be-consultation-28 2025-09-23 10:04:09 +07:00
dpurbosakti 2632e648e8 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/be-consultation-28 2025-09-23 09:52:48 +07:00
dpurbosakti d851989df2 add consultation 2025-09-23 09:51:55 +07:00
dpurbosakti 202bb32e9c feat (prescription): add approve + create medication 2025-09-22 13:21:29 +07:00
dpurbosakti 02c86a9ec0 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-22 13:04:23 +07:00
dpurbosakti 5810c2cb2b change datatype prescription's status code 2025-09-22 13:03:31 +07:00
dpurbosakti 37da1ee418 feat (orders): add guard if parents are done, cant create child 2025-09-22 13:00:23 +07:00
dpurbosakti 6304d8f02a add mcu orders related, not tested yet 2025-09-21 04:41:43 +07:00
dpurbosakti 774ea80f69 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-18 14:48:24 +07:00
dpurbosakti 28a8fff219 change size mcu urgency level code 2025-09-18 14:48:07 +07:00
dpurbosakti e666a421f4 feat (mcu-order): adjust mcu dto and helper 2025-09-18 14:47:11 +07:00
dpurbosakti 3affc72cbf Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-18 14:38:55 +07:00
dpurbosakti 3b601c4d76 adjust and add tables for mcu orders 2025-09-18 14:38:18 +07:00
dpurbosakti 3b753cb972 feat (medicine-mix-item): add note 2025-09-17 16:38:35 +07:00
dpurbosakti 3f149530fb Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-17 16:37:39 +07:00
dpurbosakti ab9cda65af remove note from medmix, add note for medmixitem 2025-09-17 16:37:17 +07:00
dpurbosakti 5a5856ccb9 waiting for migration 2025-09-17 16:35:07 +07:00
dpurbosakti 8406c4f202 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-17 11:53:22 +07:00
dpurbosakti 282cc93c14 change fk, put fk on medmix and remove fk from medmixitem 2025-09-17 11:53:04 +07:00
dpurbosakti 86a073164d wip encounter + medication 2025-09-17 11:47:03 +07:00
dpurbosakti c8e32e8239 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-17 11:08:57 +07:00
dpurbosakti 6b8f84efac adjust on several order tables 2025-09-17 11:08:38 +07:00
Munawwirul Jamal 2586bf9b76 Merge pull request #25 from dikstub-rssa/feat/orders
Feat/orders
2025-09-17 10:23:00 +07:00
dpurbosakti cb5b743bee wip 2025-09-16 17:59:33 +07:00
dpurbosakti d1a587f603 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-16 11:49:03 +07:00
dpurbosakti e8ff57168c update serveral field on order tables 2025-09-16 11:44:36 +07:00
dpurbosakti 9e049df67d Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-15 19:36:45 +07:00
dpurbosakti 29f0ff6887 add migration for several order tables 2025-09-15 19:36:26 +07:00
dpurbosakti 178fe78940 add crud for orders 2025-09-15 14:52:13 +07:00
dpurbosakti 964ec820a5 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/orders 2025-09-15 14:16:35 +07:00
dpurbosakti b4dca13bc4 regis entities for orders, not running diff yet 2025-09-15 14:11:53 +07:00
dpurbosakti ea23a661aa Merge branch 'ss---db-migration-22' of github.com:dikstub-rssa/simrs-be into migration 2025-09-15 14:08:37 +07:00
dpurbosakti 45d687c5ec wip 2025-09-15 14:07:30 +07:00
Dwi Atmoko Purbo Sakti 9d4787957f Delete cmd/satusehat-migration/atlas.hcl 2025-09-12 09:58:56 +07:00
Dwi Atmoko Purbo Sakti 0637e60837 Delete cmd/main-migration/atlas.hcl 2025-09-12 09:58:32 +07:00
Dwi Atmoko Purbo Sakti 1194b607b9 Update .gitignore 2025-09-12 09:57:39 +07:00
Munawwirul Jamal 073c1d3f5d Merge pull request #23 from dikstub-rssa/ss---db-migration-22
Ss   db migration 22
2025-09-12 09:41:11 +07:00
Munawwirul Jamal 7b4275d213 Merge pull request #21 from dikstub-rssa/encounter-13
Encounter 13
2025-09-12 09:39:57 +07:00
dpurbosakti 20bc8419d0 separate atlas command 2025-09-12 08:57:05 +07:00
dpurbosakti dfaf6e8d29 remove replaced go mod 2025-09-11 13:09:30 +07:00
dpurbosakti 043dc9d19a Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into ss---db-migration-22 2025-09-11 13:06:51 +07:00
dpurbosakti 7ab845d79d handle ss migration, tested 2025-09-11 13:02:57 +07:00
dpurbosakti 96a2ae9251 initiate multi db config 2025-09-11 12:19:06 +07:00
dpurbosakti 266b96dd73 feat (encounter): handle status 2025-09-10 13:11:18 +07:00
dpurbosakti 922739d1b6 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into encounter-13 2025-09-10 12:59:48 +07:00
dpurbosakti 2ed11fe5e5 add status code in encounter 2025-09-10 12:59:28 +07:00
dpurbosakti 528de44a92 feat (encounter): update wip 2025-09-10 12:56:13 +07:00
dpurbosakti 62c41be875 add auth for sbar and adime 2025-09-09 13:57:47 +07:00
dpurbosakti 9cd19f4783 tidy 2025-09-09 13:50:57 +07:00
dpurbosakti 61cb32afcc adjust adime and sbar case 2025-09-09 13:50:37 +07:00
dpurbosakti e2f8947d39 remove debug() 2025-09-09 13:44:18 +07:00
dpurbosakti e4358034d9 feat (encounter): create and checkout + checking soapi done 2025-09-09 13:41:06 +07:00
dpurbosakti cc226b8034 feat (encouter): not tested yet, also add crud for soapi, adime, sbar 2025-09-08 15:18:41 +07:00
dpurbosakti 1d069414d7 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into encounter-13 2025-09-08 14:40:24 +07:00
dpurbosakti 6dd7b18de6 rename column dischargemethod 2025-09-08 14:40:03 +07:00
dpurbosakti 1bb7647b6d discharge wip 2025-09-08 14:33:19 +07:00
dpurbosakti daa8b76f9a Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into encounter-13 2025-09-08 14:09:57 +07:00
dpurbosakti 191ad1b969 feat (encounter): discharge method nullable 2025-09-08 14:09:27 +07:00
dpurbosakti 255484c520 wip 2025-09-08 14:08:25 +07:00
dpurbosakti b3498715f7 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into encounter-13 2025-09-08 13:27:54 +07:00
dpurbosakti d497b024dc add soapi, sbar, adime, ambulatory, inpatient, emergency, appointment and edit encounter 2025-09-08 13:26:36 +07:00
Munawwirul Jamal a22b70b949 Merge pull request #20 from dikstub-rssa/migration
Migration
2025-09-08 08:21:13 +07:00
dpurbosakti dd409e5c5e refactor 2025-09-04 21:15:11 +07:00
dpurbosakti 56d9513dd7 wip 2025-09-04 19:43:33 +07:00
Munawwirul Jamal 8e6d2679e5 Merge pull request #18 from dikstub-rssa/feat/patient
feat (patient): add search
2025-09-04 15:57:12 +07:00
Munawwirul Jamal 1bf681bcee Merge pull request #19 from dikstub-rssa/feat/employee
Feat/employee
2025-09-04 15:57:01 +07:00
dpurbosakti e34e810e51 feat (employee): add laborant on create and update 2025-09-04 12:07:47 +07:00
dpurbosakti 00803113f0 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/employee 2025-09-04 12:02:37 +07:00
dpurbosakti 850ff7615c fix laborant table 2025-09-04 12:01:54 +07:00
dpurbosakti 4a0b9f5713 wip 2025-09-04 11:58:35 +07:00
dpurbosakti d654d166a6 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/employee 2025-09-04 11:53:40 +07:00
dpurbosakti eda0454ad6 add laborant, set patient number as unique 2025-09-04 11:53:15 +07:00
dpurbosakti 4f6a781341 feat (patient): add search 2025-09-04 11:32:11 +07:00
dpurbosakti f51b9baeed feat (encounter): basic crud 2025-09-03 16:39:26 +07:00
Munawwirul Jamal a3e2b3be23 Merge pull request #17 from dikstub-rssa/feat/patient
Feat/patient
2025-09-03 15:55:37 +07:00
dpurbosakti e658b9adc2 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/patient 2025-09-03 14:32:55 +07:00
dpurbosakti c4aa96f766 adjust medicinemethod and group size, add encounter entity 2025-09-03 14:32:29 +07:00
dpurbosakti 92c6e8ea08 add validation on createDto 2025-09-03 14:17:01 +07:00
dpurbosakti 3d98e5508d feat (person): add check nick flow, and add nik validation 2025-09-03 13:06:37 +07:00
dpurbosakti a631f33248 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/patient 2025-09-03 11:26:36 +07:00
dpurbosakti fbc10aec4b set Identity,Passport, DrivingLisence number as unique, add unit into nurse and set not nulll device's name 2025-09-03 11:25:43 +07:00
dpurbosakti bb225ccd97 wip 2025-09-03 11:14:31 +07:00
dpurbosakti 16f4869d86 feat (patient): crud untested yet 2025-09-02 18:10:17 +07:00
dpurbosakti 2d76730feb Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/patient 2025-09-02 17:59:11 +07:00
dpurbosakti 0fc0612a58 migrate patient 2025-09-02 17:53:28 +07:00
dpurbosakti 2b455b1b45 add patient entity 2025-09-02 17:51:18 +07:00
dpurbosakti 88882ed8fb feat (employee): remove patient relative 2025-09-02 17:21:29 +07:00
dpurbosakti 2976218749 feat (employee): create and update include personaddress, contacts, and relatives 2025-09-02 16:05:07 +07:00
dpurbosakti cfc4b19e70 add crud for language 2025-09-02 16:05:03 +07:00
dpurbosakti 9247876d5f Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/employee 2025-09-02 14:30:15 +07:00
dpurbosakti 53f798ce29 add table person-relative, add fk personrelative into person 2025-09-02 13:33:01 +07:00
dpurbosakti 847935f3b9 wip 2025-09-02 12:29:30 +07:00
dpurbosakti a58fb00f5b Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/employee 2025-09-02 12:25:29 +07:00
dpurbosakti e8a7123f30 add several fields into person 2025-09-02 12:24:03 +07:00
Munawwirul Jamal 88a88156f6 Merge pull request #15 from dikstub-rssa/pre-dev
Pre dev
2025-09-02 11:01:12 +07:00
Munawwirul Jamal 4c9a92ee18 Merge pull request #12 from dikstub-rssa/feat/crud
Feat/crud
2025-09-02 10:55:50 +07:00
dpurbosakti 4f3dee37fa feat (employee): add create feat doctor, nurse, nutritionist, pharmacy 2025-09-01 18:44:57 +07:00
dpurbosakti b289831e6c feat (person): add front and endtitle 2025-09-01 17:58:40 +07:00
dpurbosakti d8c762d5c2 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-09-01 17:57:46 +07:00
dpurbosakti 8594bc51d4 add front and endtitle on person 2025-09-01 17:57:25 +07:00
dpurbosakti 8af9504a7e fix filtering 2025-09-01 15:15:08 +07:00
dpurbosakti 7e67b7936e Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-09-01 15:01:18 +07:00
dpurbosakti 9a0b37390d add fk mcusrccategory for mcusrc 2025-09-01 15:01:02 +07:00
dpurbosakti f25d7c1b09 filtering wip 2025-09-01 14:58:55 +07:00
dpurbosakti ba57298f23 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-09-01 14:34:47 +07:00
dpurbosakti ee160f877f add user and person fk for employee 2025-09-01 14:34:19 +07:00
dpurbosakti 8aa34607b9 remove unnecessary field in readdetail 2025-09-01 14:28:34 +07:00
dpurbosakti fae93e5158 feat (infra): add item on room infra group 2025-08-29 15:44:52 +07:00
dpurbosakti ea7896eff7 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-29 15:38:38 +07:00
dpurbosakti 2cacfc5f33 feat (infra): change parent_id datatype 2025-08-29 15:38:12 +07:00
dpurbosakti 62608b5909 infra wip 2025-08-29 15:36:46 +07:00
dpurbosakti 2d8fcba59f feat (device, material): add create item 2025-08-29 15:36:37 +07:00
dpurbosakti 3941195032 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-29 15:23:46 +07:00
dpurbosakti 5231c177e3 feat (item, infra): remove pointer on group 2025-08-29 15:23:17 +07:00
dpurbosakti 9546c88d1a wip 2025-08-29 15:17:12 +07:00
dpurbosakti ad19a82477 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-29 15:15:02 +07:00
dpurbosakti c62bc414a9 add infra id into device and material 2025-08-29 15:14:40 +07:00
dpurbosakti 7787829d57 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-29 15:00:07 +07:00
dpurbosakti 2fa3de8c53 adjust after references fixed 2025-08-29 14:59:19 +07:00
dpurbosakti faf6134caf feat (medicine): adjust medicine 2025-08-29 14:35:20 +07:00
dpurbosakti 0fa7e8ccde fix reference/constlist 2025-08-29 14:27:25 +07:00
Munawwirul Jamal fbe879aa16 Merge pull request #7 from dikstub-rssa/feat/crud
Feat/crud
2025-08-29 11:08:39 +07:00
Munawwirul Jamal 92488d8d3a Merge pull request #6 from dikstub-rssa/feat/atlas-migration-orm
Feat/atlas migration orm
2025-08-29 11:08:08 +07:00
dpurbosakti 579ee573c5 reproduce sql script 2025-08-28 16:21:37 +07:00
dpurbosakti 5dcdbfd1eb Merge branch 'feat/crud' of github.com:dikstub-rssa/simrs-be into migration 2025-08-28 16:15:56 +07:00
dpurbosakti 78c2b2eada feat (doctor-fee): change naming 2025-08-28 16:15:32 +07:00
dpurbosakti 691f7078ad feat (material): change item id datatype 2025-08-28 16:12:48 +07:00
dpurbosakti 2073165f82 add crud for medicine, medicinemix, medicinemixitem, device, material, medicalactionsrc, medicalactionsrcitem, doctorfee 2025-08-28 16:04:15 +07:00
dpurbosakti d80e1f0570 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-28 14:53:29 +07:00
dpurbosakti 034c8e79e2 feat (item-price): change insurancecompany datatype 2025-08-28 14:53:08 +07:00
dpurbosakti e827f3d1a9 feat (medicine): wip 2025-08-28 14:43:39 +07:00
dpurbosakti dfb9297cc8 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-28 14:10:26 +07:00
dpurbosakti f8a4c8ab97 changed infra id data type 2025-08-28 14:10:11 +07:00
dpurbosakti 645640689b feat (medicine): wip 2025-08-28 14:06:23 +07:00
dpurbosakti 2d46f13b10 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-28 13:14:07 +07:00
dpurbosakti b4cef16061 add medicine, medicinemix, medicinemixitem, medicalactionsrc, medicalactionsrcitem, device, material, doctorfee 2025-08-28 13:12:50 +07:00
dpurbosakti aa73c31ffd add crud for ethnic, insurancecompany 2025-08-27 15:53:08 +07:00
dpurbosakti 9ed9afe648 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-27 15:38:26 +07:00
dpurbosakti 03fb2858d1 add insurancecompany, ethnic, alter person 2025-08-27 15:38:00 +07:00
dpurbosakti f1e528b20e add crud for uom, item, itemprice, infra, medicinegroup, medicinemethod, mcusrccategory, mcusrc 2025-08-27 15:22:17 +07:00
dpurbosakti 3a0dc5f98f Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-27 14:41:12 +07:00
dpurbosakti c1d14f3770 add uom, item, itemprice, infra, medicinegroup, medicinemethod, mscusrccategory, mcusrc 2025-08-27 14:40:56 +07:00
dpurbosakti c2c24465b3 Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-27 14:23:32 +07:00
dpurbosakti ad41ac0bd8 feat (practice-schedule): fix json convention 2025-08-27 13:46:04 +07:00
dpurbosakti 4e3330da23 feat (crud): regis handler 2025-08-27 13:45:04 +07:00
dpurbosakti cbd836a681 add use case for employee, itemgroup, doctor, nurse, nutritionist, pharmacist, counter, practiceschedule 2025-08-27 10:40:26 +07:00
dpurbosakti 9df1ba28de Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud 2025-08-27 10:21:01 +07:00
dpurbosakti 0d62b3f725 update infragroup 2025-08-27 10:20:40 +07:00
dpurbosakti 99fa735eed add use case pharmacycompany, diagnosesrc, proceduresrc, infragroup 2025-08-27 09:40:21 +07:00
dpurbosakti 3d22e8b720 add infragroup, employee, itemgroup, doctor, nurse, nutritionist, pharmacist, counter, practiceschedule 2025-08-27 09:20:16 +07:00
dpurbosakti d76c5de6df add sql script for diagnose and procedure src 2025-08-25 17:31:16 +07:00
dpurbosakti f06286cbc6 diagnosesrc, proseduresrc, pharmacycompany 2025-08-25 17:28:14 +07:00
dpurbosakti 280d373576 feat (crud): add person, person-contact, person-address 2025-08-25 14:07:14 +07:00
dpurbosakti c3132fe2b7 Merge branch 'feat/user' of github.com:dikstub-rssa/simrs-be into feat/user 2025-08-25 09:58:32 +07:00
dpurbosakti d10b92c7b1 feat (user): add block and active 2025-08-25 09:57:55 +07:00
dpurbosakti 4d10a8f99f feat (user): add sanitize to hide password for log 2025-08-25 09:41:27 +07:00
dpurbosakti 497d209456 add logger output 2025-08-25 09:41:07 +07:00
dpurbosakti a4a0a4f672 refactor : adjust use case after mw refactored 2025-08-22 15:18:25 +07:00
dpurbosakti 7a032ff518 refactor mw example 2025-08-21 16:24:48 +07:00
dpurbosakti 5c716eb269 refactor use case 2025-08-20 16:51:24 +07:00
dpurbosakti a218489496 feat (unit, division-position): add preload 2025-08-20 13:53:14 +07:00
dpurbosakti 4c25bdf8db feat (crud): add installation, unit 2025-08-20 13:40:25 +07:00
dpurbosakti 14cba14822 add encounter outpatient class 2025-08-20 13:08:55 +07:00
dpurbosakti a8f9dcf738 feat (crud): add division, division-position 2025-08-20 13:07:56 +07:00
dpurbosakti b20380b1f6 feat (user): add logger on crud 2025-08-20 09:36:13 +07:00
Dwi Atmoko Purbo Sakti 0a680d523b Delete cmd/migration/atlas.hcl 2025-08-20 08:56:01 +07:00
dpurbosakti d476a31422 missing inactive status code 2025-08-19 15:52:52 +07:00
dpurbosakti 4a6c6e28bc feat (auth): rework logout 2025-08-19 15:21:06 +07:00
dpurbosakti a448f43b67 add cors 2025-08-19 14:26:39 +07:00
dpurbosakti 911cf6d1fb add auth 2025-08-19 14:26:34 +07:00
dpurbosakti f80cba1cf5 feat (user): adjust for auth, hide pass 2025-08-19 14:26:19 +07:00
dpurbosakti 0c5aa0becf feat (user): use case done 2025-08-18 13:02:14 +07:00
dpurbosakti db6af776a3 done 2025-08-15 12:12:33 +07:00
dpurbosakti 61d0f91c3f wip 2025-08-15 10:21:59 +07:00
dpurbosakti 848f7d5a03 wip 2025-08-15 10:18:41 +07:00
dpurbosakti aa871a95bb wip 2025-08-14 16:09:31 +07:00
dpurbosakti 3c84d0d662 Merge branch 'feat/infra-ss-plugin' of github.com:dikstub-rssa/simrs-be into feat/user 2025-08-14 14:13:27 +07:00
dpurbosakti 8bcf668013 feat (infra-ss-db): add into extracalls 2025-08-14 10:41:01 +07:00
dpurbosakti 389fd8e3ec pre-dev: add gorm setting into extracalls 2025-08-14 10:40:31 +07:00
Munawwirul Jamal 5638885aef Merge pull request #4 from dikstub-rssa/moko
Moko
2025-08-13 15:33:08 +07:00
dpurbosakti e364c742b2 add domain references 2025-08-13 14:26:41 +07:00
dpurbosakti 7577c87f27 feat (user): add create 2025-08-13 14:26:14 +07:00
dpurbosakti 2e88eaf793 pre-dev: add migration 2025-08-13 14:23:51 +07:00
dpurbosakti 3e4de883b0 Merge branch 'pre-dev' of github.com:dikstub-rssa/simrs-be into moko 2025-08-13 13:17:04 +07:00
Munawwirul Jamal 2cc9cadd4c Merge pull request #3 from dikstub-rssa/feat/logger-example
Feat/logger example
2025-08-12 15:14:56 +07:00
dpurbosakti 863192603f Merge branch 'pre-dev' of github.com:dikstub-rssa/simrs-be into moko 2025-08-12 15:10:29 +07:00
dpurbosakti c794d39ff0 Merge branch 'pre-dev' of github.com:dikstub-rssa/simrs-be into feat/logger-example 2025-08-12 15:09:05 +07:00
dpurbosakti ef2db01298 Merge branch 'main' of github.com:dikstub-rssa/simrs-be into feat/logger-example 2025-08-12 15:06:31 +07:00
dpurbosakti 7fe95b0282 pre-dev: add logger 2025-08-12 15:05:48 +07:00
dpurbosakti 974562e86a pre-dev: add logger 2025-08-12 15:04:04 +07:00
Munawwirul Jamal b15575eeeb Merge pull request #2 from dikstub-rssa/pre-dev
Pre dev
2025-08-12 13:54:11 +07:00
munawwirul_jamal 882a8ae046 pre-dev: added more config 2025-08-12 13:52:39 +07:00
dpurbosakti 28e043f4da pre-dev: add lang helper 2025-08-12 10:47:14 +07:00
dpurbosakti 4b3090d788 pre-dev: wip crud template 2025-08-11 13:13:29 +07:00
dpurbosakti 5a950b5fe9 pre-dev: update dependency 2025-08-11 13:10:54 +07:00
dpurbosakti c6936ddbc8 Merge branch 'pre-dev' of github.com:dikstub-rssa/simrs-be into moko 2025-08-11 11:49:20 +07:00
dpurbosakti d2356e1a2d add karincake/dodol 2025-08-11 11:49:14 +07:00
munawwirul_jamal ae524c8c47 pre-dev: update flow for lib vs case 2025-08-11 11:47:47 +07:00
dpurbosakti 61512963bd tidy 2025-08-11 11:10:56 +07:00
dpurbosakti 0843fca961 setup debugger 2025-08-11 11:05:42 +07:00
munawwirul_jamal ec9fb2fc45 main: udpated gitignore 2025-08-11 10:49:48 +07:00
munawwirul_jamal ee9b4a9035 pre-dev: initial commit 2025-08-11 10:41:25 +07:00
Munawwirul Jamal e0ecf1c906 Initial commit 2025-07-22 15:30:50 +07:00
1518 changed files with 120633 additions and 3 deletions

No files matched your search

+10 -2
View File
@@ -1,4 +1,3 @@
# ---> Go
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
@@ -12,8 +11,11 @@
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
# Code coverage profiles and other test artifacts
*.out
coverage.*
*.coverprofile
profile.cov
# Dependency directories (remove the comment below to include it)
# vendor/
@@ -24,4 +26,10 @@ go.work.sum
# env file
.env
config.yml
**/atlas.hcl
!**/atlas.hcl.example
# Editor/IDE
.idea/
.vscode/*
+39
View File
@@ -0,0 +1,39 @@
{
"configurations": [
{
"name": "Launch Package main API",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/main-api"
},
{
"name": "Launch Package bpjs API",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/bpjs-api"
},
{
"name": "Launch Package simgos sync API",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/simgos-sync-api"
},
{
"name": "Launch Package main sync API",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/main-sync-api"
},
{
"name": "Launch Package migratioon",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/migration"
}
]
}
+14
View File
@@ -0,0 +1,14 @@
FROM golang:1.24.10 AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o ./cmd/main-api/main-api ./cmd/main-api/main.go
FROM alpine:latest
WORKDIR /app
COPY --from=builder /src/assets ./assets
COPY --from=builder /src/cmd/main-api/main-api .
COPY --from=builder /src/cmd/main-api/config.yml .
EXPOSE 8010
CMD ["./main-api"]
+14
View File
@@ -0,0 +1,14 @@
FROM golang:1.24.10 AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o ./cmd/sync-api/sync-api ./cmd/sync-api/main.go
FROM alpine:latest
WORKDIR /app
COPY --from=builder /src/assets ./assets
COPY --from=builder /src/cmd/sync-api/sync-api .
COPY --from=builder /src/cmd/sync-api/config.yml .
EXPOSE 8011
CMD ["./sync-api"]
+50
View File
@@ -0,0 +1,50 @@
# APP DESIGN CONVENTION
## Intro
Uses Go Programming Language, with no framework.
- Why no framework? Go's std libs are already powerfull which aligns with the philosophy of "do one thing well"
- It's common in the Go community that "No framework is the best framework"
Uses community standard layout for the project layout, can be viewed here:<br />
https://github.com/golang-standards/project-layout
Uses Clean Architecture (later writen as CA) approach, can be viewed here:<br />
https://www.freecodecamp.org/news/a-quick-introduction-to-clean-architecture-990c014448d2
Uses kebab-case for the directory naming
## Implementing Clean Architecture (later called CA) in the layout
1. The CA can be implemented simply by using directory structures to represent the layers
2. The CA directories will be inside the "internal" directory due to its nature that the codes inside it is basically intended for the business model
3. The CA will have the following directories:
1. `domain`, with sub-directories:
1. `references`, for common type, const, variabel
2. `main-entities`, for the main models
3. `bpjs-entities`, for the bpjs models. Good to know that this was intitially added but later being stripped for its busines model. This still can be unstriped later.
4. `satusehat-entities`, for the satusehat models
5. ...
2. `application`, with sub-directories:
1. `helpers`, some general helper
2. `main-cases`, for the main flows
3. `bpjs-cases`, the expansion flows for the bpjs
4. `satusehat-cases`, the expansion flows for the satusehat
5. ...
3. `interface`, with sub-directories:
1. `main-handler`
2. `jkn-handler`
3. `main-migration`
4. `satusehat-migration`
5. ....
4. `infra` has no specific-grouping directories, instead, it will have several directories related to each purpose directly like:
1. `jkn`, to connect with jkn service
2. `satusehat`, to connect with satusehat service and satusehat local db
3. `minio`, to connect with minio service
4. ....
4. Several used libraries might have their own infra-purposed feature which will be outside the infra directory.
## ERD to Entity
All of the MainERD, SSERD, and ExtRefERD will be the entities in the implementation. There will be at least 2 databases: main and satusehat. bpjs is still in the consideration.
## Middlewared Use-Case
1. To make the applcation have more dynamic flows, each use-case can implement the midlewared model
2. The idea is to make its basic process of use case clean, adding more flows can be done outside it
3. This method relatively makes the code easier to maintain in the future
+37
View File
@@ -0,0 +1,37 @@
# DATABASE MODELING CONVETION
## Naming
1. Table names are written in combination, with the following rules:
1. Basically uses `PascalCase`
2. An underscore is used in `derived-table`, separating the original name and the derived name.
3. A derived table is a table derived from another table but not used in the main flow of the business process.
4. Examples of derived table implementations include:
1. Archiving, for example: `Transaction_2019`, is an archive of the `Transaction` table for the year `2019`.
2. Trashing for deleted data, for example: `Transaction_deleted`, stores data from the deleted `transaction` table.
3. History for storing historical information, for example: `ProductStock_History`, stores historical data from the `ProductStock` table.
2. Columns are written in combination, with the following rules:
1. Basically, uses `PascalCase`
2. Use underscores to represent relationships <span>`object`-`attribute`</span> or <span>`table`-`column`</span>
<br />Example:
1. `User_Id` represents the `User` object and the `Id` attribute
2. `BestProduct_Code` represents the `BestProduct` object and the `Code` attribute
3. When more than one column has a similar definition, a `prefix` can be added to indicate the column's purpose.
<br />Example:
1. `Admin_User_Id` represents the `Admin` of the `User` object and the `Id` attribute
2. `Operator_User_Id` refers to the `Operator` of the `User` object and the `Id` column.
3. Attributes/properties in JSON (for output purpose) are written in combination, with the following rules:
1. Basically uses `camelCase`
2. Using underscores to represent relationships <span>`object`-`attribute`</span> or <span>`table`-`column`</span>
<br />Example:
1. `user_id` represents the `User` object and the `Id` attribute.
2. `bestProduct_code` represents the `bestProduct` object and the `code` attribute.
3. When more than one column has a similar definition, a `prefix` can be added to indicate the column's purpose.
<br />Example:
1. `admin_user_id` refers to the `admin` of the `user` object and `id` attribute
2. `operator_user_id` refers to the `operator` of the `user` object, column `id`
3. `newArrival_bestProduct_code` refers to the `newArrival` of the `bestProduct` object, column `code`
4. `favorite_bestProduct_code` refers to the `favorite` of the `bestProduct` object, column `code`
## Avoiding Circular Dependency
1. Prioritize the child due to it's nature to define the foreign key. This means the child is allowed to import main entities that define the table, not the base.
2. Parent imports the child's non main entities, can be the base or others depending on the needs.
+54 -1
View File
@@ -1,2 +1,55 @@
# simrsx-be
# RSSA SIMRS-VX BACKEND
Or in english Hospital Information Management System (HIMS), is a system that
manages the information of the hospitals and the patients.
## Stacks
- Language : Golang<br />
Link: https://go.dev
- Framework : No Framework<br />
Why? Go (Golang) applications often do not require full-fledged frameworks
due to several key aspects of the language and its ecosystem:
- Comprehensive Standard Library: Go's standard library is exceptionally
robust and provides much of the functionality that would typically be found
in frameworks in other languages.
- Simplicity and Explicit Design: Go emphasizes simplicity and clarity.
Frameworks often introduce a degree of "magic" or hidden complexity
through inversion of control, where the framework dictates the
application's flow
- Modular Libraries: Instead of a single, all-encompassing framework, the Go
community favors small, modular libraries that perform specific tasks well.
- Performance and Efficiency: Go is designed for performance and efficiency.
Frameworks can sometimes introduce performance overhead due to their layers
of abstraction.
So? No framewok is the best framework.
- Database : PostgreSQL<br />
Link: https://www.postgresql.org
- Cache : Redis<br />
Link: https://redis.io
- File Server : Minio<br />
Link: https://www.min.io
## Libraries
- Routing Helper: Apem<br />
Link: https://github.com/karincake/apem
- ORM: GORM<br />
Link: https://gorm.io
- Database Migration: Atlas<br />
Link: https://atlasgo.io/guides/orms/gorm/program
## Others
- Project Layout: Golang Standards Project Layout<br />
Link: https://github.com/golang-standards/project-layout
- Architecture: Clean Architecture<br />
Link: https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html
## Commands
- Main api:
- go to the ./cmd/main-api
- run `go run .` to run in debug mode
- run `go build` to build the binary
- Main migration:
- go to the ./cmd/main-migration
- run `go run .` to run in debug mode
- run `go build` to build the binary
View File
+147
View File
@@ -0,0 +1,147 @@
<html>
<head>
<meta charset="UTF-8" />
<style>
body {
padding: 10px 30px;
}
table {
width: 100%;
border-collapse: collapse
}
.border-table,
.border-table td,
.border-table th {
border: 1px solid black;
}
.section-title {
margin-top: 1rem;
margin-bottom: 0rem;
}
td {
vertical-align: top;
}
@page {
size: 148mm 210mm;
}
</style>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.4">
<table style="margin-top: 1rem;">
<tr>
<td>
<img src="logo-1.png" alt="logo" style="height: 70px; margin-bottom: 20px;" />
</td>
<td>
<div>
SURAT RENCANA KONTROL
</div>
<div>
RSUD dr. Saiful Anwar
</div>
</td>
<td style="text-align: right;">
No. : {{ .Number }}
</td>
</tr>
<tr>
<td>
<div>
Kepada Yth
</div>
</td>
<td>
<div>
{{ .Doctor_Name }}
</div>
<div>
Sp./Sub. {{ .DstUnit_Name }}
</div>
</td>
</tr>
</table>
<div style="margin-top: 1rem;">
Mohon Pemeriksaan dan Penanganan Lebih Lanjut:
</div>
<table style="margin-top: 1rem;">
<tr>
<td style="width: 9rem;">
No.Kartu
</td>
<td style="width: 10px;">:</td>
<td>
{{ .CardNumber }}
</td>
</tr>
<tr>
<td>
Nama Peserta
</td>
<td>: </td>
<td>
{{ .Name }}
</td>
</tr>
<tr>
<td>
Tgl.Lahir
</td>
<td>: </td>
<td>
{{ .BirthDate }}
</td>
</tr>
<tr>
<td>
Diagnosa
</td>
<td>: </td>
<td>
{{ .Diagnose }}
</td>
</tr>
<tr>
<td>
Rencana Kontrol
</td>
<td>: </td>
<td>
{{ .PlanDate }}
</td>
</tr>
</table>
<div style="margin: 1rem 0;">
Demikian atas bantuannya, diucapkan banyak terima kasih.
</div>
<table style="width:100%">
<tbody>
<tr>
<td style="width:20%"></td>
<td></td>
<td style="width:20%; text-align: center;">Mengetahui:</td>
</tr>
<tr>
<td style="height:100px"></td>
<td></td>
<td></td>
</tr>
<tr>
<td>Tgl. Cetak: {{ .PrintDate }}</td>
<td></td>
<td style="text-align: center;">{{ .ResponsibleDoctor_Name }}</td>
</tr>
</tbody>
</table>
<div style="height: 3rem;"></div>
</body>
</html>
+325
View File
@@ -0,0 +1,325 @@
<html>
<head>
<meta charset="UTF-8" />
<title>General Consent</title>
</head>
<body
style="font-family: Arial, sans-serif; font-size: 12px; line-height: 1.4"
>
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="text-align: center">
<img src="logo-1.png" alt="logo" style="height: 70px" />
</td>
<td style="text-align: center">
<div style="font-size: 14px; font-weight: bold">
PEMERINTAH PROVINSI JAWA TIMUR
</div>
<div style="font-size: 14px; font-weight: bold">
RUMAH SAKIT UMUM DAERAH Dr. SAIFUL ANWAR
</div>
<div style="font-size: 13px">
TERAKREDITASI KARS VERSI 2012 TINGKAT PARIPURNA
</div>
<div style="margin-top: 8px">
Jl. Jaksa Agung Suprapto No. 2 MALANG 65111
</div>
<div>Telp. (0341) 362101, Fax. (0341) 362110</div>
<div>Email: [email protected]</div>
<div>Website: www.rsudsaifulanwar.jatimprov.go.id</div>
</td>
<td style="text-align: center">
<img src="logo-rssa.png" alt="logo" style="height: 70px" />
</td>
</tr>
</table>
<hr style="margin: 20px 0" />
<div
style="
text-align: center;
font-weight: bold;
font-size: 14px;
margin-bottom: 5px;
"
>
FORMULIR PEMBERIAN INFORMASI DAN PERSETUJUAN UMUM
</div>
<div style="text-align: center; font-size: 12px; margin-bottom: 20px">
(GENERAL CONSENT)
</div>
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="width: 3%; vertical-align: top; padding: 6px 4px">1.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Hak dan Kewajiban sebagai pasien :</b>
Dengan menandatangani dokumen ini saya mengakui bahwa pada proses
pendaftaran untuk mendapatkan perawatan di RSUD Dr. Saiful Anwar telah
mendapatkan informasi tentang hak dan kewajiban saya sebagai pasien
(melalui leaflet/banner dan atau petugas). Saya berhak mendapatkan
pelayanan kesehatan sesuai standar, mendapatkan informasi yang cukup
tentang keadaan kesehatan, rencana tindakan, manfaat, risiko,
alternatif tindakan, serta biaya yang akan timbul. Saya berkewajiban
memberikan informasi kesehatan yang jujur dan lengkap kepada tenaga
kesehatan, mematuhi aturan rumah sakit, serta memenuhi kewajiban
pembayaran sesuai ketentuan yang berlaku.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">2.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Persetujuan Pelayanan :</b>
Saya menyetujui dan memberikan persetujuan untuk dirawat di RSUD Dr.
Saiful Anwar dan dengan ini saya meminta dan memberikan kuasa kepada
RSUD Dr. Saiful Anwar, dokter dan perawat serta tenaga kesehatan
lainnya untuk memberikan asuhan keperawatan, pemeriksaan fisik yang
dilakukan oleh dokter dan perawat dan melakukan prosedur diagnostik
radiologi dan/atau terapi dan tata laksana sesuai pertimbangan dokter
yang diperlukan atau disarankan pada perawatan saya. Hal ini mencakup
seluruh pemeriksaan dan prosedur diagnostik rutin termasuk X-ray,
pemberian dan/atau tindakan medis serta penyuntikan (intramuskular,
intravena dan prosedur invasif lainnya), produk farmasi dan
obat-obatan, pemasangan alat kesehatan (kecuali yang membutuhkan
persetujuan khusus/tertulis) dan pengambilan darah untuk pemeriksaan
laboratorium atau pemeriksaan patologi.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">3.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Akses Informasi Kesehatan :</b>
Saya memberi kuasa kepada setiap dan seluruh orang yang merawat saya
untuk memeriksa dan/atau memberitahukan informasi kesehatan saya
kepada pemberi kesehatan lain yang turut merawat saya selama di rumah
sakit ini, sesuai kebutuhan pelayanan.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">4.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Rahasia Kedokteran :</b>
Saya setuju RSUD Dr. Saiful Anwar Malang wajib menjamin kerahasiaan
informasi medis saya baik untuk kepentingan perawatan dan pengobatan,
pendidikan maupun penelitian, sesuai ketentuan yang berlaku.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">5.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Membuka Rahasia Kedokteran :</b>
Saya setuju untuk membuka rahasia kedokteran terkait dengan kondisi
kesehatan, asuhan dan pengobatan yang saya terima kepada:
<br /><span style="margin-left: 10px"
>a) Dokter dan tenaga kesehatan lain yang turut merawat/memberikan
asuhan kepada saya;</span
>
<br /><span style="margin-left: 10px"
>b) Perusahaan asuransi kesehatan atau perusahaan lainnya atau pihak
lain yang menjamin pembiayaan saya;</span
>
<br /><span style="margin-left: 10px"
>c) Anggota keluarga saya :
{{ if eq (len .Relatives) 0 }}
..........................................
{{ else }}
<ul style="margin:0; padding-left:40px;">
{{ range $i, $name := .Relatives }}
{{ if lt $i 2 }}
<li>{{ $name }}</li>
{{ end }}
{{ end }}
</ul>
{{ end }}</span
>
<br />Saya memahami bahwa pembukaan rahasia ini hanya sejauh yang
diperlukan untuk tujuan perawatan, pembiayaan atau administrasi yang
terkait.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">6.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Privasi :</b>
Saya memberi kuasa kepada RSUD Dr. Saiful Anwar Malang untuk menjaga
privasi dan kerahasiaan penyakit saya selama dalam perawatan, serta
membatasi akses terhadap informasi yang tidak berkepentingan.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">7.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Barang Pribadi :</b>
Saya setuju untuk tidak membawa barang-barang berharga yang tidak
diperlukan (seperti perhiasan, elektronik, dll) selama dalam perawatan
di RSUD Dr. Saiful Anwar. Jika saya tetap membawa dan terjadi
kehilangan, kerusakan atau pencurian, maka RSUD Dr. Saiful Anwar tidak
bertanggung jawab atas hal tersebut, kecuali bila ada perjanjian
tertulis yang menyatakan lain.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">8.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Pengajuan Keluhan :</b>
Saya menyatakan bahwa saya telah menerima informasi tentang adanya
tata cara mengajukan dan mengatasi keluhan terkait pelayanan medik
yang diberikan terhadap diri saya. Saya setuju untuk mengikuti tata
cara pengajuan keluhan sesuai prosedur yang ada di rumah sakit.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">9.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Kewajiban Pembayaran :</b>
Saya menyatakan setuju, baik sebagai wali ataupun sebagai pasien,
bahwa sesuai pertimbangan pelayanan yang diberikan kepada pasien, maka
saya wajib untuk membayar total biaya pelayanan sesuai acuan biaya dan
ketentuan RSUD Dr. Saiful Anwar Malang dengan jaminan atau pribadi.
Apabila asuransi kesehatan swasta atau program pemerintah menanggung
pembiayaan saya, saya memberi wewenang kepada rumah sakit untuk
memberi tagihan dari semua pelayanan dan tindakan medis yang
diberikan. Tanggungan Asuransi saya mungkin menyatakan bahwa sebagian
pembayaran tetap menjadi tanggung jawab pribadi saya atau tidak
ditanggung oleh asuransi, maka rumah sakit berwenang memberi tagihan
untuk biaya yang tidak ditanggung oleh asuransi dan saya bertanggung
jawab untuk membayarnya. Apabila saya tidak memberikan persetujuan,
atau dikemudian hari mencabut persetujuan saya untuk melepaskan
rahasia kedokteran saya kepada perusahaan asuransi yang saya tentukan,
maka saya pribadi bertanggung jawab untuk membayar semua pelayanan dan
tindakan medis dari RSUD Dr. Saiful Anwar Malang.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">10.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Rumah Sakit Pendidikan :</b>
Saya mengetahui bahwa RSUD Dr. Saiful Anwar merupakan rumah sakit
pendidikan yang menjadi tempat praktik klinik bagi mahasiswa
kedokteran dan profesi-profesi kesehatan lainnya, karena itu mereka
mungkin berpartisipasi dan atau terlibat dalam perawatan saya dan saya
menyetujui bahwa mereka berpartisipasi dalam perawatan saya sepanjang
di bawah supervisi dokter penanggung jawab pasien (DPJP).
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">11.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Selama Dalam Perawatan :</b>
Selama dalam perawatan saya dan keluarga saya akan mematuhi ketentuan
untuk tidak mengambil, menyimpan, mengedarkan gambar/video dokumen dan
aktivitas pelayanan selama di RS tanpa seizin rumah sakit.
</td>
</tr>
<tr>
<td style="vertical-align: top; padding: 6px 4px">12.</td>
<td style="vertical-align: top; padding: 6px 4px">
<b>Penegasan Kepercayaan :</b>
Melalui dokumen ini, saya menegaskan kembali bahwa saya mempercayakan
kepada semua tenaga kesehatan rumah sakit untuk memberikan perawatan,
diagnostik dan terapi kepada saya sebagai pasien rawat inap atau rawat
jalan atau Instalasi Gawat Darurat (IGD), termasuk semua pemeriksaan
penunjang yang dibutuhkan untuk pengobatan dan tindakan yang
diperlukan.
</td>
</tr>
</table>
<br /><br />
<div style="margin-top: 20px">
Saya menyetujui setiap pernyataan dalam formulir ini dan menandatangani
tanpa paksaan.
</div>
<table style="width: 100%; margin-top: 40px; text-align: center">
<tr>
<td>
Malang, {{ .Date }}
</td>
</tr>
</table>
<table
style="
width: 100%;
margin-top: 40px;
text-align: center;
border-collapse: collapse;
"
>
<tr style="height:160px; vertical-align:top;">
<td style="text-align:center; padding:0 10px;">
<div style="margin-top:10px; height:45px;">
Pasien/keluarga/<br>penanggung jawab
</div>
<div style="margin-top:20px; margin-bottom:20px;">
.......................................
</div>
<div style="height:20px;">
{{ .Responsible }}
</div>
</td>
<td style="text-align:center; padding:0 10px;">
<div style="margin-top:10px; height:45px;">
Pemberi Informasi
</div>
<div style="margin-top:20px; margin-bottom:20px;">
.......................................
</div>
<div style="height:20px;">
{{ .Informant }}
</div>
</td>
<td style="text-align:center; padding:0 10px;">
<div style="margin-top:10px; height:45px;">
Saksi I
</div>
<div style="margin-top:20px; margin-bottom:20px;">
.......................................
</div>
<div style="height:20px;">
{{ .Witness1 }}
</div>
</td>
<td style="text-align:center; padding:0 10px;">
<div style="margin-top:10px; height:45px;">
Saksi II
</div>
<div style="margin-top:20px; margin-bottom:20px;">
.......................................
</div>
<div style="height:20px;">
{{ .Witness2 }}
</div>
</td>
</tr>
</table>
</body>
</html>
+707
View File
@@ -0,0 +1,707 @@
<html>
<head>
<meta charset="UTF-8" />
<title>General Consent</title>
<style>
body {
padding: 2rem 3rem;
}
table {
width: 100%;
border-collapse: collapse
}
td {
vertical-align: top;
}
.border-table,
.border-table td,
.border-table th {
border: 1px solid black;
}
.section-title {
margin-top: 1rem;
margin-bottom: 0rem;
}
.data-label {
width: 9rem;
}
.data-colon {
width: 15px; padding-left: 10px;
}
.description-label {
font-size: 0.7rem;
margin: 0;
}
</style>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.4">
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="text-align: center">
<img src="logo-1.png" alt="logo" style="height: 70px" />
</td>
<td style="text-align: center">
<div style="font-size: 14px; font-weight: bold">
PEMERINTAH PROVINSI JAWA TIMUR
</div>
<div style="font-size: 14px; font-weight: bold">
RUMAH SAKIT UMUM DAERAH Dr. SAIFUL ANWAR
</div>
<div style="font-size: 13px">
TERAKREDITASI KARS VERSI 2012 TINGKAT PARIPURNA
</div>
<div style="margin-top: 8px">
Jl. Jaksa Agung Suprapto No. 2 MALANG 65111
</div>
<div>Telp. (0341) 362101, Fax. (0341) 362110</div>
<div>Email: [email protected]</div>
<div>Website: www.rsudsaifulanwar.jatimprov.go.id</div>
</td>
<td style="text-align: center">
<img src="logo-rssa.png" alt="logo" style="height: 70px" />
</td>
</tr>
</table>
<hr style="margin: 20px 0" />
<div style="
text-align: center;
font-weight: bold;
font-size: 1rem;
">
IDENTITAS PASIEN
</div>
<table style="
width: 100%;
margin-top: 20px;
border-collapse: collapse;
">
<tr>
<td style="width: 10rem;">
No. RM
</td>
<td class="data-colon">: </td>
<td>{{ .MedicalRecord }}</td>
<td style="width: 7rem;">
Ruang/Klinik
</td>
<td class="data-colon">: </td>
<td>{{ .Unit }}</td>
</tr>
<tr>
<td>
NIK
</td>
<td class="data-colon">: </td>
<td>{{ .NIK }}</td>
<td>
Kelas
</td>
<td class="data-colon">: </td>
<td>{{ .Class }}</td>
</tr>
<tr>
<td>
Nama
</td>
<td class="data-colon">: </td>
<td>{{ .Name }}</td>
<td>
DPJP
</td>
<td class="data-colon">: </td>
<td>{{ .Doctor_Name }}</td>
</tr>
</tr>
<td style="padding: 5px 0"></td>
</tr>
<tr>
<td>
Tempat/Tanggal Lahir
</td>
<td class="data-colon">: </td>
<td>{{ .BirthPlaceDate }}</td>
</tr>
<tr>
<td>
Jenis Kelamin
</td>
<td class="data-colon">: </td>
<td>{{ .Gender }}</td>
</tr>
<tr>
<td>
No. Telepon
</td>
<td class="data-colon">: </td>
<td>{{ .Phone }}</td>
</tr>
</table>
<hr style="margin: 20px 0" />
<h1 style="
text-align: center;
font-weight: bold;
font-size: 1rem;
margin: 0;
">
RESUME MEDIS
</h1>
<p style="
font-size: 0.7rem;
margin: 0;
text-align: center;
"><i>Medical Discharge Summary</i></p>
<p style="
font-size: 0.7rem;
margin-top: 1rem;
"><i>(Diisi oleh Dokter Penanggung Jawab Pelayanan)</i></p>
<table>
<tr>
<td class="data-label">
Tanggal Masuk
</td>
<td class="data-colon">: </td>
<td>{{ .StartedAt }}</td>
</tr>
<tr>
<td class="data-label">
Tanggal Keluar
</td>
<td class="data-colon">: </td>
<td>{{ .FinishedAt }}</td>
</tr>
<tr>
<td class="data-label">
Diagnosis Masuk
</td>
<td class="data-colon">: </td>
<td>{{ .DiagnosisIn }}</td>
</tr>
<tr>
<td class="data-label">
Diagnosis Keluar
</td>
<td class="data-colon">: </td>
<td>{{ .DiagnosisOut }}</td>
</tr>
</table>
<table class="border-table" style="margin-top: 0.7rem; page-break-inside: avoid !important;">
<thead>
<tr>
<th style="width: 1rem;">
No
</th>
<th>
Diagnosa
</th>
<th>
Dasar Diagnosa
</th>
<th>
Kode ICD-10
</th>
</tr>
</thead>
<tbody>
{{ $dataLen := len .Diagnosis }}
{{ if gt $dataLen 0 }}
<!-- If we have data, show all of it -->
{{ range $index, $diagnosis := .Diagnosis }}
<tr>
<td>{{ if eq $index 0 }}1{{ else if eq $index 1 }}2{{ else if eq $index 2 }}3{{ else if eq $index 3 }}4{{ else if eq $index 4 }}5{{ else }}{{ $index }}{{ end }}</td>
<td>{{ $diagnosis.DiagnosisName }}</td>
<td>{{ $diagnosis.Basis }}</td>
<td>{{ $diagnosis.ICD10 }}</td>
</tr>
{{ end }}
<!-- If data is less than 2, fill remaining rows -->
{{ if eq $dataLen 1 }}
<tr>
<td>2</td>
<td></td>
<td></td>
<td></td>
</tr>
{{ end }}
{{ else }}
<!-- If no data, show 2 empty rows -->
<tr>
<td>1</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>2</td>
<td></td>
<td></td>
<td></td>
</tr>
{{ end }}
</tbody>
</table>
<h4 class="section-title">Kajian Awal Medis</i></h4>
<p style="
font-size: 0.7rem;
margin-top: 0rem;
margin-bottom: 0.4rem;
"><i>(Diisi oleh Dokter Penanggung Jawab Pelayanan)</i></p>
<table>
<tr>
<td class="data-label">
Keluhan Utama
</td>
<td class="data-colon">: </td>
<td>{{ .MainComplaint }}</td>
</tr>
<tr>
<td class="data-label">
Riwayat Penyakit
</td>
<td class="data-colon">: </td>
<td>{{ .MedicalHistory }}</td>
</tr>
<tr>
<td class="data-label">
Pemeriksaan Fisik & Keadaan Umum
</td>
<td class="data-colon">: </td>
<td>{{ .PhysicalExamination }}</td>
</tr>
</table>
<h4 class="section-title">Pemeriksaan Penunjang</i></h4>
<table>
<tr>
<td class="data-label">
Pemeriksaan
</td>
<td class="data-colon">: </td>
<td>{{ .SupportingExamination }}</td>
</tr>
</table>
<table style="page-break-inside: avoid !important;"></table>
<tr>
<td>
<h4 class="section-title">Tindakan Medis</i></h4>
<table class="border-table" style="margin-top: 0.4rem;">
<thead>
<tr>
<th style="width: 1rem;">
No
</th>
<th>
Tindakan
</th>
<th>
Dasar Tindakan
</th>
<th>
Kode ICD 9-CM
</th>
</tr>
</thead>
<tbody>
{{ $dataLen := len .MedicalActions }}
{{ if gt $dataLen 0 }}
<!-- If we have data, show all of it -->
{{ range $index, $action := .MedicalActions }}
<tr>
<td>{{ if eq $index 0 }}1{{ else if eq $index 1 }}2{{ else if eq $index 2 }}3{{ else if eq $index 3 }}4{{ else if eq $index 4 }}5{{ else }}{{ $index }}{{ end }}</td>
<td>{{ $action.Action }}</td>
<td>{{ $action.Basis }}</td>
<td>{{ $action.ICD9 }}</td>
</tr>
{{ end }}
<!-- If data is less than 2, fill remaining rows -->
{{ if eq $dataLen 1 }}
<tr>
<td>2</td>
<td></td>
<td></td>
<td></td>
</tr>
{{ end }}
{{ else }}
<!-- If no data, show 2 empty rows -->
<tr>
<td>1</td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td>2</td>
<td></td>
<td></td>
<td></td>
</tr>
{{ end }}
</tbody>
</table>
<table style="margin: 0.7rem 0;">
<tr>
<td class="data-label">
Tindakan Medis
</td>
<td class="data-colon">: </td>
<td>{{ .MedicalAction }}</td>
</tr>
</table>
<table style="page-break-inside: avoid !important;">
<tr>
<td>
<h4 class="section-title">Konsultasi</i></h4>
</table>
<table class="border-table" style="margin-top: 0.4rem;">
<thead>
<tr>
<th style="width: 1rem;">No</th>
<th>Konsultasi</th>
<th>Jawaban Konsultasi</th>
</tr>
</thead>
<tbody>
{{ $dataLen := len .Consultations }}
{{ if gt $dataLen 0 }}
<!-- If we have data, show all of it -->
{{ range $index, $consultation := .Consultations }}
<tr>
<td>{{ if eq $index 0 }}1{{ else if eq $index 1 }}2{{ else if eq $index 2 }}3{{ else if eq $index 3 }}4{{ else if eq $index 4 }}5{{ else }}{{ $index }}{{ end }}</td>
<td>{{ $consultation.Consultation }}</td>
<td>{{ $consultation.ConsultationAnswer }}</td>
</tr>
{{ end }}
<!-- If data is less than 2, fill remaining rows -->
{{ if eq $dataLen 1 }}
<tr><td>2</td><td></td><td></td></tr>
{{ end }}
{{ else }}
<!-- If no data, show 2 empty rows -->
<tr><td>1</td><td></td><td></td></tr>
<tr><td>2</td><td></td><td></td></tr>
{{ end }}
</tbody>
</table>
</td>
</tr>
<h4 class="section-title">Terapi</i></h4>
<table>
<tr>
<td class="data-label">
Alergi
</td>
<td class="data-colon">: </td>
<td>
{{ .Allergy}}
</td>
</tr>
</table>
<table style="page-break-inside: avoid !important;">
<tr>
<td>
<h4 class="section-title" style="margin-top: 3rem;">Obat yang diberikan</h4>
<table class="border-table" style="margin-top: 0.4rem;">
<thead>
<tr>
<th>
Terapi (Farmakologi & Non Farmakologi) Selama Perawatan
</th>
<th>
Terapi (Farmakologi & Non Farmakologi) Waktu Pulang
</th>
</tr>
</thead>
<tbody>
{{ $dataLen := len .Medications }}
{{ if gt $dataLen 0 }}
<!-- If we have data, show all of it -->
{{ range .Medications }}
<tr>
<td>{{ .DuringTreatment }}</td>
<td>{{ .AtDischarge }}</td>
</tr>
{{ end }}
<!-- If data is less than 2, fill remaining rows -->
{{ if eq $dataLen 1 }}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
{{ end }}
{{ else }}
<!-- If no data, show 2 empty rows -->
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
{{ end }}
</tbody>
</table>
</td>
</tr>
</table>
<h4 class="section-title">Kondisi saat Pulang</i></h4>
<table>
<tr>
<td class="data-label">Kesadaran</td>
<td class="data-colon">: </td>
<td>{{ .ConsciousnessLevel }}</td>
</tr>
<tr>
<td class="data-label">
Tanda Vital
<p class="description-label"><i>Vital sign</i></p>
</td>
<td class="data-colon">:</td>
</tr>
<tr>
<td colspan="3">
<table>
<tr>
<td style="width: 50%;">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<td class="data-label" style="text-align: right;"> Tekanan Darah
<p class="description-label"><i>Blood Pressure</i></p>
</td>
<td class="data-colon">: </td>
{{ if and .BloodPressure (ne .BloodPressure "0/0") (ne .BloodPressure "") }}
<td>{{ .BloodPressure }} mmHg</td>
{{ else }}
<td></td>
{{ end }}
<td>
</tr>
<tr>
<td>
<td class="data-label" style="text-align: right;">Suhu
<p class="description-label"><i>Temperatur</i></p>
</td>
</td>
<td class="data-colon">: </td>
{{ if ne .BodyTemperature 0.0 }}
<td>{{ .BodyTemperature }} C</td>
{{ else }}
<td></td>
{{ end }}
<td>
</tr>
<tr>
<td>
<td class="data-label" style="text-align: right;">Nadi
<p class="description-label"><i>Pulse</i></p>
</td>
<td class="data-colon">: </td>
{{ if ne .HeartRate 0.0 }}
<td>{{ .HeartRate }} x/Menit</td>
{{ else }}
<td></td>
{{ end }}
</td>
</tr>
</table>
</td>
<td>
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<td class="data-label" style="text-align: right;">Frekuensi Nafas
<p class="description-label"><i>Respiratory rate</i></p>
</td>
</td>
<td class="data-colon">: </td>
{{ if ne .RespirationRate 0.0 }}
<td>{{ .RespirationRate }} x/Menit</td>
{{ else }}
<td></td>
{{ end }}
</td>
</tr>
<tr>
<td>
<td class="data-label" style="text-align: right;">Skala Nyeri
<p class="description-label"><i>Pain Scale</i></p>
</td>
</td>
<td class="data-colon">: </td>
<td>{{ .PainScale }}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="data-label">Keadaan Keluar</td>
<td class="data-colon">: </td>
<td>{{ .ConditionOnDischarge }}</td>
</tr>
<tr>
<td class="data-label">Cara Keluar
<p class="description-label"><i>Patient discharge of hospital</i></p>
</td>
<td class="data-colon">:</td>
<td>{{ .DischargeMethod }}</td>
</tr>
</table>
<table style="
margin-top: 1rem;
">
<tr>
<td>
<h4 class="description-label">INSTRUKSI UNTUK TINDAK LANJUT</h4>
<p class="description-label"><i>Follow up Consultation to</i></p>
</td>
<td class="">
<h4 class="description-label">Kontrol Ke</h4>
<p class="description-label"><i>Follow up Consultation to</i></p>
</td>
<td class="">
<table>
<tr>
<td style="width: 4rem;">Fasyankes</td>
<td class="data-colon">: </td>
<td>{{ .NIK }}</td>
</tr>
<tr>
<td>Tanggal</td>
<td>: </td>
<td>{{ .NIK }}</td>
</tr>
<tr>
<td>Klinik</td>
<td>: </td>
<td>{{ .NIK }}</td>
</tr>
</table>
</td>
</tr>
<tr><td style="height: 1rem;"></td></tr>
<tr>
<td class="">
<h4 class="description-label">Dalam keadaan darurat dapat menghubungi</h4>
<p class="description-label"><i>In case of emergencycontact</i></p>
</td>
<td class="">
<h4 class="description-label">IGD</h4>
<p class="description-label"><i>(Accident & Emergency Instalation)</i></p>
</td>
<td class="">
<table>
<tr>
<td style="width: 4rem;">Telepon
<p class="description-label"><i>Phone</i></p>
</td>
<td class="data-colon">: </td>
<td>(0341) 362101</td>
</tr>
</table>
</td>
</tr>
<tr><td style="height: 1rem;"></td></tr>
<tr>
<td class="">
<h4 class="description-label">EDUKASI & RENCANA TINDAK LANJUT</h4>
<p class="description-label"><i>Follow up plan (if necessary)</i></p>
</td>
<td class="">
<h4 class="description-label"></h4>
<p class="description-label"><i>(bila diperlukan)</i></p>
</td>
</tr>
</table>
<table style="margin-top: 3rem;">
<tr>
<td></td>
<td style="width: 15rem;">
Malang, {{ .Date }}<br>
Dokter Penanggung Jawab Pelayanan
</td>
</tr>
<tr><td style="height: 7rem;"></td></tr>
<tr>
<td></td>
<td style="width: 15rem;">
({{ .Doctor_Name }})
</td>
</tr>
</table>
<div style="height: 3rem;"></div>
<hr style="margin: 20px 0" />
<p>*) Data dapat berubah setelah pasien pulang sesuai prosedur</p>
</body>
</html>
+167
View File
@@ -0,0 +1,167 @@
<html>
<head>
<meta charset="UTF-8" />
<style>
body {
padding: 2rem 3rem;
}
table {
width: 100%;
border-collapse: collapse
}
td {
vertical-align: top;
}
.border-table,
.border-table td,
.border-table th {
border: 1px solid black;
}
.section-title {
margin-top: 1rem;
margin-bottom: 0rem;
}
.data-label {
width: 9rem;
}
.data-colon {
width: 0.1234rem;
}
</style>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.4">
<!-- Tanggal Terbit (top-right) -->
<div style="
text-align: right;
margin-right: 2rem;
font-size: 0.95rem;
margin-top: 0.5rem;
">
Tanggal Terbit : {{ .IssuedDate }}
</div>
<!-- Patient Info Box -->
<table
style="
margin-top: 1rem;
margin-left: auto;
margin-right: 2rem; /* space from right like example */
border: 1px solid #000;
padding: 0.5rem 1rem;
border-collapse: separate;
border-spacing: 0.3rem 0.2rem;
width: auto;
"
>
<tr>
<td style="width: 9rem;"><b>No. RM</b></td>
<td class="data-colon">:</td>
<td><b>{{ .MedicalRecord }}</b></td>
</tr>
<tr>
<td><b>Nama</b></td>
<td class="data-colon">:</td>
<td><b>{{ .Name }}</b></td>
</tr>
<tr>
<td><b>Tanggal Lahir</b></td>
<td class="data-colon">:</td>
<td>{{ .BirthDate }}</td>
</tr>
</table>
<hr style="margin: 20px 0" />
<h1 style="
text-align: center;
font-weight: bold;
font-size: 1rem;
margin: 0;
">
FORM A
</h1>
<section>
<h4 class="section-title">Kajian Awal Medis:</i></h4>
<table style="margin-top: 0.3rem;">
{{ if gt (len .EarlyMedic) 0 }}
{{ range .EarlyMedic }}
<tr>
<td>
&#9745; {{ . }}
</td>
</tr>
{{ end }}
{{ else }}
<tr>
<td></td>
</tr>
{{ end }}
</table>
</section>
<section>
<h4 class="section-title">ASSESMEN:</h4>
<table style="margin-top: 0.3rem;">
<tr>
<td>
{{ .Assessment }}
</td>
</tr>
</table>
</section>
<section>
<h4 class="section-title">IDENTIFIKASI MASALAH:</h4>
<table style="margin-top: 0.3rem;">
{{ if gt (len .ProblemIdentification) 0 }}
{{ range .ProblemIdentification }}
<tr>
<td>
&#9745; {{ . }}
</td>
</tr>
{{ end }}
{{ else }}
<tr>
<td></td>
</tr>
{{ end }}
</table>
</section>
<section>
<h4 class="section-title">PERENCANAAN:</h4>
<table style="margin-top: 0.3rem;">
<tr>
<td>
{{ .Planning }}
</td>
</tr>
</table>
</section>
<table style="margin-top: 3rem;">
<tr>
<td></td>
<td style="text-align: center; width: 15rem;">
{{ .Date }}<br>
</td>
</tr>
<tr><td style="height: 7rem;"></td></tr>
<tr>
<td></td>
<td style="text-align: center; width: 15rem;">
({{ .Employee_Name }})
</td>
</tr>
</table>
<div style="height: 3rem;"></div>
</body>
</html>
+109
View File
@@ -0,0 +1,109 @@
<html>
<head>
<meta charset="UTF-8" />
<style>
body {
padding: 2rem 3rem;
}
table {
width: 100%;
border-collapse: collapse
}
td {
vertical-align: top;
}
.border-table,
.border-table td,
.border-table th {
border: 1px solid black;
}
.section-title {
margin-top: 1rem;
margin-bottom: 0rem;
}
.data-label {
width: 9rem;
}
.data-colon {
width: 0.1234rem;
}
</style>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.4">
<!-- Tanggal Terbit (top-right) -->
<div style="
text-align: right;
margin-right: 2rem;
font-size: 0.95rem;
margin-top: 0.5rem;
">
Tanggal Terbit : {{ .IssuedDate }}
</div>
<!-- Patient Info Box -->
<table
style="
margin-top: 1rem;
margin-left: auto;
margin-right: 2rem; /* space from right like example */
border: 1px solid #000;
padding: 0.5rem 1rem;
border-collapse: separate;
border-spacing: 0.3rem 0.2rem;
width: auto;
"
>
<tr>
<td style="width: 9rem;"><b>No. RM</b></td>
<td class="data-colon">:</td>
<td><b>{{ .MedicalRecord }}</b></td>
</tr>
<tr>
<td><b>Nama</b></td>
<td class="data-colon">:</td>
<td><b>{{ .Name }}</b></td>
</tr>
<tr>
<td><b>Tanggal Lahir</b></td>
<td class="data-colon">:</td>
<td>{{ .BirthDate }}</td>
</tr>
</table>
<table class="border-table"
style="margin-top: 1rem; width: 100%; table-layout: fixed;">
<tr>
<th style="width: 3rem; text-align:center;">NO</th>
<th style="width: 9rem; text-align:center;">Tanggal/jam</th>
<th style="width: auto;">
Implementasi, Monitoring, Fasilitasi, koordinasi, komunikasi dan kolaborasi,
advokasi, hasil pelayanan, Terminasi
</th>
<th style="width: 9rem; text-align:center;">MPP</th>
</tr>
{{ range .FormB }}
<tr>
<td style="text-align: center;">{{ .Number }}</td>
<td style="text-align: center;">{{ .Date }}</td>
<td style="white-space: normal; word-wrap: break-word;">
{{ .Value }}
</td>
<td style="text-align: center; white-space: normal;">
{{ .Employee_Name }}
</td>
</tr>
{{ end }}
</table>
<div style="height: 3rem;"></div>
</body>
</html>
+312
View File
@@ -0,0 +1,312 @@
<html>
<head>
<meta charset="UTF-8" />
<title>General Consent</title>
<style>
body {
padding: 2rem 3rem;
}
table {
width: 100%;
border-collapse: collapse
}
td {
vertical-align: top;
}
.border-table, .border-table td, .border-table th {
border: 1px solid black;
}
.section-title {
margin-top: 1rem;
margin-bottom: 0rem;
}
.data-label {
width: 9rem;
}
.data-colon {
width: 0.1234rem;
}
</style>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.4">
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="text-align: center">
<img src="logo-1.png" alt="logo" style="height: 70px" />
</td>
<td style="text-align: center">
<div style="font-size: 14px; font-weight: bold">
PEMERINTAH PROVINSI JAWA TIMUR
</div>
<div style="font-size: 14px; font-weight: bold">
RUMAH SAKIT UMUM DAERAH Dr. SAIFUL ANWAR
</div>
<div style="font-size: 13px">
TERAKREDITASI KARS VERSI 2012 TINGKAT PARIPURNA
</div>
<div style="margin-top: 8px">
Jl. Jaksa Agung Suprapto No. 2 MALANG 65111
</div>
<div>Telp. (0341) 362101, Fax. (0341) 362110</div>
<div>Email: [email protected]</div>
<div>Website: www.rsudsaifulanwar.jatimprov.go.id</div>
</td>
<td style="text-align: center">
<img src="logo-rssa.png" alt="logo" style="height: 70px" />
</td>
</tr>
</table>
<hr style="margin: 20px 0" />
<div style="position: relative;">
<h1 style="
text-align: center;
font-weight: bold;
font-size: 1rem;
margin: 0;
">
Protokol Terapi
</h1>
<p style="
margin: 0;
text-align: center;
">Layanan Kedokteran Fisik dan Rehabilitasi
</p>
<div style="padding-inline: 0.5rem;text-align: center;border: 1px solid black;position: absolute;right: 0;top: 0;">
Terapi Ke <br><br>
{{ .Repalcable }}
</div>
</div>
<table class="border-table" style="margin-top: 2rem;">
<tr>
<td style="width: 7rem;">
No RM
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Nama Pasien
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Tanggal Lahir
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Diagnosa
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Permintaan Terapi
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Frekuensi Terapi
</td>
<td style="padding-left: 0.5rem;">
2 x Per Minggu &emsp; &emsp; &emsp;
Evaluasi: 1 Bulan
</td>
</tr>
<tr>
<td style="width: 7rem;">
Target Terapi
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Waktu Mencapai Target
</td>
<td>{{ .Repalcable }}</td>
</tr>
</table>
<table class="border-table" style="margin-top: 1rem;">
<tr>
<th style="width: 2rem;">
NO
</th>
<th>
Tanggal
</th>
<th>
Dokter
</th>
<th>
Fisioterapi
</th>
<th>
Terapi Wicara
</th>
<th>
Okupansi Terapi
</th>
<th>
Ortotik Prostetik
</th>
<th>
PSM
</th>
<th>
TTD Pasien
</th>
</tr>
<tr>
<td style="height: 3rem;text-align: center;">
1
</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="height: 3rem;text-align: center;">
2
</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="height: 3rem;text-align: center;">
3
</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="height: 3rem;text-align: center;">
4
</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="height: 3rem;text-align: center;">
5
</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="height: 3rem;text-align: center;">
6
</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="height: 3rem;text-align: center;">
7
</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="height: 3rem;text-align: center;">
8
</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td>
</tr>
</table>
<table class="border-table" style="margin-top: 1rem;">
<tr>
<td style="height: 2rem;width: 7rem;">
Evaluasi
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Rencana Selanjutnya
</td>
<td>{{ .Repalcable }}</td>
</tr>
</table>
<table style="margin-top: 2rem;">
<tr>
<td></td>
<td style="width: 15rem;">
Malang,<br>
Cap dan TTD Dr. SpKFR
</td>
</tr>
<tr><td style="height: 6rem;"></td></tr>
<tr>
<td></td>
<td style="height: 10rem;width: 15rem;">
(........................................................)
</td>
</tr>
</table>
<div style="height: 3rem;"></div>
</body>
</html>
+217
View File
@@ -0,0 +1,217 @@
<html>
<head>
<meta charset="UTF-8" />
<title>General Consent</title>
<style>
body {
padding: 2rem 3rem;
}
table {
width: 100%;
border-collapse: collapse
}
td {
vertical-align: top;
}
.border-table, .border-table td, .border-table th {
border: 1px solid black;
}
.section-title {
margin-top: 1rem;
margin-bottom: 0rem;
}
.data-label {
width: 9rem;
}
.data-colon {
width: 0.1234rem;
}
</style>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.4">
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="text-align: center">
<img src="logo-1.png" alt="logo" style="height: 70px" />
</td>
<td style="text-align: center">
<div style="font-size: 14px; font-weight: bold">
PEMERINTAH PROVINSI JAWA TIMUR
</div>
<div style="font-size: 14px; font-weight: bold">
RUMAH SAKIT UMUM DAERAH Dr. SAIFUL ANWAR
</div>
<div style="font-size: 13px">
TERAKREDITASI KARS VERSI 2012 TINGKAT PARIPURNA
</div>
<div style="margin-top: 8px">
Jl. Jaksa Agung Suprapto No. 2 MALANG 65111
</div>
<div>Telp. (0341) 362101, Fax. (0341) 362110</div>
<div>Email: [email protected]</div>
<div>Website: www.rsudsaifulanwar.jatimprov.go.id</div>
</td>
</tr>
</table>
<hr style="margin: 20px 0" />
<table class="border-table" style="margin-top: 1rem;">
<tr>
<td style="width: 7rem;">
No RM:
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Nama Pasien
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;">
Diagnosa
</td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="width: 7rem;min-height: 6rem;">
Permintaan Terapi
</td>
<td>{{ .Repalcable }}</td>
</tr>
</table>
<table class="border-table" style="margin-top: 1rem;">
<tr>
<th rowspan="2" style="width: 17rem;">
PELAKSANAAN PROGRAM
</th>
<th rowspan="2">
Tanggal
</th>
<th colspan="3">
TTD
</th>
</tr>
<tr>
<th>
PASIEN
</th>
<th>
DOKTER
</th>
<th>
TERAPIS
</th>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">1. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">2. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">3. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">4. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">5. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">6. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">7. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">8. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">9. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">10. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">11. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">12. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">13. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">14. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">15. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">16. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">17. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">18. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">19. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
<tr>
<td style="height: 2rem;padding-left: 0.5rem;">20. {{ .Repalcable }}</td>
<td>{{ .Repalcable }}</td><td></td><td></td><td></td>
</tr>
</table>
<table style="margin-top: 2rem;">
<tr>
<td></td>
<td style="width: 15rem;">
Tempat & Tanggal<br>
Cap dan TTD Dr. SpKFR
</td>
</tr>
<tr><td style="height: 6rem;"></td></tr>
<tr>
<td></td>
<td style="width: 15rem;">
(.................................................)
</td>
</tr>
</table>
<div style="height: 3rem;"></div>
</body>
</html>
+241
View File
@@ -0,0 +1,241 @@
<html>
<head>
<meta charset="UTF-8" />
<title>General Consent</title>
<style>
body {
padding: 2rem 3rem;
}
table {
width: 100%;
border-collapse: collapse
}
td {
vertical-align: top;
}
.border-table,
.border-table td,
.border-table th {
border: 1px solid black;
}
.section-title {
margin-top: 1rem;
margin-bottom: 0rem;
}
.data-label {
width: 9rem;
}
.data-colon {
width: 0.1234rem;
}
</style>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.4">
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="text-align: center">
<img src="logo-1.png" alt="logo" style="height: 70px" />
</td>
<td style="text-align: center">
<div style="font-size: 14px; font-weight: bold">
PEMERINTAH PROVINSI JAWA TIMUR
</div>
<div style="font-size: 14px; font-weight: bold">
RUMAH SAKIT UMUM DAERAH Dr. SAIFUL ANWAR
</div>
<div style="font-size: 13px">
TERAKREDITASI KARS VERSI 2012 TINGKAT PARIPURNA
</div>
<div style="margin-top: 8px">
Jl. Jaksa Agung Suprapto No. 2 MALANG 65111
</div>
<div>Telp. (0341) 362101, Fax. (0341) 362110</div>
<div>Email: [email protected]</div>
<div>Website: www.rsudsaifulanwar.jatimprov.go.id</div>
</td>
</tr>
</table>
<hr style="margin: 20px 0" />
<div style="position: relative;">
<h1 style="
text-align: center;
font-weight: bold;
font-size: 1rem;
margin: 0;
">
Lembar Formulir Rawat Jalan <br> Layanan Kedokteran Fisik dan Rehabilitasi
</h1>
</div>
<div style="
margin-top: 1.5rem;
border: 1px solid black;
padding: 0.3rem;
">
<table style="margin-top: 0.3rem;margin-bottom: 0.3rem;">
<tr>
<td style="width: 19rem;"><b>I. Identitas Pasien</b></td>
<td style="width: 4rem;">No. RM</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td>
</tr>
</table>
<table>
<tr>
<td style="width: 10rem; height: 1.5rem;">
Nama Pasien
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td>
</tr>
<tr>
<td style="height: 1.5rem;">
Tanggal Lahir
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
<tr>
<td style="height: 1.5rem;">
Aalamat
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
<tr>
<td style="height: 1.5rem;">
Telp / HP
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
<tr>
<td style="height: 1.5rem;">
Hubungan dengan Tertanggung
</td>
<td class="data-colon">: </td>
<td>
&#9745; Suami / Istri
&emsp;&emsp;
&#9634; Anak
</td>
</tr>
</table>
</div>
<div style="
margin-top: 1.5rem;
border: 1px solid black;
padding: 0.3rem;
">
<table style="margin-top: 0.3rem;margin-bottom: 0.3rem;">
<tr>
<td style="width: 19rem;"><b>II. Diisi oleh Dokter SpKFR</b></td>
</tr>
</table>
<table>
<tr>
<td style="width: 14rem; height: 1.5rem;">
Tanggal Pelayanan
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Anamnesa
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Pemeriksaan Fisik dan Uji Fungsi
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Diagnosis Medis (ICD-10)
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Diagnosis Fungsi (ICD-10)
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Pemeriksaan Penunjang
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Tata Laksana KFR (ICD 9 CM)
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Anjuran
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Evaluasi
</td>
<td class="data-colon">: </td>
<td>{{ .Repalcable }}</td></tr>
</tr>
<tr>
<td style="height: 1.5rem;">
Suspek Penyakit Akibat Kerja
</td>
<td class="data-colon">: </td>
<td>
&#9745; Ya &emsp; ( {{ .Repalcable }} )
<br>
&#9634; Tidak
</td>
</tr>
</table>
</div>
<table style="margin-top: 2rem;">
<tr>
<td style="text-align: center;">
TTD Pasien
</td>
<td style="text-align: center;">
Tempat & Tanggal<br>
Cap dan TTD Dr. SpKFR
</td>
</tr>
<tr><td style="height: 6rem;"></td></tr>
<tr>
<td style="height: 10rem;text-align: center;">
(........................................................)
</td>
<td style="height: 10rem;text-align: center;">
(........................................................)
</td>
</tr>
</table>
<div style="height: 3rem;"></div>
</body>
</html>
+81
View File
@@ -0,0 +1,81 @@
{
"request-ok": "request is done succesfully",
"request-methodNotAllowed": "request has been rejected, method is not allowed",
"request-tooMany": "too many request",
"payload-bad": "invalid data structure",
"auth-required": "authentication required",
"auth-missingHeader": "authentication header is missing",
"auth-forbidden": "forbidden",
"auth-login-success": "login success",
"auth-login-incorrect": "login failed, icorrect username or password",
"auth-login-tooMany": "login failed, too many login attempts",
"auth-login-blocked": "login failed, account is blocked",
"auth-login-unverified": "login failed, account is not verified",
"auth-logout-success": "logout success",
"auth-reject-suspend": "restricted for suspended account",
"auth-getData-failed": "failed to get user data",
"balance-exceeded": "must not exceeds balance",
"email-confirmation-success": "email confirmation success",
"email-confirmation-fail": "failed to confirm email",
"email-confirmation-resend-fail": "failed to resend email confirmation",
"data-create-success": "data has been created",
"data-create-fail": "failed to create data",
"data-notFound": "data or resource can not be found",
"data-notFound-condition": "\"%v\" with %v \"%v\" can not be found",
"data-get-fail": "get data failed, %v",
"data-get-invalid-relation": "database get failed, invalid relation",
"data-update-fail": "failed to update data",
"data-delete-success": "data has been deleted",
"data-delete-fail": "failed to delete data",
"data-send-fail": "send data failed, %v",
"data-fetch-fail": "failed to fetch data",
"data-copy-fail": "failed to copy data",
"data-process-fail": "failed to process data",
"data-confirm-fail": "failed to confirm data",
"data-generate-fail": "failed to generate data",
"data-registered": "is already registered",
"data-state-mismatch": "\"%v\" is not in \"%v\" state",
"data-duplicate": "duplicate data",
"data-payment-fail": "failed to create payment",
"data-handled-mismatch": "data handled by different user/person",
"expired": "is expired",
"registered": "is already registered",
"mustUuid": "must be a valid uuid",
"invalid": "invalid value",
"equalToField": "must equal to",
"constraint-vioalate": "must not violate constraint",
"config-fetch-done": "app config is fetched successfully",
"userToken-incorrect": "incorrect email, token, or token type",
"token-missing": "missing required token",
"token-invalid": "invalid token",
"token-invalidType": "invalid token type",
"token-sign-unexcpeted": "unexpected signing method: %v",
"token-sign-err": "token signing failed, %v",
"token-parse-fail": "token parsing failed, %v",
"token-expired": "token is expired",
"token-unidentified": "token is could not be identified",
"file-detect-fail": "file type detection failed",
"file-type-mismatch": "file type mismatch",
"file-create-fail": "failed to create file, %v",
"file-open-fail": "failed to open file, %v",
"file-copy-fail": "failed to copy file, %v",
"uuid-gen-fail" : "failed to generate uuid, %v",
"nanoid-gen-fail" : "failed to generate nanoid, %v",
"redis-store-fail": "redis storing value failed, %v",
"eq": "must be equal to %v",
"gt": "must be greater than %v",
"gte": "must be greater than or equal to %v",
"lt": "must be less than %v",
"lte": "must be less than or equal to %v"
}
+84
View File
@@ -0,0 +1,84 @@
{
"request-ok": "'request' berhasil diproses",
"request-methodNotAllowed": "'request' ditolak, method tidak diijinkan",
"request-tooMany": "terlalu banyak 'request'",
"payload-bad": "struktur data tidak sesuai standar",
"auth-required": "butuh autentikasi",
"auth-getData-failed": "gagal mengambil data user",
"auth-missingHeader": "header autentikasi tidak ditemukan",
"auth-forbidden": "tidak diijinkan",
"auth-login-success": "login berhasil",
"auth-login-incorrect": "Username atau Password Tidak Sesuai",
"auth-login-tooMany": "login gagal, terlalu banyak percobaan",
"auth-login-blocked": "login gagal, akun diblokir",
"auth-login-unverified": "login gagal, akun belum terverifikasi",
"auth-logout-success": "logout berhasil",
"auth-reject-suspend": "dibatasi untuk akun dibekukan",
"balance-exceeded": "tidak boleh melebihi saldo",
"email-confirmation-success": "konfimrasi email berhasil",
"email-confirmation-fail": "gagal mengkonfirmasi email",
"email-confirmation-resend-fail": "gagal mengirim konfirmasi email",
"data-create-success": "data telah dibuat",
"data-create-fail": "gagal membuat data",
"data-notFound": "data atau sumber tidak daoat ditemukan",
"data-notFound-condition": "\"%v\" dengan %v \"%v\" tidak dapat ditemukan",
"data-get-fail": "gagal mengambil data, %v",
"data-update-success": "berhasil memperbarui data",
"data-update-fail": "gagal memperbarui data",
"data-delete-success": "data telah dihapus",
"data-delete-fail": "gagal menghapus data",
"data-fetch-fail": "gagal mengambil data",
"data-copy-fail": "gagal menyalin data",
"data-process-fail": "gagal memproses data",
"data-confirm-fail": "gagal mengirim data",
"data-generate-fail": "gagal membuat data",
"data-registered": "sudah pernah dibuat",
"data-state-mismatch": "\"%v\" tidak dalam kondisi \"%v\"",
"data-duplicate": "duplicate data",
"data-payment-fail": "failed to create payment",
"expired": "expired",
"registered": "sudah terdaftar",
"mustUuid": "harus UUID yang valid",
"invalid": "nilai tidak sesuai",
"equalToField": "harus sama dengan",
"constraint-vioalate": "tidak boleh melanggar batasan",
"config-fetch-done": "konfigurasi app berhasil diterapkan",
"userToken-incorrect": "salah email, token, atau jenis token",
"token-missing": "token tidak dapat ditemukan",
"token-invalid": "token tidak berlaku",
"token-invalidType": "jenis token tidak berlaku",
"token-sign-unexcpeted": "metode penanda tidak beralku: %v",
"token-sign-err": "penanda token tidak sesuai, %v",
"token-parse-fail": "%v",
"token-expired": "Token Expired",
"token-unidentified": "token tidak dapat diidentifikasi",
"file-detect-fail": "gagal mendeteksi tipe file",
"file-type-mismatch": "tipe file tidak sesuai",
"file-create-fail": "gagal membuat file, %v",
"file-open-fail": "gagal membuka file, %v",
"file-copy-fail": "gagal menyalin file, %v",
"uuid-gen-fail" : "gagal membuat UUID, %v",
"nanoid-gen-fail" : "gagal membuat NANOID, %v",
"redis-store-fail": "gagal mengimpan data pada redis, %v",
"eq": "must be equal to %v",
"gt": "must be greater than %v",
"gte": "lebih besar atau sama dengan %v",
"lt": "must be less than %v",
"lte": "lebih kecil atau sama dengan %v",
"jknData-required": "%v Belum Diisi",
"jknData-length": "Format %v Tidak Sesuai",
"jknData-numeric": "Format %v Tidak Sesuai",
"jknData-notFound": "%v Tidak Ditemukan"
}
+2
View File
@@ -0,0 +1,2 @@
# convention
Key - value data indexed. Key prefered to be be consisting of 3 part: [feature]-[action]-[status]. Special case for validation that is intended to point error on an input (field), the key can be stated directly to the validation index, for example: min is for minimum value needed.
View File
+66
View File
@@ -0,0 +1,66 @@
appCfg:
fullName: BPJS Bridge
codeName: simrs-vx
version: 0.1.0
env: development
lang: en
httpCfg:
host:
port:
dbCfg:
dsn:
maxOpenConns: 5
maxIdleConns: 5
maxIdleTime: 100
multiDbCfg:
- dbs :
name:
dsn:
maxOpenConns:
maxIdleConns:
maxIdleTime:
- bpjs
name: bpjs
dsn:
maxOpenConns:
maxIdleConns:
maxIdleTime:
loggerCfg:
hideTime:
hideLevel:
msCfg:
dsn:
langCfg:
active:
path:
fileName:
minioCfg:
endpoint:
region:
accessKey:
secretKey:
useSsl:
bucketName:
- patient
corsCfg:
allowedOrigin:
allowedMethod:
satuSehatCfg:
host: localhost:8200
corsCfg:
allowedOrigins:
- http://example.com
allowedMethod:
bpjsCfg:
baseUrl:
+14
View File
@@ -0,0 +1,14 @@
package main
import (
a "github.com/karincake/apem"
d "github.com/karincake/apem/db-gorm-pg"
l "github.com/karincake/apem/logger-zerolog"
m "github.com/karincake/apem/ms-redis"
h "simrs-vx/internal/interface/bpjs-handler"
)
func main() {
a.Run(h.SetRoutes(), &l.O, &m.O, &d.O)
}
+76
View File
@@ -0,0 +1,76 @@
appCfg:
fullName: BPJS Bridge
codeName: simrs-vx
version: 0.1.0
env: development
lang: en
httpCfg:
host:
port:
dbCfg:
dsn:
maxOpenConns: 5
maxIdleConns: 5
maxIdleTime: 100
multiDbCfg:
- dbs :
name:
dsn:
maxOpenConns:
maxIdleConns:
maxIdleTime:
- bpjs
name: bpjs
dsn:
maxOpenConns:
maxIdleConns:
maxIdleTime:
loggerCfg:
hideTime:
hideLevel:
msCfg:
dsn:
langCfg:
active:
path:
fileName:
minioCfg:
endpoint:
region:
accessKey:
secretKey:
useSsl:
bucketName:
- patient
corsCfg:
allowedOrigin:
allowedMethod:
satuSehatCfg:
host: localhost:8200
corsCfg:
allowedOrigins:
- http://example.com
allowedMethod:
bpjsCfg:
baseUrl:
syncUrlCfg:
enable: false
targetHost:
prefix: new-to-old
source: old-app
secretKey: new-world-order!!
docsCfg:
path: ../../assets/docs/
+14
View File
@@ -0,0 +1,14 @@
package main
import (
a "github.com/karincake/apem"
d "github.com/karincake/apem/db-gorm-pg"
l "github.com/karincake/apem/logger-zerolog"
m "github.com/karincake/apem/ms-redis"
h "simrs-vx/internal/interface/main-handler"
)
func main() {
a.Run(h.SetRoutes(), &l.O, &m.O, &d.O)
}
+22
View File
@@ -0,0 +1,22 @@
# Makefile for Atlas migrations
# Default environment
ENV ?= gorm
.PHONY: diff apply hash
## Generate a new migration diff
diff:
atlas migrate diff --env $(ENV)
## Apply migrations to the database
apply:
atlas migrate apply --env $(ENV)
## Calculate the schema hash
hash:
atlas migrate hash
## Apply non-linear
apply-non-linear:
atlas migrate apply --env $(ENV) --exec-order non-linear
+59
View File
@@ -0,0 +1,59 @@
# Database Migration with Atlas
This project uses [Atlas](https://atlasgo.io/) for database schema management and migrations.
## 📋 Prerequisites
1. **Download and Install Atlas CLI**
Run the following command in PowerShell or Git Bash:
```sh
curl -sSf https://atlasgo.sh | sh
```
Verify installation:
```sh
atlas version
```
2. Install GORM Provider
Run inside your Go project:
```sh
go get -u ariga.io/atlas-provider-gorm
```
3. Create atlas.hcl configuration file
Just create an atlas.hcl file in your project root as example given at atlas.hcl.example
4. Create migrations folder
```sh
mkdir migrations
```
5. Usage
You can use the provided Makefile for common commands:
Generate a migration diff
```sh
make diff
```
Apply migrations
```sh
make apply
```
Compute schema hash
```sh
make hash
```
If you dont have make installed, you can run the Atlas commands directly:
```sh
atlas migrate diff --env gorm
```
```sh
atlas migrate apply --env gorm
```
```sh
atlas migrate hash
```
+22
View File
@@ -0,0 +1,22 @@
data "external_schema" "gorm" {
program = [
"go",
"run",
"-mod=mod",
".",
]
}
env "gorm" {
src = data.external_schema.gorm.url
dev = "" // dsn db to check the diff
migration {
dir = "file://migrations"
}
url = "" // dsn db to apply
format {
migrate {
diff = "{{ sql . \" \" }}"
}
}
}
+9
View File
@@ -0,0 +1,9 @@
package main
import (
m "simrs-vx/internal/interface/migration"
)
func main() {
m.Migrate(m.Main)
}
@@ -0,0 +1,685 @@
-- Create "DiagnoseSrc" table
CREATE TABLE "public"."DiagnoseSrc" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(2048) NULL,
"IndName" character varying(2048) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_DiagnoseSrc_Code" UNIQUE ("Code")
);
-- Create "PharmacyCompany" table
CREATE TABLE "public"."PharmacyCompany" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(100) NULL,
"Regency_Code" character varying(4) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_PharmacyCompany_Code" UNIQUE ("Code")
);
-- Create "Uom" table
CREATE TABLE "public"."Uom" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Uom_Code" UNIQUE ("Code")
);
-- Create "Counter" table
CREATE TABLE "public"."Counter" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(30) NULL,
"Number" smallint NULL,
"Parent_Id" integer NULL,
"Type_Code" text NULL,
"Queue_Code" character varying(5) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Counter_Code" UNIQUE ("Code")
);
-- Create "Item" table
CREATE TABLE "public"."Item" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(50) NULL,
"Name" character varying(100) NULL,
"ItemGroup_Code" character varying(10) NULL,
"Uom_Code" character varying(10) NULL,
"Infra_Id" integer NULL,
"Stock" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Item_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Item_Uom" FOREIGN KEY ("Uom_Code") REFERENCES "public"."Uom" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Infra" table
CREATE TABLE "public"."Infra" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
"InfraGroup_Code" character varying(10) NULL,
"Parent_Id" integer NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Infra_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Infra_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Device" table
CREATE TABLE "public"."Device" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NOT NULL,
"Uom_Code" character varying(10) NULL,
"Infra_Id" integer NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Device_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Device_Infra" FOREIGN KEY ("Infra_Id") REFERENCES "public"."Infra" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Device_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Device_Uom" FOREIGN KEY ("Uom_Code") REFERENCES "public"."Uom" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Province" table
CREATE TABLE "public"."Province" (
"Id" smallserial NOT NULL,
"Code" character varying(2) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Province_Code" UNIQUE ("Code")
);
-- Create "Regency" table
CREATE TABLE "public"."Regency" (
"Id" serial NOT NULL,
"Province_Code" character varying(2) NULL,
"Code" character varying(4) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Regency_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Province_Regencies" FOREIGN KEY ("Province_Code") REFERENCES "public"."Province" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "District" table
CREATE TABLE "public"."District" (
"Id" bigserial NOT NULL,
"Regency_Code" character varying(4) NULL,
"Code" character varying(6) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_District_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Regency_Districts" FOREIGN KEY ("Regency_Code") REFERENCES "public"."Regency" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Division" table
CREATE TABLE "public"."Division" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
"Parent_Id" smallint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Division_Code" UNIQUE ("Code")
);
-- Create "DivisionPosition" table
CREATE TABLE "public"."DivisionPosition" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Division_Id" integer NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_DivisionPosition_Code" UNIQUE ("Code"),
CONSTRAINT "fk_DivisionPosition_Division" FOREIGN KEY ("Division_Id") REFERENCES "public"."Division" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Ethnic" table
CREATE TABLE "public"."Ethnic" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Ethnic_Code" UNIQUE ("Code")
);
-- Create "Language" table
CREATE TABLE "public"."Language" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Language_Code" UNIQUE ("Code")
);
-- Create "Person" table
CREATE TABLE "public"."Person" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Name" character varying(150) NOT NULL,
"FrontTitle" character varying(50) NULL,
"EndTitle" character varying(50) NULL,
"BirthDate" timestamptz NULL,
"BirthRegency_Code" character varying(4) NULL,
"Gender_Code" character varying(10) NULL,
"ResidentIdentityNumber" character varying(16) NULL,
"PassportNumber" character varying(20) NULL,
"DrivingLicenseNumber" character varying(20) NULL,
"Religion_Code" character varying(10) NULL,
"Education_Code" character varying(10) NULL,
"Ocupation_Code" character varying(15) NULL,
"Ocupation_Name" character varying(50) NULL,
"Ethnic_Code" character varying(20) NULL,
"Language_Code" character varying(10) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Person_DrivingLicenseNumber" UNIQUE ("DrivingLicenseNumber"),
CONSTRAINT "uni_Person_PassportNumber" UNIQUE ("PassportNumber"),
CONSTRAINT "uni_Person_ResidentIdentityNumber" UNIQUE ("ResidentIdentityNumber"),
CONSTRAINT "fk_Person_Ethnic" FOREIGN KEY ("Ethnic_Code") REFERENCES "public"."Ethnic" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Person_Language" FOREIGN KEY ("Language_Code") REFERENCES "public"."Language" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "User" table
CREATE TABLE "public"."User" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Name" character varying(25) NOT NULL,
"Password" character varying(255) NOT NULL,
"Status_Code" character varying(10) NOT NULL,
"FailedLoginCount" smallint NULL,
"Position_Code" character varying(20) NOT NULL,
"LoginAttemptCount" bigint NULL,
"LastSuccessLogin" timestamptz NULL,
"LastAllowdLogin" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_User_Name" UNIQUE ("Name")
);
-- Create "Employee" table
CREATE TABLE "public"."Employee" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"User_Id" bigint NULL,
"Person_Id" bigint NULL,
"Division_Code" character varying(10) NULL,
"Number" character varying(20) NULL,
"Status_Code" character varying(10) NOT NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Employee_Division" FOREIGN KEY ("Division_Code") REFERENCES "public"."Division" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Employee_Person" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Employee_User" FOREIGN KEY ("User_Id") REFERENCES "public"."User" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Installation" table
CREATE TABLE "public"."Installation" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
"EncounterClass_Code" character varying(10) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Installation_Code" UNIQUE ("Code")
);
-- Create "Unit" table
CREATE TABLE "public"."Unit" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Installation_Id" integer NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
"Type_Code" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Unit_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Unit_Installation" FOREIGN KEY ("Installation_Id") REFERENCES "public"."Installation" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Specialist" table
CREATE TABLE "public"."Specialist" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
"Unit_Id" integer NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Specialist_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Specialist_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Subspecialist" table
CREATE TABLE "public"."Subspecialist" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
"Specialist_Id" integer NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Subspecialist_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Subspecialist_Specialist" FOREIGN KEY ("Specialist_Id") REFERENCES "public"."Specialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Doctor" table
CREATE TABLE "public"."Doctor" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Employee_Id" bigint NULL,
"IHS_Number" character varying(20) NULL,
"SIP_Number" character varying(20) NULL,
"Unit_Id" integer NULL,
"Specialist_Id" integer NULL,
"Subspecialist_Id" integer NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Doctor_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Doctor_Specialist" FOREIGN KEY ("Specialist_Id") REFERENCES "public"."Specialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Doctor_Subspecialist" FOREIGN KEY ("Subspecialist_Id") REFERENCES "public"."Subspecialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Doctor_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "DoctorFee" table
CREATE TABLE "public"."DoctorFee" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Doctor_Id" bigint NULL,
"FeeType_Code" character varying(11) NULL,
"Price" numeric NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_DoctorFee_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_DoctorFee_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Patient" table
CREATE TABLE "public"."Patient" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Person_Id" bigint NULL,
"RegisteredAt" timestamptz NULL,
"Status_Code" character varying(10) NOT NULL,
"Number" character varying(15) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Patient_Number" UNIQUE ("Number"),
CONSTRAINT "fk_Patient_Person" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Encounter" table
CREATE TABLE "public"."Encounter" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Patient_Id" bigint NULL,
"RegisteredAt" timestamptz NULL,
"Class_Code" character varying(10) NOT NULL,
"Unit_Id" bigint NULL,
"Specialist_Id" integer NULL,
"Subspecialist_Id" integer NULL,
"VisitDate" timestamptz NULL,
"Assignment_Doctor_Id" bigint NULL,
"Responsible_Doctor_Id" bigint NULL,
"DischardeMethod_Code" character varying(10) NULL,
"RefSource_Name" character varying(100) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Encounter_Assignment_Doctor" FOREIGN KEY ("Assignment_Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Encounter_Patient" FOREIGN KEY ("Patient_Id") REFERENCES "public"."Patient" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Encounter_Responsible_Doctor" FOREIGN KEY ("Responsible_Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Encounter_Specialist" FOREIGN KEY ("Specialist_Id") REFERENCES "public"."Specialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Encounter_Subspecialist" FOREIGN KEY ("Subspecialist_Id") REFERENCES "public"."Subspecialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Encounter_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "InsuranceCompany" table
CREATE TABLE "public"."InsuranceCompany" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(50) NULL,
"Regency_Code" character varying(4) NULL,
"Address" character varying(100) NULL,
"PhoneNumber" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_InsuranceCompany_Code" UNIQUE ("Code"),
CONSTRAINT "fk_InsuranceCompany_Regency" FOREIGN KEY ("Regency_Code") REFERENCES "public"."Regency" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "ItemPrice" table
CREATE TABLE "public"."ItemPrice" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Item_Id" bigint NULL,
"Price" numeric NULL,
"InsuranceCompany_Code" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_ItemPrice_InsuranceCompany" FOREIGN KEY ("InsuranceCompany_Code") REFERENCES "public"."InsuranceCompany" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_ItemPrice_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Laborant" table
CREATE TABLE "public"."Laborant" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Employee_Id" bigint NULL,
"IHS_Number" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Laborant_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Material" table
CREATE TABLE "public"."Material" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
"Uom_Code" character varying(10) NULL,
"Infra_Id" integer NULL,
"Stock" bigint NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Material_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Material_Infra" FOREIGN KEY ("Infra_Id") REFERENCES "public"."Infra" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Material_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Material_Uom" FOREIGN KEY ("Uom_Code") REFERENCES "public"."Uom" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "McuSrcCategory" table
CREATE TABLE "public"."McuSrcCategory" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(50) NULL,
"Scope_Code" character varying(10) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_McuSrcCategory_Code" UNIQUE ("Code")
);
-- Create "McuSrc" table
CREATE TABLE "public"."McuSrc" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(50) NULL,
"CheckupCategory_Code" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_McuSrc_Code" UNIQUE ("Code"),
CONSTRAINT "fk_McuSrc_CheckupCategory" FOREIGN KEY ("CheckupCategory_Code") REFERENCES "public"."McuSrcCategory" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "MedicalActionSrc" table
CREATE TABLE "public"."MedicalActionSrc" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(50) NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_MedicalActionSrc_Code" UNIQUE ("Code"),
CONSTRAINT "fk_MedicalActionSrc_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "ProcedureSrc" table
CREATE TABLE "public"."ProcedureSrc" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(2048) NULL,
"IndName" character varying(2048) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_ProcedureSrc_Code" UNIQUE ("Code")
);
-- Create "MedicalActionSrcItem" table
CREATE TABLE "public"."MedicalActionSrcItem" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"MedicalActionSrc_Id" bigint NULL,
"ProcedureSrc_Id" bigint NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_MedicalActionSrcItem_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_MedicalActionSrcItem_MedicalActionSrc" FOREIGN KEY ("MedicalActionSrc_Id") REFERENCES "public"."MedicalActionSrc" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_MedicalActionSrcItem_ProcedureSrc" FOREIGN KEY ("ProcedureSrc_Id") REFERENCES "public"."ProcedureSrc" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "MedicineGroup" table
CREATE TABLE "public"."MedicineGroup" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_MedicineGroup_Code" UNIQUE ("Code")
);
-- Create "MedicineMethod" table
CREATE TABLE "public"."MedicineMethod" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_MedicineMethod_Code" UNIQUE ("Code")
);
-- Create "Medicine" table
CREATE TABLE "public"."Medicine" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
"MedicineGroup_Code" character varying(10) NULL,
"MedicineMethod_Code" character varying(10) NULL,
"Uom_Code" character varying(10) NULL,
"Dose" smallint NULL,
"Infra_Id" integer NULL,
"Stock" bigint NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Medicine_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Medicine_Infra" FOREIGN KEY ("Infra_Id") REFERENCES "public"."Infra" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Medicine_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Medicine_MedicineGroup" FOREIGN KEY ("MedicineGroup_Code") REFERENCES "public"."MedicineGroup" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Medicine_MedicineMethod" FOREIGN KEY ("MedicineMethod_Code") REFERENCES "public"."MedicineMethod" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Medicine_Uom" FOREIGN KEY ("Uom_Code") REFERENCES "public"."Uom" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "MedicineMix" table
CREATE TABLE "public"."MedicineMix" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id")
);
-- Create "MedicineMixItem" table
CREATE TABLE "public"."MedicineMixItem" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"MedicineMix_Id" bigint NULL,
"Medicine_Id" bigint NULL,
"Dose" smallint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_MedicineMixItem_Medicine" FOREIGN KEY ("Medicine_Id") REFERENCES "public"."Medicine" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_MedicineMixItem_MedicineMix" FOREIGN KEY ("MedicineMix_Id") REFERENCES "public"."MedicineMix" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Nurse" table
CREATE TABLE "public"."Nurse" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Employee_Id" bigint NULL,
"IHS_Number" character varying(20) NULL,
"Unit_Id" integer NULL,
"Infra_Id" integer NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Nurse_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Nurse_Infra" FOREIGN KEY ("Infra_Id") REFERENCES "public"."Infra" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Nurse_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Nutritionist" table
CREATE TABLE "public"."Nutritionist" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Employee_Id" bigint NULL,
"IHS_Number" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Nutritionist_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "PersonAddress" table
CREATE TABLE "public"."PersonAddress" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Person_Id" bigint NULL,
"Address" character varying(150) NULL,
"Rt" character varying(2) NULL,
"Rw" character varying(2) NULL,
"Village_Code" character varying(10) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Person_Addresses" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "PersonContact" table
CREATE TABLE "public"."PersonContact" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Person_Id" bigint NULL,
"Type_Code" character varying(15) NULL,
"Value" character varying(100) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Person_Contacts" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Village" table
CREATE TABLE "public"."Village" (
"Id" bigserial NOT NULL,
"District_Code" character varying(6) NULL,
"Code" character varying(10) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Village_Code" UNIQUE ("Code"),
CONSTRAINT "fk_District_Villages" FOREIGN KEY ("District_Code") REFERENCES "public"."District" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "PersonRelative" table
CREATE TABLE "public"."PersonRelative" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Person_Id" bigint NULL,
"Relationship_Code" character varying(100) NOT NULL,
"Name" character varying(100) NULL,
"Address" character varying(100) NULL,
"Village_Code" character varying(10) NULL,
"Gender_Code" character varying(10) NULL,
"PhoneNumber" character varying(30) NULL,
"Education_Code" character varying(10) NULL,
"Occupation_Code" character varying(10) NULL,
"Occupation_Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_PersonRelative_Village" FOREIGN KEY ("Village_Code") REFERENCES "public"."Village" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Person_Relatives" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Pharmacist" table
CREATE TABLE "public"."Pharmacist" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Employee_Id" bigint NULL,
"IHS_Number" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Pharmacist_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "PracticeSchedule" table
CREATE TABLE "public"."PracticeSchedule" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Doctor_Id" bigint NULL,
"Unit_Code" character varying(10) NULL,
"Day_Code" smallint NULL,
"StartTime" character varying(5) NULL,
"EndTime" character varying(5) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_PracticeSchedule_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_PracticeSchedule_Unit" FOREIGN KEY ("Unit_Code") REFERENCES "public"."Unit" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Room" table
CREATE TABLE "public"."Room" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Infra_Id" integer NULL,
"Unit_Id" integer NULL,
"Specialist_Id" integer NULL,
"Subspecialist_Id" integer NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Room_Infra" FOREIGN KEY ("Infra_Id") REFERENCES "public"."Infra" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Room_Specialist" FOREIGN KEY ("Specialist_Id") REFERENCES "public"."Specialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Room_Subspecialist" FOREIGN KEY ("Subspecialist_Id") REFERENCES "public"."Subspecialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Room_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "SpecialistIntern" table
CREATE TABLE "public"."SpecialistIntern" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Person_Id" bigint NULL,
"Specialist_Id" integer NULL,
"Subspecialist_Id" integer NULL,
"User_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_SpecialistIntern_Person" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_SpecialistIntern_Specialist" FOREIGN KEY ("Specialist_Id") REFERENCES "public"."Specialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_SpecialistIntern_Subspecialist" FOREIGN KEY ("Subspecialist_Id") REFERENCES "public"."Subspecialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_SpecialistIntern_User" FOREIGN KEY ("User_Id") REFERENCES "public"."User" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,10 @@
-- Modify "Doctor" table
ALTER TABLE "public"."Doctor" ADD CONSTRAINT "uni_Doctor_IHS_Number" UNIQUE ("IHS_Number"), ADD CONSTRAINT "uni_Doctor_SIP_Number" UNIQUE ("SIP_Number");
-- Modify "Laborant" table
ALTER TABLE "public"."Laborant" ADD CONSTRAINT "uni_Laborant_IHS_Number" UNIQUE ("IHS_Number");
-- Modify "Nurse" table
ALTER TABLE "public"."Nurse" ADD CONSTRAINT "uni_Nurse_IHS_Number" UNIQUE ("IHS_Number");
-- Modify "Nutritionist" table
ALTER TABLE "public"."Nutritionist" ADD CONSTRAINT "uni_Nutritionist_IHS_Number" UNIQUE ("IHS_Number");
-- Modify "Pharmacist" table
ALTER TABLE "public"."Pharmacist" ADD CONSTRAINT "uni_Pharmacist_IHS_Number" UNIQUE ("IHS_Number");
@@ -0,0 +1,96 @@
-- Create "Appointment" table
CREATE TABLE "public"."Appointment" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"PracticeSchedule_Id" bigint NULL,
"Patient_Id" bigint NULL,
"Person_ResidentIdentityNumber" character varying(16) NULL,
"Person_Name" character varying(100) NULL,
"Person_PhoneNumber" character varying(30) NULL,
"PaymentMethod_Code" character varying(10) NULL,
"RefNumber" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Appointment_Patient" FOREIGN KEY ("Patient_Id") REFERENCES "public"."Patient" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Appointment_PracticeSchedule" FOREIGN KEY ("PracticeSchedule_Id") REFERENCES "public"."PracticeSchedule" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" ADD COLUMN "Appointment_Doctor_Id" bigint NULL, ADD COLUMN "Appointment_Id" bigint NULL, ADD COLUMN "EarlyEducation" text NULL, ADD COLUMN "MedicalDischargeEducation" text NULL, ADD COLUMN "AdmDischargeEducation" text NULL, ADD COLUMN "DischargeReason" text NULL, ADD CONSTRAINT "fk_Encounter_Appointment" FOREIGN KEY ("Appointment_Id") REFERENCES "public"."Appointment" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION, ADD CONSTRAINT "fk_Encounter_Appointment_Doctor" FOREIGN KEY ("Appointment_Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Create "Adime" table
CREATE TABLE "public"."Adime" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Employee_Id" bigint NULL,
"Time" timestamptz NULL,
"Value" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Adime_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Adime_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Ambulatory" table
CREATE TABLE "public"."Ambulatory" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Class_Code" character varying(10) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Ambulatory_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Emergency" table
CREATE TABLE "public"."Emergency" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Class_Code" character varying(10) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Emergency_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Inpatient" table
CREATE TABLE "public"."Inpatient" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Class_Code" character varying(10) NULL,
"Infra_Id" integer NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Inpatient_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Inpatient_Infra" FOREIGN KEY ("Infra_Id") REFERENCES "public"."Infra" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Sbar" table
CREATE TABLE "public"."Sbar" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Employee_Id" bigint NULL,
"Time" timestamptz NULL,
"Value" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Sbar_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Sbar_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Soapi" table
CREATE TABLE "public"."Soapi" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Employee_Id" bigint NULL,
"Time" timestamptz NULL,
"Value" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Soapi_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Soapi_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" DROP COLUMN "Assignment_Doctor_Id";
@@ -0,0 +1,2 @@
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" ADD COLUMN "DischargeMethod_Code" character varying(10) NULL;
@@ -0,0 +1,2 @@
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" DROP COLUMN "DischardeMethod_Code";
@@ -0,0 +1,2 @@
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" ADD COLUMN "Status_Code" character varying(10) NULL;
@@ -0,0 +1,146 @@
-- Create "DeviceOrder" table
CREATE TABLE "public"."DeviceOrder" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_DeviceOrder_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "DeviceOrderItem" table
CREATE TABLE "public"."DeviceOrderItem" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"DeviceOrder_Id" bigint NULL,
"Device_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_DeviceOrderItem_Device" FOREIGN KEY ("Device_Id") REFERENCES "public"."Device" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_DeviceOrderItem_DeviceOrder" FOREIGN KEY ("DeviceOrder_Id") REFERENCES "public"."DeviceOrder" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "MaterialOrder" table
CREATE TABLE "public"."MaterialOrder" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_MaterialOrder_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "MaterialOrderItem" table
CREATE TABLE "public"."MaterialOrderItem" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"MaterialOrder_Id" bigint NULL,
"Material_Id" bigint NULL,
"Count" integer NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_MaterialOrderItem_Material" FOREIGN KEY ("Material_Id") REFERENCES "public"."Material" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_MaterialOrderItem_MaterialOrder" FOREIGN KEY ("MaterialOrder_Id") REFERENCES "public"."MaterialOrder" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "McuOrder" table
CREATE TABLE "public"."McuOrder" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Status_Code" character varying(10) NOT NULL,
"Doctor_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_McuOrder_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_McuOrder_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "McuOrderItem" table
CREATE TABLE "public"."McuOrderItem" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"McuOrder_Id" bigint NULL,
"McuSrc_Id" bigint NULL,
"Result" text NULL,
"Status_Code" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_McuOrderItem_McuOrder" FOREIGN KEY ("McuOrder_Id") REFERENCES "public"."McuOrder" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_McuOrderItem_McuSrc" FOREIGN KEY ("McuSrc_Id") REFERENCES "public"."McuSrc" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Medication" table
CREATE TABLE "public"."Medication" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"IssuedAt" timestamptz NULL,
"Pharmacist_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Medication_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Medication_Pharmacist" FOREIGN KEY ("Pharmacist_Id") REFERENCES "public"."Pharmacist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "MedicationItem" table
CREATE TABLE "public"."MedicationItem" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Medication_Id" bigint NULL,
"IsMix" boolean NULL,
"Medicine_Id" bigint NULL,
"MedicineMix_Id" bigint NULL,
"Usage" smallint NULL,
"Interval" smallint NULL,
"IntervalUnit_Code" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_MedicationItem_Medication" FOREIGN KEY ("Medication_Id") REFERENCES "public"."Medication" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_MedicationItem_Medicine" FOREIGN KEY ("Medicine_Id") REFERENCES "public"."Medicine" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_MedicationItem_MedicineMix" FOREIGN KEY ("MedicineMix_Id") REFERENCES "public"."MedicineMix" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "MedicationItemDist" table
CREATE TABLE "public"."MedicationItemDist" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"MedicationItem_Id" bigint NULL,
"DateTime" timestamptz NULL,
"Remain" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_MedicationItemDist_MedicationItem" FOREIGN KEY ("MedicationItem_Id") REFERENCES "public"."MedicationItem" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Prescription" table
CREATE TABLE "public"."Prescription" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Doctor_Id" bigint NULL,
"IssuedAt" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Prescription_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Prescription_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "PrescriptionItem" table
CREATE TABLE "public"."PrescriptionItem" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Prescription_Id" bigint NULL,
"IsMix" boolean NULL,
"Medicine_Id" bigint NULL,
"MedicineMix_Id" bigint NULL,
"Usage" smallint NULL,
"Interval" smallint NULL,
"IntervalUnit_Code" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_PrescriptionItem_Medicine" FOREIGN KEY ("Medicine_Id") REFERENCES "public"."Medicine" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_PrescriptionItem_MedicineMix" FOREIGN KEY ("MedicineMix_Id") REFERENCES "public"."MedicineMix" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_PrescriptionItem_Prescription" FOREIGN KEY ("Prescription_Id") REFERENCES "public"."Prescription" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,14 @@
-- Modify "DeviceOrder" table
ALTER TABLE "public"."DeviceOrder" ADD COLUMN "Status_Code" text NULL;
-- Modify "DeviceOrderItem" table
ALTER TABLE "public"."DeviceOrderItem" ADD COLUMN "Count" smallint NULL;
-- Modify "MaterialOrder" table
ALTER TABLE "public"."MaterialOrder" ADD COLUMN "Status_Code" text NULL;
-- Modify "Medication" table
ALTER TABLE "public"."Medication" ADD COLUMN "Status_Code" text NULL;
-- Modify "MedicationItem" table
ALTER TABLE "public"."MedicationItem" ALTER COLUMN "Usage" TYPE numeric, ADD COLUMN "IsRedeemed" boolean NULL;
-- Modify "PrescriptionItem" table
ALTER TABLE "public"."PrescriptionItem" ALTER COLUMN "Usage" TYPE numeric;
-- Modify "MedicationItemDist" table
ALTER TABLE "public"."MedicationItemDist" ALTER COLUMN "Remain" TYPE numeric, ADD COLUMN "Nurse_Id" bigint NULL, ADD CONSTRAINT "fk_MedicationItemDist_Nurse" FOREIGN KEY ("Nurse_Id") REFERENCES "public"."Nurse" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,8 @@
-- Modify "MedicationItem" table
ALTER TABLE "public"."MedicationItem" ADD COLUMN "Quantity" numeric NULL;
-- Modify "MedicineMix" table
ALTER TABLE "public"."MedicineMix" ADD COLUMN "Note" text NULL;
-- Modify "Prescription" table
ALTER TABLE "public"."Prescription" ADD COLUMN "Status_Code" text NULL;
-- Modify "PrescriptionItem" table
ALTER TABLE "public"."PrescriptionItem" ADD COLUMN "Quantity" numeric NULL;
@@ -0,0 +1,2 @@
-- Modify "MedicationItem" table
ALTER TABLE "public"."MedicationItem" ADD COLUMN "Note" character varying(1024) NULL;
@@ -0,0 +1,2 @@
-- Modify "MedicineMixItem" table
ALTER TABLE "public"."MedicineMixItem" DROP CONSTRAINT "fk_MedicineMixItem_MedicineMix", ADD CONSTRAINT "fk_MedicineMix_MixItems" FOREIGN KEY ("MedicineMix_Id") REFERENCES "public"."MedicineMix" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,4 @@
-- Modify "MedicineMix" table
ALTER TABLE "public"."MedicineMix" DROP COLUMN "Note";
-- Modify "MedicineMixItem" table
ALTER TABLE "public"."MedicineMixItem" ADD COLUMN "Note" text NULL;
@@ -0,0 +1,10 @@
-- Modify "McuOrder" table
ALTER TABLE "public"."McuOrder" ADD COLUMN "SpecimenPickTime" timestamptz NULL, ADD COLUMN "ExaminationDate" timestamptz NULL, ADD COLUMN "Number" smallint NULL, ADD COLUMN "Temperature" numeric NULL, ADD COLUMN "McuUrgencyLevel_Code" character varying(10) NOT NULL;
-- Modify "McuOrderItem" table
ALTER TABLE "public"."McuOrderItem" ADD COLUMN "ExaminationDate" timestamptz NULL;
-- Create index "idx_order_src" to table: "McuOrderItem"
CREATE UNIQUE INDEX "idx_order_src" ON "public"."McuOrderItem" ("McuOrder_Id", "McuSrc_Id");
-- Modify "PersonRelative" table
ALTER TABLE "public"."PersonRelative" ADD COLUMN "Responsible" boolean NULL;
-- Modify "McuSrc" table
ALTER TABLE "public"."McuSrc" ALTER COLUMN "Id" TYPE bigint, ADD COLUMN "Item_Id" bigint NULL, ADD CONSTRAINT "fk_McuSrc_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,31 @@
-- Create "McuSubSrc" table
CREATE TABLE "public"."McuSubSrc" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(50) NULL,
"McuSrc_Id" bigint NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_McuSubSrc_Code" UNIQUE ("Code"),
CONSTRAINT "fk_McuSubSrc_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_McuSubSrc_McuSrc" FOREIGN KEY ("McuSrc_Id") REFERENCES "public"."McuSrc" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "McuOrderSubItem" table
CREATE TABLE "public"."McuOrderSubItem" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"McuSubSrc_Id" bigint NULL,
"McuOrderItem_Id" bigint NULL,
"Result" text NULL,
"Status_Code" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_McuOrderSubItem_McuOrderItem" FOREIGN KEY ("McuOrderItem_Id") REFERENCES "public"."McuOrderItem" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_McuOrderSubItem_McuSubSrc" FOREIGN KEY ("McuSubSrc_Id") REFERENCES "public"."McuSubSrc" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create index "idx_order_sub_src" to table: "McuOrderSubItem"
CREATE UNIQUE INDEX "idx_order_sub_src" ON "public"."McuOrderSubItem" ("McuSubSrc_Id", "McuOrderItem_Id");
@@ -0,0 +1,2 @@
-- Modify "McuOrder" table
ALTER TABLE "public"."McuOrder" ALTER COLUMN "McuUrgencyLevel_Code" TYPE character varying(15);
@@ -0,0 +1,17 @@
-- Create "Consultation" table
CREATE TABLE "public"."Consultation" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Case" character varying(2048) NULL,
"Solution" character varying(2048) NULL,
"Unit_Id" bigint NULL,
"Doctor_Id" bigint NULL,
"RepliedAt" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Consultation_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Consultation_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Consultation_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "Person" table
ALTER TABLE "public"."Person" ADD COLUMN "ResidentIdentityFileUrl" character varying(1024) NULL, ADD COLUMN "PassportFileUrl" character varying(1024) NULL, ADD COLUMN "DrivingLicenseFileUrl" character varying(1024) NULL, ADD COLUMN "FamilyIdentityFileUrl" character varying(1024) NULL;
@@ -0,0 +1,2 @@
-- Modify "Soapi" table
ALTER TABLE "public"."Soapi" ADD COLUMN "TypeCode" text NULL;
@@ -0,0 +1,2 @@
-- Modify "Soapi" table
ALTER TABLE "public"."Soapi" ALTER COLUMN "TypeCode" TYPE character varying(11);
@@ -0,0 +1,6 @@
-- Modify "MedicationItem" table
ALTER TABLE "public"."MedicationItem" ALTER COLUMN "Usage" TYPE character varying(255), ADD COLUMN "Frequency" integer NULL, ADD COLUMN "Dose" numeric NULL;
-- Modify "PrescriptionItem" table
ALTER TABLE "public"."PrescriptionItem" ALTER COLUMN "Usage" TYPE character varying(255), ADD COLUMN "Frequency" integer NULL, ADD COLUMN "Dose" numeric NULL;
-- Modify "MedicineMix" table
ALTER TABLE "public"."MedicineMix" ADD COLUMN "Uom_Code" character varying(10) NULL, ADD CONSTRAINT "fk_MedicineMix_Uom" FOREIGN KEY ("Uom_Code") REFERENCES "public"."Uom" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,4 @@
-- Rename a column from "CheckupCategory_Code" to "McuSrcCategory_Code"
ALTER TABLE "public"."McuSrc" RENAME COLUMN "CheckupCategory_Code" TO "McuSrcCategory_Code";
-- Modify "McuSrc" table
ALTER TABLE "public"."McuSrc" DROP CONSTRAINT "fk_McuSrc_CheckupCategory", ADD CONSTRAINT "fk_McuSrc_McuSrcCategory" FOREIGN KEY ("McuSrcCategory_Code") REFERENCES "public"."McuSrcCategory" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,2 @@
-- Modify "Division" table
ALTER TABLE "public"."Division" ALTER COLUMN "Parent_Id" TYPE integer, ADD CONSTRAINT "fk_Division_Childrens" FOREIGN KEY ("Parent_Id") REFERENCES "public"."Division" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,6 @@
-- Modify "Infra" table
ALTER TABLE "public"."Infra" ADD CONSTRAINT "fk_Infra_Childrens" FOREIGN KEY ("Parent_Id") REFERENCES "public"."Infra" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Modify "DeviceOrder" table
ALTER TABLE "public"."DeviceOrder" ADD COLUMN "Doctor_Id" bigint NULL, ADD CONSTRAINT "fk_DeviceOrder_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Modify "MaterialOrder" table
ALTER TABLE "public"."MaterialOrder" ADD COLUMN "Doctor_Id" bigint NULL, ADD CONSTRAINT "fk_MaterialOrder_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,24 @@
-- Modify "Person" table
ALTER TABLE "public"."Person" ADD COLUMN "Nationality" text NULL;
-- Create "Chemo" table
CREATE TABLE "public"."Chemo" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Status_Code" text NULL,
"VerifiedAt" timestamptz NULL,
"VerifiedBy_User_Id" bigint NULL,
"SrcUnit_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Chemo_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Chemo_SrcUnit" FOREIGN KEY ("SrcUnit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Chemo_VerifiedBy" FOREIGN KEY ("VerifiedBy_User_Id") REFERENCES "public"."User" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Rename a column from "Unit_Id" to "DstUnit_Id"
ALTER TABLE "public"."Consultation" RENAME COLUMN "Unit_Id" TO "DstUnit_Id";
-- Rename a column from "Doctor_Id" to "DstDoctor_Id"
ALTER TABLE "public"."Consultation" RENAME COLUMN "Doctor_Id" TO "DstDoctor_Id";
-- Modify "Consultation" table
ALTER TABLE "public"."Consultation" DROP CONSTRAINT "fk_Consultation_Doctor", DROP CONSTRAINT "fk_Consultation_Unit", DROP COLUMN "Case", ALTER COLUMN "Solution" TYPE character varying(10240), ADD COLUMN "Date" timestamptz NULL, ADD COLUMN "Problem" character varying(10240) NULL, ADD CONSTRAINT "fk_Consultation_DstDoctor" FOREIGN KEY ("DstDoctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION, ADD CONSTRAINT "fk_Consultation_DstUnit" FOREIGN KEY ("DstUnit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,2 @@
-- Modify "DivisionPosition" table
ALTER TABLE "public"."DivisionPosition" ADD COLUMN "Employee_Id" bigint NULL, ADD CONSTRAINT "fk_DivisionPosition_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,2 @@
-- Modify "Person" table
ALTER TABLE "public"."Person" ADD COLUMN "CommunicationIssueStatus" boolean NULL, ADD COLUMN "Disabillity" character varying(100) NULL;
@@ -0,0 +1,2 @@
-- Rename a column from "Disabillity" to "Disability"
ALTER TABLE "public"."Person" RENAME COLUMN "Disabillity" TO "Disability";
@@ -0,0 +1,2 @@
-- Modify "Patient" table
ALTER TABLE "public"."Patient" ADD COLUMN "NewBornStatus" boolean NULL;
@@ -0,0 +1,2 @@
-- Modify "PersonAddress" table
ALTER TABLE "public"."PersonAddress" ADD COLUMN "PostalCode" character varying(6) NULL;
@@ -0,0 +1,12 @@
-- Create "Midwife" table
CREATE TABLE "public"."Midwife" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Employee_Id" bigint NULL,
"IHS_Number" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_Midwife_IHS_Number" UNIQUE ("IHS_Number"),
CONSTRAINT "fk_Midwife_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "DivisionPosition" table
ALTER TABLE "public"."DivisionPosition" ADD COLUMN "HeadStatus" boolean NULL;
@@ -0,0 +1,2 @@
-- Modify "Infra" table
ALTER TABLE "public"."Infra" ALTER COLUMN "InfraGroup_Code" TYPE character varying(15);
@@ -0,0 +1,9 @@
-- Create "PostalCode" table
CREATE TABLE "public"."PostalCode" (
"Id" bigserial NOT NULL,
"Code" character varying(5) NULL,
"Village_Code" character varying(10) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_PostalCode_Code" UNIQUE ("Code"),
CONSTRAINT "fk_Village_PostalCodes" FOREIGN KEY ("Village_Code") REFERENCES "public"."Village" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,8 @@
-- Modify "Regency" table
ALTER TABLE "public"."Regency" DROP CONSTRAINT "fk_Province_Regencies", ALTER COLUMN "Id" TYPE bigint, ADD CONSTRAINT "fk_Regency_Province" FOREIGN KEY ("Province_Code") REFERENCES "public"."Province" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Modify "District" table
ALTER TABLE "public"."District" DROP CONSTRAINT "fk_Regency_Districts", ADD CONSTRAINT "fk_District_Regency" FOREIGN KEY ("Regency_Code") REFERENCES "public"."Regency" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Modify "Village" table
ALTER TABLE "public"."Village" DROP CONSTRAINT "fk_District_Villages", ADD CONSTRAINT "fk_Village_District" FOREIGN KEY ("District_Code") REFERENCES "public"."District" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Modify "PostalCode" table
ALTER TABLE "public"."PostalCode" DROP CONSTRAINT "fk_Village_PostalCodes", ADD CONSTRAINT "fk_PostalCode_Village" FOREIGN KEY ("Village_Code") REFERENCES "public"."Village" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,6 @@
-- Modify "Person" table
ALTER TABLE "public"."Person" ADD CONSTRAINT "fk_Person_BirthRegency" FOREIGN KEY ("BirthRegency_Code") REFERENCES "public"."Regency" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Rename a column from "PostalCode" to "PostalCode_Code"
ALTER TABLE "public"."PersonAddress" RENAME COLUMN "PostalCode" TO "PostalCode_Code";
-- Modify "PersonAddress" table
ALTER TABLE "public"."PersonAddress" ADD CONSTRAINT "fk_PersonAddress_PostalCode" FOREIGN KEY ("PostalCode_Code") REFERENCES "public"."PostalCode" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,15 @@
-- Create "PostalRegion" table
CREATE TABLE "public"."PostalRegion" (
"Id" bigserial NOT NULL,
"Village_Code" character varying(10) NULL,
"Code" character varying(5) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_PostalRegion_Code" UNIQUE ("Code"),
CONSTRAINT "fk_PostalRegion_Village" FOREIGN KEY ("Village_Code") REFERENCES "public"."Village" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Rename a column from "PostalCode_Code" to "PostalRegion_Code"
ALTER TABLE "public"."PersonAddress" RENAME COLUMN "PostalCode_Code" TO "PostalRegion_Code";
-- Modify "PersonAddress" table
ALTER TABLE "public"."PersonAddress" DROP CONSTRAINT "fk_PersonAddress_PostalCode", ADD COLUMN "LocationType_Code" character varying(10) NULL, ADD CONSTRAINT "fk_PersonAddress_PostalRegion" FOREIGN KEY ("PostalRegion_Code") REFERENCES "public"."PostalRegion" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Drop "PostalCode" table
DROP TABLE "public"."PostalCode";
@@ -0,0 +1,2 @@
-- Modify "PersonAddress" table
ALTER TABLE "public"."PersonAddress" ADD CONSTRAINT "fk_PersonAddress_Village" FOREIGN KEY ("Village_Code") REFERENCES "public"."Village" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,14 @@
-- Create "CheckoutPolies" table
CREATE TABLE "public"."CheckoutPolies" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Unit_Id" integer NULL,
"Doctor_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_CheckoutPolies_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_CheckoutPolies_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_CheckoutPolies_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" ALTER COLUMN "DischargeMethod_Code" TYPE character varying(16);
@@ -0,0 +1,16 @@
-- Create "InternalReference" table
CREATE TABLE "public"."InternalReference" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Unit_Id" integer NULL,
"Doctor_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_InternalReference_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_InternalReference_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_InternalReference_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Drop "CheckoutPolies" table
DROP TABLE "public"."CheckoutPolies";
@@ -0,0 +1,36 @@
-- Create "VClaimSepHist" table
CREATE TABLE "public"."VClaimSepHist" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"RequestPayload" text NULL,
"ResponseBody" text NULL,
"Message" text NULL,
PRIMARY KEY ("Id")
);
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" ADD COLUMN "PaymentMethod_Code" character varying(10) NULL, ADD COLUMN "InsuranceCompany_Id" bigint NULL, ADD COLUMN "Member_Number" character varying(20) NULL, ADD COLUMN "Ref_Number" character varying(20) NULL, ADD COLUMN "Trx_Number" character varying(20) NULL, ADD COLUMN "Adm_Employee_Id" bigint NULL, ADD CONSTRAINT "uni_Encounter_Member_Number" UNIQUE ("Member_Number"), ADD CONSTRAINT "uni_Encounter_Ref_Number" UNIQUE ("Ref_Number"), ADD CONSTRAINT "uni_Encounter_Trx_Number" UNIQUE ("Trx_Number"), ADD CONSTRAINT "fk_Encounter_Adm_Employee" FOREIGN KEY ("Adm_Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION, ADD CONSTRAINT "fk_Encounter_InsuranceCompany" FOREIGN KEY ("InsuranceCompany_Id") REFERENCES "public"."InsuranceCompany" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Create "VClaimSep" table
CREATE TABLE "public"."VClaimSep" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Number" character varying(19) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_VClaimSep_Number" UNIQUE ("Number"),
CONSTRAINT "fk_Encounter_VclaimSep" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "VClaimSepPrint" table
CREATE TABLE "public"."VClaimSepPrint" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"VclaimSep_Number" character varying(19) NULL,
"Counter" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_VClaimSepPrint_VclaimSep" FOREIGN KEY ("VclaimSep_Number") REFERENCES "public"."VClaimSep" ("Number") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,16 @@
-- Create "VclaimSep" table
CREATE TABLE "public"."VclaimSep" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Number" character varying(19) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_VclaimSep_Number" UNIQUE ("Number"),
CONSTRAINT "fk_Encounter_VclaimSep" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Modify "VClaimSepPrint" table
ALTER TABLE "public"."VClaimSepPrint" DROP CONSTRAINT "fk_VClaimSepPrint_VclaimSep", ADD CONSTRAINT "fk_VClaimSepPrint_VclaimSep" FOREIGN KEY ("VclaimSep_Number") REFERENCES "public"."VclaimSep" ("Number") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Drop "VClaimSep" table
DROP TABLE "public"."VClaimSep";
@@ -0,0 +1,26 @@
-- Create "VclaimSepHist" table
CREATE TABLE "public"."VclaimSepHist" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"RequestPayload" text NULL,
"ResponseBody" text NULL,
"Message" text NULL,
PRIMARY KEY ("Id")
);
-- Create "VclaimSepPrint" table
CREATE TABLE "public"."VclaimSepPrint" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"VclaimSep_Number" character varying(19) NULL,
"Counter" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_VclaimSepPrint_VclaimSep" FOREIGN KEY ("VclaimSep_Number") REFERENCES "public"."VclaimSep" ("Number") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Drop "VClaimSepHist" table
DROP TABLE "public"."VClaimSepHist";
-- Drop "VClaimSepPrint" table
DROP TABLE "public"."VClaimSepPrint";
@@ -0,0 +1,2 @@
-- Modify "Chemo" table
ALTER TABLE "public"."Chemo" ADD COLUMN "ClassCode" text NULL;
@@ -0,0 +1,2 @@
-- Rename a column from "ClassCode" to "Class_Code"
ALTER TABLE "public"."Chemo" RENAME COLUMN "ClassCode" TO "Class_Code";
@@ -0,0 +1,17 @@
-- Create "PersonInsurance" table
CREATE TABLE "public"."PersonInsurance" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Person_Id" bigint NULL,
"InsuranceCompany_Id" bigint NULL,
"Ref_Number" character varying(20) NULL,
"DefaultStatus" boolean NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_PersonInsurance_Ref_Number" UNIQUE ("Ref_Number"),
CONSTRAINT "fk_PersonInsurance_InsuranceCompany" FOREIGN KEY ("InsuranceCompany_Id") REFERENCES "public"."InsuranceCompany" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Person_Insurances" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create index "idx_person_insurance" to table: "PersonInsurance"
CREATE UNIQUE INDEX "idx_person_insurance" ON "public"."PersonInsurance" ("Person_Id", "DefaultStatus");
@@ -0,0 +1,54 @@
-- Create "AmbulanceTransportReq" table
CREATE TABLE "public"."AmbulanceTransportReq" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Patient_Id" bigint NULL,
"Diagnoses" character varying(1024) NULL,
"RequestData" timestamptz NULL,
"UsageDate" timestamptz NULL,
"Address" character varying(100) NULL,
"RtRw" character varying(10) NULL,
"Province_Code" character varying(2) NULL,
"Regency_Code" character varying(4) NULL,
"District_Code" character varying(6) NULL,
"Village_Code" character varying(10) NULL,
"Facility_Code" character varying(10) NULL,
"Needs_Code" character varying(10) NULL,
"Contact_Name" character varying(100) NULL,
"Contact_Relationship_Code" character varying(10) NULL,
"Contact_PhoneNumber" character varying(20) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_AmbulanceTransportReq_District" FOREIGN KEY ("District_Code") REFERENCES "public"."District" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_AmbulanceTransportReq_Patient" FOREIGN KEY ("Patient_Id") REFERENCES "public"."Patient" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_AmbulanceTransportReq_Province" FOREIGN KEY ("Province_Code") REFERENCES "public"."Province" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_AmbulanceTransportReq_Regency" FOREIGN KEY ("Regency_Code") REFERENCES "public"."Regency" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_AmbulanceTransportReq_Village" FOREIGN KEY ("Village_Code") REFERENCES "public"."Village" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "Vehicle" table
CREATE TABLE "public"."Vehicle" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Type_Code" text NULL,
"PoliceNumber" text NULL,
"FrameNumber" text NULL,
"RegNumber" text NULL,
"AvailableStatus" boolean NULL,
PRIMARY KEY ("Id")
);
-- Create "VehicleHist" table
CREATE TABLE "public"."VehicleHist" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Vehicle_Id" bigint NULL,
"Date" timestamptz NULL,
"Data" text NULL,
"Crud_Code" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_VehicleHist_Vehicle" FOREIGN KEY ("Vehicle_Id") REFERENCES "public"."Vehicle" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "MedicalActionSrc" table
ALTER TABLE "public"."MedicalActionSrc" ADD COLUMN "Type_Code" character varying(20) NULL;
@@ -0,0 +1,2 @@
-- Modify "Item" table
ALTER TABLE "public"."Item" ALTER COLUMN "ItemGroup_Code" TYPE character varying(15);
@@ -0,0 +1,4 @@
-- Modify "Employee" table
ALTER TABLE "public"."Employee" ADD COLUMN "Position_Code" character varying(20) NULL;
-- Rename a column from "Position_Code" to "ContractPosition_Code"
ALTER TABLE "public"."User" RENAME COLUMN "Position_Code" TO "ContractPosition_Code";
@@ -0,0 +1,13 @@
-- Create "Intern" table
CREATE TABLE "public"."Intern" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Person_Id" bigint NULL,
"Position_Code" character varying(20) NULL,
"User_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Intern_Person" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Intern_User" FOREIGN KEY ("User_Id") REFERENCES "public"."User" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,15 @@
-- -- Rename a column from "Position_Code" to "ContractPosition_Code"
-- ALTER TABLE "public"."User" RENAME COLUMN "Position_Code" TO "ContractPosition_Code";
-- -- Create "Intern" table
-- CREATE TABLE "public"."Intern" (
-- "Id" bigserial NOT NULL,
-- "CreatedAt" timestamptz NULL,
-- "UpdatedAt" timestamptz NULL,
-- "DeletedAt" timestamptz NULL,
-- "Person_Id" bigint NULL,
-- "Position_Code" character varying(20) NULL,
-- "User_Id" bigint NULL,
-- PRIMARY KEY ("Id"),
-- CONSTRAINT "fk_Intern_Person" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
-- CONSTRAINT "fk_Intern_User" FOREIGN KEY ("User_Id") REFERENCES "public"."User" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
-- );
@@ -0,0 +1,2 @@
-- Rename a column from "RequestData" to "RequestDate"
ALTER TABLE "public"."AmbulanceTransportReq" RENAME COLUMN "RequestData" TO "RequestDate";
@@ -0,0 +1,60 @@
-- Create "DeathCause" table
CREATE TABLE "public"."DeathCause" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NOT NULL,
"Value" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_DeathCause_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "EduAssessment" table
CREATE TABLE "public"."EduAssessment" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NOT NULL,
"GeneralEdus" text NULL,
"SpecialEdus" text NULL,
"Assessments" text NULL,
"Plan" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_EduAssessment_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "GeneralConsent" table
CREATE TABLE "public"."GeneralConsent" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NOT NULL,
"Value" text NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_GeneralConsent_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "TherapyProtocol" table
CREATE TABLE "public"."TherapyProtocol" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NOT NULL,
"Doctor_Id" bigint NULL,
"Anamnesis" character varying(2048) NULL,
"MedicalDiagnoses" text NULL,
"FunctionDiagnoses" text NULL,
"Procedures" text NULL,
"SupportingExams" character varying(2048) NULL,
"Instruction" character varying(2048) NULL,
"Evaluation" character varying(2048) NULL,
"WorkCauseStatus" character varying(2048) NULL,
"Frequency" bigint NULL,
"IntervalUnit_Code" character varying(10) NULL,
"Duration" bigint NULL,
"DurationUnit_Code" character varying(10) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_TherapyProtocol_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_TherapyProtocol_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,8 @@
-- Rename a column from "DischargeMethod_Code" to "Discharge_Method_Code"
ALTER TABLE "public"."Encounter" RENAME COLUMN "DischargeMethod_Code" TO "Discharge_Method_Code";
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" ADD COLUMN "Discharge_Date" timestamptz NULL;
-- Modify "DeathCause" table
ALTER TABLE "public"."DeathCause" DROP CONSTRAINT "fk_DeathCause_Encounter", ADD CONSTRAINT "fk_Encounter_DeathCause" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Modify "InternalReference" table
ALTER TABLE "public"."InternalReference" DROP CONSTRAINT "fk_InternalReference_Encounter", ADD CONSTRAINT "fk_Encounter_InternalReferences" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,90 @@
-- Create "AdmEmployeeHist" table
CREATE TABLE "public"."AdmEmployeeHist" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Employee_Id" bigint NULL,
"StartedAt" timestamptz NULL,
"FinishedAt" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_AdmEmployeeHist_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "InstallationPosition" table
CREATE TABLE "public"."InstallationPosition" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Installation_Id" integer NOT NULL,
"Code" character varying(10) NOT NULL,
"Name" character varying(30) NOT NULL,
"HeadStatus" boolean NULL,
"Employee_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_InstallationPosition_Code" UNIQUE ("Code"),
CONSTRAINT "fk_InstallationPosition_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_InstallationPosition_Installation" FOREIGN KEY ("Installation_Id") REFERENCES "public"."Installation" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "ResponsibleDoctorHist" table
CREATE TABLE "public"."ResponsibleDoctorHist" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Doctor_Id" bigint NULL,
"StartedAt" timestamptz NULL,
"FinishedAt" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_ResponsibleDoctorHist_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "SpecialistPosition" table
CREATE TABLE "public"."SpecialistPosition" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Specialist_Id" integer NOT NULL,
"Code" character varying(10) NOT NULL,
"Name" character varying(30) NOT NULL,
"HeadStatus" boolean NULL,
"Employee_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_SpecialistPosition_Code" UNIQUE ("Code"),
CONSTRAINT "fk_SpecialistPosition_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_SpecialistPosition_Specialist" FOREIGN KEY ("Specialist_Id") REFERENCES "public"."Specialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "SubspecialistPosition" table
CREATE TABLE "public"."SubspecialistPosition" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Subspecialist_Id" integer NOT NULL,
"Code" character varying(10) NOT NULL,
"Name" character varying(30) NOT NULL,
"HeadStatus" boolean NULL,
"Employee_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_SubspecialistPosition_Code" UNIQUE ("Code"),
CONSTRAINT "fk_SubspecialistPosition_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_SubspecialistPosition_Subspecialist" FOREIGN KEY ("Subspecialist_Id") REFERENCES "public"."Subspecialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "UnitPosition" table
CREATE TABLE "public"."UnitPosition" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Unit_Id" integer NOT NULL,
"Code" character varying(10) NOT NULL,
"Name" character varying(30) NOT NULL,
"HeadStatus" boolean NULL,
"Employee_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_UnitPosition_Code" UNIQUE ("Code"),
CONSTRAINT "fk_UnitPosition_Employee" FOREIGN KEY ("Employee_Id") REFERENCES "public"."Employee" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_UnitPosition_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,12 @@
-- Modify "Doctor" table
ALTER TABLE "public"."Doctor" ADD COLUMN "Code" character varying(20) NULL, ADD CONSTRAINT "uni_Doctor_Code" UNIQUE ("Code");
-- Modify "Laborant" table
ALTER TABLE "public"."Laborant" ADD COLUMN "Code" character varying(20) NULL, ADD CONSTRAINT "uni_Laborant_Code" UNIQUE ("Code");
-- Modify "Midwife" table
ALTER TABLE "public"."Midwife" ADD COLUMN "Code" character varying(20) NULL, ADD CONSTRAINT "uni_Midwife_Code" UNIQUE ("Code");
-- Modify "Nurse" table
ALTER TABLE "public"."Nurse" ADD COLUMN "Code" character varying(20) NULL, ADD CONSTRAINT "uni_Nurse_Code" UNIQUE ("Code");
-- Modify "Nutritionist" table
ALTER TABLE "public"."Nutritionist" ADD COLUMN "Code" character varying(20) NULL, ADD CONSTRAINT "uni_Nutritionist_Code" UNIQUE ("Code");
-- Modify "Pharmacist" table
ALTER TABLE "public"."Pharmacist" ADD COLUMN "Code" character varying(20) NULL, ADD CONSTRAINT "uni_Pharmacist_Code" UNIQUE ("Code");
@@ -0,0 +1,2 @@
-- Modify "Employee" table
ALTER TABLE "public"."Employee" DROP COLUMN "Division_Code";
@@ -0,0 +1,4 @@
-- Modify "Patient" table
ALTER TABLE "public"."Patient" ADD COLUMN "RegisteredBy_User_Name" character varying(100) NULL;
-- Modify "Person" table
ALTER TABLE "public"."Person" ADD COLUMN "Confidence" character varying(512) NULL, ADD COLUMN "MaritalStatus_Code" character varying(10) NULL;
@@ -0,0 +1,12 @@
-- Create "VclaimMember" table
CREATE TABLE "public"."VclaimMember" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"CardNumber" character varying(20) NULL,
"Person_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_VclaimMember_CardNumber" UNIQUE ("CardNumber"),
CONSTRAINT "fk_Person_VclaimMember" FOREIGN KEY ("Person_Id") REFERENCES "public"."Person" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "Encounter" table
ALTER TABLE "public"."Encounter" ADD COLUMN "StartedAt" timestamptz NULL, ADD COLUMN "FinishedAt" timestamptz NULL, ADD COLUMN "RefType_Code" text NULL, ADD COLUMN "NewStatus" boolean NULL;
@@ -0,0 +1,2 @@
-- Modify "Patient" table
ALTER TABLE "public"."Patient" ADD COLUMN "Parent_Number" character varying(15) NULL, ADD CONSTRAINT "fk_Patient_Parent" FOREIGN KEY ("Parent_Number") REFERENCES "public"."Patient" ("Number") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,6 @@
-- Modify "McuOrder" table
ALTER TABLE "public"."McuOrder" ADD COLUMN "Scope_Code" character varying(10) NULL;
-- Create index "idx_McuOrder_Scope_Code" to table: "McuOrder"
CREATE INDEX "idx_McuOrder_Scope_Code" ON "public"."McuOrder" ("Scope_Code");
-- Create index "idx_McuSrcCategory_Scope_Code" to table: "McuSrcCategory"
CREATE INDEX "idx_McuSrcCategory_Scope_Code" ON "public"."McuSrcCategory" ("Scope_Code");
@@ -0,0 +1,2 @@
-- Rename a column from "McuUrgencyLevel_Code" to "UrgencyLevel_Code"
ALTER TABLE "public"."McuOrder" RENAME COLUMN "McuUrgencyLevel_Code" TO "UrgencyLevel_Code";
@@ -0,0 +1,17 @@
-- Create "ControlLetter" table
CREATE TABLE "public"."ControlLetter" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Unit_Id" bigint NULL,
"Specialist_Id" bigint NULL,
"Subspecialist_Id" bigint NULL,
"Date" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_ControlLetter_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_ControlLetter_Specialist" FOREIGN KEY ("Specialist_Id") REFERENCES "public"."Specialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_ControlLetter_Subspecialist" FOREIGN KEY ("Subspecialist_Id") REFERENCES "public"."Subspecialist" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_ControlLetter_Unit" FOREIGN KEY ("Unit_Id") REFERENCES "public"."Unit" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "Chemo" table
ALTER TABLE "public"."Chemo" DROP COLUMN "Class_Code", ADD COLUMN "Bed" character varying(1024) NULL, ADD COLUMN "Needs" character varying(2048) NULL;
@@ -0,0 +1,19 @@
-- Modify "Ambulatory" table
ALTER TABLE "public"."Ambulatory" DROP CONSTRAINT "fk_Ambulatory_Encounter", ADD COLUMN "VisitMode_Code" text NULL, ADD CONSTRAINT "fk_Encounter_Ambulatory" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Modify "Emergency" table
ALTER TABLE "public"."Emergency" DROP CONSTRAINT "fk_Emergency_Encounter", ADD CONSTRAINT "fk_Encounter_Emergency" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Modify "Inpatient" table
ALTER TABLE "public"."Inpatient" DROP CONSTRAINT "fk_Inpatient_Encounter", ADD CONSTRAINT "fk_Encounter_Inpatient" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
-- Create "Rehab" table
CREATE TABLE "public"."Rehab" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Doctor_Id" bigint NULL,
"AllocatedVisitCount" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_Rehab_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_Rehab_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "ControlLetter" table
ALTER TABLE "public"."ControlLetter" ADD COLUMN "Doctor_Id" bigint NULL, ADD CONSTRAINT "fk_ControlLetter_Doctor" FOREIGN KEY ("Doctor_Id") REFERENCES "public"."Doctor" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION;
@@ -0,0 +1,17 @@
-- Create "ChemoProtocol" table
CREATE TABLE "public"."ChemoProtocol" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Encounter_Id" bigint NULL,
"Patient_Weight" numeric NULL,
"Patient_Height" numeric NULL,
"Diagnoses" text NULL,
"Duration" bigint NULL,
"DurationUnit_Code" character varying(10) NULL,
"StartDate" timestamptz NULL,
"EndDate" timestamptz NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_ChemoProtocol_Encounter" FOREIGN KEY ("Encounter_Id") REFERENCES "public"."Encounter" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,38 @@
-- Create "AntibioticSrcCategory" table
CREATE TABLE "public"."AntibioticSrcCategory" (
"Id" serial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(50) NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_AntibioticSrcCategory_Code" UNIQUE ("Code")
);
-- Create "AntibioticSrc" table
CREATE TABLE "public"."AntibioticSrc" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"Code" character varying(20) NULL,
"Name" character varying(50) NULL,
"AntibioticSrcCategory_Code" character varying(20) NULL,
"Item_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "uni_AntibioticSrc_Code" UNIQUE ("Code"),
CONSTRAINT "fk_AntibioticSrc_AntibioticSrcCategory" FOREIGN KEY ("AntibioticSrcCategory_Code") REFERENCES "public"."AntibioticSrcCategory" ("Code") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_AntibioticSrc_Item" FOREIGN KEY ("Item_Id") REFERENCES "public"."Item" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
-- Create "AntibioticInUse" table
CREATE TABLE "public"."AntibioticInUse" (
"Id" bigserial NOT NULL,
"CreatedAt" timestamptz NULL,
"UpdatedAt" timestamptz NULL,
"DeletedAt" timestamptz NULL,
"McuOrder_Id" bigint NULL,
"AntibioticSrc_Id" bigint NULL,
PRIMARY KEY ("Id"),
CONSTRAINT "fk_AntibioticInUse_AntibioticSrc" FOREIGN KEY ("AntibioticSrc_Id") REFERENCES "public"."AntibioticSrc" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION,
CONSTRAINT "fk_AntibioticInUse_McuOrder" FOREIGN KEY ("McuOrder_Id") REFERENCES "public"."McuOrder" ("Id") ON UPDATE NO ACTION ON DELETE NO ACTION
);
@@ -0,0 +1,2 @@
-- Modify "AntibioticSrc" table
ALTER TABLE "public"."AntibioticSrc" DROP COLUMN "Item_Id";
Loaded 100 of 1518 files, more files were not shown because too many files have changed in this diff. Show more