[ 
https://issues.apache.org/jira/browse/NIFI-1968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15315620#comment-15315620
 ] 

ASF GitHub Bot commented on NIFI-1968:
--------------------------------------

GitHub user jfrazee opened a pull request:

    https://github.com/apache/nifi/pull/495

    NIFI-1968 ExtractHL7Attributes is squashing empty components

    This updates ExtractHL7Attributes and corresponding tests so it works with 
empty components (^^) in sub-segments. It uses the built in encoding 
functionality from the HAPI HL7 API so the NiFi getValue() is removed. It's 
worth noting that HL7's encoding of some fields (MSH.1 and MSH.2) aren't the 
plain text so these are unescaped in this fix. Escaping them would be a 
breaking change that arguably doesn't relate to any bug. Not sure what the 
right thing there is.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jfrazee/nifi NIFI-1968

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/495.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #495
    
----
commit 91e7584d0cb97e876d7078e50bd56d5289c12331
Author: Joey Frazee <[email protected]>
Date:   2016-06-04T19:51:18Z

    Fixes NIFI-1968 so ExtractHL7Attributes will keep empty components

----


> ExtractHL7Attributes is squashing empty components
> --------------------------------------------------
>
>                 Key: NIFI-1968
>                 URL: https://issues.apache.org/jira/browse/NIFI-1968
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 0.6.1
>            Reporter: Joey Frazee
>            Priority: Minor
>
> The ExtractHL7Attributes processor does't retain empty components (elements 
> delimited with ^ in segment fields). For example if the segment is 
> {{PID|||2005651^^^EPI^MR||CHARTXPRESS^ONE||19930107|F|||||||ENG|||1000107217}}
>  the PID.3 field will be incorrectly simplified to {{2005651^EPI^MR}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to