c# - nHapi GT1 segment for DFT_P03 returning empty collection -


i stumped on following

sample message:

msh|^~\&|cwm|mysender|unknown|unknown|20160711080000||dft^p03|976503|p|2.5| evn|p03|20160711080000 pid||12345^^^ris|||test^patient||192532325445|f|||27 lotus street ^^morningside^^2121|||m7715050|3|s|||23377|||||||||||n pv1||i||||||999^ref doctor^||||||||n||a|160998675|||||||||||||||||||||||||20160701130000 gt1|1||everyman^adam^a||2222 home street^^ishpeming^mi^49849^""^|444-33 3333|555-555-2004||||sel^self|444-33 3333||||auto clinic|2222 home street^^ishpeming^mi^49849^""|555-555-2004| obr|1||2015021000043|20310^ct of soft tissues of neck, contrast^ct^4^ct scan machine|0|201502101124|201502101124|||||||||^mike^smith||||||||imil ft1|1|e292252||201502101124||cg|00279519|f||1|||imil|private^||||a1|||^mike^smith^^^||2015021000043^imil||20310^ct of soft tissues of neck, contrast^ct^4^ct scan machine|ct pr1|1|aq|20310^ct of soft tissues of neck, contrast^ct^4^ct scan machine||201502101124|d||||||||||ct| 

i can parse message, , can work pid no problem, gt1 not accepted. dft support gt1 segment (optional) returning empty list

pipeparser parser = new pipeparser(); imessage m = parser.parse(msg); dft_p03 dft = m dft_p03; gt1 gt1 = dft.getgt1(); var memname = gt1.getguarantorname()[0]; 

then final line blows saying index out of bounds, i.e. have nothing in gt1 collection.

am loading in wrong?

the order of segments of sample message wrong. gt1-segment comes after transactiongroups , proceduregroups.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -