-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCleanHeader2.m
50 lines (47 loc) · 1.51 KB
/
CleanHeader2.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
function in = CleanHeader2(in)
% function in = CleanHeader2(in) is a function that removes or sets to
% NIL potentially sensitive fields from an input structure
%
% INPUT:
% in: structure generated by dicominfo, eg in = dicominfo(FILE.IMA)
% OUTPUT:
% in: input structure with sensitive fields removed or set to []
%
% This field needs adjustement, probably removes too much info
% SPDX-License-Identifier: AGPL-3.0-or-later
%
% Copyright (C) 2021, Sophie M Shermer, Swansea University
in.InstitutionAddress = '';
in.ReferringPhysicianName = '';
in.PerformingPhysicianName = '';
in.OperatorName = 'LW/CJ';
in.PatientName = '';
in.PatientID = '';
in.PatientBirthDate = '';
in.PatientSex = '';
in.PatientAge = '';
in.PatientSize = '';
in.PatientWeight = '';
%in.BodyPartExamined = '';
in.ImageComments = '';
in.RequestedProcedureDescription = '';
in.PerformedProcedureStepStartDate = '';
in.PerformedProcedureStepStartTime = '';
in.PerformedProcedureStepID = '';
in.PerformedProcedureStepDescription = '';
in.CommentsOnPerformedProcedureStep = '';
in.InstanceCreationDate = '';
in.InstanceCreationTime = '';
in.StudyDate = '';
in.SeriesDate = '';
in.StudyTime = '';
in.SeriesTime = '';
in.PatientPosition = '';
in.StudyInstanceUID = '';
in.SeriesInstanceUID = '';
in.SOPClassUID = '';
in.StudyDescription = '';
in.SeriesDescription = '';
in.ProtocolName = 'svs_edit';
in.StudyID = '';
in.AcquisitionNumber = '';