comparison Sphinx/source/users/anonymization.rst @ 111:eaec5029ef01

DicomVersion
author amazy
date Thu, 20 Jul 2017 12:02:07 +0200
parents 901e8961f46e
children 6d357adfd892
comparison
equal deleted inserted replaced
110:1d32a7f3d144 111:eaec5029ef01
16 ---------------------------------- 16 ----------------------------------
17 17
18 Orthanc allows to anonymize a single DICOM instance and to download 18 Orthanc allows to anonymize a single DICOM instance and to download
19 the resulting anonymized DICOM file. Anonymization consists in erasing 19 the resulting anonymized DICOM file. Anonymization consists in erasing
20 all the tags that are specified in Table E.1-1 from PS 3.15 of the 20 all the tags that are specified in Table E.1-1 from PS 3.15 of the
21 DICOM standard 2008. Example:: 21 DICOM standard 2008 or 2017c (default). Example::
22 22
23 $ curl http://localhost:8042/instances/6e67da51-d119d6ae-c5667437-87b9a8a5-0f07c49f/anonymize -X POST -d '{}' > Anonymized.dcm 23 $ curl http://localhost:8042/instances/6e67da51-d119d6ae-c5667437-87b9a8a5-0f07c49f/anonymize -X POST -d '{}' > Anonymized.dcm
24 24
25 It is possible to control how anonymization is achieved by specifying 25 It is possible to control how anonymization is achieved by specifying
26 a JSON body:: 26 a JSON body::
27 27
28 $ curl http://localhost:8042/instances/6e67da51-d119d6ae-c5667437-87b9a8a5-0f07c49f/anonymize -X POST -d '{"Replace":{"PatientName":"hello","0010-0020":"world"},"Keep":["StudyDescription", "SeriesDescription"],"KeepPrivateTags": null}' > Anonymized.dcm 28 $ curl http://localhost:8042/instances/6e67da51-d119d6ae-c5667437-87b9a8a5-0f07c49f/anonymize -X POST -d '{"Replace":{"PatientName":"hello","0010-0020":"world"},"Keep":["StudyDescription", "SeriesDescription"],"KeepPrivateTags": null, "DicomVersion" : "2017c"}' > Anonymized.dcm
29 29
30 Explanations: 30 Explanations:
31 31
32 * New UUIDs are automatically generated for the study, the series and 32 * New UUIDs are automatically generated for the study, the series and
33 the instance. 33 the instance.
42 anonymization. 42 anonymization.
43 * If ``KeepPrivateTags`` is absent from the JSON request, private tags 43 * If ``KeepPrivateTags`` is absent from the JSON request, private tags
44 (i.e. manufacturer-specific tags) are also removed. This is the 44 (i.e. manufacturer-specific tags) are also removed. This is the
45 default behavior, as such tags can contain patient-specific 45 default behavior, as such tags can contain patient-specific
46 information. 46 information.
47 * ``DicomVersion`` specifies which version of the DICOM standard shall be used
48 for anonymization. Allowed values are ``2008`` and ``2017c`` (default value
49 if the parameter is absent). This parameter has been introduced in Orthanc
50 1.3.0. In earlier version, the ``2008`` standard was used.
47 51
48 52
49 Modification of a Single Instance 53 Modification of a Single Instance
50 --------------------------------- 54 ---------------------------------
51 55