Mercurial > hg > orthanc
comparison OrthancServer/Resources/GenerateAnonymizationProfile.py @ 5334:5b2a5cc64cb1
upgraded anonymization to Basic Profile of PS 3.15-2023b Table E.1-1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 27 Jun 2023 15:12:39 +0200 |
parents | 0ea402b4d901 |
children | 48b8dae6dc77 |
comparison
equal
deleted
inserted
replaced
5333:816968b5a031 | 5334:5b2a5cc64cb1 |
---|---|
24 import requests | 24 import requests |
25 import sys | 25 import sys |
26 import xml.etree.ElementTree as ET | 26 import xml.etree.ElementTree as ET |
27 | 27 |
28 # Usage: | 28 # Usage: |
29 # ./GenerateAnonymizationProfile.py https://raw.githubusercontent.com/jodogne/dicom-specification/master/2021b/part15.xml | 29 # ./GenerateAnonymizationProfile.py https://raw.githubusercontent.com/jodogne/dicom-specification/master/2023b/part15.xml > ../../OrthancFramework/Sources/DicomParsing/DicomModification_Anonymization2023b.impl.h |
30 | 30 |
31 if len(sys.argv) != 2: | 31 if len(sys.argv) != 2: |
32 raise Exception('Please provide the path or the URL to the part15.xml file from the DICOM standard') | 32 raise Exception('Please provide the path or the URL to the part15.xml file from the DICOM standard') |
33 | 33 |
34 source = sys.argv[1] | 34 source = sys.argv[1] |