Display MoreThe code should be changed as follows (this is for myself):
add parameter dicomweb
every check for an item having one value should be bypassed for dicomweb e.g.
if (vr->Length==4 && !dicomweb)
if (vr->Length>4 | | dicomweb)
For dicomweb the variable name should be generated as folllows, e.g.:
"00201208": {
"vr": "IS",
"Value":
Then add a variable br3 that is empty except for dicomweb where it would be "}"
to add the the closing } all sprintf lines like 7779 should then become:
Index+=sprintf(result+Index, "%s%c\"%s\"%s,", name, eq, t, br3);
I think this would bring it a long way for query results, it would not be enough for images.
Marcel
As I have read qido is used in queries. Retrieve dicom objets uses wado-rs and retrieve instances uses wado-uri. https://www.dicomstandard.org/using/dicomweb