Open idelfonsog2 opened 2 weeks ago
Hi Idelfonso, There shouldn't be differences between both libraries. Anyway, we will need some samples for testing.
Let me get those,be right back
Hi @jaime-olivares So I have the following message below and Im calling:
var strippedMessageStr = message.SerializeMessage(false);
'Failed to serialize the message with error - Index was outside the bounds of the array.'
var strippedMessageStr = message.SerializeMessage(true);
Failed to validate the message with error - No Message Found
MSH|^~\\&|EPIC|NMHPL|IMG_END_EXAM|RAD|20240924090942|NM321798|ORM^O01|73207302|P|2.3|||||||||||\rPID|1||128025211^^^MR^MR|en6Xnt2vXywYi4mH0L-V2ltnEHWqiVmptfKh6lTdiOfs3|TESTLN^TESTFN^E||19700901|F|TESTLN^TESTFN^^~TESTLN^TESTFN^E^|W|1234 NORTH CLARK ST^UNIT 4^CHICAGO^IL^60613-1996^USA^^^COOK|COOK|(999)123-9179^H^PH^^1||ENG|M||200276592826|333-44-1234|||N||||||||||\rPV1|1|O|NMHLAVGIINTR^^^NMHH^^^^^^^NMHCDEP||||1396001269^CTEST^STEVE^N.^^^^^EPIC^^^^NPI~72095^CTEST^STEVE^N.^^^^^SE001^^^^SE001~51511^CTEST^STEVE^N.^^^^^^^^^NMHMD~1841456423^NEALIS^THOMAS^B.^^^^^EPIC^^^^NPI~66257^NEALIS^THOMAS^B.^^^^^SE001^^^^SE001~04278^NEALIS^THOMAS^B.^^^^^^^^^NMHMD~800169^NEALIS^THOMAS^B.^^^^^^^^^LFHMD|1396001269^CTEST^STEVE^N.^^^^^EPIC^^^^NPI~72095^CTEST^STEVE^N.^^^^^SE001^^^^SE001~51511^CTEST^STEVE^N.^^^^^^^^^NMHMD||||||||||||||||||||||||||||||||||||20240924082217|||||||V\rORC|SC|1918401941^EPC|N24ES33552681^EPC||F||^^^20240924084117^20240924090441^R||20240924090942|TNEALIS1^NEALIS^THOMAS^^||1396001269^CTEST^STEVE^N.^^^^^EPIC^^^^NPI~72095^CTEST^STEVE^N.^^^^^SE001^^^^SE001~51511^CTEST^STEVE^N.^^^^^^^^^NMHMD|LAVINGIIN^^^50101^^^^^NMH LAVIN GI INTRAOP|(312)926-3627|||||||||||||||I|\rOBR|1|1918401941^EPC|N24ES33552681^EPC|GI7^COLONOSCOPY, SCREENING^99MMC^^COLONOSCOPY, SCREENING|R|20240924082218|||||Transcribed|||||1396001269^CTEST^STEVE^N.^^^^^EPIC^^^^NPI~72095^CTEST^STEVE^N.^^^^^SE001^^^^SE001~51511^CTEST^STEVE^N.^^^^^^^^^NMHMD|(312)926-3627|NMHLAVGIINTR|NMH LAVIN GI PROC 06|||20240924090642||ES|F||^^^20240924084117^20240924090441^R||||Z12.11^Screen for colon cancer^ICD-10-CM|1841456423^NEALIS^THOMAS^B.^^^^^EPIC^^^^NPI~66257^NEALIS^THOMAS^B.^^^^^SE001^^^^SE001~04278^NEALIS^THOMAS^B.^^^^^^^^^NMHMD~800169^NEALIS^THOMAS^B.^^^^^^^^^LFHMD||NM321798^MTEST^SAMANTHA^^||20240924090000||||||||GI7^COLONOSCOPY, SCREENING^99MMC^^COLONOSCOPY, SCREENING|\rZPF|1|46^GI PROCEDURE ORDERABLES|||||NMHLAVGIINTR^^^NMHH^^^^^^^NMHCDEP|651507^NMH LAVIN GI PROC 06^SE001~140262^NMH LAVIN GI PROC 06^NMHMD~1040245^NMH LAVIN GI PROC 06^LFHMD~416024^NMH LAVIN GI PROC 06^GENSER|4661132||||\rOBX|1|ST|&GDT|1|Table formatting from the original result was not included.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|2|ST|&GDT|1|Impression||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|3|ST|&GDT|1|The terminal ileum appeared normal.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|4|ST|&GDT|1|Three sessile polyps measuring from 4 mm up to 6 mm in the sigmoid colon; ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|5|ST|&GDT|1|performed cold snare with complete removal and retrieved specimen||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|6|ST|&GDT|1|Internal small hemorrhoids observed during retroflexion\\E\\||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|7|ST|&GDT|1|3 polyps removed on today's exam. ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|8|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|9|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|10|ST|&GDT|1|Recommendation||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|11|ST|&GDT|1|Await pathology results ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|12|ST|&GDT|1|Repeat colonoscopy in 3 years, due: 9/24/2027 ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|13|ST|&GDT|1|- Awaiting pathology results. If you do not receive results in 7 days, ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|14|ST|&GDT|1|call 312-695-5620 for results.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|15|ST|&GDT|1|- Discharge patient to home (ambulatory).||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|16|ST|&GDT|1|- High fiber diet.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|17|ST|&GDT|1|- Repeat colonoscopy in 3-10 years for surveillance based on pathology ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|18|ST|&GDT|1|results. If 3 adenomas/sessile serrated polyps, repeat in 3 years. If 1-2 ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|19|ST|&GDT|1|sessile serrated polyps, repeat in 5 years. If 1-2 adenomas, repeat in 7 ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|20|ST|&GDT|1|years. If all normal findings, repeat in 10 years. Sooner if symptoms ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|21|ST|&GDT|1|arise.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|22|ST|&GDT|1|- Return to primary care physician as previously scheduled.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|23|ST|&GDT|1|- Results given to patient at bedside and husband over phone. ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|24|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|25|ST|&GDT|1|Indication||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|26|ST|&GDT|1|Screen for colon cancer||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|27|ST|&GDT|1|Screening. 1st colonoscopy. No family history of colon cancer/polyps. ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|28|ST|&GDT|1|Zofran with prep given patient request.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|29|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|30|ST|&GDT|1|Asthma, allergies, mitral valve prolapse. PCP 12/22, referred for ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|31|ST|&GDT|1|colonoscopy. 5/24 referred for colonoscopy.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|32|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|33|ST|&GDT|1|Staff||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|34|ST|&GDT|1|Performing Physician: TEST, THOMAS B., MD||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|35|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|36|ST|&GDT|1|Medications||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|37|ST|&GDT|1|midazolam (VERSED) 1 mg/mL injection 6 mg ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|38|ST|&GDT|1|fentaNYL (SUBLIMAZE) 50 mcg/mL solution 125 mcg ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|39|ST|&GDT|1|sodium chloride 0.9% infusion Not documented* ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|40|ST|&GDT|1| *Total volume has not been documented. View each administration to see ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|41|ST|&GDT|1|the amount administered. ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|42|ST|&GDT|1|(Totals for administrations occurring from 0828 to 0904 on 09/24/24) ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|43|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|44|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|45|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|46|ST|&GDT|1|Preprocedure||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|47|ST|&GDT|1|A history and physical has been performed, and patient medication ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|48|ST|&GDT|1|allergies have been reviewed. The patient's tolerance of previous ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|49|ST|&GDT|1|anesthesia has been reviewed. The risks (including but not limited to ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|50|ST|&GDT|1|medication reaction, infection, bleeding, perforation, missed lesions), ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|51|ST|&GDT|1|benefits, and alternatives of the procedure were discussed with the ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|52|ST|&GDT|1|patient. All questions were answered and informed consent obtained.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|53|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|54|ST|&GDT|1|Details of the Procedure||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|55|ST|&GDT|1|The patient underwent moderate sedation, which was administered by the ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|56|ST|&GDT|1|procedural nurse. The patient's blood pressure, heart rate, level of ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|57|ST|&GDT|1|consciousness, oxygen, respirations and ECG were monitored throughout the ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|58|ST|&GDT|1|procedure. A digital rectal exam was performed. A perianal exam was ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|59|ST|&GDT|1|performed. The scope was introduced through the anus and advanced to the ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|60|ST|&GDT|1|terminal ileum. Retroflexion was performed in the cecum and rectum. The ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|61|ST|&GDT|1|quality of bowel preparation was evaluated using the Boston Bowel ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|62|ST|&GDT|1|Preparation Scale with scores of: right colon = 3, transverse colon = 3, ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|63|ST|&GDT|1|left colon = 3. The total BBPS score was 9. Bowel prep was adequate. The ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|64|ST|&GDT|1|patient's estimated blood loss was minimal (<5 mL). The procedure was not ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|65|ST|&GDT|1|difficult. The patient tolerated the procedure well. There were no ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|66|ST|&GDT|1|apparent adverse events. 20 mg/0.3ml simethicone in 500cc sterile water ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|67|ST|&GDT|1|was flushed through the channel using a syringe to clear bubbles from the ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|68|ST|&GDT|1|colon and optimize visualization. Attending Participation: I was present ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|69|ST|&GDT|1|and participated during the entire procedure, including non-key portions.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|70|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|71|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|72|ST|&GDT|1|Events||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|73|ST|&GDT|1|Cecal withdrawal time: 0:14||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|74|ST|&GDT|1|Scope 1: Adult colonoscope||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|75|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|76|ST|&GDT|1|Findings||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|77|ST|&GDT|1|Internal small hemorrhoids observed during digital rectal exam||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|78|ST|&GDT|1|The terminal ileum appeared normal.||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|79|ST|&GDT|1|Three sessile polyps measuring from 4 mm up to 6 mm in the sigmoid colon; ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|80|ST|&GDT|1|performed cold snare with complete removal and retrieved specimen||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|81|ST|&GDT|1|Internal small hemorrhoids observed during retroflexion||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|82|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|83|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|84|ST|&GDT|1|Specimens||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|85|ST|&GDT|1|ID Type Source Tests Collected by Time ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|86|ST|&GDT|1|1 : SC polyp x3 Tissue Colon SURGICAL PATHOLOGY TEST, THOMAS B., MD ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|87|ST|&GDT|1|9/24/2024 0859 ||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|88|ST|&GDT|1|||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|89|ST|&GDT|1|Electronically Signed By: Thomas B. Nealis on 9/24/2024 9:06 AM||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|90|NM|HT^HEIGHT|2|68|in|||||F|||20240821103800|NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|91|NM|WT^WEIGHT|2|68.04|kg|||||F|||20240821103800|NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rOBX|92|ST|&CPT|2|44388\\T\\44388\\T\\44389\\T\\44389\\T\\44390\\T\\44390\\T\\44391\\T\\44391\\T\\44391\\T\\44391\\T\\44391\\T\\44391\\T\\44392\\T\\44392\\T\\44401\\T\\44401\\T\\44394\\T\\44394\\T\\44402\\T\\44402\\T\\44402\\T\\44402\\T\\44402\\T\\44402\\T\\44403\\T\\44403\\T\\44403\\T\\44403\\T\\44403\\T\\44403\\T\\44404\\T\\44404\\T\\44405\\T\\44405\\T\\44405\\T\\44405\\T\\44405\\T\\44405\\T\\44408\\T\\44408\\T\\45378\\T\\45378\\T\\45379\\T\\45379\\T\\45380\\T\\45380\\T\\45381\\T\\45381\\T\\45382\\T\\45382\\T\\45382\\T\\45382\\T\\45382\\T\\45382\\T\\45388\\T\\45388\\T\\45384\\T\\45384\\T\\45385\\T\\45385\\T\\45386\\T\\45386\\T\\45386\\T\\45386\\T\\45386\\T\\45386\\T\\45389\\T\\45389\\T\\45389\\T\\45389\\T\\45389\\T\\45389\\T\\45390\\T\\45390\\T\\45390\\T\\45390\\T\\45390\\T\\45390\\T\\45393\\T\\45393\\T\\45398\\T\\45398\\T\\74360\\T\\76000\\T\\45330\\T\\45331\\T\\45332\\T\\45333\\T\\45334\\T\\45334\\T\\45334\\T\\45334\\T\\45334\\T\\45335\\T\\45337\\T\\45338\\T\\45346\\T\\45340\\T\\45340\\T\\45340\\T\\45340\\T\\45340\\T\\45347\\T\\45347\\T\\45347\\T\\45347\\T\\45347\\T\\45349\\T\\45349\\T\\45349\\T\\45349\\T\\45349\\T\\45350||||||F||||NMHPOC|NM321798^MTEST^SAMANTHA^^|||||||||\rZDS|1.2.840.114350.2.211.2.798268.2.1649714364.1^\"EPIC\"^\"APPLICATION\"^\"DICOM\"\r
Hi @jaime-olivares so I identified the issue to be "\E\" in my message
OBX|6|ST|&GDT|1|Internal small hemorrhoids observed during retroflexion\\E\\||||||F||||NMHPOC|NM******^TEST^SAMANTHA^^|||||||||\r
is it the possibility that a practioner might have added the "\" at the end of the line and hence the library is not able to serialize it due to it
Sorry, I couldn't find the time to analyze this. Will resume during the weekend.
We have been using the previous library
HL7-dotnetcore
and recently moved to the new oneHL7-V2
. We noticed that messages with "\r" character do not get Serialize. it comes back with different errors:It seems this issue was fixed in the old library but not in the new one. Please advice what steps to take