sent time in medipost xml can be different from order creation time

This commit is contained in:
2025-09-10 06:31:49 +03:00
parent be33b892f5
commit 0aea6b80d4
3 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ export async function composeOrderTestResponseXML({
return `<?xml version="1.0" encoding="UTF-8"?>
<Saadetis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TellimusLOINC.xsd">
${getPais(USER, RECIPIENT, orderCreatedAt, orderId, "AL")}
${getPais(USER, RECIPIENT, orderId, "AL")}
<Vastus>
<ValisTellimuseId>${orderId}</ValisTellimuseId>
${getClientInstitution({ index: 1 })}

View File

@@ -184,7 +184,7 @@ export async function composeOrderXML({
return `<?xml version="1.0" encoding="UTF-8"?>
<Saadetis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TellimusLOINC.xsd">
${getPais(USER, RECIPIENT, orderCreatedAt, orderId)}
${getPais(USER, RECIPIENT, orderId)}
<Tellimus cito="EI">
<ValisTellimuseId>${orderId}</ValisTellimuseId>
${getClientInstitution()}

View File

@@ -19,7 +19,7 @@ export const getPais = (
<Pakett versioon="20">${packageName}</Pakett>
<Saatja>${sender}</Saatja>
<Saaja>${recipient}</Saaja>
<Aeg>${format(createdAt, DATE_TIME_FORMAT)}</Aeg>
<Aeg>${format(new Date(), DATE_TIME_FORMAT)}</Aeg>
<SaadetisId>${orderId}</SaadetisId>
<Email>info@medreport.ee</Email>
</Pais>`;