I’m having trouble using the “since” argument with /changes
Basically I want to get all new series received since a provided date/time
Any help would be very appreciated.
I’m having trouble using the “since” argument with /changes
Basically I want to get all new series received since a provided date/time
Any help would be very appreciated.
This is what I’m doing http://localhost:8042/changes?since=20170814T222845
My guess is that the time that Im providing as the value of “since” parameter is not in the correct format. Can someone please point me in the right direction ?
Also is there a way to use the “since” parameter with /tools/find when searching for studies, series and patients ? Basically how would I use /tools/find to find all studies done in the last 30 minutes if possible?
This is what I'm doing
http://localhost:8042/changes?since=20170814T222845
I believe the value for the `since` parameter is a sequence ID, not a
date.
Also is there a way to use the "since" parameter with /tools/find
when searching for studies, series and patients ? Basically how would
I use /tools/find to find all studies done in the last 30 minutes if
possible?
I think we've already discussed this point here:
https://groups.google.com/forum/#!searchin/orthanc-users/date$20range|s
ort:relevance/orthanc-users/hKIcotiOlnA/vZQPYqVGCgAJ
You would thus establish a date range for the last 30 minutes by
computing two dates based on the current time.
Thanks for your reply. I’m having no problem getting studies between two dates but can’t figure out how to pass date and time as a parameter
I encourage you to review the resources I linked in my previous
message; the answer is in this one:
http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_C.
2.2.2.5.html
For example to retrieve all studies between 8:30 and 9:00 on an
arbitrary date:
POST /tools/find HTTP/1.1
Accept: application/json
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 98
Content-Type: application/json
Host: sandbox.local
User-Agent: HTTPie/0.9.4
{
"Expand": true,
"Level": "Studies",
"Query": {
"StudyDate": "20040305",
"StudyTime": "0830-0900"
}
}
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Length: 521
Content-Type: application/json; charset=utf-8
[
{
"ID": "52e28c1f-35e8e518-d1ec6490-aa61885e-1fe5ff3f",
"IsStable": true,
"LastUpdate": "20170818T080603",
"MainDicomTags": {
"AccessionNumber": "0",
"InstitutionName": "cJf7JCqV84P^te1az",
"ReferringPhysicianName": "FLp8xklEDWOqavQWiJ9",
"RequestedProcedureDescription": "MRI WRIST WO/CONTRAST -
UNILATERAL",
"RequestingPhysician": "DIFIORI^JOHN^^^M.D.",
"StudyDate": "20040305",
"StudyDescription": "WRIST^RIGHT",
"StudyID": "1",
"StudyInstanceUID":
"1.2.840.113745.101000.1008000.38046.4274.5925160",
"StudyTime": "085922.859000"
},
"ParentPatient": "63ad0782-df664bdf-d844f071-e6d2f979-
14ecf504",
"PatientMainDicomTags": {
"PatientID": "7rAgWJ.",
"PatientName": "WRIX"
},
"Series": [
"f63e0461-3cb34f1e-6e56aa7b-3af0f338-f8a3a042"
],
"Type": "Study"
}
]
Thank you once again…the link you provided looks very helpful.