wip
This commit is contained in:
5
local-sync/listofproductids.js
Normal file
5
local-sync/listofproductids.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const list = ["prod_01K2JQF451ZKVV97FMX10T6DG1","prod_01K2JQFECMKR1CGDYQV81HB2W1","prod_01K2JQCZKZRZWD71CRN84V84NJ","prod_01K2JQD1AWQH7VHGPS4BA4028A","prod_01K2JQD321BMZTP7R4ZXEJNR17","prod_01K2JQD4RCRGERJRY8JQB7VWMT","prod_01K2JQD6F2VDANADSB5HY6WB6M","prod_01K2JQD85JGDRE0EJSQXGB74SE","prod_01K2JQD9VG391PZ02ZS57Y72PC","prod_01K2JQDBHYMESBB332PHF5TNTB", "prod_01K2JQG1EK4VTFH4GR2ZVB1RK6", "prod_01K2JQH0AMN407P1234MJ64BZM"]
|
||||
|
||||
const list2 = ['prod_01K2JQF451ZKVV97FMX10T6DG1', 'prod_01K2JQFECMKR1CGDYQV81HB2W1', 'prod_01K2JQCZKZRZWD71CRN84V84NJ', 'prod_01K2JQD1AWQH7VHGPS4BA4028A', 'prod_01K2JQD321BMZTP7R4ZXEJNR17', 'prod_01K2JQD4RCRGERJRY8JQB7VWMT', 'prod_01K2JQD6F2VDANADSB5HY6WB6M', 'prod_01K2JQD85JGDRE0EJSQXGB74SE', 'prod_01K2JQD9VG391PZ02ZS57Y72PC', 'prod_01K2JQDBHYMESBB332PHF5TNTB', 'prod_01K2JQG1EK4VTFH4GR2ZVB1RK6', 'prod_01K2JQH0AMN407P1234MJ64BZM']
|
||||
|
||||
console.log(list2.map(a => `'${a}'`).join(', '));
|
||||
8
local-sync/local-order.http
Normal file
8
local-sync/local-order.http
Normal file
@@ -0,0 +1,8 @@
|
||||
function send_medipost_test_response() {
|
||||
curl -X POST "$HOSTNAME/api/order/medipost-test-response" \
|
||||
--header "x-jobs-api-key: $JOBS_API_TOKEN" \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{ "medusaOrderId": "'$MEDUSA_ORDER_ID'" }'
|
||||
}
|
||||
|
||||
#
|
||||
16
local-sync/syncinbrowser.js
Normal file
16
local-sync/syncinbrowser.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const SyncHelper = {
|
||||
async send() {
|
||||
await fetch('https://test.medreport.ee/api/order/medipost-test-response', {
|
||||
method: "POST",
|
||||
headers: { "x-jobs-api-key": "fd26ec26-70ed-11f0-9e95-431ac3b15a84", "content-type": "application/json" },
|
||||
body: JSON.stringify({ "medusaOrderId": "order_01K2F3KC87NTMZX04T3KDZAQ69" }),
|
||||
});
|
||||
},
|
||||
async sync() {
|
||||
await fetch('https://test.medreport.ee/api/job/sync-analysis-results', {
|
||||
method: "POST",
|
||||
headers: { "x-jobs-api-key": "fd26ec26-70ed-11f0-9e95-431ac3b15a84" },
|
||||
});
|
||||
},
|
||||
};
|
||||
SyncHelper.sync()
|
||||
157
local-sync/test-cron-setup.md
Normal file
157
local-sync/test-cron-setup.md
Normal file
@@ -0,0 +1,157 @@
|
||||
# Testing the Supabase Cron Job Setup
|
||||
|
||||
This guide provides step-by-step instructions to test your Supabase cron job configuration.
|
||||
|
||||
## Quick Setup Commands
|
||||
|
||||
### 1. Deploy the Migration (Option A)
|
||||
|
||||
If you want to use the migration approach:
|
||||
|
||||
```bash
|
||||
# Make sure you're connected to your Supabase project
|
||||
npm run supabase:deploy
|
||||
```
|
||||
|
||||
Then manually update the migration file with your actual values before deploying.
|
||||
|
||||
### 2. Manual Setup (Option B - Recommended)
|
||||
|
||||
Use the SQL Editor in Supabase Dashboard:
|
||||
|
||||
1. Go to your Supabase Dashboard → Database → SQL Editor
|
||||
2. Copy and paste the content from `supabase/sql/setup-cron-job.sql`
|
||||
3. Run the SQL to create the function
|
||||
4. Then execute the schedule function with your actual values:
|
||||
|
||||
```sql
|
||||
select schedule_sync_analysis_results_cron(
|
||||
'https://your-production-domain.com', -- Your actual API URL
|
||||
'your-actual-jobs-api-token' -- Your actual JOBS_API_TOKEN
|
||||
);
|
||||
```
|
||||
|
||||
## Testing Steps
|
||||
|
||||
### 1. Verify Extensions are Enabled
|
||||
|
||||
```sql
|
||||
select * from pg_extension where extname in ('pg_cron', 'pg_net');
|
||||
```
|
||||
|
||||
Expected result: Both `pg_cron` and `pg_net` should be listed.
|
||||
|
||||
### 2. Check Job is Scheduled
|
||||
|
||||
```sql
|
||||
select * from cron.job where jobname = 'sync-analysis-results-every-15-minutes';
|
||||
```
|
||||
|
||||
Expected result: One row with your job details, `active` should be `true`.
|
||||
|
||||
### 3. Test API Endpoint Manually
|
||||
|
||||
Before relying on the cron job, test your API endpoint manually:
|
||||
|
||||
```bash
|
||||
curl -X POST https://your-domain.com/api/job/sync-analysis-results \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "x-jobs-api-key: YOUR_JOBS_API_TOKEN" \
|
||||
-v
|
||||
```
|
||||
|
||||
Expected result: Status 200 with success message.
|
||||
|
||||
### 4. Monitor Job Execution
|
||||
|
||||
Wait for the job to run (up to 15 minutes), then check execution history:
|
||||
|
||||
```sql
|
||||
select
|
||||
job_run_details.*,
|
||||
job.jobname
|
||||
from cron.job_run_details
|
||||
join cron.job on job.jobid = job_run_details.jobid
|
||||
where job.jobname = 'sync-analysis-results-every-15-minutes'
|
||||
order by start_time desc
|
||||
limit 5;
|
||||
```
|
||||
|
||||
### 5. Check Application Logs
|
||||
|
||||
Monitor your application logs to see if the API calls are being received and processed successfully.
|
||||
|
||||
## Environment Variables Required
|
||||
|
||||
Make sure these environment variables are set in your production environment:
|
||||
|
||||
- `JOBS_API_TOKEN` - The API key for authenticating job requests
|
||||
- All other environment variables required by your `sync-analysis-results` handler
|
||||
|
||||
## Common Issues and Solutions
|
||||
|
||||
### Issue 1: Job Not Appearing
|
||||
|
||||
**Problem**: Job doesn't appear in `cron.job` table.
|
||||
|
||||
**Solution**:
|
||||
- Check if you have sufficient permissions
|
||||
- Ensure extensions are enabled
|
||||
- Try running the schedule function again
|
||||
|
||||
### Issue 2: Job Scheduled but Not Running
|
||||
|
||||
**Problem**: Job appears in table but no execution history.
|
||||
|
||||
**Solutions**:
|
||||
- Check if `active` is `true` in `cron.job` table
|
||||
- Verify cron schedule format is correct
|
||||
- Check Supabase logs for any cron-related errors
|
||||
|
||||
### Issue 3: HTTP Requests Failing
|
||||
|
||||
**Problem**: Job runs but API calls fail.
|
||||
|
||||
**Solutions**:
|
||||
- Test API endpoint manually with curl
|
||||
- Verify API URL is correct and accessible from Supabase
|
||||
- Check if `JOBS_API_TOKEN` is correct
|
||||
- Ensure your application is deployed and running
|
||||
|
||||
### Issue 4: Authentication Errors
|
||||
|
||||
**Problem**: Getting 401 Unauthorized responses.
|
||||
|
||||
**Solutions**:
|
||||
- Verify `x-jobs-api-key` header is included
|
||||
- Check that `JOBS_API_TOKEN` matches between cron job and application
|
||||
- Ensure the header name is exactly `x-jobs-api-key` (case-sensitive)
|
||||
|
||||
## Cleanup Commands
|
||||
|
||||
If you need to remove the cron job:
|
||||
|
||||
```sql
|
||||
-- Unschedule the job
|
||||
select cron.unschedule('sync-analysis-results-every-15-minutes');
|
||||
|
||||
-- Drop the helper function (optional)
|
||||
drop function if exists schedule_sync_analysis_results_cron(text, text);
|
||||
```
|
||||
|
||||
## Next Steps
|
||||
|
||||
Once the cron job is working:
|
||||
|
||||
1. Remove any old instrumentation.ts cron logic if it exists
|
||||
2. Monitor the job performance and adjust interval if needed
|
||||
3. Set up alerting for failed job executions
|
||||
4. Consider adding more detailed logging to your API endpoint
|
||||
|
||||
## Support
|
||||
|
||||
If you encounter issues:
|
||||
|
||||
1. Check the troubleshooting section in `docs/supabase-cron-setup.md`
|
||||
2. Review Supabase documentation for pg_cron and pg_net
|
||||
3. Contact your team for deployment-specific configuration details
|
||||
1090
local-sync/xmls/SendPrivateMessageToTervise_cURL.sh
Executable file
1090
local-sync/xmls/SendPrivateMessageToTervise_cURL.sh
Executable file
File diff suppressed because it is too large
Load Diff
138
local-sync/xmls/curl2.sh
Executable file
138
local-sync/xmls/curl2.sh
Executable file
@@ -0,0 +1,138 @@
|
||||
curl --location 'https://meditest.medisoft.ee:7443/Medipost/MedipostServlet' \
|
||||
--form 'Action="SendPrivateMessage";type=text/plain; charset=UTF-8' \
|
||||
--form 'User="trvurgtst";type=text/plain; charset=UTF-8' \
|
||||
--form 'Password="SRB48HZMV";type=text/plain; charset=UTF-8' \
|
||||
--form 'Receiver="trvurgtst";type=text/plain; charset=UTF-8' \
|
||||
--form 'MessageType="Tellimus";type=text/plain; charset=UTF-8' \
|
||||
--form 'Message="<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
<Saadetis xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"TellimusLOINC.xsd\">
|
||||
<Pais>
|
||||
<Pakett versioon=\"20\">OL</Pakett>
|
||||
<Saatja>trvurgtst</Saatja>
|
||||
<Saaja>trvurgtst</Saaja>
|
||||
<Aeg>2022-07-22 11:31:57</Aeg>
|
||||
<SaadetisId>234254234</SaadetisId>
|
||||
<Email>info@terviseuuringud.ee</Email>
|
||||
</Pais>
|
||||
|
||||
<Tellimus cito=\"EI\">
|
||||
<ValisTellimuseId>1288</ValisTellimuseId>
|
||||
|
||||
<\!--<TellijaAsutus>-->
|
||||
<Asutus tyyp=\"TELLIJA\">
|
||||
<AsutuseId>12702440</AsutuseId>
|
||||
<AsutuseNimi>Health Tests OÜ</AsutuseNimi>
|
||||
<AsutuseKood>TSU</AsutuseKood>
|
||||
<AllyksuseNimi/>
|
||||
<Telefon>+37256257117</Telefon>
|
||||
<Vald>0387</Vald>
|
||||
<Aadress>Valukoja 10, 11415 Tallinn</Aadress>
|
||||
</Asutus>
|
||||
|
||||
<\!--<TeostajaAsutus>-->
|
||||
<Asutus tyyp=\"TEOSTAJA\">
|
||||
<AsutuseId>12702440</AsutuseId>
|
||||
<AsutuseNimi>Health Tests OÜ</AsutuseNimi>
|
||||
<AsutuseKood>TSU</AsutuseKood>
|
||||
<AllyksuseNimi/>
|
||||
<Telefon>+37256257117</Telefon>
|
||||
<Vald>0387</Vald>
|
||||
<Aadress>Valukoja 10, 11415 Tallinn</Aadress>
|
||||
</Asutus>
|
||||
|
||||
<\!--<TellijaIsik>-->
|
||||
<Personal tyyp=\"TELLIJA\">
|
||||
<\!--Tervishoiutöötaja kood (OID: 1.3.6.1.4.1.28284.6.2.4.9)
|
||||
või Eesti isikukood (OID: 1.3.6.1.4.1.28284.6.2.2.1) -->
|
||||
<PersonalOID>1.3.6.1.4.1.28284.6.2.2.1</PersonalOID>
|
||||
<PersonalKood>D07907</PersonalKood>
|
||||
<PersonalPerekonnaNimi>Tsvetkov</PersonalPerekonnaNimi>
|
||||
<PersonalEesNimi>Eduard</PersonalEesNimi>
|
||||
<Telefon>+3725555000</Telefon>
|
||||
</Personal>
|
||||
|
||||
|
||||
<\!--<SisestajaIsik>-->
|
||||
<Personal tyyp=\"SISESTAJA\">
|
||||
<\!--Tervishoiutöötaja kood (OID: 1.3.6.1.4.1.28284.6.2.4.9)
|
||||
või Eesti isikukood (OID: 1.3.6.1.4.1.28284.6.2.2.1) -->
|
||||
<PersonalOID>1.3.6.1.4.1.28284.6.2.2.1</PersonalOID>
|
||||
<PersonalKood>D07907</PersonalKood>
|
||||
<PersonalPerekonnaNimi>Tsvetkov</PersonalPerekonnaNimi>
|
||||
<PersonalEesNimi>Eduard</PersonalEesNimi>
|
||||
</Personal>
|
||||
|
||||
|
||||
<TellijaMarkused>Siia tuleb tellija poolne märkus</TellijaMarkused>
|
||||
|
||||
<Patsient>
|
||||
<IsikukoodiOID>1.3.6.1.4.1.28284.6.2.2.1</IsikukoodiOID>
|
||||
<Isikukood>37907262736</Isikukood>
|
||||
<PerekonnaNimi>KIVIRÜÜT</PerekonnaNimi>
|
||||
<EesNimi>ARGO</EesNimi>
|
||||
<SynniAeg>1979-07-26</SynniAeg>
|
||||
<SuguOID>1.3.6.1.4.1.28284.6.2.3.16.2</SuguOID>
|
||||
<Sugu>M</Sugu>
|
||||
</Patsient>
|
||||
|
||||
<Konfidentsiaalsus>
|
||||
<PatsiendileOID>2.16.840.1.113883.5.25</PatsiendileOID>
|
||||
<Patsiendile>N</Patsiendile>
|
||||
<ArstileOID>1.3.6.1.4.1.28284.6.2.2.39.1</ArstileOID>
|
||||
<Arstile>N</Arstile>
|
||||
<EsindajaleOID>1.3.6.1.4.1.28284.6.2.2.37.1</EsindajaleOID>
|
||||
<Esindajale>N</Esindajale>
|
||||
</Konfidentsiaalsus>
|
||||
<Proov>
|
||||
<ProovinouIdOID>1.3.6.1.4.1.28284.6.2.4.100</ProovinouIdOID>
|
||||
<ProovinouId>ANI7570-16522287</ProovinouId>
|
||||
<MaterjaliTyypOID>1.3.6.1.4.1.28284.6.2.1.244.8</MaterjaliTyypOID>
|
||||
<MaterjaliTyyp>119297000</MaterjaliTyyp>
|
||||
<MaterjaliNimi>Veri</MaterjaliNimi>
|
||||
<Ribakood>16522287</Ribakood>
|
||||
<Jarjenumber>7570</Jarjenumber>
|
||||
<VotmisAeg>2022-06-13 08:53:00</VotmisAeg>
|
||||
</Proov>
|
||||
<Proov>
|
||||
<ProovinouIdOID>1.3.6.1.4.1.28284.6.2.4.100</ProovinouIdOID>
|
||||
<ProovinouId>ANI7571-16522288</ProovinouId>
|
||||
<MaterjaliTyypOID>1.3.6.1.4.1.28284.6.2.1.244.8</MaterjaliTyypOID>
|
||||
<MaterjaliTyyp>119297000</MaterjaliTyyp>
|
||||
<MaterjaliNimi>Veri</MaterjaliNimi>
|
||||
<Ribakood>16522288</Ribakood>
|
||||
<Jarjenumber>7571</Jarjenumber>
|
||||
<VotmisAeg>2022-06-13 08:53:00</VotmisAeg>
|
||||
</Proov>
|
||||
<UuringuGrupp>
|
||||
<UuringuGruppId>TL10</UuringuGruppId>
|
||||
<UuringuGruppNimi>Hematoloogilised uuringud</UuringuGruppNimi>
|
||||
<Uuring>
|
||||
<UuringuElement>
|
||||
<UuringIdOID>2.16.840.1.113883.6.1</UuringIdOID>
|
||||
<UuringId>57021-8</UuringId>
|
||||
<TLyhend>B-CBC-5Diff</TLyhend>
|
||||
<KNimetus>Hemogramm 5-osalise leukogrammiga</KNimetus>
|
||||
<UuringNimi>Hemogramm</UuringNimi>
|
||||
<TellijaUuringId>18327</TellijaUuringId>
|
||||
</UuringuElement>
|
||||
<ProoviJarjenumber>7570</ProoviJarjenumber>
|
||||
</Uuring>
|
||||
</UuringuGrupp>
|
||||
<UuringuGrupp>
|
||||
<UuringuGruppId>TL40</UuringuGruppId>
|
||||
<UuringuGruppNimi>Kliinilise keemia uuringud</UuringuGruppNimi>
|
||||
<Uuring>
|
||||
<UuringuElement>
|
||||
<UuringIdOID>2.16.840.1.113883.6.1</UuringIdOID>
|
||||
<UuringId>L-3757</UuringId>
|
||||
<TLyhend>B-HbA1c panel</TLyhend>
|
||||
<KNimetus>HbA1c paneel</KNimetus>
|
||||
<UuringNimi>HbA1c</UuringNimi>
|
||||
<TellijaUuringId>18349</TellijaUuringId>
|
||||
</UuringuElement>
|
||||
<ProoviJarjenumber>7571</ProoviJarjenumber>
|
||||
</Uuring>
|
||||
</UuringuGrupp>
|
||||
</Tellimus>
|
||||
</Saadetis>
|
||||
";type=text/xml; charset=UTF-8'
|
||||
98
local-sync/xmls/order6.xml
Normal file
98
local-sync/xmls/order6.xml
Normal file
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<Saadetis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="TellimusLOINC.xsd">
|
||||
<Pais>
|
||||
<Pakett versioon="20">OL</Pakett>
|
||||
|
||||
<Saatja>trvurgtst</Saatja>
|
||||
<Saaja>trvurgtst</Saaja>
|
||||
<Aeg>2025-08-04 03:30:15</Aeg>
|
||||
<SaadetisId>
|
||||
1</SaadetisId>
|
||||
<Email>argo@medreport.ee</Email>
|
||||
</Pais>
|
||||
<Tellimus cito="EI">
|
||||
<ValisTellimuseId>
|
||||
1</ValisTellimuseId>
|
||||
<!--<TellijaAsutus>-->
|
||||
<Asutus tyyp="TELLIJA">
|
||||
<AsutuseId>16381793</AsutuseId>
|
||||
<AsutuseNimi>MedReport
|
||||
OÜ</AsutuseNimi>
|
||||
<AsutuseKood>TSU</AsutuseKood>
|
||||
<Telefon>+37258871517</Telefon>
|
||||
</Asutus>
|
||||
|
||||
<!--<TeostajaAsutus>-->
|
||||
<Asutus tyyp="TEOSTAJA">
|
||||
<AsutuseId>11107913</AsutuseId>
|
||||
<AsutuseNimi>Synlab HTI
|
||||
Tallinn</AsutuseNimi>
|
||||
<AsutuseKood>SLA</AsutuseKood>
|
||||
<AllyksuseNimi>Synlab HTI Tallinn</AllyksuseNimi>
|
||||
|
||||
<Telefon>+3723417123</Telefon>
|
||||
</Asutus>
|
||||
<!--<TellijaIsik>-->
|
||||
<Personal tyyp="TELLIJA"
|
||||
jarjenumber="1">
|
||||
<PersonalOID>1.3.6.1.4.1.28284.6.2.4.9</PersonalOID>
|
||||
<PersonalKood>
|
||||
39610230904</PersonalKood>
|
||||
<PersonalPerekonnaNimi>test2</PersonalPerekonnaNimi>
|
||||
<PersonalEesNimi>
|
||||
test1</PersonalEesNimi>
|
||||
<Telefon>56232775</Telefon>
|
||||
</Personal>
|
||||
<TellijaMarkused>Test
|
||||
comment</TellijaMarkused>
|
||||
<Patsient>
|
||||
<IsikukoodiOID>1.3.6.1.4.1.28284.6.2.2.1</IsikukoodiOID>
|
||||
|
||||
<Isikukood>39610230904</Isikukood>
|
||||
<PerekonnaNimi>test2</PerekonnaNimi>
|
||||
<EesNimi>
|
||||
test1</EesNimi>
|
||||
<SynniAeg>1996-00-23</SynniAeg>
|
||||
<SuguOID>1.3.6.1.4.1.28284.6.2.3.16.2</SuguOID>
|
||||
|
||||
<Sugu>male</Sugu>
|
||||
</Patsient>
|
||||
<Konfidentsiaalsus>
|
||||
<PatsiendileOID>
|
||||
2.16.840.1.113883.5.25</PatsiendileOID>
|
||||
<Patsiendile>N</Patsiendile>
|
||||
<ArstileOID>
|
||||
1.3.6.1.4.1.28284.6.2.2.39.1</ArstileOID>
|
||||
<Arstile>N</Arstile>
|
||||
<EsindajaleOID>
|
||||
1.3.6.1.4.1.28284.6.2.2.37.1</EsindajaleOID>
|
||||
<Esindajale>N</Esindajale>
|
||||
</Konfidentsiaalsus>
|
||||
|
||||
<Proov>
|
||||
<ProovinouIdOID>1.3.6.1.4.1.28284.6.2.1.243.16</ProovinouIdOID>
|
||||
<ProovinouId>A2</ProovinouId>
|
||||
<MaterjaliTyypOID>1.3.6.1.4.1.28284.6.2.1.244.10</MaterjaliTyypOID>
|
||||
<MaterjaliTyyp>119364003</MaterjaliTyyp>
|
||||
<MaterjaliNimi>Seerum</MaterjaliNimi>
|
||||
<Jarjenumber>1</Jarjenumber>
|
||||
</Proov>
|
||||
<UuringuGrupp>
|
||||
<UuringuGruppId>TL106</UuringuGruppId>
|
||||
<UuringuGruppNimi>Söömishäirete uuringud</UuringuGruppNimi>
|
||||
<Uuring>
|
||||
<UuringuElement>
|
||||
<UuringIdOID>2.16.840.1.113883.6.1</UuringIdOID>
|
||||
<UuringId>2276-4</UuringId>
|
||||
<TLyhend>S,P-Fer</TLyhend>
|
||||
<KNimetus>Ferritiin</KNimetus>
|
||||
<UuringNimi>Ferritiin</UuringNimi>
|
||||
<TellijaUuringId>84</TellijaUuringId>
|
||||
</UuringuElement>
|
||||
<ProoviJarjenumber>1</ProoviJarjenumber>
|
||||
</Uuring>
|
||||
</UuringuGrupp>
|
||||
</Tellimus>
|
||||
</Saadetis>
|
||||
76
local-sync/xmls/order9.xml
Normal file
76
local-sync/xmls/order9.xml
Normal file
@@ -0,0 +1,76 @@
|
||||
<?xml version= \"1.0\" encoding= \"UTF-8\"?>
|
||||
<Saadetis xmlns:xsi= \"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation= \"TellimusLOINC.xsd\">
|
||||
<Pais>
|
||||
<Pakett versioon= \"20\">OL</Pakett>
|
||||
<Saatja>trvurgtst</Saatja>
|
||||
<Saaja>trvurgtst</Saaja>
|
||||
<Aeg>2025-08-04 06:22:18</Aeg>
|
||||
<SaadetisId>TSU000001200</SaadetisId>
|
||||
<Email>argo@medreport.ee</Email>
|
||||
</Pais>
|
||||
<Vastus>
|
||||
<ValisTellimuseId>TSU000001200</ValisTellimuseId>
|
||||
<Asutus tyyp= \"TELLIJA\" jarjenumber= \"1\">
|
||||
<AsutuseId>16381793</AsutuseId>
|
||||
<AsutuseNimi>MedReport OÜ</AsutuseNimi>
|
||||
<AsutuseKood>TSU</AsutuseKood>
|
||||
<Telefon>+37258871517</Telefon>
|
||||
</Asutus>
|
||||
<Asutus tyyp= \"TEOSTAJA\" jarjenumber= \"1\">
|
||||
<AsutuseId>11107913</AsutuseId>
|
||||
<AsutuseNimi>Synlab HTI Tallinn</AsutuseNimi>
|
||||
<AsutuseKood>SLA</AsutuseKood>
|
||||
<AllyksuseNimi>Synlab HTI Tallinn</AllyksuseNimi>
|
||||
<Telefon>+3723417123</Telefon>
|
||||
</Asutus>
|
||||
<Personal tyyp= \"TELLIJA\" jarjenumber= \"1\">
|
||||
<PersonalOID>1.3.6.1.4.1.28284.6.2.4.9</PersonalOID>
|
||||
<PersonalKood>39610230903</PersonalKood>
|
||||
<PersonalPerekonnaNimi>User</PersonalPerekonnaNimi>
|
||||
<PersonalEesNimi>Test</PersonalEesNimi>
|
||||
<Telefon>+37256232775</Telefon>
|
||||
</Personal>
|
||||
<TellijaMarkused>Siia tuleb tellija poolne märkus</TellijaMarkused>
|
||||
|
||||
<TellimuseNumber>TSU000001200</TellimuseNumber>
|
||||
<TellimuseOlek>4</TellimuseOlek>
|
||||
<Patsient>
|
||||
<IsikukoodiOID>1.3.6.1.4.1.28284.6.2.2.1</IsikukoodiOID>
|
||||
<Isikukood>39610230903</Isikukood>
|
||||
<PerekonnaNimi>User</PerekonnaNimi>
|
||||
<EesNimi>Test</EesNimi>
|
||||
<SynniAeg>1996-00-23</SynniAeg>
|
||||
<SuguOID>1.3.6.1.4.1.28284.6.2.3.16.2</SuguOID>
|
||||
<Sugu>male</Sugu>
|
||||
</Patsient>
|
||||
|
||||
|
||||
<UuringuGrupp>
|
||||
<UuringuGruppId>TL106</UuringuGruppId>
|
||||
<UuringuGruppNimi>Söömishäirete uuringud</UuringuGruppNimi>
|
||||
<Uuring>
|
||||
<UuringuElement>
|
||||
<UuringIdOID>2.16.840.1.113883.6.1</UuringIdOID>
|
||||
<UuringId>2276-4</UuringId>
|
||||
<TLyhend>S,P-Fer</TLyhend>
|
||||
<KNimetus>Ferritiin</KNimetus>
|
||||
<UuringNimi>Ferritiin</UuringNimi>
|
||||
<TellijaUuringId>84</TellijaUuringId>
|
||||
<TeostajaUuringId>84</TeostajaUuringId>
|
||||
<UuringOlek>4</UuringOlek>
|
||||
<Mootyhik>%</Mootyhik>
|
||||
<UuringuVastus>
|
||||
<VastuseVaartus>30000</VastuseVaartus>
|
||||
<VastuseAeg>2025-08-04 07:00:12</VastuseAeg>
|
||||
<NormYlem kaasaarvatud= \"EI\">100000</NormYlem>
|
||||
<NormAlum kaasaarvatud= \"EI\">50</NormAlum>
|
||||
<NormiStaatus>0</NormiStaatus>
|
||||
<ProoviJarjenumber>1</ProoviJarjenumber>
|
||||
</UuringuVastus>
|
||||
</UuringuElement>
|
||||
<UuringuTaitjaAsutuseJnr>2</UuringuTaitjaAsutuseJnr>
|
||||
</Uuring>
|
||||
</UuringuGrupp>
|
||||
|
||||
</Vastus>
|
||||
</Saadetis>
|
||||
41813
local-sync/xmls/public-message.xml
Normal file
41813
local-sync/xmls/public-message.xml
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user