File tree Expand file tree Collapse file tree 2 files changed +9
-36
lines changed
Expand file tree Collapse file tree 2 files changed +9
-36
lines changed Original file line number Diff line number Diff line change 11import config from "config" ;
22import type { ReadonlyNonEmptyArray } from "fp-ts/lib/ReadonlyNonEmptyArray" ;
33import YAML from "yaml" ;
4- import api , { type ApiResult } from "./api" ;
4+ import api from "./api" ;
55import type { PACSqueryCore } from "./pfdcm" ;
66import { PACSqueryCoreToJSON } from "./pfdcm/generated" ;
77import type {
@@ -90,24 +90,13 @@ export const createWorkflow = (
9090 } ,
9191 } ) ;
9292
93- type createFeedWithFilepathProp = {
94- filepath : string ;
95- theName : string ;
96- tags : string [ ] ;
97- patientID ?: string ;
98- modality ?: string ;
99- studyDate ?: string ;
100- isPublic ?: boolean ;
101- } ;
102- export const createFeedWithFilepath = async ( {
103- filepath,
104- theName,
105- tags,
106- patientID,
107- modality,
108- studyDate,
109- isPublic,
110- } : createFeedWithFilepathProp ) : Promise < ApiResult < Feed > > => {
93+ export const createFeedWithFilepath = async (
94+ filepath : string ,
95+ theName : string ,
96+ // biome-ignore lint/correctness/noUnusedFunctionParameters: not using tags for now.
97+ tags ?: string [ ] ,
98+ isPublic : boolean = false ,
99+ ) => {
111100 const pluginInstanceResult = await createPluginInstance ( 1 , [ filepath ] ) ;
112101 if ( ! pluginInstanceResult . data ) {
113102 return {
Original file line number Diff line number Diff line change @@ -26,30 +26,14 @@ export const createFeedWithPACSSeries = async (series: PACSSeries) => {
2626 StudyDate : studyDate ,
2727 StudyDescription : studyDescription ,
2828 SeriesDescription : seriesDescription ,
29- Modality : modality ,
3029 } = series ;
3130
3231 const studyDateStr = studyDate . replace ( / [ ^ 0 - 9 ] / g, "" ) ;
3332
3433 const theName = `PACS-${ patientID } -${ studyDateStr } -${ studyDescription } -${ seriesDescription } ` ;
3534
36- console . info (
37- "PacsController.createFeedWithPACSSeries: to createFeedWithFilepath: folderPath:" ,
38- thePath ,
39- "theName:" ,
40- theName ,
41- ) ;
42-
4335 const tags = [ "pacs" ] ;
44- return await createFeedWithFilepath ( {
45- filepath : thePath ,
46- theName,
47- tags,
48- patientID,
49- modality,
50- studyDate,
51- isPublic : false ,
52- } ) ;
36+ return await createFeedWithFilepath ( thePath , theName , tags ) ;
5337} ;
5438
5539export const errorCodeIs4xx = ( e : { code : number } ) => {
You can’t perform that action at this time.
0 commit comments