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

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?

Please share a sample DICOM file for review.

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,

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:
http://dicom.nema.org/medical/dicom/current/output/chtml/part04/sect_B.5.html

Regards,

Sébastien-

Thank you, that was it! Looks to be working now, thanks for everyone who helped!