Re: Hl7 2.3.1 and problem with demo
Posted: Sat Jun 15, 2013 7:44 pm
Hi there...
I worked out creating message with version 2.3.1 and as a result of my efforts I have the following
Now, I want to parse this message and get data from.
I use following code
My problem is, that I get only first, three lines of message (MSH, PID and ORC), without OBR and NTE lines.
In your example you use TdiORU_R01_xxx, but as I can read in you documentation this class is for results - not for orders.
My goal is to decode and use order information - how to get it?
I found some similar topic and solution was to download and install new version of component. It does not help. I use trial version 1.6.3.
regards
Mario
I worked out creating message with version 2.3.1 and as a result of my efforts I have the following
Code: Select all
MSH|^~\&|^LIS|^HIS|^ELAB|^HL7|20130614212201||ORM^O01|20130614210101|T|2.3.1|||AL|AL|POL|CP1250|PL
PID|1|75032107218^^^^PESEL|123456^PAT||Dean^John||19810612000000|F|||Walkers st.^^Portland^^63004||607288724
ORC|NW|6538^HIS|4567896500^ELAB|548^HIS|||^^^^^R||20111114091040|||589^Bazansky^Cris^^9716821^lek. med.^HIS|||||954^^HIS
OBR|1|6538^HIS||1^Complex blood test^ELAB^CBT||||||654^Kowalsky^Ann^^^^HIS||||20111114091230|^^^^^^4567896502
NTE|1|P|My comment
I use following code
Code: Select all
var
msg : TdiORM_O01_231;
x : string;
begin
msg := TdiORM_O01_231.Create;
msg.LoadFromFile(myFile);
In your example you use TdiORU_R01_xxx, but as I can read in you documentation this class is for results - not for orders.
My goal is to decode and use order information - how to get it?
I found some similar topic and solution was to download and install new version of component. It does not help. I use trial version 1.6.3.
regards
Mario