Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update of DateAnonymizer and PrivateTagAnonymizer because it genera… #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
356 changes: 356 additions & 0 deletions EvilDICOM/EvilDICOM.DocFx/log.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void PreserveAndAnonymize(DICOMObject d)
public void NullAndAnonymize(DICOMObject d)
{
var dob = d.FindFirst(TagHelper.Patient​Birth​Date) as Date;
dob.Data = null;
if (dob != null) dob.Data = null;

var dates = d.FindAll(VR.Date);
if (dates.Count > 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ public class PrivateTagAnonymizer : IAnonymizer
public void Anonymize(DICOMObject d)
{
_logger.LogInformation("Removing private tags...", 0);
foreach (var priv in d.AllElements.Where(e => e.Tag.IsPrivate()))
d.Remove(priv.Tag);

d.RemoveRange(d.AllElements.Where(e => e.Tag.IsPrivate()).Select(x=>x.Tag));

//foreach (var priv in d.AllElements.Where(e => e.Tag.IsPrivate()))
// d.Remove(priv.Tag);
}
}
}
13 changes: 8 additions & 5 deletions EvilDICOM/EvilDICOM/EvilDICOM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net472</TargetFrameworks>
<RootNamespace>EvilDICOM</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<Authors>Rex Cardan, PhD</Authors>
<Company>Red Ion LLC</Company>
<Description>The wickedest .NET DICOM library in the world.</Description>
Expand Down Expand Up @@ -31,10 +31,6 @@

<ItemGroup>
<None Remove="packages.config" />
<None Include="F:\OneDrive\Cardan.Design\Artwork\Logos\Evil Dicom\evilEye.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<ItemGroup>
Expand All @@ -46,4 +42,11 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<None Update="evilEye.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project>
Binary file added EvilDICOM/EvilDICOM/evilEye.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/api/index.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/api/index.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>

<p><center><img src="../images/evilDicomLogo.png" alt="Logo" title="Evil DICOM Logo"></center></p>
<h2 id="the-structure-of-evil-dicom-core">The Structure of Evil DICOM Core</h2>
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/anonymization.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="anonymization.md">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/anonymization.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/anonymization.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<h2 id="anonymization-operations">Anonymization Operations</h2>

<p>Evil DICOM can quickly anonymize a DICOM file set with just a few lines of code. </p>
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/dvhCalculation.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/dvhCalculation.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/dvhCalculation.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<h1 id="examples">Examples</h1>

<h2 id="drawing-composite-images">Drawing Composite Images</h2>
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="helpers.md">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/helpers.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/helpers.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<h2 id="helper-classes">Helper Classes</h2>

<p>There are a lot of details about DICOM that the libary doesn&#39;t expect you to have memorized. There are several helper classes to help with common problems. I suggest you explore the helper classes in the helper folder of the library. Of all helpers, you will probably use the TagHelper the most.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/networking.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="networking.md">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/networking.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/networking.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<h2 id="entities">Entities</h2>

<p>In DICOM networking, the networking objects that communicate are called Entities, or Application Entities. An entity has a label called an AETitle, a port, and an IP address where it can be reached. To contruct this information in Evil DICOM, use:</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/operations.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/operations.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/operations.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<h2 id="basic-operations">Basic Operations</h2>

<h3 id="reading-and-writing">Reading and Writing</h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/selection.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="selection.md">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/selection.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/selection.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<h2 id="easy-dicom-selection">Easy DICOM Selection</h2>

<p>The DICOMSelector used to be a premium feature of the library and now it is included for free. It is all about convenience. Selecting and manipulating DICOM elements is easy with Evil DICOM, but it is even EASIER when you are using the selector. The selector gives you <em>strongly</em> typed access to all elements allowing you to do complex hierarchical descension by dot notation. You never have to manually cast the element with this module.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/structure.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="structure.md">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/structure.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/articles/structure.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<h2 id="the-structure-of-evil-dicom-core">The Structure of Evil DICOM Core</h2>

<p>DICOM and especially DICOM programming can seem overwhelming at first and so let&#39;s just get a big picture view of the Evil DICOM library. The cornerstones of the core library are really three classes:</p>
Expand Down
8 changes: 4 additions & 4 deletions docs/articles/toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
<a href="helpers.html" name="" title="Helper Classes">Helper Classes</a>
</li>
<li>
<a href="selection.html" name="" title="Easy DICOM Selection">Easy DICOM Selection</a>
<a href="selection.html" name="" title="Easy Selection">Easy Selection</a>
</li>
<li>
<a href="networking.html" name="" title="DICOM Networking">DICOM Networking</a>
<a href="networking.html" name="" title="Networking">Networking</a>
</li>
<li>
<a href="anonymization.html" name="" title="Anonymization">Anonymization</a>
Expand Down Expand Up @@ -78,10 +78,10 @@
<a href="helpers.html" name="" title="Helper Classes">Helper Classes</a>
</li>
<li>
<a href="selection.html" name="" title="Easy DICOM Selection">Easy DICOM Selection</a>
<a href="selection.html" name="" title="Easy Selection">Easy Selection</a>
</li>
<li>
<a href="networking.html" name="" title="DICOM Networking">DICOM Networking</a>
<a href="networking.html" name="" title="Networking">Networking</a>
</li>
<li>
<a href="anonymization.html" name="" title="Anonymization">Anonymization</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<div class="article row grid">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="">
<a href="https://github.com/rexcardan/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/index.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>
<a href="https://github.com/ochicaud/Evil-DICOM/blob/master/EvilDICOM/EvilDICOM.DocFx/index.md/#L1" class="btn btn-primary pull-right mobile-hide">Improve this Doc</a>

<center><img src="images/evilDicomLogo.png" alt="Logo" title="Evil DICOM Logo"></center>

Expand Down
36 changes: 18 additions & 18 deletions docs/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"homepages": [],
"source_base_path": "C:/Git/Evil-DICOM/EvilDICOM/EvilDICOM.DocFx",
"source_base_path": "D:/dev/Github/Evil-DICOM/EvilDICOM/EvilDICOM.DocFx",
"xrefmap": "xrefmap.yml",
"files": [
{
Expand Down Expand Up @@ -2050,9 +2050,6 @@
"version": ""
},
{
"log_codes": [
"DuplicateUids"
],
"type": "ManagedReference",
"source_relative_path": "api/EvilDICOM.Core.Helpers.Tryer.yml",
"output": {
Expand Down Expand Up @@ -3796,6 +3793,9 @@
"version": ""
},
{
"log_codes": [
"DuplicateUids"
],
"type": "ManagedReference",
"source_relative_path": "api/EvilDICOM.Network.Messaging.SendStatus.yml",
"output": {
Expand Down Expand Up @@ -4603,6 +4603,9 @@
"version": ""
},
{
"log_codes": [
"DuplicateUids"
],
"type": "ManagedReference",
"source_relative_path": "api/Evil_DICOM.Core.Helpers.Tryer.yml",
"output": {
Expand All @@ -4627,9 +4630,6 @@
"version": ""
},
{
"log_codes": [
"DuplicateUids"
],
"type": "ManagedReference",
"source_relative_path": "api/Evil_DICOM.Network.Messaging.SendStatus.yml",
"output": {
Expand Down Expand Up @@ -4659,7 +4659,7 @@
"output": {
".html": {
"relative_path": "api/index.html",
"hash": "jwaCRXdgUlb/LTMZL7lY5Q=="
"hash": "6XtTfpsi7le9OSlslhYmgQ=="
}
},
"is_incremental": false,
Expand All @@ -4683,7 +4683,7 @@
"output": {
".html": {
"relative_path": "articles/anonymization.html",
"hash": "fSpSIEfACkkZphe6qLmujQ=="
"hash": "p9xdcOIJPJJ/FlPWciXRMg=="
}
},
"is_incremental": false,
Expand All @@ -4695,7 +4695,7 @@
"output": {
".html": {
"relative_path": "articles/dvhCalculation.html",
"hash": "YOhOuHeRgxs/r7f6AjyHyg=="
"hash": "DqaU9feRFh6/uz68YL61Hw=="
}
},
"is_incremental": false,
Expand All @@ -4707,7 +4707,7 @@
"output": {
".html": {
"relative_path": "articles/helpers.html",
"hash": "gR3T+qOJzq7XS9x4cSRejA=="
"hash": "PT0jvpycqW96cKnEn+ZBlQ=="
}
},
"is_incremental": false,
Expand All @@ -4719,7 +4719,7 @@
"output": {
".html": {
"relative_path": "articles/networking.html",
"hash": "TAO8NVJS6KPrKyNOJeVzOQ=="
"hash": "Ui3DP93VUl0v+r1XJnr4mQ=="
}
},
"is_incremental": false,
Expand All @@ -4731,7 +4731,7 @@
"output": {
".html": {
"relative_path": "articles/operations.html",
"hash": "PeZ9xZpqCP735QkTSql88w=="
"hash": "ceXuvjiJS4m587lEGH5CeA=="
}
},
"is_incremental": false,
Expand All @@ -4743,7 +4743,7 @@
"output": {
".html": {
"relative_path": "articles/selection.html",
"hash": "Z4eqlP4dVN6xBiTx/OFBmw=="
"hash": "rAhbSk560gMXhqfRyQc8zA=="
}
},
"is_incremental": false,
Expand All @@ -4755,19 +4755,19 @@
"output": {
".html": {
"relative_path": "articles/structure.html",
"hash": "7y60KXqHxF1RhK0wN62iOQ=="
"hash": "pcNndi2lXW9hwXV7dJv2Dg=="
}
},
"is_incremental": false,
"version": ""
},
{
"type": "Toc",
"source_relative_path": "articles/toc.md",
"source_relative_path": "articles/toc.yml",
"output": {
".html": {
"relative_path": "articles/toc.html",
"hash": "ebHxViKNdjCEmoZiyl9nrA=="
"hash": "GtO8sEwhttM/jlaImwG8lQ=="
}
},
"is_incremental": false,
Expand Down Expand Up @@ -4812,7 +4812,7 @@
"output": {
".html": {
"relative_path": "index.html",
"hash": "KQSDq4qwAUEiEoNLEOSEZw=="
"hash": "r7YoLdkI1wXMejJCC2EopQ=="
}
},
"is_incremental": false,
Expand Down