go to post Suman Samanta · Jun 19, 2020 You can use EnsLib.ITK.HL7.FormatXMLv2 . It was primarily designed for HL7 ITK version. You can extend this class and modify as you need.Then simply convert that into stream that you need and transfer wherever you want. Alternatively you can download the xsd from HL7 site then map from HL7 to XML schema. It would be pretty lengthy method .
go to post Suman Samanta · Feb 25, 2020 First of all your source message is missing one segment , i corrected it. below code should work for you . set target = ##class(EnsLib.HL7.Message).%New() set target.DocType = source.DocType write $System.Status.GetErrorText(source.BuildMap(1)) set tSC = $$$OK try { set segCount = source.SegCount for segNo=1:1:segCount { set oSegment = source.GetSegmentAt(segNo) set segPath = source.GetSegmentPath(segNo) set fieldCount = oSegment.GetValueAt("*") for fieldNo=1:1:fieldCount { set fieldValue = oSegment.GetValueAt(fieldNo) set compCount = oSegment.GetValueAt(fieldNo_".*") for compNo=1:1:compCount { // considering there is no repeat - if repeat then one more loop is required set subCompCount = oSegment.GetValueAt(fieldNo_"."_compNo_".*") for subCompNo=1:1:subCompCount { set path = segPath_":"_fieldNo_"."_compNo_"."_subCompNo set subCompValue = source.GetValueAt(path) if (subCompValue '= "") && (subCompValue '= ($C(34)_$C(34))) { //if (oSegment.Name = "PID")&&(fieldNo=2) break if path="PIDgrp.PID:13.4.1" break write path_"--->"_subCompValue,! do target.SetValueAt(subCompValue,path) } } } //set componentCount = oSegment.GetValueAt(fieldNo } } do target.OutputToFile("C:\Work\Report\target.hl7",1) } catch oEx { }
go to post Suman Samanta · Jan 2, 2020 Thank you , i added the jars in tomcat lib directory and its fixed my issue.
go to post Suman Samanta · Jul 9, 2019 I just added one line in my eclipse.ini file and worked for me.-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
go to post Suman Samanta · Jun 24, 2019 If you are using local instance are you sure you need the secure connection checked. Usually in local we do not configure secure connection .