(provided by anonymous dcm4chee user)
conf/dcm4chee-web/dcm4chee-webroles-cfg.xml
<role name="client1" type="StudyPermission" descr="Role for client 1 (Radiology)"/> <role name="client2" type="StudyPermission" descr="role for client 2 (Neurosurgery)"/> |
<?xml version="1.0" encoding="UTF-8"?> <!-- Sample configuration for grant/revoke Study Permissions on Series Stored event --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml"/> <xsl:param name="calling" select="'SAMPLE_MOD'"/> <xsl:template match="/dataset"> <permissions> <xsl:variable name="studyUID" select="attr[@tag='0020000D']" /> <xsl:variable name="seriesMOD" select="attr[@tag='00080060']" /> <xsl:variable name="patIssuer" select="attr[@tag='00100021']" /> <xsl:choose> <!-- Configuration for CT stored in client2 - Neurosurgery --> <xsl:when test="$seriesMOD='CT' and not(contains(@patIssuer,'DCM4CHEE'))"> <!-- grant Query, Read and Append permission on Study to client2 in special case --> <grant role="client2" action="Q,R,A" suid="{attr[@tag='0020000D']}"/> </xsl:when> <!-- Configuration for CT stored in client1 - Radiology (having ISSUER set to DCM4CHEE) --> <xsl:when test="$seriesMOD='CT' and contains(@patIssuer,'DCM4CHEE')"> <!-- grant Query, Read and Append permission on Study to client2 in special case --> <grant role="client1" action="Q,R,A" suid="{attr[@tag='0020000D']}"/> </xsl:when> <!-- all other Modalities stored client1 - Radiology (having ISSUER set to DCM4CHEE) --> <xsl:otherwise> <!-- grant Query, Read and Append permission on Study to client1 per default --> <grant role="client1" action="Q,R,A" suid="{attr[@tag='0020000D']}"/> </xsl:otherwise> </xsl:choose> |
true
MASTER_AET
MASTER_AET
MASTER_AET