I'm working on a project whose workflow calls for N-SET requests to update an in-progress record. I haven't been able to find any good sample code so I'm hoping that someone here can help me out.
Do I specify these attributes by appending them to the NSetRequest object's Command dataset, or should they be added as a new Dataset for the NSetRequest.Dataset property?
For example, if I wanted to set the Patient Comments attribute on some bogus object, would this be a valid request setup?
var nSetRequest = new DicomNSetRequest(
new DicomUID("1.2.3", "Bogus SOP Class", DicomUidType.SOPClass),
new DicomUID("1.2.3.0.1", "Bogus Instance", DicomUidType.SOPInstance));
nSetRequest.Command.Add(DicomTag.PatientComments, "Foo bar baz");
The SCP I am communicating with is something of a black box, and I have been getting Association Aborts from it, with the reason code UnexpectedPDU. I am not currently in a position to get more detail from the system or from the vendor so in the meantime I want to make sure that I'm at least forming the NSet request correctly.
Thanks in advance,
-martin