Commit Graph

136 Commits

Author SHA1 Message Date
e7b484e1d4 feat(MED-168): move analysis result element mapping to shared 2025-09-19 15:28:41 +03:00
08b27b022f feat(MED-168): move toArray to shared utils 2025-09-19 15:28:23 +03:00
d99016aa5e feat(MED-168): keep medipost response data unique, no need for duplicate rows 2025-09-18 16:41:05 +03:00
8a7d88d645 feat(MED-161): no need for default value as it's only used in one place 2025-09-17 11:28:32 +03:00
5c4831c5af feat(MED-161): add extra log 2025-09-17 11:19:27 +03:00
4302ddb90e feat(MED-161): add jest for service tests 2025-09-17 11:17:50 +03:00
bfadf56173 feat(MED-161): update analysis results view 2025-09-17 11:17:36 +03:00
2019c2c1fc feat(MED-161): update sync private message 2025-09-17 11:17:30 +03:00
ecc8c2b982 feat(MED-161): update results sync validations 2025-09-17 11:17:23 +03:00
b729ad9ffa feat(MED-161): add feature flag for delete private messages 2025-09-17 11:17:15 +03:00
4560d2df1d feat(MED-161): use shared types 2025-09-17 11:17:08 +03:00
e5822fd55d feat(MED-161): improve query 2025-09-17 11:16:18 +03:00
46774b286e feat(MED-161): return with type in getAnalysisOrder 2025-09-17 11:16:00 +03:00
7af6aa438e feat(MED-161): store more fields about medipost analysis response 2025-09-17 11:15:55 +03:00
cee37178df feat(MED-161): create analysis-order service 2025-09-17 11:15:44 +03:00
000cad7f05 feat(MED-161): move medipost services to medipost package 2025-09-17 11:15:26 +03:00
0d08592a9a feat(MED-161): move medipost publicmessage logic to separate service 2025-09-17 11:15:16 +03:00
19631fb2db feat(MED-161): delete unused functions 2025-09-17 11:15:08 +03:00
a788e8b587 feat(MED-161): move medipost privatemessage logic to separate service 2025-09-17 11:14:54 +03:00
33a6c92841 feat(MED-161): create medipost common service 2025-09-17 11:14:45 +03:00
a229ab4d31 feat(MED-161): move medipost xml validate to separate service 2025-09-17 11:14:33 +03:00
74c176912b fix sending multiple analysis elements for same material group with different <Proov> data 2025-09-12 12:46:46 +03:00
Helena
99e62b91a5 use analysis order id as valis tellimuse id (#92)
* use order analysis id as valis tellimuse id

* send analysis order id in xml
2025-09-10 16:54:12 +03:00
0c764f82e5 add missing i18n schema for page 2025-09-10 07:10:06 +03:00
312027b9ed avoid too many duplicate requireUserInServerComponent requests for each page+layout 2025-09-10 06:33:44 +03:00
0aea6b80d4 sent time in medipost xml can be different from order creation time 2025-09-10 06:31:49 +03:00
95452de88b prefer using providers conf from supabase instead of env 2025-09-10 06:31:23 +03:00
0f16c6552f Merge pull request #84 from MR-medreport/keycloak-improvements-0909
improve namings; improve logging for orders without analysis packages
2025-09-09 11:55:43 +00:00
7d208b41f2 update naming to be clearer 2025-09-09 14:01:19 +03:00
Helena
ca13e9e30a MED-82: add patient notification emails (#74)
* MED-82: add patient notification emails

* remove console.log

* clean up

* remove extra paragraph from email
2025-09-09 10:37:22 +03:00
fd94320295 use analysisElementMedusaProductIds from order product selected variant if it exists 2025-09-09 09:56:57 +03:00
596d0e9eee fix missing month for DoB in medipost xml 2025-09-09 09:56:47 +03:00
1d641211b6 update for new type 2025-09-09 09:56:44 +03:00
06154f24bf fix: deduplicate specimen elements in medipost XML generation
- Fix duplicate <Proov> elements when multiple analysis elements use same material type
- Ensure analysis elements reference correct specimen order numbers
- Move XML composition logic to separate service for better separation of concerns
2025-09-09 09:56:39 +03:00
f00899c456 move medipost xml to separate service to be unit tested 2025-09-09 09:56:34 +03:00
3bdc1cfefc update personal code util 2025-09-09 09:56:19 +03:00
0081e8948b move most isikukood.js usage to utils 2025-09-09 09:56:03 +03:00
57a998d215 fix NaN for bmi when divide-by-zero 2025-09-08 01:02:42 +03:00
f01829de96 update keycloak signup / login 2025-09-08 01:02:10 +03:00
6495d1c4a3 fix toTitleCase 2025-09-08 00:58:02 +03:00
c08fe26b36 remove comments from order xml 2025-09-05 15:13:14 +03:00
2435e6f113 update medipost order xml for live 2025-09-05 15:09:27 +03:00
6e9cde6b95 medusa product can have either analysiselement or analysis originalId 2025-09-04 13:20:09 +03:00
Helena
9122acc89f MED-151: add profile view and working smoking dashboard card (#71)
* MED-151: add profile view and working smoking dashboard card

* update zod

* move some components to shared

* move some components to shared

* remove console.logs

* remove unused password form components

* only check null for variant

* use pathsconfig
2025-09-04 12:17:54 +03:00
b046b6ab16 use recipient from env as it's different in live 2025-09-03 13:31:41 +03:00
Helena
3498406a0c MED-88: add doctor email notifications (#65)
* MED-88: add doctor email notifications

* add logging, send open jobs notification on partial analysis response

* update permissions

* fix import, permissions

* casing, let email be null

* unused import
2025-09-02 12:14:01 +03:00
d83319a094 Merge branch 'main' into MED-85 2025-08-29 11:45:36 +03:00
Helena
5cf29447b3 add email sender 2025-08-28 18:03:28 +03:00
Helena
7d1400fba6 log email result and subject 2025-08-28 17:30:32 +03:00
Helena
5ee161f482 remove html length limit from emails 2025-08-28 16:47:27 +03:00