Problem with SPECIMEN SEGMENT

Discussion of open issues, suggestions and bugs regarding to (known as Delphi HL7) HL7 Components
Post Reply
tias81
Posts: 6
Joined: Wed May 29, 2013 3:05 pm

Problem with SPECIMEN SEGMENT

Post by tias81 »

Hi,

i'm developing an app that manages OUL^R22 files (HL7 2.5).

In my class i create the instance of the message and load the file content:

fMSG := TdiOUL_R22_25.Create;
fMSG.LoadFromFile( FileName );

Next, i correctly read MSH, PID and PV1 segments but when i try to read the results neither SPM segments nor OBR, ORC and OBX segments are loaded.

I try this command

for i := 0 to TGestLab.Instance.MSG.SPECIMENRepCount -1 do begin
...
end;

but TGestLab.Instance.MSG.SPECIMENRepCount is 0, actually there would be 4.

It seems like fMSG is truncated.

Thanks for your help

Bye
admin
Site Admin
Posts: 256
Joined: Sun Jun 05, 2011 8:06 pm

Re: Problem with SPECIMEN SEGMENT

Post by admin »

Hi,

Can you share your hl7 message ?

if you want to send e-mail, e-mail address: support@delphihl7.com

Best regards.
tias81
Posts: 6
Joined: Wed May 29, 2013 3:05 pm

Re: Problem with SPECIMEN SEGMENT

Post by tias81 »

this is the message:

MSH|^~\&|LAB-1|DNLAB|ITACA|ITACA|20130524155918.6360+0200||OUL^R22|1|P|2.5|||AL|AL|D|8859/1
PID|1||1095~^^^^PK~~^^^^SSN~0000007047~^^^^IDPAZ~MTTLRT54P16Z353N~^^^^CF||MOTTURELLI~^LIBERATO||19540916|M|||&LARGO DEL DORMIRE, 69~^^CASTELLAMMARE DI STABIA~^^^^80053~^^^^^^^^110024~^^^^^^C~&LARGO DEL LAVORO, 23~^^CASTELLAMMARE DI STABIA~^^^^80053~^^UGANDA^^^^BR^^110024||00000000|||||MTTLRT54P16Z353N|||||||||||||C
PV1|1|MDL|69110^^^&03090900^^^^^CONTABILITA/ FINANZIAMENTI||||||||||||||||||||||||||||||||201303010000|||||||||201303010000
//fMSG.loadfromfile stops here

SPM|1|||^Piombo Ematico|||||||||||||201303010000
OBR|1||^DN|^Piombo Ematico^DN^@1^ESAME COMPOSTO^DN||20130524155918||||||||||||||||||LAB-1|F||^^^20130524155918
ORC|SC||^DN||CM||^^^20130301000000||20130524155918|||~^Dr. Ciro VEDOCHIARO|||||||||CONTABILITA/ FINANZIAMENTI~^^^^^^FI~^^^^^^^^^69110
TQ1|1||||||20130524155918||R
MSH|^~\&|LAB-1|DNLAB|ITACA|ITACA|20130524155918.6380+0200||OUL^R22|2|P|2.5|||AL|AL|D|8859/1
PID|1||1710~^^^^PK~~^^^^SSN~M-1710~^^^^IDPAZ~LNESDR50L16H501R~^^^^CF||SAN~^DRO||19821212|M|||&HHHH~^^GABBIONETA BINANUOVA~^^^^26030~^^^^^^^^000190~^^^^^^C~&GGGG~^^GABBIONETA BINANUOVA~^^^^26030~^^HAITI^^^^BR^^000190||MKMJ|99999||||LNESDR50L16H501R|||||||||||||C
PV1|1|MDL|^^^&03090900^^^^^DIPARTIMENTO PERSONALE||||||||||||||||||||||||||||||||201304150000|||||||||201304150000
SPM|2|||^Piombo Ematico|||||||||||||201304150000
OBR|1||^DN|^Piombo Ematico^DN^@1^ESAME COMPOSTO^DN||20130524155918||||||||||||||||||LAB-1|F||^^^20130524155918
ORC|SC||^DN||CM||^^^20130415000000||20130524155918|||~^Dr. Ciro VEDOCHIARO|||||||||DIPARTIMENTO PERSONALE~^^^^^^FI
TQ1|1||||||20130524155918||R



thanks for any ideas
admin
Site Admin
Posts: 256
Joined: Sun Jun 05, 2011 8:06 pm

Re: Problem with SPECIMEN SEGMENT

Post by admin »

Hi,

Please download your setup again.

Besat regards.
tias81
Posts: 6
Joined: Wed May 29, 2013 3:05 pm

Re: Problem with SPECIMEN SEGMENT

Post by tias81 »

i resolved downloading the setup again.

thank you for your support.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests