web stats
File Writer won't work with FHIR DSTU2 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-31-2015, 02:35 PM
FloridaMark FloridaMark is offline
Mirth Newb
 
Join Date: May 2010
Location: Gainesville, Florida
Posts: 15
FloridaMark is on a distinguished road
Unhappy File Writer won't work with FHIR DSTU2

Hi,

Beating my head against the floor on this... I wanted to parse data elements from a FHIR message and so figured it would be easier to do my testing by writing data to a file. I set up the File Writer on my destination transformer and can't get it to create a file. I see the data being written to the Postgre DB and I am getting 200 OK messages in my Rest Client, no errors on anything, the file just doesn't get written to a folder on my local hard drive.

Using the FHIR listener and example Channel from Tech Preview 2 on Mirth Connect 3.3.1.7856 and Java 1.8.66 on a Windows 2008 R2 box. I have another Channel that reads data from an HL7 2.5 file, parses it and writes text to the same folder on this box just fine but my FHIR channel using the FHIR listener won't create the file. I have even tried creating the file with raw text and built in Destination Mappings like the Channel ID and/or Channel Name, no joy. Nothing spits out a file. No errors, nothing in Windows Event viewer. It is like the File Writer destination is being skipped and doesn't fire when a message is received.

I can post the channel if helpful...
__________________
Mark Beans
http://MedicalSoftwareTools.com
Reply With Quote
  #2  
Old 12-31-2015, 04:17 PM
FloridaMark FloridaMark is offline
Mirth Newb
 
Join Date: May 2010
Location: Gainesville, Florida
Posts: 15
FloridaMark is on a distinguished road
Default Here is my channel...

Here is my channel...
Attached Files
File Type: xml FHIR Listener with File out-TEST.xml (122.9 KB, 13 views)
__________________
Mark Beans
http://MedicalSoftwareTools.com
Reply With Quote
  #3  
Old 01-04-2016, 06:45 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,115
narupley is on a distinguished road
Default

As noted in the wiki page, the source transformer uses destination set filtering to determine which destinations to send a message to. You can tweak that code so that it doesn't remove the File Writer from the destination set.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #4  
Old 01-04-2016, 05:51 PM
FloridaMark FloridaMark is offline
Mirth Newb
 
Join Date: May 2010
Location: Gainesville, Florida
Posts: 15
FloridaMark is on a distinguished road
Smile Big help!

Thanks Nick, BIG help! Sorry I didn't get that first time round.

Mark
__________________
Mark Beans
http://MedicalSoftwareTools.com
Reply With Quote
Reply

Tags
fhir, file writer

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation