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

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

GitHub user jfrazee opened a pull request:

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

    NIFI-2887 NumberFormatException in HL7ExtractAttributes for repeating 
segments with order control codes

    Fixes NIFI-2887 and adds more test cases

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

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

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

    https://github.com/apache/nifi/pull/1123.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 #1123
    
----
commit 672bd4f4f5767b80c57fc836e89051a1aa048db1
Author: Joey Frazee <joey.fra...@icloud.com>
Date:   2016-10-11T15:10:43Z

    Fixed HL7 segment index bug for order control codes, more testing

commit 2d1555d09c11f5a3a13f5f61e3eb0c30b5e5a895
Author: Joey Frazee <joey.fra...@icloud.com>
Date:   2016-10-11T15:43:49Z

    Added NOTICE entries for test data and fixed checkstyle violations

----


> NumberFormatException in HL7ExtractAttributes for repeating segments with 
> order control codes
> ---------------------------------------------------------------------------------------------
>
>                 Key: NIFI-2887
>                 URL: https://issues.apache.org/jira/browse/NIFI-2887
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.0.0, 0.7.0, 1.1.0
>            Reporter: Joey Frazee
>            Assignee: Joey Frazee
>
> HL7ExtractAttributes is throwing a NumberFormatException [1] on repeating 
> segment types that have an order control code instead of a sequence id in the 
> first field; e.g., for the segment 
> 'ORC|NW|987654321^EPC|123456789^EPC||||||20161003000000|||SMITH' the first 
> field is 'NW' and not a numeric sequence id.
> While many of the repeating types have a numeric sequence id in that 
> position, not all do, so the sequence ids can't be used for indexing the 
> segments in our attribute names.
> 1. https://gist.github.com/jfrazee/c409b708fee4247fc3b044983512f504



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

Reply via email to