This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DataElement(_object): | |
""" | |
Class to represent a Data Element either Implicit or Explicit. | |
DATA ELEMENT: A unit of information as defined by a single entry in | |
the data dictionary. An encoded Information Object Definition ( IOD) | |
Attribute that is composed of, at a minimum, three fields: a Data | |
Element Tag, a Value Length, and a Value Field. For some specific | |
Transfer Syntaxes, a Data Element also contains a VR Field where the | |
Value Representation of that Data Element is specified explicitly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream eaa_app_server { | |
server unix:/srv/www/eaa/run/gunicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name eaa.neurosnap.net; | |
client_max_body_size 4G; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def anonymize(filename, output_filename, new_person_name="anonymous", | |
new_patient_id="id", remove_curves=True, remove_private_tags=True): | |
def sanitize_html(dataset): | |
"""Removing all potential XSS attacks embedded within the dicom file""" | |
dataset.walk(sanitize_callback) | |
return dataset | |
def sanitize_callback(dataset, data_element): | |
"""Call from dataset "walk" recursive function for all data elements. """ |
NewerOlder