/// <summary> /// Send a CFind Modality Worklist Query trigger by reading the query /// dataset from the given mwlQueryDcmFilename. If the scheduledProcedureStepStartDate /// is defined (not string empty) then if a value for this attribute is present in the /// read datset it will be overwritten by the scheduledProcedureStepStartDate value. /// </summary> /// <param name="mwlQueryDcmFilename">DCM file containing the MWL Query Dataset.</param> /// <param name="scheduledProcedureStepStartDate">Optional (not sting empty) start date to overwrite dataset value.</param> /// <returns>Boolean indicating success or failure.</returns> public bool SendQueryModalityWorklist(System.String mwlQueryDcmFilename, System.String scheduledProcedureStepStartDate) { // Generate trigger using the mwl dcm file contents and the given scheduledProcedureStepStartDate DicomTrigger trigger = new DicomTrigger(TransactionNameEnum.RAD_5); trigger.AddItem(GenerateTriggers.MakeCFindModalityWorklist(mwlQueryDcmFilename, scheduledProcedureStepStartDate), "1.2.840.10008.5.1.4.31", "1.2.840.10008.1.2"); return(TriggerModalityWorklistQuery(trigger)); }
/// <summary> /// Send a CFind Modality Worklist Query trigger from the given queryTags. /// All other return keys are taken from the supported return key attributes /// in the Worklist Information Model. /// </summary> /// <param name="queryTags">List of Query Tags.</param> /// <returns>Boolean indicating success or failure.</returns> public bool SendQueryModalityWorklist(TagValueCollection queryTags) { // Generate trigger using the query tags DicomTrigger trigger = new DicomTrigger(TransactionNameEnum.RAD_5); trigger.AddItem(GenerateTriggers.MakeCFindModalityWorklist(queryTags), "1.2.840.10008.5.1.4.31", "1.2.840.10008.1.2"); return(TriggerModalityWorklistQuery(trigger)); }