diff --git a/lib/services/medipost.service.ts b/lib/services/medipost.service.ts
index 90bdce8..35ee7d4 100644
--- a/lib/services/medipost.service.ts
+++ b/lib/services/medipost.service.ts
@@ -10,6 +10,7 @@ import {
getClientInstitution,
getClientPerson,
getConfidentiality,
+ getOrderEnteredPerson,
getPais,
getPatient,
getProviderInstitution,
@@ -558,9 +559,12 @@ export async function composeOrderXML({
${getProviderInstitution()}
- ${getClientPerson(person)}
+ ${getClientPerson()}
+
+ ${getOrderEnteredPerson()}
${comment ?? ''}
- ${getPatient(person)}
+
+ ${getPatient(person)}
${getConfidentiality()}
${specimenSection.join('')}
${analysisSection?.join('')}
diff --git a/lib/services/medipostTest.service.ts b/lib/services/medipostTest.service.ts
index 1a3b0d9..f4393f7 100644
--- a/lib/services/medipostTest.service.ts
+++ b/lib/services/medipostTest.service.ts
@@ -3,6 +3,7 @@
import {
getClientInstitution,
getClientPerson,
+ getOrderEnteredPerson,
getPais,
getPatient,
getProviderInstitution,
@@ -104,7 +105,8 @@ export async function composeOrderTestResponseXML({
${orderId}
${getClientInstitution({ index: 1 })}
${getProviderInstitution({ index: 1 })}
- ${getClientPerson(person)}
+ ${getClientPerson()}
+ ${getOrderEnteredPerson()}
Siia tuleb tellija poolne märkus
${getPatient(person)}
diff --git a/lib/templates/medipost-order.ts b/lib/templates/medipost-order.ts
index 6568c22..10ce573 100644
--- a/lib/templates/medipost-order.ts
+++ b/lib/templates/medipost-order.ts
@@ -21,70 +21,48 @@ export const getPais = (
${recipient}
${format(createdAt, DATE_TIME_FORMAT)}
${orderId}
- argo@medreport.ee
+ info@medreport.ee
`;
};
export const getClientInstitution = ({ index }: { index?: number } = {}) => {
- if (isProd) {
- // return correct data
- }
return `
16381793
MedReport OÜ
- TSU
+ MRP
+37258871517
`;
};
export const getProviderInstitution = ({ index }: { index?: number } = {}) => {
- if (isProd) {
- // return correct data
- }
return `
11107913
- Synlab HTI Tallinn
- SLA
+ Synlab Eesti OÜ
+ HTI
Synlab HTI Tallinn
- +3723417123
+ +37217123
`;
};
-export const getClientPerson = ({
- idCode,
- firstName,
- lastName,
- phone,
-}: {
- idCode: string,
- firstName: string,
- lastName: string,
- phone: string,
-}) => {
- if (isProd) {
- // return correct data
- }
+export const getClientPerson = () => {
return `
1.3.6.1.4.1.28284.6.2.4.9
- ${idCode}
- ${lastName}
- ${firstName}
- ${phone ? `${phone.startsWith('+372') ? phone : `+372${phone}`}` : ''}
+ D07907
+ Eduard
+ Tsvetkov
+ +37258131202
`;
};
-// export const getOrderEnteredPerson = () => {
-// if (isProd) {
-// // return correct data
-// }
-// return `
-// 1.3.6.1.4.1.28284.6.2.4.9
-// D07907
-// Eduard
-// Tsvetkov
-// +37258131202
-// `;
-// };
+export const getOrderEnteredPerson = () => {
+ return `
+ 1.3.6.1.4.1.28284.6.2.4.9
+ D07907
+ Eduard
+ Tsvetkov
+ +37258131202
+ `;
+};
export const getPatient = ({
idCode,