tools/create-dicom - Unable to determine the SOP class/instance for C-STORE

539 views
Skip to first unread message

Bryan Dearlove

unread,
Jul 5, 2021, 9:36:10 PM7/5/21
to Orthanc Users
Good Day All, 
I am using tools/create-dicom using a PNG to create a DICOM image, unfortunately when I try to send this to another server, I am getting an error:

DicomUserConnection: Unable to find the SOP class and instance: Unable to determine the SOP class/instance for C-STORE with AET AETDESTINATION

Here is the JSON I am using to create the study:

"Tags": {
        "Modality": "OT",
        "PatientName": "LASTNAME^FIRSTNAME",
        "PatientID": "PATIENTID",
        "SeriesDescription": "Prior Study Placeholder",
        "StudyDescription": "DESCRIPTION",
        "StudyDate": "20210705",
        "StudyTime": "124511.000000",
        "AccessionNumber": "ACCESSION",
        "PatientSex": "M",
        "PatientBirthDate": "20150412"


It looks as though I am getting: 0002,0002 (MediaStorageSOPClassUID): 1.2.276.0.7230010.3.1.0.1
I am not familiar with it, and assuming the PACS is rejecting this?

Alvin Aloshyous

unread,
Jul 6, 2021, 12:37:11 AM7/6/21
to Bryan Dearlove, Orthanc Users
Please share a sample DICOM file for review.

--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/ac719237-eef8-4f68-ba6e-4ef53ba7dda8n%40googlegroups.com.

Stephen Douglas Scotti

unread,
Jul 6, 2021, 12:41:29 AM7/6/21
to Orthanc Users
There is a setting in the orthanc.json config file to accept all SOP classes.  Also, I think you can explcitly set the SOPClassID in the tags if you want.

This might be relevant also:  This might apply as well:  https://forum.dcmtk.org/viewtopic.php?t=871

    // Whether Orthanc accepts to act as C-Store SCP for unknown storage
    // SOP classes (aka. "promiscuous mode")
    "UnknownSopClassAccepted"            : true,

Sébastien Jodogne

unread,
Jul 6, 2021, 1:10:35 AM7/6/21
to Orthanc Users
Hello,

You simply have to add the "SOP Class UID" (0008,0016) tag, which is mandatory for transfers using the DICOM protocol. For instance, in Python:

import json
import requests

instance = requests.post('http://localhost:8042/tools/create-dicom', json.dumps({

    "Tags": {
        "Modality": "OT",
        "PatientName": "LASTNAME^FIRSTNAME",
        "PatientID": "PATIENTID",
        "SeriesDescription": "Prior Study Placeholder",
        "StudyDescription": "DESCRIPTION",
        "StudyDate": "20210705",
        "StudyTime": "124511.000000",
        "AccessionNumber": "ACCESSION",
        "PatientSex": "M",
        "PatientBirthDate": "20150412",
        "SOPClassUID": "1.2.840.10008.5.1.4.1.1.7",
    }})).json() ['ID']

Check out the following page for a list of existing SOP Class UIDs:

Regards,
Sébastien-

Bryan Dearlove

unread,
Jul 12, 2021, 10:22:20 PM7/12/21
to Orthanc Users
Thank you, that was it! Looks to be working now, thanks for everyone who helped!
Reply all
Reply to author
Forward
0 new messages