OML^O21
Posted: Thu Nov 14, 2013 4:10 pm
Hi,
At this point,
oml21_26 contains:
MSH|^~\&|MIRE|SIO|LAB|M|201311121713||OML^O21^OML_O21|8765||2.6
oml21_25:
MSH|^~\&|MIRE|SIO|LAB|M|201311121713||OML^O21^OML_O21|8765||2.6 #13
PID|||AALAAR49M54E012I^^^^CODFISC||COGNOME^NOME||19490814|F|||VIA^^CITTA^MI^0777^0818||0742344677||||||||||023116|||023116
It seems a problem (?) for only the 2.6 component (2.51 and 2.4 works like 2.5), oml21_26.AsString catch only the first line of the message.
Best regards, Ace
Code: Select all
var msgStr : ansistring;
oml21_26 : TdiOML_O21_26;
oml21_25 : TdiOML_O21_25;
begin
msgStr := 'MSH|^~\&|S|M|LAB|M|201311121713||OML^O21^OML_O21|8765||2.6' + #13
+ 'PID|||AALAAR49M54E012I^^^^CODFISC||COGNOME^NOME^||19490814|F|||VIA^^CITTA^MI^0777^0818||0742344677||||||||||023116|||023116||';
oml21_26 := TdiOML_O21_26.Create;
oml21_25 := TdiOML_O21_25.Create;
oml21_26.AsString := msgStr;
oml21_25.AsString := msgStr;
At this point,
oml21_26 contains:
MSH|^~\&|MIRE|SIO|LAB|M|201311121713||OML^O21^OML_O21|8765||2.6
oml21_25:
MSH|^~\&|MIRE|SIO|LAB|M|201311121713||OML^O21^OML_O21|8765||2.6 #13
PID|||AALAAR49M54E012I^^^^CODFISC||COGNOME^NOME||19490814|F|||VIA^^CITTA^MI^0777^0818||0742344677||||||||||023116|||023116
It seems a problem (?) for only the 2.6 component (2.51 and 2.4 works like 2.5), oml21_26.AsString catch only the first line of the message.
Best regards, Ace