gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] GNUmed HL7 import


From: Busser, Jim
Subject: Re: [Gnumed-devel] GNUmed HL7 import
Date: Wed, 21 Jan 2015 16:32:26 +0000

On 2015-01-21, at 6:23 AM, Karsten Hilbert <address@hidden> wrote:

> On Wed, Jan 21, 2015 at 02:07:24PM +0000, Jim Busser wrote:
> 
>>>>>> 1 QA 201012 HL7 2.3.xml
>>>> 
>>>> Attached
>>> 
>>> For me, the HL7 extracts just fine from this XML.
>> 
>> Under 1.5.2 or under devel?
> 
> No code changes so far.

The file was line-ended by Windows CR, not line feeds.

However once I replaced the above, what resulted was:

- within the directory of the source .xml file, a directory

        failed

containing

        1 QA 201006 HL7 2.3-aPHMi_.split.log

containing

    splitting HL7 file: /Users/djb/Documents/Computing/GNUmed/Excelleris/1 QA 
201006/1 QA 201006 HL7 2.3.xml
    log file: 
/var/folders/vq/dqn33vzx2_j3ktqct7xtm5kw0000gq/T/gnumed/djb/gm-26hUm8/1 QA 
201006 HL7 2.3-aPHMi_.split.log
    target dir: /Users/djb/.gnumed/hl7
    fixing HL7 in: 
/var/folders/vq/dqn33vzx2_j3ktqct7xtm5kw0000gq/T/gnumed/djb/gm-26hUm8/1 QA 
201006 HL7 2.3-qcEAVs.hl7
    splitting 
[/var/folders/vq/dqn33vzx2_j3ktqct7xtm5kw0000gq/T/gnumed/djb/gm-26hUm8/gm-fixed_hl7-pass_2-1
 QA 201006 HL7 2.3-qcEAVs-P7SRe4.hl7] into single-MSH files
    cannot split HL7 file
    Traceback (most recent call last):
      File "/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/business/gmHL7.py", 
line 409, in split_hl7_file
        MSH_names = __split_hl7_file_by_MSH(fixed_filename, encoding)
      File "/Users/djb/Downloads/gnumed-client.1.5.2/Gnumed/business/gmHL7.py", 
line 790, in __split_hl7_file_by_MSH
        raise ValueError('HL7 file <%s> does not start with "MSH" line' % 
filename)
    ValueError: HL7 file 
</var/folders/vq/dqn33vzx2_j3ktqct7xtm5kw0000gq/T/gnumed/djb/gm-26hUm8/gm-fixed_hl7-pass_2-1
 QA 201006 HL7 2.3-qcEAVs-P7SRe4.hl7> does not start with "MSH" line

??


reply via email to

[Prev in Thread] Current Thread [Next in Thread]