How to convert HL7 file into an XML

Advertisement

Hi All,
I am new to HL7,can any one tell how to convert HL7 file into an XML.Give sample demo or related links.
My sample HL7 file is as follows how can I convert.
FHS|^~\&||Tax ID123^Lab Name123^L|||201110191435||HL7.txt||1234567|123||
PID|seqno|123||john^chambers^^Dr^Dr|2456 california ave^San jose^CA^85254|19601212|M
FHS|^~\&||Tax ID123^Lab Name123^L|||File Creaqted Date|File Security|FileName||File HeaderComment||Facility|FileCreatedDateTime|File Security|File Name|File Header Comment|FileControlId|Reference File Control ID|
PID|seqno|patientId||LastName^FirstName^MiddleName^Title^Degree|Street^City^State^zip|patientDOB|gender
<Report>
<FileHeader>
<FileSendingApplication> </FileSendingApplication>
<TaxID>Tax ID123</TaxID>
<LabName>Lab Name123</LabName>
<FileSendngFacilityType>L</FileSendngFacilityType>
<FileReceivingApplication></FileReceivingApplication>
<FileReceivingFacility></FileReceivingFacility>
<FileCreatedDateTime>201110191435</FileCreatedDateTime>
<FileSecurity></FileSecurity>
<FileName>HL7.txt</FileName>
<FileHeaderComment></FileHeaderComment>
<FileControlId>1234567</FileControlId>
<ReferenceFileControlID></ReferenceFileControlID>
<FileHeader>
<Patient>
<seqno> </seqno>
<patientId>Tax ID123</patientId>
<LastName>Lab Name123</LastName>
<FirstName>L</FirstName>
<MiddleName></MiddleName>
<Title> </Title>
<Degree></Degree>
<Street></Street>
<City></City>
<State>HL7.txt</State>
<Zip></Zip>
<patientDOB>1234567</patientDOB>
<gender></gender>
<Patient>
</Report>
Thanks
Mani

Advertisement

Hi Prabu,
With input as in single line I'm able to get the the output but with the multiple lines of input,error was occured.Any suggestions.
Error while translating. Translation exception. Error occured while translating content from file C:\temp\sampleHL7.txt Please make sure that the file content conforms to the schema. Make necessary changes to the file content or the schema.
The payload details for this rejected message can be retrieved.          Show payload...
Thanks
Mani

November 30, -0001

How to convert HL7 file into an XML

Hi All, I am new to HL7,can any one tell how to convert HL7 file into an XML.Give sample demo or related links. My sample HL7 file is as follows how can I convert. FHS|^~\&||Tax ID123^Lab Name123^L|||201110191435||HL7.txt||1234567|123|| PID|seqno|123

HT204382 How to convert VOB files into MP4 ? Tks

Hi, anyone knows how to convert VOB files into MP4 ones ? Tkshttp://forums.macrumors.com/showthread.php?t=812985 The procedure is dated and I will assume that the DVD is not copy-protected since discussion of such things is verboten.Read other 3 answ

How to convert DTD files into XML(template) by using Java ?

I am a beginner to java,and want to convert a random DTD file into a XML template(having no data). any guys can give me some suggestions ? thanks very muchDTD allow you to validate a XML file. To do so, you can use API such as dom or xalan. To transf

How to convert .stl file into .xml file. Subtitles to IMPORT INTO FCPro

I have a subtitles file which was created in dvd studio pro. I exported that file and made a .stl file (which can be opened with TextEdit). I need to import that file into FCP to then make a quicktime file w/subs to be exported. I'm trying to use Tit

How to convert PDF file into binary using APIs of Adobe Workflow server?

I m using the Adobe Workflow Server 6.2. I want to write a web services to convert PDF file into binary and embed this binary data with XML. I want to use the APIs (or libraries) of Adobe Workflow server but dont know abt the APIs or Libraries that c

How to convert .MP3 files into .AAC with iTunes 10.5.2

Im running a Mac OS X 10.5.8, and my iTunes version is 10.5.2. I want to convert .MP3 files into .AAC using iTunes, but no option is given for me. What should I do?im not going to change all my songs into AAC, I was experiementing around with making

How should convert text file into XML file?

I do a project "WEB SERVER LOG ANALYZER" using JSP. For that i copy the content of log file into the other file . how i convert it into XML file . xplain with codingRead this [page.|http://www.devx.com/getHelpOn/10MinuteSolution/20356]Read other

How to convert excel file into xml file

Friends Will you please help me out becz i am daily getting excel file from SAP which i have to translate into the xml file. Waiting for ur reply. HiteshDepends on how your excel document looks like and what you wish to accomplish. First, save the ex

How to convert .MOD files into .DV for iMovie import

I am urgently (and desperately) trying to import some .MOD files into iMovie 09 for editing. They were made on a JVC cam, but I only have them on HDD now. I tried renaming files to .avi, but still cannot import them. I used Handbrake to convert to mp

How to convert JPEG Files into Streams for Darwin Streaming Server?

Hi! Is there any possibility to convert JPEG Files locatet in a Folder into a Videostream for the Darwin Streaming Server, like Quicktime Broadcaster does with my iSight Video??? I know I can convert JPEGs into Movies using QuickTime Pro, but that is

How to convert text file into xml file

Hi Folks, I am genarating list of data into text file, but i want to genarate xml file for this text file. How to achive this , please let me know. Thanks. regards Vishalhi Vishal,   Use<b> GUI_DOWNLOAD</b> FM and give the file name as <b&g

How to convert OLM files into windows office 2010

I have temp. a desktop PC and I would like to import my MAC outlook file (.olm) into my office windows 2010 computer. Is there a way to import my olm file inti my windows office 2010? RegardsYes, definitely there's a way to import OLM file to Windows

How to convert class files into java files??

Hey Guys, I need a little help. I want to know wheather we can view .class files as .java files or convert the .class to .java files.Is ther any tool or software for doing that. Or in other words can i see the source code of any .class file..?? Plz d

How to convert VCD files into readable format on iDVD, iMovie, DVD player

I found a bunch of old VCDs that I want to convert so that I can use them on iDVD, iMovie. What is the best free converter and would appreciate any tips as to the best way to reduce any loss of resolution. I tried last year converting thru mpeg strea

How to convert database table into xml file

Hi. How to convert database table into XML file in Oracle HTML DB. Please let me know. Thanks.This not really a specific APEX question... but I search the database forum and found this thread which I think will help Exporting Oracle table to XML If i

Unable to convert PDF file into word document

I just signed up with Adobe in order to convert a PDF file into a word document and it continues to fail.  Any suggestions.If you have adobe X, simply go to "File" -> "Save-As" and Microsoft Word is an option. Also, there is a downl

Converting raw files into tiffs and preserving the orig. date created

How do I get the original date created to show up in folders when converting raw files into tiffs?  Once converted the original date created is in the "file info" window but does not show up as the original date created in the designated folder.

Load XML file into oracle xml buffer

Hi guys, I'm a starter in Oracle XML Development, I wander how I can load a xml file into oracle xml buffer(xmlctx* document) through programming with c++ in visual studio. When I use orastream structure, it compiled failed. Thank you very much! Edit

Is it possible to convert PDF file into HTML

Dear friends Is it possible to convert PDF file into HTML. I have few hundread PDF files i like to convert this files into HTML. I hope it can be done through Java but i don't know how to start this coding. anybody can give me a brief idea to go ahea

How to convert .class file to exec file...

hi. how to convert .class file to exec file... please explain me clearly..... thanks...Placing your exact "question" into google: http://www.google.com/search?q=how+to+convert+.class+file+to+exec+file...Read other 3 answers