DicomObjects.NET.8.48 Documentation
DicomObjects.DicomWeb.WebClient Namespace / WorkItemWebClient Class / Create Method
Workitem encoded in the media type specified in the Content-Type header field. The payload shall contain all data elements to be stored.
The encoding to use (native/json/xml)
The transfer syntax used to encode and send the WorkItem
Example

In This Topic
    Create Method
    In This Topic
    Creates a Workitem on the target Worklist. It corresponds to the UPS DIMSE N-CREATE operation.
    Syntax
    'Declaration
     
    
    Public Function Create( _
       ByVal WorkItem As DicomDataSet, _
       Optional ByVal Encoding As DicomDataEncoding, _
       Optional ByVal TransferSyntax As System.String _
    ) As System.Net.Http.HttpResponseMessage
    public System.Net.Http.HttpResponseMessage Create( 
       DicomDataSet WorkItem,
       DicomDataEncoding Encoding,
       System.string TransferSyntax
    )

    Parameters

    WorkItem
    Workitem encoded in the media type specified in the Content-Type header field. The payload shall contain all data elements to be stored.
    Encoding
    The encoding to use (native/json/xml)
    TransferSyntax
    The transfer syntax used to encode and send the WorkItem

    Return Value

    HttpResponseMessage
    Remarks
    If TransferSyntax is null, then the instances are sent using the transfer syntax in which they are currently held
    Example
    WorkItemWebClient wwc = new WorkItemWebClient(BaseUri);
    DicomDataSet ups = new DicomDataSet
    {
       SOPClass = SOPClasses.UnifiedProcedureStepPush,
       Name = "Test^Patient",
       PatientID = "12345",
       StudyUID = "1.2.840.10001.123.456.789",
       SeriesUID = "1.2.840.10001.123.456.789.1",
       InstanceUID = "1.2.840.10001.123.456.789.1.1"
    };
    ups.Add(Keyword.InputInformationSequence, new DicomDataSetCollection());
    var re = wwc.Create(ups, DicomDataEncoding.Json);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also