DicomObjects.NET8 Documentation
DicomObjects.DicomWeb Namespace / WorkItemWebClient Class / Query Method
The dataset which defines the query - equivalent to that used or generated by a DicomObjects.DicomQuery
Example



In This Topic
    Query Method (WorkItemWebClient)
    In This Topic
    Issue a WorkItems query
    Syntax
    'Declaration
     
    
    Public Function Query( _
       ByVal QueryDataSet As DicomDataSet _
    ) As DicomDataSetCollection
    'Usage
     
    
    Dim instance As WorkItemWebClient
    Dim QueryDataSet As DicomDataSet
    Dim value As DicomDataSetCollection
     
    value = instance.Query(QueryDataSet)

    Parameters

    QueryDataSet
    The dataset which defines the query - equivalent to that used or generated by a DicomObjects.DicomQuery

    Return Value

    The workitem responses coded into a object
    Example
    this example mimics the IHE-RO UPS query request
    WorkItemWebClient wwc = new WorkItemWebClient(BaseUri);        
    DicomDataSet queryDS = new DicomDataSet()
       {
         { Keyword.SOPInstanceUID, "" },
         { Keyword.PatientID, "" },
         { Keyword.StudyInstanceUID, "" },
         { Keyword.ScheduledProcedureStepStartDate, "2022/07/01" },
         { Keyword.InputReadinessState, "" },
         { Keyword.ProcedureStepState, "SCHEDULED" },
         { Keyword.ScheduledProcedureStepPriority, "" },
         { Keyword.WorklistLabel, "" },
         { Keyword.ProcedureStepLabel, "" },
         { Keyword.ScheduledProcessingParametersSequence, "" },
         { Keyword.InputInformationSequence, ""},
         { Keyword.ScheduledWorkitemCodeSequence, ""}
       };
    DicomDataSetCollection stationNameCodeSequence = new DicomDataSetCollection();
    DicomDataSet sqItem = new DicomDataSet
       {
           { Keyword.CodeValue, "station 1" },
           { Keyword.CodingSchemeDesignator, "DCM" }
       };
    stationNameCodeSequence.Add(sqItem);
    queryDS.Add(Keyword.ScheduledStationNameCodeSequence, stationNameCodeSequence);
       var results = wwc.Query(queryDS);
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also