Constructor
url of the ChRIS service
Optionalauth: { token?: string }
authentication object
Optionaltoken?: stringauthentication token
Internal method to fetch a high level resource through the REST API.
property of the this object containing the url of the resource
resource class
OptionalsearchParams: Object
search parameters object
Optionaltimeout: number
request timeout
Create a new group resource through the REST API.
request data object
group name
Optionaltimeout: number
request timeout
Group objectUpload a plugin representation file and create a new plugin admin resource through the REST API.
request JSON data object
string representing a comma-separated list of names of already registered compute resources
custom file object
plugin's file blob
Optionaltimeout: number
request timeout
PluginAdmin objectHelper method to create the nodes_info field required by createWorkflow method's
data argument to create a workflow from a pipeline's default parameters data array
typically returned by Pipeline.getDefaultParameters().data.
array of objects with the default parameters
as returned by Pipeline.getDefaultParameters().data
OptionalincludeAllDefaults: boolean
if set to `true`` then non-null parameters are also included in the result
Create a new file download token resource through the REST API.
Optionaltimeout: number
request timeout
DownloadToken objectCreate a new file browser folder resource through the REST API.
request data object
folder path
Optionaltimeout: number
request timeout
FileBrowserFolder objectCreate a new PACS query resource through the REST API.
PACS id
request data object
Optionaldescription?: stringPACS query description
Optionalexecute?: booleanwhether to execute the query upon creation
PACS query JSON string representing a query
PACS query title
Optionaltimeout: number
request timeout
PACSQuery objectCreate a new PACS retrieve resource through the REST API.
PACS query id
Optionaltimeout: number
request timeout
PACSRetrieve objectCreate a new pipeline resource through the REST API.
request data object
Optionalauthors?: stringpipeline authors
Optionalcategory?: stringpipeline category
Optionaldescription?: stringpipeline description
Optionallocked?: booleanpipeline status
pipeline name
Optionalplugin_inst_id?: numberplugin instance id
Optionalplugin_tree?: stringJSON string containing a plugin tree list
Optionaltimeout: number
request timeout
Pipeline objectCreate a new plugin instance resource through the REST API.
plugin id
request data object which is plugin-specific
Optionalcompute_resource_name?: stringremote compute resource name
Optionalcpu_limit?: stringcpu limit
Optionalgpu_limit?: stringgpu limit
Optionalmemory_limit?: stringmemory limit
Optionalnumber_of_workers?: stringnumber of workers
Optionaltitle?: stringtitle
Optionaltimeout: number
request timeout
PluginInstance objectCreate a new plugin instance split resource through the REST API.
plugin instance id
Optionalfilter: string
comma-separated list of regular expressions
Optionalcr_name: string
remote compute resource name
Optionaltimeout: number
request timeout
PluginInstanceSplit objectCreate a new tag resource through the REST API.
request data object
tag color
Optionalname?: stringtag name
Optionaltimeout: number
request timeout
Tag objectCreate a new workflow resource through the REST API.
pipeline id
request data object
pipeline-specific JSON string encoding a list of objects.
Each object is a workflow node containing a piping_id, compute_resource_name,
title, cpu_limit, memory_limit, gpu_limit, number_of_workers
and a list of objects called plugin_parameter_defaults. Each object in this
list has name and default properties.
previous plugin instance id
Optionaltimeout: number
request timeout
Workflow objectGet the ChRIS instance resource object.
Optionaltimeout: number
request timeout
ChrisInstance objectGet a compute resource object given its id.
compute resource id
Optionaltimeout: number
request timeout
ComputeResource object or nullGet a paginated list of compute resources from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionaldescription?: stringmatch compute resource's description containing this string
Optionalid?: numbermatch file id exactly with this number
Optionallimit?: numberpage limit
Optionalname?: stringmatch compute resource's name containing this string
Optionalname_exact?: stringmatch compute resource's name exactly with this string
Optionaloffset?: numberpage offset
Optionalplugin_id?: stringmatch plugin id exactly with this string for all the compute resources associated with the plugin
Optionaltimeout: number
request timeout
ComputeResourceList objectGet a download token resource object given its id.
file download token id
Optionaltimeout: number
request timeout
DownloadToken object or nullGet a paginated list of file download tokens for the authenticated user from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: { id?: number; limit?: number; offset?: number }
search parameters object
Optionalid?: numbermatch file download token id exactly with this number
Optionallimit?: numberpage limit
Optionaloffset?: numberpage offset
Optionaltimeout: number
request timeout
DownloadTokenList objectGet a feed resource object given its id.
feed id
Optionaltimeout: number
request timeout
Feed object or nullGet a paginated list of currently authenticated user's feeds from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalfiles_fname_icontains?: stringmatch the feeds that have files containing all the substrings from the queried string (which in turn represents a white-space-separated list of query strings) case insensitive anywhere in their fname.
Optionalid?: numbermatch feed id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: numbermatch feed creation date lte this date
Optionalmax_id?: numbermatch feed id lte this number
Optionalmin_creation_date?: numbermatch feed creation date gte this date
Optionalmin_id?: numbermatch feed id gte this number
Optionalname?: stringmatch feed name containing this string
Optionalname_exact?: stringmatch feed name exactly with this string
Optionalname_startswith?: stringmatch feed name starting with this string
Optionaloffset?: numberpage offset
Optionaltimeout: number
request timeout
FeedList objectGet a file browser folder resource object given its id.
file browser folder id
Optionaltimeout: number
request timeout
FileBrowserFolder object or nullGet a file browser folder resource object given its path.
Optionalpath: string
file browser folder path
Optionaltimeout: number
request timeout
FileBrowserFolder object or nullGet a list with the matching file browser folder (the returned list only has at most one element) from the REST API given query search parameters. If no search parameters then get a list with the default root folder.
OptionalsearchParams: { id?: number; limit?: number; offset?: number; path?: string }
search parameters object
Optionalid?: numbermatch folder id exactly with this number
Optionallimit?: numberpage limit
Optionaloffset?: numberpage offset
Optionalpath?: stringmatch folder's path exactly with this string
Optionaltimeout: number
request timeout
FileBrowserFolderList objectGet a group resource object given its id.
group id
Optionaltimeout: number
request timeout
Group object or nullGet a paginated list of groups from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalid?: numbermatch group id exactly with this number
Optionallimit?: numberpage limit
Optionalname?: stringmatch group name exactly with this string
Optionalname_icontains?: stringmatch group name containing this string
Optionaloffset?: numberpage offset
Optionaltimeout: number
request timeout
GroupList objectGet a PACS resource object given its id.
PACS id
Optionaltimeout: number
request timeout
PACS object or nullGet a PACS file resource object given its id.
PACS file id
Optionaltimeout: number
request timeout
PACSFile object or ``null`Get a paginated list of PACS files from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalfname?: stringmatch file's path starting with this string
Optionalfname_exact?: stringmatch file's path exactly with this string
Optionalfname_icontains?: stringmatch file's path containing this string
Optionalfname_icontains_topdir_unique?: stringmatch file's path containing all the substrings from the queried string (which in turn represents a white-space-separated list of query strings) case insensitive anywhere in their fname. But only one file is returned per toplevel directory under SERVICES/PACS/pacs_name. This is useful to efficiently determine the top level directories containing a file that matches the query.
Optionalid?: numbermatch file id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: stringmatch file's creation_date lesser than this date string
Optionalmin_creation_date?: stringmatch file's creation_date greater than this date string
Optionaloffset?: numberpage offset
Optionaltimeout: number
request timeout
PACSFileList objectGet a paginated PACS list from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalactive?: booleanmatch PACS active status with this boolean
Optionalid?: numbermatch PACS id exactly with this number
Optionalidentifier?: stringmatch PACS identifier exactly with this string
Optionallimit?: numberpage limit
Optionaloffset?: numberpage offset
Optionaltimeout: number
request timeout
PACSList objectGet a paginated list of PACS queries from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionaldescription?: stringmatch PACS query description containing this string
Optionalid?: numbermatch PACS query id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: stringmatch PACS query's creation date lte this date
Optionalmin_creation_date?: stringmatch PACS query's creation date gte this date
Optionaloffset?: numberpage offset
Optionalowner_username?: stringmatch PACS query's owner username exactly with this string
Optionalpacs_id?: numbermatch related PACS's id exactly with this number
Optionalpacs_identifier?: stringmatch related PACS's identifier exactly with this string
Optionalstatus?: stringmatch PACS query execution status exactly with this string
Optionaltitle?: stringmatch PACS query title containing this string
Optionaltitle_exact?: stringmatch PACS query title exactly this string
Optionaltimeout: number
request timeout
AllPACSQueryList objectGet a PACS query resource object given its id.
PACS query id
Optionaltimeout: number
request timeout
PACSQuery object or nullGet a PACS series resource object given its id.
PACS series id
Optionaltimeout: number
request timeout
PACSSeries object or nullGet a paginated list of PACS series from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
OptionalAccessionNumber?: stringmatch PACS series' AccessionNumber exactly with this string
Optionalid?: numbermatch PACS series' id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: stringmatch PACS series' creation_date lesser than this date string
Optionalmax_PatientAge?: numbermatch PACS series' PatientAge lesser than this number
Optionalmin_creation_date?: stringmatch PACS series' creation_date greater than this date string
Optionalmin_PatientAge?: numbermatch PACS series' PatientAge greater than this number
Optionaloffset?: numberpage offset
Optionalpacs_identifier?: stringmatch PACS series' PACS exactly with this string
OptionalPatientAge?: numbermatch PACS series' PatientAge exactly with this number
OptionalPatientBirthDate?: stringmatch PACS series' PatientBirthDate exactly with this date string
OptionalPatientID?: stringmatch PACS series' PatientID exactly with this string
OptionalPatientName?: stringmatch PACS series' PatientName containing this string
OptionalPatientSex?: stringmatch PACS series' PatientSex exactly with this string
OptionalProtocolName?: stringmatch PACS series' ProtocolName exactly with this string
OptionalSeriesDescription?: stringmatch PACS series' SeriesDescription containing this string
OptionalSeriesInstanceUID?: stringmatch PACS series' SeriesInstanceUID exactly with this string
OptionalStudyDate?: stringmatch PACS series' StudyDate exactly with this date string
OptionalStudyDescription?: stringmatch PACS series' StudyDescription containing this string
OptionalStudyInstanceUID?: stringmatch PACS series' StudyInstanceUID exactly with this string
Optionaltimeout: number
request timeout
PACSSeriesList objectGet a pipeline resource object given its id.
pipeline id
Optionaltimeout: number
request timeout
Pipeline object or nullGet a paginated list of pipelines from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalauthors?: stringmatch pipeline authors containing this string
Optionalcategory?: stringmatch pipeline category containing this string
Optionaldescription?: stringmatch pipeline description containing this string
Optionalid?: numbermatch pipeline id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: stringmatch pipeline creation date lte this date
Optionalmin_creation_date?: stringmatch pipeline creation date gte this date
Optionalname?: stringmatch pipeline name containing this string
Optionalname_exact?: stringmatch pipeline name exactly with this string
Optionaloffset?: numberpage offset
Optionalowner_username?: stringmatch pipeline's owner username exactly with this string
Optionaltimeout: number
request timeout
PipelineList objectGet a pipeline source file resource object given its id.
pipeline source file id
Optionaltimeout: number
request timeout
PipelineSourceFile object or ``null`Get a paginated list of pipeline source files from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalfname?: stringmatch file's path starting with this string
Optionalfname_exact?: stringmatch file's path exactly with this string
Optionalfname_icontains?: stringmatch file's path containing this string
Optionalid?: numbermatch file id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: stringmatch file's creation_date lesser than this date string
Optionalmin_creation_date?: stringmatch file's creation_date greater than this date string
Optionaloffset?: numberpage offset
Optionalpipeline_id?: numbermatch file's pipeline id exactly with this number
Optionalpipeline_name?: stringmatch file's pipeline name exactly with this string
Optionaluploader_username?: stringmatch file's uploader username exactly with this string
Optionaltimeout: number
request timeout
PipelineSourceFileList objectGet a plugin resource object given its id.
plugin id
Optionaltimeout: number
request timeout
Plugin object or nullGet a plugin instance resource object given its id.
plugin instance id
Optionaltimeout: number
request timeout
PluginInstance object or nullGet a paginated list of plugin instances from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalactive?: booleanmatch plugin instance active status exactly with this boolean
Optionalfeed_id?: numbermatch associated feed's id exactly with this number
Optionalid?: numbermatch plugin instance id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_end_date?: stringmatch plugin instance's end date lte this date
Optionalmax_start_date?: stringmatch plugin instance's start date lte this date
Optionalmin_end_date?: stringmatch plugin instance's end date gte this date
Optionalmin_start_date?: stringmatch plugin instance's start date gte this date
Optionaloffset?: numberpage offset
Optionalowner_username?: stringmatch plugin instances's owner username exactly with this string
Optionalplugin_id?: numbermatch associated plugin's id exactly with this number
Optionalplugin_name?: numbermatch associated plugin's name containing this string
Optionalplugin_name_exact?: numbermatch associated plugin's name exact with this string
Optionalplugin_type?: stringmatch plugin type exactly with this string
Optionalplugin_version?: numbermatch associated plugin's version exactly with this string
Optionalprevious_id?: numbermatch previous plugin instance's id exactly with this number
Optionalroot_id?: numbermatch root plugin instance's id exactly with this number
Optionalstatus?: stringmatch plugin instance execution status exactly with this string
Optionaltitle?: stringmatch plugin instance title containing this string
Optionalworkflow_id?: numbermatch associated workflows's id exactly with this number
Optionaltimeout: number
request timeout
AllPluginInstanceList objectGet a plugin meta resource object given its id.
plugin meta id
Optionaltimeout: number
request timeout
PluginMeta object or nullGet a paginated list of plugin metas from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalauthors?: stringmatch plugin meta authors containing this string
Optionalcategory?: stringmatch plugin meta category exactly with this string
Optionalid?: numbermatch plugin meta id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: numbermatch plugin meta creation date lte this date
Optionalmin_creation_date?: numbermatch plugin meta creation date gte this date
Optionalname?: stringmatch plugin meta name containing this string
Optionalname_authors_category?: stringmatch plugin meta name, authors or category containing this string
Optionalname_exact?: stringmatch plugin meta name exactly with this string
Optionalname_title_category?: stringmatch plugin meta name, title or category containing this string
Optionaloffset?: numberpage offset
Optionaltitle?: stringmatch plugin meta title containing this string
Optionaltype?: stringmatch plugin meta type exactly with this string
Optionaltimeout: number
request timeout
PluginMetaList objectGet a paginated list of plugins from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalcategory?: stringmatch plugin category containing this string
Optionalcompute_resource_id?: numbermatch plugin's compute resource id exactly with this number
Optionaldescription?: stringmatch plugin description containing this string
Optionaldock_image?: stringmatch plugin docker image exactly with this string
Optionalid?: numbermatch plugin id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: stringmatch plugin creation date lte this date
Optionalmin_creation_date?: stringmatch plugin creation date gte this date
Optionalname?: stringmatch plugin name containing this string
Optionalname_exact?: stringmatch plugin name exactly with this string
Optionalname_title_category?: stringmatch plugin name, title or category containing this string
Optionaloffset?: numberpage offset
Optionaltitle?: stringmatch plugin title containing this string
Optionaltype?: stringmatch plugin type exactly with this string
Optionalversion?: stringmatch plugin version exactly with this string
Optionaltimeout: number
request timeout
PluginList objectGet a paginated list of public feeds from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalfiles_fname_icontains?: stringmatch the feeds that have files containing all the substrings from the queried string (which in turn represents a white-space-separated list of query strings) case insensitive anywhere in their fname.
Optionalid?: numbermatch feed id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: numbermatch feed creation date lte this date
Optionalmax_id?: numbermatch feed id lte this number
Optionalmin_creation_date?: numbermatch feed creation date gte this date
Optionalmin_id?: numbermatch feed id gte this number
Optionalname?: stringmatch feed name containing this string
Optionalname_exact?: stringmatch feed name exactly with this string
Optionalname_startswith?: stringmatch feed name starting with this string
Optionaloffset?: numberpage offset
Optionaltimeout: number
request timeout
PublicFeedList objectGet a tag resource object given its id.
tag id
Optionaltimeout: number
request timeout
Tag object or nullGet a paginated list of tags from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalcolor?: stringmatch plugin color containing this string
Optionalid?: numbermatch tag id exactly with this number
Optionallimit?: numberpage limit
Optionalname?: stringmatch tag name containing this string
Optionaloffset?: numberpage offset
Optionalowner_username?: stringmatch tag's owner username exactly with this string
Optionaltimeout: number
request timeout
TagList objectGet a user resource object for the currently authenticated user.
Optionaltimeout: number
request timeout
User objectGet a user file resource object given its id.
user file id
Optionaltimeout: number
request timeout
UserFile object or nullGet a paginated list of user files from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalfname?: stringmatch file's path starting with this string
Optionalfname_exact?: stringmatch file's path exactly with this string
Optionalfname_icontains?: stringmatch file's path containing this string
Optionalfname_nslashes?: string | numbermatch file's path containing this number of slashes
Optionalid?: numbermatch file id exactly with this number
Optionallimit?: numberpage limit
Optionalmax_creation_date?: stringmatch file's creation_date lesser than this date string
Optionalmin_creation_date?: stringmatch file's creation_date greater than this date string
Optionaloffset?: numberpage offset
Optionalowner_username?: stringmatch file's owner username exactly with this string
Optionaltimeout: number
request timeout
UserFileList objectGet a workflow resource object given its id.
workflow id
Optionaltimeout: number
request timeout
Workflow object or nullGet a paginated list of workflows from the REST API given query search parameters. If no search parameters then get the default first page.
OptionalsearchParams: {search parameters object
Optionalid?: numbermatch workflow id exactly with this number
Optionallimit?: numberpage limit
Optionaloffset?: numberpage offset
Optionalowner_username?: stringmatch workflow's owner username exactly with this string
Optionalpipeline_name?: stringmatch associated pipeline name containing this string
Optionaltitle?: stringmatch workflow title containing this string
Optionaltimeout: number
request timeout
AllWorkflowList objectSet the urls of the high level API resources.
Optionaltimeout: number
request timeout
Upload a file and create a new user file resource through the REST API.
request data object
absolute path including file name where the file will be uploaded on the storage service
custom file object
file blob
Optionaltimeout: number
request timeout
UserFile objectUpload a pipeline source file and create a new pipeline source file resource through the REST API. In addition, this creates a new pipeline resource based on the source of the uploaded file.
request data object
pipeline source file type
custom file object
file blob
Optionaltimeout: number
request timeout
PipelineSourceFile objectStaticcreateCreate a new user account.
url of the user accounts service
username
password
user email
Optionaltimeout: number
request timeout
User objectStaticgetFetch a user's login authorization token from the REST API.
url of the authorization service
username
password
Optionaltimeout: number
request timeout
string valueStaticrunHelper method to run an asynchronous task defined by a task generator function.
generator function
API client object.