Jobs Engine: Study Details

Good Day All,
With the jobs engine, is there a way to query study details, not just job details? (Such as patient ID, access, etc).

Good Day All,
A little bump. Anyone know if it is possible to get study details, such as the Orthanc Study ID via Job Details, or if this is on the horizon? Thanks!

Sorry for the delay.

I’m not sure to understand the question: Which kind of job are you referring to?

Hi Sebastien,
If I send a study via peer or Transfer Accelerator and it fails for example, I have the job ID. If I query via REST: /jobs/{id} I get job details but not the study which the job is tied to. I’m trying to figure out a way to get the study ID.
Example: Job fails, on failure I can create a message letting me know what job failed, or retry that study via Peer instead of Transfer Accelerator.

Here is a changeset that tracks the IDs of resources transferred by a C-STORE or by sending to some peer, if triggered by the REST API, into a new field “ParentResources” attached to the job:
https://bitbucket.org/sjodogne/orthanc/commits/d0d6bd633e4c7016853bed0540033e760d01d2f1

For instance:

$ curl http://localhost:8042/peers/peer/store -d ‘6e2c0ec2-5d99c8ca-c1c21cee-79a09605-68391d12
{
“Description” : “REST API”,
“FailedInstancesCount” : 0,
“InstancesCount” : 46,
“ParentResources” : [ “6e2c0ec2-5d99c8ca-c1c21cee-79a09605-68391d12” ],
“Peer” : [ “http://localhost:8042/” ]
}

$ curl http://localhost:8042/modalities/self/store -d ‘6e2c0ec2-5d99c8ca-c1c21cee-79a09605-68391d12
{
“Description” : “REST API”,
“FailedInstancesCount” : 0,
“InstancesCount” : 46,
“LocalAet” : “ORTHANC”,
“ParentResources” : [ “6e2c0ec2-5d99c8ca-c1c21cee-79a09605-68391d12” ],
“RemoteAet” : “ORTHANC”
}

Will have a look at the transfers accelerator.

Great thanks. Will that be added into the next build? (I usually wait till it is compiled by Osimis). Thanks!

Precompiled binaries of the Orthanc mainline are already available thanks to our CIS (continuous integration server):
http://lsb.orthanc-server.com/orthanc/mainline/

Sorry, for Windows also?

Unfortunately no: Our development environment is GNU/Linux, and Windows binaries are only produced during the official release process. You’ll have to wait for Orthanc 1.5.7, for which no release date is currently planned.

Hi Brian,

We actually have some Windows nightly build available here: http://orthanc.osimis.io/#/nightly

Thanks, I’ll give it a try!