Code Monkey home page Code Monkey logo

hl7-powershell-module's People

Contributors

robholme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hl7-powershell-module's Issues

Consider the ability to include a list of parameters for Select-HL7Item -ItemPosition

Much like how the -Filter allow for a list of items separated by comma, it would be nice to have the ability to specifically select different HL7 segments instead of selecting all. E.g. This would return two specific segments instead of fetching all of OBR if using
-ItemPosition OBR

get-childitem *.hl7| Select-HL7Item -ItemPosition OBR-2,OBR-5 -Filter OBR-18=INSTXYZ, OBX-3[1]=analyte351

ItemValue                                                                                                                                                                                                                                            
---------                                                                                                                                                                                                                                          
123456, Invalid

Receive-HL7Message -NOACK

Hello! Can you please tell me what values the -NOACK parameter takes in the Receive-HL7Message command?

Missing DLL file

Hi Rob,

I cant locate the hl7tools.dll in te files of this project.

Thanks in advance.

Remove-HL7Identifiers in Core 7 not working

Hello

The issue i am having is this commandlette isnt masking the identifiers. It is creating a new MASKED_filename.hl7 file but all of the information is left intact. FYI, this is an awesome library youve built and im very happy to be using it!.

Why this filter does not work ?

Hi,

With this PV1 segment :
PV1||O|7601^^^XX&950110999&FINEJ^^^^^^^AA|R|||0668^^^^^^^^BB^^^^EI^ETAB&950110999&FINEJ~951105212^^^^^^^^BB^^^^ADELI^ETAB&950110999&FINEJ~10000573096^^^^^^^^BB^^^^RPPS^ETAB&950110999&FINEJ|||165||||||N|||123456789^^^BB^^ETAB&950110999&FINEJ|01|10|N|||||||||||||||||||N|||20210523140300||||||456789^^^BB^^ETAB&950110999&FINEJ
I want to extract the PV1-7.1 field value if the PV1-7.13 is equal to ADELI, then RPPS and at last EI.
If I write
Select-HL7Item -Path myHL7file.hl7 -ItemPosition PV1-7.1 -filter PV1-7.13=ADELI
I get all the PV1-7.1 values, ignoring the PV1-7.13 filter.
I tested with a dummy PV1-7.13 value : I get nothing. So the filter is used.

So what's wrong ?

Thx !

Dealing with HL7 files that start with a vertical tab

I am on a project where there will be millions of HL7 messages to parse. The HL7 module works great except when trying to parse the MSH because it has a vertical tab as the first character in the file. I tried to pass `vMSH in the -ItemPosition parameter, but got the following...

Select-HL7Item : �MSH-11 does not appear to be a valid HL7 item possition
At line:1 char:9

  • $msh = Select-HL7Item -path "F:\Cerner Source Files\Documents\Sample ...
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (�MSH-11:String) [Select-HL7Item], ArgumentException
    • FullyQualifiedErrorId : InvalidElement,HL7Tools.SelectHL7Item

As I am parsing out quite a few objects out of each file, is there a way to simply read the entire file's contents into a variable, strip off the vertical tab, and then pass this string parse the string with the HL7 module? This would save opening and closing the file 15-20 times per file.

Non PowerShell Users Question

We are looking for a way to roll out a tool to our users for them to test their Network connections to our Integration Engine from their servers.

While most Windows systems have PowerShell included, do you know of a way that we could make tools into an app outside of PowerShell that could easily be deployable to customers?

Manage several occurrences of the same segment

Hi,

I have a HL7 message with several segments OBX.
I want to loop on each of them to check the values of some fields.

$numberOfOBXSegments = (Select-HL7Item file.hl7 -ItemPosition OBX)."OBX")."OBX".Count
for ( $noSegment = 0; $noSegment -lt $numberOfOBXSegments; $noSegment++) {
  $OBX_3 =  (Select-HL7Item file.hl7 -ItemPosition OBX-3)."OBX-3")."OBX-3"[ $noSegment]
 .....
}

However, if I have 3 segments with an OBX-3 field filled only on the second one for instance, the array returned by Select-HL7Item will contain only one value (at index 0). So, I can't know it's empty on the first and last occurence.

How can I do ?

Best regards,

Filter returns more matches than expected

202208300638_001738_ORU^R01.txt

Hi

I have the attached HL7 file and I am trying to get only the OBX-3 Segments where OBX-2=NM. For this, I am using the following line but it is not restricting to the filter condition

Select-HL7Item -path <file> -ItemPosition OBX-3 -Filter OBX-2=NM

It gives me 13 matching lines when I am expecting to get only 3 lines because there are only 3 OBX matching NM as OBX-2.

Any help on clarifying what I am missing here would be very much appreciated

Thanks in Advance

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.