Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A naïve HL7 scrubber: tries to remove identifying information from HL7 messages.
CoffeeScript JavaScript
Branch: master
Pull request Compare This branch is 2 commits ahead of medic:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
.gitignore
README.md
package.json
sample-hl7.txt

README.md

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
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.

Something went wrong with that request. Please try again.