File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import type { ReadonlyNonEmptyArray } from "fp-ts/lib/ReadonlyNonEmptyArray";
33import YAML from "yaml" ;
44import api , { type ApiResult } from "./api" ;
55import type { PACSqueryCore } from "./pfdcm" ;
6+ import { PACSqueryCoreToJSON } from "./pfdcm/generated" ;
67import type {
78 DownloadToken ,
89 Feed ,
@@ -206,15 +207,16 @@ export const getPFDCMServices = () =>
206207 } ) ;
207208
208209export const retrievePFDCMPACS = ( service : string , query : PACSqueryCore ) => {
210+ const queryJSON = PACSqueryCoreToJSON ( query ) ;
209211 // biome-ignore lint/suspicious/noThenProperty: required by PACSqueryCore
210- query . then = "retrieve" ;
211- query . withFeedBack = true ;
212+ queryJSON . then = "retrieve" ;
213+ queryJSON . withFeedBack = true ;
212214
213215 return api < PFDCMResult > ( {
214216 endpoint : "/PACS/thread/pypx/" ,
215217 method : "post" ,
216218 json : {
217- PACSdirective : query ,
219+ PACSdirective : queryJSON ,
218220 PACSservice : { value : service } ,
219221 listenerService : { value : "default" } ,
220222 } ,
You can’t perform that action at this time.
0 commit comments