DicomObjects.NET.8.48 Documentation
DicomObjects.DicomWeb.WebClient 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)
    public function Query( 
        QueryDataSet: DicomDataSet
    ): DicomDataSetCollection; 
    public function Query( 
       QueryDataSet : DicomDataSet
    ) : DicomDataSetCollection;

    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: .NET CLR 4.8 or higher

    See Also