Study data by patient id and accession number

We’re integrating the OHIF viewer with Orthanc PACS. Instead of using the study instance ID to get study details from Orthanc PACS, can we use the patient ID and accession number to get study data from Orthans?

@jodogne @benjamin.golinvaux could you help on this?

Hello,

  1. Please refrain from tagging us explicitly. If everybody does that, it will add a lot of noise.

  2. Greetings are recommended in this forum.

You are wondering if you can get a study from a patient ID and an accession number.

Yes : if you perform a /tools/find request, you will get results very fast since both PatientID and AccessionNumber are in the main DICOM tags, but I assume you’ve tried this already?

Okay, sorry for that, won’t repeat. To be on same page, we’re not using ohif viewer installed as plugin with orthanc. Our OHIF viewer is running on separate server within our RIS web based application and orthanc pacs on separate server/system. Now as mentioned in my query we are able to view study data in ohif viewer using study instance uid through dicom-web api’s, my question was instead of passing study instance uid, can we pass accession number and patient id, will orthanc respond to this query, if yes could you share in which variables can we pass or document link for the same pls.

Hello,

Isn’t it a question to ask to OHIF?

Regards,
Sébastien-

Hello, base_url/dicom-web/studies?limit=101&offset=0&fuzzymatching=false&includefield=00081030%2C00080060&StudyInstanceUID=1.3.6.1.4.1.44316.6.102.1.202209261046225.5906407063478665072741 , ohif viewer calling orthanc pacs server by passing studyInstanceUID as a query parameter, if we want pass patient id and accession number as query parameter in above url, does orthanc has provision for that? if yes what key should we pass.

Let me rephrase my previous answer more clearly: Ask your question to OHIF community. It is OHIF that implements the queries, not Orthanc.

@jodogne sorry if my question is unclear. I got your point that its ohif who implement queries. but my question was for eg. if I pass study instance uid in some other query param let say sii instead of StudyInstanceUID will orthanc respond, i belive it wont because orthanc won’t be able to get what sii is beacuse it will search for StudyInstanceUID? similarly if I pass patient id and accession id in url shared above i.e PatientId=001&AccessionNumber=182-185 will orthanc respond to that request or I will get invalid query params.

Why don’t you simply give a try? Here is a sample DICOMweb query against the Orthanc demo server:

$ curl 'https://orthanc.uclouvain.be/demo/dicom-web/studies?AccessionNumber=0&PatientID=SOtNwu'

You can check that it works by yourself.

Its working, thanks alot :slight_smile: