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: Karsten Hilbert
Subject: Re: [Gnumed-devel] GNUmed HL7 import
Date: Sun, 25 Jan 2015 23:21:53 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Jan 21, 2015 at 04:32:26PM +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

That hl7 file did not contain valid content. It lacked the first line.

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

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