everglade

0.0.1 • Public • Published

everglade

A naïve HL7 scrubber. It currently removes identifying information from the following fields:

  • PID|5
  • PID|7
  • PID|11
  • NK1|2
  • NK1|4

... and replaces it with fake data.

Usage

Given a file sample-hl7.txt with the following HL7:

MSH|^~\&|REG|XYZ||XYZ|20050912110538||SIU^S12|4676115|P|2.3|EVN|A04|20050912110538|||VKP
PID|||353966||SMITH^JOHN^^^^||19820707|F||C|108 MAIN STREET ^^ANYTOWN^TX^77777^^|HARV|(512)555-0170|||||00362103|123-45-6789||||||||||||
SCH|1||||||NEW||||20050912110230^20050912110430||||||||||||||||||^^^^^^||3|
PV1||O|SEROT|3|||1284^JOHNSON^MIKE^S.^^MD~|||SEROT||||1|||1284^JOHNSON^MIKE^S.^^ MD|SERIES|787672|B|||||||||N||||||||||||A|||20050912110230|||||| PV2|||HAND BRACE NEEDS REPAIRED|||||||||||20050912||||||||||A||20050725|||||O||||||
NK1|0001|HULK^INCREDIBLE|M|123 FAKE ST^^OUTLAND^^00000|123456789||

Run this command:

everglade sample-hl7.txt > scrubbed.txt

Installation

$ npm install everglade

Development

Caveat

This package is in its infancy, use with extreme caution.

/everglade/

    Package Sidebar

    Install

    npm i everglade

    Weekly Downloads

    1

    Version

    0.0.1

    License

    none

    Last publish

    Collaborators

    • wombleton