feat(MED-131): update analyses on package logic
This commit is contained in:
@@ -16,7 +16,7 @@ import { uniqBy } from 'lodash';
|
||||
import { Tables } from '@kit/supabase/database';
|
||||
import { formatDate } from 'date-fns';
|
||||
import { getAnalyses } from './analyses.service';
|
||||
import { getAnalysisElements } from './analysis-element.service';
|
||||
import { getAnalysisElementsAdmin } from './analysis-element.service';
|
||||
import { validateMedipostResponse } from './medipost.service';
|
||||
|
||||
const BASE_URL = process.env.MEDIPOST_URL!;
|
||||
@@ -70,7 +70,7 @@ export async function composeOrderTestResponseXML({
|
||||
orderId: string;
|
||||
orderCreatedAt: Date;
|
||||
}) {
|
||||
const analysisElements = await getAnalysisElements({ ids: orderedAnalysisElementsIds });
|
||||
const analysisElements = await getAnalysisElementsAdmin({ ids: orderedAnalysisElementsIds });
|
||||
const analyses = await getAnalyses({ ids: orderedAnalysesIds });
|
||||
|
||||
const analysisGroups: Tables<{ schema: 'medreport' }, 'analysis_groups'>[] =
|
||||
|
||||
Reference in New Issue
Block a user