DicomObjects.NET.8.48 Documentation
DicomObjects.DicomWeb.WebClient Namespace / WorkItemWebClient Class / Update Method
The payload dataset contained in request, with the changes to the target Workitem to update.
The Transaction UID used to lock the target Workitem
The encoding to use (native/json/xml)
The transfer syntax used to encode and send the WorkItem
Example

In This Topic
    Update Method (WorkItemWebClient)
    In This Topic
    This transaction modifies Attributes of an existing Workitem. It corresponds to the UPS DIMSE N-SET operation.
    Syntax
    'Declaration
     
    
    Public Function Update( _
       ByVal WorkItem As DicomDataSet, _
       ByVal TransactionUID As System.String, _
       Optional ByVal Encoding As DicomDataEncoding, _
       Optional ByVal TransferSyntax As System.String _
    ) As System.Net.Http.HttpResponseMessage
    public System.Net.Http.HttpResponseMessage Update( 
       DicomDataSet WorkItem,
       System.string TransactionUID,
       DicomDataEncoding Encoding,
       System.string TransferSyntax
    )

    Parameters

    WorkItem
    The payload dataset contained in request, with the changes to the target Workitem to update.
    TransactionUID
    The Transaction UID used to lock the target Workitem
    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 updates = new DicomDataSet();
    updates.Add(Keyword.PatientName, "newPN");
    updates.Add(Keyword.PatientID, "newPID");
    DicomDataSetCollection sq = new DicomDataSetCollection();
    DicomDataSet sqItem = new DicomDataSet();
    sqItem.Add(Keyword.CodeValue, "codeValue");
    sqItem.Add(Keyword.CodingSchemeDesignator, "DCM");
    sqItem.Add(Keyword.CodeMeaning, "codeMeaning");
    sq.Add(sqItem);
    updates.Add(Keyword.ScheduledStationNameCodeSequence, sq);
    var resp = wwc.Update(updates, "1.2.3.4.5.6.7.8.9", DicomDataEncoding.Json);
    Log($"Update State response: {resp.StatusCode}");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also