Releases: RobHolme/HL7-Powershell-Module
v1.7.14
Added -MessageString parameter to Send-HL7Message. This accepts the HL7 message as a string, instead of providing a file name.
This parameter will accept either:
- An array of strings [string[]], with one HL7 Segment per array item.
- A single string [string]. Each HL7 Segment needs to be delimited with a Carriage Return character.
v1.7.13
v1.7.12
v1.7.11
Updated Select-HL7Item so that an empty value for fields not present in the message are returned. This mainly applies to repeating items, such as repeating segments. Now the number of fields returned should match the number of segments - if individual segments do not contain a value then an empty value is added to the array of values returned.
e.g. not every OBX segment in this message contains a OBX-6.2 field

The previous behaviour omitted the values from the results, so the array of values returned may contain less elements than there were segments.
v1.7.10
v1.7.8
v1.7.7
v1.7.6
Select-HL7Item
Added support for multiple values in the -ItemPosition parameter. Values for all items listed will be returned. e.g.
Select-HL7Item -Path c:\test\*.hl7 -ItemPosition PID-3.1,PID-5
PID-3 PID-5 Filename
----- ----- --------
9999999^^^ContosoHospital^UMR SMITH^TESTING^SAM C:\test\202006201148_415045_DFT^P03.hl7
9999999^^^ContosoHospital^UMR SMITH^TESTING^SAM C:\test\202006201151_884909_DFT^P03.hl7
9999999^^^ContosoHospital^UMR SMITH^TESTING^SAM C:\test\202006201152_262858_DFT^P03.hl7
Default view is a table - if long values are returned some columns may not be displayed in the default view. Either pipe the results to Format-List, or Select-Object (and specify the property names to display).
v1.7.5
v1.7.4
Added -Encoding parameter to
- Remove-HL7Identifiers
- Remove-HL7Item
- Select-HL7Item
- Set-HL7Item
This parameter supports ISO-8859-1 or UTF-8 character encoding. If this parameter is not provided it will default to UTF-8 encoding (the default in prior versions).