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 22:43:20 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

I have updated the HL7 importer such that Jim's new test file
(I hadn't seen that file before) imports properly (given
python-hl7 0.3.x).

I have improved several aspects along the way:

The .source_data field now also holds the OBR corresponding
to the given OBX which helps in making more sense out of
results relying on the OBR to provide context.

Consecutive OBX segments which are different in set_id (2),
sub_id (5), and value (6) *only*, such as this:

        OBX|1|FT|27898-6^Pathology Studies|1|SPECIMENS 
RECEIVED:||||||F|||20100507162331
        OBX|2|FT|27898-6^Pathology Studies|2|\.br\||||||F|||20100507162331
        OBX|3|FT|27898-6^Pathology Studies|3|A: Bone Marrow 
Aspirate||||||F|||20100507162331
        OBX|4|FT|27898-6^Pathology Studies|4|B: Bone Marrow 
biopsy||||||F|||20100507162331
        OBX|5|FT|27898-6^Pathology Studies|5|\.br\||||||F|||20100507162331
        OBX|6|FT|27898-6^Pathology Studies|6|FINAL 
DIAGNOSIS:||||||F|||20100507162331
        OBX|7|FT|27898-6^Pathology Studies|7|\.br\||||||F|||20100507162331
        OBX|8|FT|27898-6^Pathology Studies|8|Peripheral blood, bone marrow 
aspirate and biopsy showing:||||||F|||20100507162331
        OBX|9|FT|27898-6^Pathology Studies|9|1. Findings consistent with mixed 
phenotype acute leukemia, B/myeloid.||||||F|||20100507162331
        OBX|10|FT|27898-6^Pathology Studies|10|\.br\||||||F|||20100507162331

to be concatenated into a _single_ OBX with a combined value
field. The values get separated by the in-HL7 linebreak
"\.br\". That way, upon import the eventual text value inside
GNUmed will be just one text value with real line breaks (\n).

Formatted HL7 will also show multi-line values much better.

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

Attachment: screenshot_001.png
Description: PNG image

Attachment: screenshot_002.png
Description: PNG image

Attachment: gm-incoming_data_unmatched-1esobJ.tmp
Description: Text document


reply via email to

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