匿名化の方法

匿名化をするには以下のフォルダーにファイルを作成します。
dcm4chee-xxx-xxx/server/default/conf/dcm4chee-ae/

作成ファイル名
cstorerq.xsl

匿名化の項目
患者名:Anonim 
患者ID:00000000
誕生日:00000000
性別 :なし

簡単な解説です
tag:DICOMダグです。4桁+4桁で表現されます
vr:Value Represntations タグの内容を表現するための型の定義
いずれもDICOM規格で規定されています。

 

cstorerq.xslの内容ですが下記の様になります。

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="no"/>
<xsl:template match="/dataset">
<dataset>
<attr tag="00100010" vr="PN">Anonim</attr>
<attr tag="00100020" vr="LO">00000000</attr>
<attr tag="00100030" vr="DA">00000000</attr>
<attr tag="00100040" vr="CS">O</attr>
</dataset>
</xsl:template>
</xsl:stylesheet>

 

 

 

●Value Representations

 

 

Name Description Length
AE Application Entity 16 Bytes Maximum
AS Age String 4 Bytes Fixed
AT Attribute Tag 4 Bytes Fixed
CS Code String 16 Bytes Maximum
DA Date 8 Bytes Fixed
DS Decimal String 16 Bytes Maximum
DT Date Time 26 Bytes Maximum
FL Floating Point Single 4 Bytes Fixed
FD Floating Point Double 8 Bytes Fixed
IS Integer String 12 Bytes Maximum
LO Long String 64 Bytes Maximum
LT Long Text 10240 Bytes Maximum
OB Other Byte String Unlimited
OF Other Float String Unlimited
OW Other Word String Unlimited
PN Person Name 64 Bytes Maximum
SH Short String 16 Bytes Maximum
SL Signed Long 4 Bytes Fixed
SQ Sequence of Items Unlimited
SS Signed Short 2 Bytes Fixed
ST Short Text 1024 Bytes Maximum
TM Time 16 Bytes Maximum
UI Unique Identifier 64 Bytes Maximum
UL Unsigned Long 4 Bytes Fixed
UN Unknown Unlimited
US Unsigned Short 2 Bytes Fixed
UT Unlimited Text Unlimited

 

参考:
DICOMTags: http://www.dicomtags.com/

Value Representations : http://www.dicomtags.com/vrs