[
“a903dd28-5dd4ffbe-26b72eac-bdae7d70-79fb594b”,
“12e18e5a-11e22b01-d966740a-05feab07-5362b5b2”,
“9484f83b-a0170205-b422f596-22d15423-9589b1c5”,
“f6503059-e2bc5816-1dd0ff75-879d7e38-e372dc41”,
“c33536a8-58bcf116-c88a30f0-2efbf99a-d1f773af”,
“b7fb1fb4-142e5a15-333ae197-298b1626-11f8833b”
]
Hi,
Given the question quality, Here’s all I can say: Orthanc identifiers — Orthanc Book documentation
Best regards,
Alain
How can I get this Instance hash in ohif-orthanc?
I want to add labels using orthanc api, for that I need hash of particular instance.
Hello,
If you have a DICOM ID, you can retrieve the Orthanc ID using the /tools/lookup
route. Here’s an example:
$ curl -d '1.2.826.0.1.3680043.10.585.3482425458896884012482554468705421770' -u orthanc:orthanc http://localhost:8042/tools/lookup
[
{
"ID" : "4a8eafa0-996929d6-49c659e0-5ceb0269-9cebf55d",
"Path" : "/instances/4a8eafa0-996929d6-49c659e0-5ceb0269-9cebf55d",
"Type" : "Instance"
}
]
HTH
Thanks, but can you please cross check as I have tried it is not working for me.
curl --location ‘http://localhost:8042/tools/lookup’
–header ‘Content-Type: application/x-www-form-urlencoded’
–header ‘Authorization: Basic b3J0aGFuYzpvcnRoYW5j’
–data-urlencode ‘1.2.840.113681.167856514.1458636295.2220.64311=’
also, can you tell from where you are getting this orthanc id?
Hi Yashika
No need to cross-check, I just pasted the command that worked in my terminal five seconds earlier.
Can you please try exactly the command I gave you, and not mingle with the content type? You are trying to submit form-encoded data, but this is not required in your case.
Also, I understand that you have the SOP Instance UID and you need the Orthanc ID. Is that right? In that case, I don’t understand your last question “can you tell from where you are getting this orthanc id?”
Please state exactly the info you have and the info you need.
–B
Thanks, actually my postman was taking that by default, So, I was lil bit confused. I got my answer.