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"?> return `<?xml version="1.0" encoding="UTF-8"?>
<Saadetis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TellimusLOINC.xsd"> <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> <Vastus>
<ValisTellimuseId>${orderId}</ValisTellimuseId> <ValisTellimuseId>${orderId}</ValisTellimuseId>
${getClientInstitution({ index: 1 })} ${getClientInstitution({ index: 1 })}

View File

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

View File

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