Giter Site home page Giter Site logo

Comments (7)

Toolazy2work avatar Toolazy2work commented on June 14, 2024

After a little more investigation, It seems that it is having a problem going to the next line of the HL7 message.

from hl7-powershell-module.

RobHolme avatar RobHolme commented on June 14, 2024

I'd really only used it to mask the PID and NK1 segments, by default only the following fields are masked:

  • All PID fields except {"PID-1, PID-2, PID-3"}
  • All NK1 fields except {"NK1-1, NK1-3"}
  • All IN1 fields
  • All IN2 fields

I assume your sample only contains a PID segment from the above list so it appears only one segment is processed.

There are numerous other segments/fields that can potentially include identifiable information. The CmdLet allows you to list custom segments, fields, and components to mask so you can add your own specific to your messages. e.g.

Remove-HL7Identifiers -Path c:\test\testfile.hl7 -CustomItemsList PID-3.1,PID-5,NK1,DG1

Note: The CustomItemsList parameter only masks these items, so the default fields I listed above are no longer masked unless you include these in the CustomItemsList.

Give this a go.

from hl7-powershell-module.

Toolazy2work avatar Toolazy2work commented on June 14, 2024

from hl7-powershell-module.

RobHolme avatar RobHolme commented on June 14, 2024

I think I've reproduced the issue. Looks like it was expecting windows style line terminations (CRLF), and has an issue with linux line termination (LF). I use Windows predominately so not something I tested. Due to this error only the first segment will be parsed.

I'll fix this - may have to wait until the weekend until I can find some free time. Looks like most other commands in this module will be impacted by non-windows line endings as well.

Until it is fixed a short term workaround may be to change the line endings from CR to CRLF.

[Update - looks like a one line fix to correct this for all commands, I'll get onto it soon]

from hl7-powershell-module.

RobHolme avatar RobHolme commented on June 14, 2024

Updated version released - let me know if this fixes the issue.

from hl7-powershell-module.

Toolazy2work avatar Toolazy2work commented on June 14, 2024

from hl7-powershell-module.

Toolazy2work avatar Toolazy2work commented on June 14, 2024

Just Tested and this corrected the Issue! Youre doing good work here. Thank you so much for this!

from hl7-powershell-module.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.