I'm very new to dcm4chee-proxy and would like to use it as a filter to only send DICOM that conforms to certain attribute values.
As a very simple example, any DICOM with a modality of US would be sent to MY_AE_TITLE, but any DICOM with any other modality, say, CT, would be sent nowhere.
I'm currently struggling to get this to work. For instance, I've set up a forwarding rule in dcm4chee-wizard with a destination URI of aet:MY_AE_TITLE_1, which will always occur, regardless of how I set up MPPS to Dose SR Template URI and/or Dose SR IOD Template URI. This also happens regardless of my SOP instance UID. Nothing every gets sent to MY_AE_TITLE_2.
<xsl:output method="xml"/>
<xsl:template match="/NativeDicomModel">
<Result>
<xsl:choose>
<xsl:when test="DicomAttribute[@tag='00080018']/Value = '1.2.3.4'">
<Destination aet="MY_AE_TITLE_2"/>
</xsl:when>
<xsl:otherwise>
<Destination aet="DEVNULL"/>
</xsl:otherwise>
</xsl:choose>
</Result>
</xsl:template>
</xsl:stylesheet>
So my goal in this example is to ensure that only DICOM with SOP instance UID 1.2.3.4 gets sent to MY_AE_TITLE_2 while DICOM with any other SOP instance UID goes nowhere. DEVNULL is just an example of non-existent AE title.
Is there something I'm missing? Sorry, but I've had a really hard time finding documentation on this, and would appreciate any help you can provide.