web stats
JSON File Reader - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2018, 03:30 PM
psanders psanders is offline
OBX.2 Kenobi
 
Join Date: Nov 2011
Posts: 54
psanders is on a distinguished road
Default JSON File Reader

I have a file I am reading in that is in JSON format.

file formatted like this:
{"Rec_Type":"10","EMR_id":"445114","MRN":"1","Firs t_Name":"PatientFirstName","Last_Name":"PatientLas tName","DOB":"01/01/1950","Patient_Street_Address":"123 Main Street","Patient_Street_Address2":"","Patient_City ":"Central","Patient_State":"NY","Patient_Zip":"12 3456","Gender":"F","Status":"10","Active":"1","Ser vice_Area":"uspecified","Case_Manager_First_Name": "Hospice","Case_Manager_Last_Name":"Nurse"}

after deploying my channel I got an error (missing a batch file) that was addressed in a response from a post by Narupley. I added the javascript and redeployed the channel but now get no errors or completed messages.

Any suggestions on what I might be missing? Thanks in advance.

Using Mirth 3.5.0.8xxx
Attached Files
File Type: xml IslandHospicePatient_API_TEST.xml (37.4 KB, 8 views)
Reply With Quote
  #2  
Old 05-16-2018, 07:06 AM
AlexNeiva AlexNeiva is offline
Mirth Guru
 
Join Date: Oct 2013
Location: Portugal
Posts: 272
AlexNeiva is on a distinguished road
Default

Hello,

i uploaded your channel with some fixes in order to process the file.
Changes:
  • Outbound DataTypes -> XML
  • Remove the process Batch File
  • First Destination change from DBWriter to JSWriter
  • Some variable is missing (organizationalID or something similiar)
Hope it helps!
Attached Files
File Type: xml IslandHospicePatient_API_TEST.xml (34.3 KB, 6 views)
__________________
Best Regards,
Alex Neiva
Reply With Quote
Reply

Tags
json

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:07 AM.


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