{"id":17549,"date":"2024-06-07T12:10:08","date_gmt":"2024-06-07T16:10:08","guid":{"rendered":"https:\/\/www.iri.com\/blog\/?p=17549"},"modified":"2026-04-07T10:35:01","modified_gmt":"2026-04-07T14:35:01","slug":"masking-phi-in-hl7-edi-files-with-darkshield","status":"publish","type":"post","link":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/","title":{"rendered":"Masking PHI in HL7 EDI Files with DarkShield"},"content":{"rendered":"<h4><strong>Introduction<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">The <\/span><a href=\"https:\/\/www.iri.com\/products\/darkshield\"><span style=\"font-weight: 400;\">IRI DarkShield<\/span><\/a><span style=\"font-weight: 400;\"> data masking product now includes fit-for-purpose wizards in the <\/span><a href=\"https:\/\/www.iri.com\/products\/workbench\/darkshield-gui\"><span style=\"font-weight: 400;\">IRI Workbench<\/span><\/a><span style=\"font-weight: 400;\"> IDE to search (classify) and mask (remediate) sensitive \u201ddark data\u201d (as defined by Gartner) in many semi, unstructured, and structured file, NoSQL, and relational database (RDB) sources. This article focuses on a new wizard designed to help you discover and de-identify PHI in healthcare documents in Health Level Seven (HL7) v2.x format.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Though not discussed in this article, DarkShield also includes wizards for other sources, like the <\/span><a href=\"https:\/\/www.iri.com\/blog\/data-protection\/finding-and-masking-pii-in-files-with-the-darkshield-files-wizard\/\"><i><span style=\"font-weight: 400;\">New File Search\/Masking Job &#8230;<\/span><\/i><\/a> <span style=\"font-weight: 400;\">wizard for sensitive data in files, the <\/span><a href=\"https:\/\/www.iri.com\/blog\/data-protection\/finding-and-masking-nosql-dbs-with-the-darkshield-gui\"><i><span style=\"font-weight: 400;\">New NoSQL DB Search\/Masking Job &#8230;<\/span><\/i><\/a><i><span style=\"font-weight: 400;\">\u00a0<\/span><\/i><span style=\"font-weight: 400;\">wizard for sensitive data in a NoSQL database, and the <\/span><em><a href=\"https:\/\/www.iri.com\/blog\/data-protection\/finding-and-masking-pii-in-relational-databases-with-the-darkshield-rdb-wizard\/\"><span style=\"font-weight: 400;\">New Relational DB Search\/Masking Job \u2026<\/span><\/a><\/em><span style=\"font-weight: 400;\"> wizard for sensitive data inside RDB.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-18975\" src=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/12\/DarkShield-Architecture-V6-731x1024.png\" alt=\"\" width=\"453\" height=\"635\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/12\/DarkShield-Architecture-V6.png 731w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/12\/DarkShield-Architecture-V6-214x300.png 214w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/12\/DarkShield-Architecture-V6-768x1075.png 768w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/12\/DarkShield-Architecture-V6-1097x1536.png 1097w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/12\/DarkShield-Architecture-V6-1463x2048.png 1463w\" sizes=\"(max-width: 453px) 100vw, 453px\" \/><\/p>\n<h4><strong>What the DarkShield Healthcare Wizard Does<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">The \u201c<\/span><i><span style=\"font-weight: 400;\">New Healthcare Search\/Masking Job \u2026<\/span><\/i><span style=\"font-weight: 400;\">\u201d wizard in the IRI Workbench <\/span><a href=\"https:\/\/www.iri.com\/products\/workbench\/darkshield-gui\"><span style=\"font-weight: 400;\">GUI for DarkShield<\/span><\/a><span style=\"font-weight: 400;\"> creates a DarkShield Job (.dsc file) with the Search and Mask Contexts applicable to your job.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Search Contexts contain instructions on how to search for PII and its source. Mask Contexts contain instructions on masking the PII found during the search operations, and how to access the target where the masked version of data will be sent.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The searching and masking of data in HL7 documents is based on Data Classes you pre-define and store in an <\/span><i><span style=\"font-weight: 400;\">IRI Data Class and Rule Library <\/span><\/i><span style=\"font-weight: 400;\">or while creating this DarkShield job. Each Data Class contains one or more search methods called Search Matchers used to identify PII.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">HL7 documents specifically use <\/span><i><span style=\"font-weight: 400;\">Location Matchers<\/span><\/i><span style=\"font-weight: 400;\"> but other matchers can be used in unison to broaden the search range. For more information on the various search methods available, read about<\/span><a href=\"https:\/\/www.iri.com\/blog\/data-protection\/data-matchers\/\"> <span style=\"font-weight: 400;\">Data Matchers<\/span><\/a><span style=\"font-weight: 400;\"> and <\/span><a href=\"https:\/\/www.iri.com\/blog\/data-protection\/location-matchers\/\"><span style=\"font-weight: 400;\">Location Matchers<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">While DarkShield previously supported HL7 documents, it has now been enhanced with a user-friendly front-end interface. Additionally, DarkShield has undergone improvements, now accommodating sub-fields and repeating segments, topics we will delve into later in this article.<\/span><\/p>\n<h4><strong>Prerequisites<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">You may need to update your DarkShield API and Workbench <\/span><a href=\"https:\/\/www.iri.com\/products\/workbench\/darkshield-gui\"><span style=\"font-weight: 400;\">IDE<\/span><\/a><span style=\"font-weight: 400;\">; see <\/span><a href=\"https:\/\/www.youtube.com\/watch?v=kP-UYws5k6s\"><span style=\"font-weight: 400;\">this YouTube video<\/span><\/a><span style=\"font-weight: 400;\"> for instructions, and email <\/span><a href=\"mailto:support@iri.com\"><span style=\"font-weight: 400;\">darkshield@iri.com<\/span><\/a><span style=\"font-weight: 400;\"> if you need help or have any questions. Before launching the DarkShield Healthcare wizard, ensure these preliminary steps are completed:<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17555\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/Prerequisites-preliminary-steps-300x243.png\" alt=\"\" width=\"660\" height=\"535\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Prerequisites-preliminary-steps-300x243.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Prerequisites-preliminary-steps-768x622.png 768w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Prerequisites-preliminary-steps.png 783w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">1. First, verify that the DarkShield API distribution directory is specified in <\/span><i><span style=\"font-weight: 400;\">IRI Workbench <img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/docsz\/AD_4nXdRZfZrHpeNR-kUsWYEfDzQkEnDHl5u5ECRyyFeeSZnvsupsxpjtaxZbA-1ZHkGJQHVCAy5eiz8AgvlLXOv41twOxsF8T_NEjX9XCEvCu6q5VoEO7TdpvBWNCLuHa-IymdIlD-t239BnuxXAkS6g3WzIow?key=zubyp6f1ddZn5PLrkl9H3g\" \/> <\/span><\/i><i><span style=\"font-weight: 400;\">Preferences &gt; IRI &gt; DarkShield<\/span><\/i><span style=\"font-weight: 400;\">. From here, you can configure DarkShield GUI and API preferences, including the host, port, and directory holding the DarkShield API:<\/span><\/p>\n<p>2. If the DarkShield API distribution (Plankton) has not been specified in Preferences or your DarkShield Job will be using a different DarkShield API distribution, you will need to manually change the specified folder in the image above to reflect where the DarkShield API is located.<\/p>\n<p><span style=\"font-weight: 400;\">3. Second, all DarkShield Wizards require a project possessing an IRI Data Class and Rule Library. The library can be empty, as this wizard can create data classes and rules on its own without the user needing to set them up. To learn more about IRI Data Class and Rule Library and creating Data Classes and Rules, read this<\/span><a href=\"https:\/\/www.iri.com\/blog\/data-protection\/iri-data-classification\/\"> <span style=\"font-weight: 400;\">article<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17556\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/IRI-Project-300x55.png\" alt=\"\" width=\"649\" height=\"119\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/IRI-Project-300x55.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/IRI-Project.png 687w\" sizes=\"(max-width: 649px) 100vw, 649px\" \/><\/p>\n<p style=\"text-align: center;\"><i><span style=\"font-weight: 400;\">IRI Project Containing an IRI Data Class and Rule Library<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">4. Finally, verify that the Plankton (DarkShield API) server is running. This can be done by opening the DarkShield API Status view (bottom of the screen). This view displays information about the DarkShield API, including whether it is currently running.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17557\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/DarkShield-API-Status-300x145.png\" alt=\"\" width=\"534\" height=\"258\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/DarkShield-API-Status-300x145.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/DarkShield-API-Status.png 557w\" sizes=\"(max-width: 534px) 100vw, 534px\" \/><\/p>\n<h4><strong>Using the Wizard<\/strong><\/h4>\n<p><span style=\"font-weight: 400;\">To access the wizard, navigate to the DarkShield menu dropdown and choose <\/span><i><span style=\"font-weight: 400;\">&#8216;New Healthcare Search\/Masking Job\u2026&#8217;<\/span><\/i><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17560\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/New-Healthcare-Search-Masking-Job-300x86.png\" alt=\"\" width=\"526\" height=\"151\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/New-Healthcare-Search-Masking-Job-300x86.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/New-Healthcare-Search-Masking-Job.png 498w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">This action opens the first page, where you will specify the source type, in this case, HL7. From this menu you will also find options for PHI discovery and de-identification in <a href=\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-x12-edi-files-with-darkshield\/\">X12<\/a> formats, and <a href=\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-fhir-edi-files-with-darkshield\/\">FHIR<\/a>, too.\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17593\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/HL7-Wizards2-300x123.png\" alt=\"\" width=\"503\" height=\"206\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/HL7-Wizards2-300x123.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/HL7-Wizards2.png 515w\" sizes=\"(max-width: 503px) 100vw, 503px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">After selecting the source type, the next page will prompt you to specify the name and location of the DarkShield job you are building. You also have the option to use previously created Data Classes or Data Class Groups.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you do, this streamlines the process of setting up the job without more steps by leveraging the classes that have already been defined or modified in the library or previous use of this wizard.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If this is your first time defining a DarkShield job for HL7 however, we recommend that you do not use this option. The next pages of the wizard will take you through the very specific types of HL7 data segments you need to classify.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17594\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/New-HL7-Darkshield-Job2-300x155.png\" alt=\"\" width=\"536\" height=\"277\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/New-HL7-Darkshield-Job2-300x155.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/New-HL7-Darkshield-Job2.png 656w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">After the setup page is the PII General and Advanced Selection Page. Here, predefined \u201cgroupings<\/span><span style=\"font-weight: 400;\">\u201d <span id='easy-footnote-1-17549' class='easy-footnote-margin-adjust'><\/span><span class='easy-footnote'><a href='https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#easy-footnote-bottom-1-17549' title='&lt;span class=&quot;c8&quot;&gt;We define groupings as general categories of PII \/ PHI that reflect&lt;\/span&gt;&lt;span class=&quot;c8&quot;&gt;\u00a0&lt;\/span&gt;&lt;span class=&quot;c8&quot;&gt;information related to that group name. The HL7 groupings are conceptually similar to a Data Class Group but are\u00a0&lt;\/span&gt;&lt;span class=&quot;c8&quot;&gt;statically predefined.'><sup>1<\/sup><\/a><\/span> <\/span><\/span>of common Personally Identifiable Information (PII) or Protected Health Information (PHI) types found within healthcare documents are presented.<\/p>\n<p><span style=\"font-weight: 400;\">It&#8217;s important to note that while these groupings cover many PII instances, they may not encompass all of them within a document. Therefore, you should carefully review all information during job creation to ensure the accuracy of your data discovery and de-identification results.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">On this page, we can select these groupings for easier searching and masking of PII \/ PHI:<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17595\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/PII-General-Selection-Wizard2-300x164.png\" alt=\"\" width=\"620\" height=\"339\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/PII-General-Selection-Wizard2-300x164.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/PII-General-Selection-Wizard2.png 655w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The \u201cAdvanced\u201d section of the wizard gives you more granular control over the segments, fields, and sub-fields to define for searching and masking purposes. For this example, we will be using both a general selection (Street Address) <\/span><i><span style=\"font-weight: 400;\">and<\/span><\/i><span style=\"font-weight: 400;\"> a few advanced selections.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17569\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/Advance-section-wizard-290x300.png\" alt=\"\" width=\"551\" height=\"570\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Advance-section-wizard-290x300.png 290w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Advance-section-wizard.png 658w\" sizes=\"(max-width: 551px) 100vw, 551px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">This next wizard page enables you to filter out any unnecessary information from the general grouping selection, made on the previous page. Filtering of this kind can improve job speed.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Here, you&#8217;re presented with a list comprising the &#8216;Street Address&#8217; general selection. If your documents don&#8217;t contain any segments from this list, there&#8217;s no need for filtering, as they will be automatically skipped.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">However, if you prefer not to mask any of this information, you can simply deselect it from the table. For the sake of this example, we&#8217;ll keep all the information selected.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17571\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/filtering-option-291x300.png\" alt=\"\" width=\"556\" height=\"573\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/filtering-option-291x300.png 291w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/filtering-option.png 659w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The next wizard page is the &#8216;Rule Selection Wizard Page,&#8217; where you associate the information selected in previous wizard pages with masking rules.<\/span><b> Note that any information lacking a rule will be skipped during the search and masking process.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">On this page, you&#8217;ll find a grouping dropdown menu, allowing selection of a grouping that was declared in an earlier wizard, including information from the advanced selections. Once a grouping is selected, you can add a rule directly to the entire group by choosing a rule from the dropdown menu and clicking the &#8216;Add Group Rule&#8217; button.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There is also an optional dropdown menu labeled Segment. This permits the application of a rule solely to the selected segment within the grouping.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Within the table, you can also click on, and directly modify the rule cell using a dropdown menu to select a rule for a specific item. This provides even more granular control of the masking job.\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17573\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/masking-rule-selection-290x300.png\" alt=\"\" width=\"576\" height=\"596\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/masking-rule-selection-290x300.png 290w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/masking-rule-selection.png 656w\" sizes=\"(max-width: 576px) 100vw, 576px\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17596\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/Assign-masking-rules-to-segments2-300x178.png\" alt=\"\" width=\"594\" height=\"352\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Assign-masking-rules-to-segments2-300x178.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Assign-masking-rules-to-segments2.png 658w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">The \u201cCreate Rule\u201d button allows you to create a rule directly from this wizard. For more information about creating a rule, or what the masking rules are, refer to <\/span><a href=\"https:\/\/www.iri.com\/blog\/data-protection\/iri-data-classification\/\"><span style=\"font-weight: 400;\">this blog article<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The final option on this page is the \u201cRepeating Segment #\u201d column in the table. This is designed to be used with documents that contain duplicate segments as noted by duplicate NK1 segments in this example:\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17576\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/repeating-segment-300x30.png\" alt=\"\" width=\"690\" height=\"69\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/repeating-segment-300x30.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/repeating-segment-768x76.png 768w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/repeating-segment.png 830w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">If there are duplicate segments, you may need to represent them within the table. The \u201cRepeating Segment #\u201d defaults to the first occurrence of the segment.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The last two wizard pages are used to define or modify the locations of your unmasked file sources and masked targets. You can specify local PC or LAN file system paths or cloud buckets; each target file will have the same name as the source. If you specify more than one target, the masked files will be copied into every defined folder.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17579\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/data-target-300x220.png\" alt=\"\" width=\"525\" height=\"385\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/data-target-300x220.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/data-target.png 601w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17580\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/data-sources-300x223.png\" alt=\"\" width=\"517\" height=\"385\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/data-sources-300x223.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/data-sources.png 600w\" sizes=\"(max-width: 517px) 100vw, 517px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">When you click finish, the DarkShield job configuration (.dsc) file will be created in the \u201cProject Explorer\u201d folder specified on the first wizard page. A new HL7 data class group will also be created inside the \u201ciriLibrary.dcrlib\u201d in your project, which contains the data classes you just defined in the wizard.\u00a0<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17581\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/iriLibrary-300x122.png\" alt=\"\" width=\"344\" height=\"140\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/iriLibrary-300x122.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/iriLibrary.png 326w\" sizes=\"(max-width: 344px) 100vw, 344px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Within these Data Classes, every detail can be altered without the need to revisit the wizard. This flexibility enables you to modify, add, or remove any Data Classes, significantly reducing setup time for future jobs, especially if requirements change.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17582\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/data-classes-rules-wizard-300x70.png\" alt=\"\" width=\"898\" height=\"210\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/data-classes-rules-wizard-300x70.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/data-classes-rules-wizard-1024x238.png 1024w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/data-classes-rules-wizard.png 1434w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Double-click on your .dsc file to see the &#8216;DarkShield Job Details Page&#8217;. Review the source, target, and data class information. It&#8217;s important to note that any changes made to items within the .dcrlib file require selecting the &#8216;Modify&#8217; button and completing the wizard to ensure those changes are reflected in the .dsc file.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17583\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/DarkShield-Job-Details-Page-300x106.png\" alt=\"\" width=\"1138\" height=\"402\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/DarkShield-Job-Details-Page-300x106.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/DarkShield-Job-Details-Page-1024x362.png 1024w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/DarkShield-Job-Details-Page-768x272.png 768w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/DarkShield-Job-Details-Page.png 1425w\" sizes=\"(max-width: 1138px) 100vw, 1138px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">To run your job, right-click on the .dsc file and select the type of job you want. In this case, I am choosing a combined search and masking job.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17584\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/dsc-file-280x300.png\" alt=\"\" width=\"562\" height=\"602\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/dsc-file-280x300.png 280w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/dsc-file.png 717w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Upon examining the sample HL7 source and target file below, we can see the PII masked in various ways, including pseudonymization and format-preserving encryption (FPE) for realism. Many other masking (and data generation) functions are supported; see <\/span><a href=\"https:\/\/www.iri.com\/solutions\/data-masking\/static-data-masking\"><span style=\"font-weight: 400;\">this<\/span><\/a><span style=\"font-weight: 400;\"> page.<\/span><\/p>\n<h6><span style=\"font-weight: 400;\">\u00a0<\/span><b>Sample HL7 Source File:<\/b><\/h6>\n<p style=\"text-align: center;\"><b>\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17585\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/Sample-HL-Source-File-300x50.png\" alt=\"\" width=\"894\" height=\"149\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Sample-HL-Source-File-300x50.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Sample-HL-Source-File-768x127.png 768w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Sample-HL-Source-File.png 1002w\" sizes=\"(max-width: 894px) 100vw, 894px\" \/><\/b><\/p>\n<h6><b>Masked Target:<\/b><\/h6>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17586\" src=\"\/blog\/wp-content\/uploads\/2024\/06\/Masked-Target-300x49.png\" alt=\"\" width=\"814\" height=\"133\" srcset=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Masked-Target-300x49.png 300w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Masked-Target-768x124.png 768w, https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Masked-Target.png 1018w\" sizes=\"(max-width: 814px) 100vw, 814px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">In addition to the masked files, an audit log file called results.json log is generated. It details which data classes matched on information in the HL7 file(s) and the corresponding rules used to mask it. It is also possible to generate aggregate visualization of the discovered PII and whether it was masked in built-in dashboard charts per <\/span><a href=\"https:\/\/www.iri.com\/blog\/data-protection\/darkshield-pii-discovery-masking-charts\/\"><span style=\"font-weight: 400;\">this article<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">If you would like help using this wizard to scan and\/or mask data \u2013 or with any other data source(s) \u2013 please contact your IRI<\/span><a href=\"https:\/\/www.iri.com\/partners\/resellers\"> <span style=\"font-weight: 400;\">representative<\/span><\/a><span style=\"font-weight: 400;\"> or email <\/span><a href=\"mailto:darkshield@iri.com\"><span style=\"font-weight: 400;\">darkshield@iri.com<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<section>\n<div class=\"container plain-width\">\n<div class=\"faq-section\">\n<h3>Frequently Asked Questions (FAQs)<\/h3>\n<div class=\"faq-item\">\n<div class=\"faq-question\">1. What is HL7 and why is it important to mask PHI in HL7 files? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">HL7 (Health Level Seven) is a widely used messaging standard for transferring patient data between healthcare systems. Masking Protected Health Information (PHI) in HL7 files is essential to protect patient privacy, comply with HIPAA and other data privacy laws, and prevent unauthorized disclosure of sensitive health information during data sharing, analytics, or testing.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">2. How does the DarkShield Healthcare Wizard help with HL7 masking? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">The DarkShield healthcare data search and mask wizard in IRI Workbench guides users through creating a job configuration that searches for and masks PHI in HL7 v2.x files. It allows you to select predefined PII\/PHI groupings, apply masking rules, and define sources and targets for masked output, streamlining the entire process.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">3. What are Search and Mask Contexts in DarkShield? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">Search Contexts define how to locate PII in HL7 files using matchers such as Location Matchers. Mask Contexts specify how to apply masking functions to the identified data and where to send the masked results.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">4. How do I prepare IRI Workbench for HL7 masking? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">Before using the wizard, verify that the DarkShield API distribution is specified in IRI Workbench Preferences, ensure that the Plankton API server is running, and have a project that contains or can generate a Data Class and Rule Library. These steps allow the wizard to function properly.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">5. What kind of PHI can the wizard detect in HL7 files? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">The wizard can detect a wide range of PHI, including patient names, addresses, phone numbers, medical record numbers, and other identifiers. It uses predefined groupings and allows advanced selection for granular targeting of segments, fields, and sub-fields.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">6. How do masking rules work in HL7 jobs? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">Masking rules define the specific function applied to the discovered PHI, such as pseudonymization, redaction, or format-preserving encryption (<a href=\"https:\/\/www.iri.com\/solutions\/data-masking\/static-data-masking\/encrypt\/format-preserving-encryption\">FPE<\/a>). Rules can be applied to entire data groups or at the segment and field level for more precise control.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">7. Can I customize or add new Data Classes? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">Yes. You can create new Data Classes directly from the wizard or modify existing ones in the <a href=\"https:\/\/www.iri.com\/blog\/data-protection\/iri-data-classification\/\">Data Class and Rule Library<\/a>. This flexibility allows you to tailor your PHI search and masking process to your organization\u2019s specific requirements.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">8. How are repeating segments in HL7 handled? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">The wizard includes a \u201cRepeating Segment #\u201d column that allows you to specify which occurrences of a repeating segment to mask. This is useful for documents with multiple instances of the same HL7 segment, such as multiple NK1 (next of kin) records.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">9. Where are masked HL7 files saved? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">Masked files are saved in the target directories you specify during job creation. You can set multiple targets, and DarkShield will output the masked results to all selected locations, maintaining the same file names as the source files.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">10. How can I verify what data was masked? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">DarkShield generates an audit log file called results.json that lists which PHI values were matched and which masking rules were applied. You can also generate <a href=\"https:\/\/www.iri.com\/blog\/data-protection\/darkshield-pii-discovery-masking-charts\/\">dashboard charts<\/a> to visualize data discovery and masking results.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">11. What masking functions are supported for HL7 data? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">DarkShield supports a range of <a href=\"https:\/\/www.iri.com\/solutions\/data-masking\/static-data-masking\">data masking functions<\/a>, including: format-preserving encryption, pseudonymization, hashing, redaction, and randomization. These can be applied to ensure masked data remains realistic and usable for testing and analytics.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">12. Can I modify a job after it has been created? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">Yes. You can double-click the .dsc job configuration file to open the job details page and adjust the source, target, or data classes. Any changes made to the Data Class Library can be re-applied by running the Modify wizard.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">13. How do I run an HL7 masking job once it is created? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">Right-click on the .dsc file in IRI Workbench and choose \u201cRun As &gt; IRI Search and Masking Job.\u201d This will execute the combined search and masking process and generate the masked HL7 output and audit logs.<\/div>\n<\/div>\n<div class=\"faq-item\">\n<div class=\"faq-question\">14. Can I use this process for other healthcare formats? <i class=\"faq-icon fa fa-plus\"><\/i><i class=\"faq-icon fa fa-minus\"><\/i><\/div>\n<div class=\"faq-answer\">Yes. DarkShield also provides wizards for FHIR, X12, DICOM, and many <a href=\"https:\/\/www.iri.com\/products\/workbench\/data-sources\">other data sources<\/a>. The workflow is similar and allows you to reuse data classes and masking rules across multiple database and file types for consistency.<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Introduction The IRI DarkShield data masking product now includes fit-for-purpose wizards in the IRI Workbench IDE to search (classify) and mask (remediate) sensitive \u201ddark data\u201d (as defined by Gartner) in many semi, unstructured, and structured file, NoSQL, and relational database (RDB) sources. This article focuses on a new wizard designed to help you discover and<\/p>\n<div><a class=\"btn-filled btn\" href=\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/\" title=\"Masking PHI in HL7 EDI Files with DarkShield\">Read More<\/a><\/div>\n","protected":false},"author":204,"featured_media":17591,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[8],"tags":[1386,340,14,18,15,1780,1781,1260,1412,2474,1266,1669,1388,152,1877,1410],"class_list":["post-17549","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-protection","tag-darkshield","tag-data-governance","tag-data-masking","tag-data-privacy","tag-data-security","tag-health-data","tag-health-level-seven","tag-hl7","tag-hl7-data-masking","tag-hl7-edi","tag-hl7-message-masking","tag-hl7-test-data","tag-iri-darkshield","tag-sensitive-data","tag-x12-edi","tag-x12-phi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.4 (Yoast SEO v23.4) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Masking PHI in HL7 EDI Files with DarkShield - IRI<\/title>\n<meta name=\"description\" content=\"Learn to find and de-identify PHI in healthcare EDI documents in HL7 v2.x format using the fit-for-purpose DarkShield healthcare wizard.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Masking PHI in HL7 EDI Files with DarkShield\" \/>\n<meta property=\"og:description\" content=\"Learn to find and de-identify PHI in healthcare EDI documents in HL7 v2.x format using the fit-for-purpose DarkShield healthcare wizard.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/\" \/>\n<meta property=\"og:site_name\" content=\"IRI\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-07T16:10:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-07T14:35:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png\" \/>\n\t<meta property=\"og:image:width\" content=\"768\" \/>\n\t<meta property=\"og:image:height\" content=\"368\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tylor Quinley\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tylorq@iri.com\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tylor Quinley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/\"},\"author\":{\"name\":\"Tylor Quinley\",\"@id\":\"https:\/\/www.iri.com\/blog\/#\/schema\/person\/287497b6de7a30d7c674b81c7cbdbbb1\"},\"headline\":\"Masking PHI in HL7 EDI Files with DarkShield\",\"datePublished\":\"2024-06-07T16:10:08+00:00\",\"dateModified\":\"2026-04-07T14:35:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/\"},\"wordCount\":2316,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.iri.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png\",\"keywords\":[\"DarkShield\",\"data governance\",\"data masking\",\"data privacy\",\"data security\",\"Health Data\",\"Health Level Seven\",\"HL7\",\"HL7 data masking\",\"HL7 EDI\",\"HL7 message masking\",\"hl7 test data\",\"IRI DarkShield\",\"sensitive data\",\"X12 EDI\",\"X12 PHI\"],\"articleSection\":[\"Data Masking\/Protection\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/\",\"url\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/\",\"name\":\"Masking PHI in HL7 EDI Files with DarkShield - IRI\",\"isPartOf\":{\"@id\":\"https:\/\/www.iri.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png\",\"datePublished\":\"2024-06-07T16:10:08+00:00\",\"dateModified\":\"2026-04-07T14:35:01+00:00\",\"description\":\"Learn to find and de-identify PHI in healthcare EDI documents in HL7 v2.x format using the fit-for-purpose DarkShield healthcare wizard.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#primaryimage\",\"url\":\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png\",\"contentUrl\":\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png\",\"width\":768,\"height\":368},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.iri.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Masking PHI in HL7 EDI Files with DarkShield\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.iri.com\/blog\/#website\",\"url\":\"https:\/\/www.iri.com\/blog\/\",\"name\":\"IRI\",\"description\":\"Total Data Management Blog\",\"publisher\":{\"@id\":\"https:\/\/www.iri.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.iri.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.iri.com\/blog\/#organization\",\"name\":\"IRI\",\"url\":\"https:\/\/www.iri.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.iri.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2019\/02\/iri-logo-total-data-management-small-1.png\",\"contentUrl\":\"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2019\/02\/iri-logo-total-data-management-small-1.png\",\"width\":750,\"height\":206,\"caption\":\"IRI\"},\"image\":{\"@id\":\"https:\/\/www.iri.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.iri.com\/blog\/#\/schema\/person\/287497b6de7a30d7c674b81c7cbdbbb1\",\"name\":\"Tylor Quinley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.iri.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/103619c915af89371c31a18efe3ece45?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/103619c915af89371c31a18efe3ece45?s=96&d=blank&r=g\",\"caption\":\"Tylor Quinley\"},\"sameAs\":[\"https:\/\/www.iri.com\/blog\/wp-admin\",\"https:\/\/x.com\/tylorq@iri.com\"],\"url\":\"https:\/\/www.iri.com\/blog\/author\/tylorq\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Masking PHI in HL7 EDI Files with DarkShield - IRI","description":"Learn to find and de-identify PHI in healthcare EDI documents in HL7 v2.x format using the fit-for-purpose DarkShield healthcare wizard.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/","og_locale":"en_US","og_type":"article","og_title":"Masking PHI in HL7 EDI Files with DarkShield","og_description":"Learn to find and de-identify PHI in healthcare EDI documents in HL7 v2.x format using the fit-for-purpose DarkShield healthcare wizard.","og_url":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/","og_site_name":"IRI","article_published_time":"2024-06-07T16:10:08+00:00","article_modified_time":"2026-04-07T14:35:01+00:00","og_image":[{"width":768,"height":368,"url":"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png","type":"image\/png"}],"author":"Tylor Quinley","twitter_card":"summary_large_image","twitter_creator":"@tylorq@iri.com","twitter_misc":{"Written by":"Tylor Quinley","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#article","isPartOf":{"@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/"},"author":{"name":"Tylor Quinley","@id":"https:\/\/www.iri.com\/blog\/#\/schema\/person\/287497b6de7a30d7c674b81c7cbdbbb1"},"headline":"Masking PHI in HL7 EDI Files with DarkShield","datePublished":"2024-06-07T16:10:08+00:00","dateModified":"2026-04-07T14:35:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/"},"wordCount":2316,"commentCount":0,"publisher":{"@id":"https:\/\/www.iri.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#primaryimage"},"thumbnailUrl":"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png","keywords":["DarkShield","data governance","data masking","data privacy","data security","Health Data","Health Level Seven","HL7","HL7 data masking","HL7 EDI","HL7 message masking","hl7 test data","IRI DarkShield","sensitive data","X12 EDI","X12 PHI"],"articleSection":["Data Masking\/Protection"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/","url":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/","name":"Masking PHI in HL7 EDI Files with DarkShield - IRI","isPartOf":{"@id":"https:\/\/www.iri.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#primaryimage"},"image":{"@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#primaryimage"},"thumbnailUrl":"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png","datePublished":"2024-06-07T16:10:08+00:00","dateModified":"2026-04-07T14:35:01+00:00","description":"Learn to find and de-identify PHI in healthcare EDI documents in HL7 v2.x format using the fit-for-purpose DarkShield healthcare wizard.","breadcrumb":{"@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#primaryimage","url":"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png","contentUrl":"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png","width":768,"height":368},{"@type":"BreadcrumbList","@id":"https:\/\/www.iri.com\/blog\/data-protection\/masking-phi-in-hl7-edi-files-with-darkshield\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.iri.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Masking PHI in HL7 EDI Files with DarkShield"}]},{"@type":"WebSite","@id":"https:\/\/www.iri.com\/blog\/#website","url":"https:\/\/www.iri.com\/blog\/","name":"IRI","description":"Total Data Management Blog","publisher":{"@id":"https:\/\/www.iri.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.iri.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.iri.com\/blog\/#organization","name":"IRI","url":"https:\/\/www.iri.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.iri.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2019\/02\/iri-logo-total-data-management-small-1.png","contentUrl":"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2019\/02\/iri-logo-total-data-management-small-1.png","width":750,"height":206,"caption":"IRI"},"image":{"@id":"https:\/\/www.iri.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.iri.com\/blog\/#\/schema\/person\/287497b6de7a30d7c674b81c7cbdbbb1","name":"Tylor Quinley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.iri.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/103619c915af89371c31a18efe3ece45?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/103619c915af89371c31a18efe3ece45?s=96&d=blank&r=g","caption":"Tylor Quinley"},"sameAs":["https:\/\/www.iri.com\/blog\/wp-admin","https:\/\/x.com\/tylorq@iri.com"],"url":"https:\/\/www.iri.com\/blog\/author\/tylorq\/"}]}},"jetpack_featured_media_url":"https:\/\/www.iri.com\/blog\/wp-content\/uploads\/2024\/06\/Featured-Image-for-Masking-PII-in-HL7.png","_links":{"self":[{"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/posts\/17549"}],"collection":[{"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/users\/204"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/comments?post=17549"}],"version-history":[{"count":30,"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/posts\/17549\/revisions"}],"predecessor-version":[{"id":19152,"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/posts\/17549\/revisions\/19152"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/media\/17591"}],"wp:attachment":[{"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/media?parent=17549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/categories?post=17549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iri.com\/blog\/wp-json\/wp\/v2\/tags?post=17549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}