web stats
XML transformer - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-16-2019, 01:52 AM
Adrien Adrien is offline
Mirth Newb
 
Join Date: Mar 2019
Posts: 9
Adrien is on a distinguished road
Default XML transformer

I created a channel.

In this source channel (file reader), I get back my XML file which is in a folder.
Here is a part of the file :

<execute>
<date>2019-03-05</date>
<heure>11:33:00</heure>
</execute>
<NABMs>...</NABMs>

With a transformer I would like to add this :

<prestataire><medecins><medecin><numeroAdeli>12345 </numeroAdeli>
<identification><code>AAA</code><libelle>BBB</libelle></identification>
</medecin></medecins>
<uniteFonctionnelle><code>789</code><libelle>YYY</libelle>
</uniteFonctionnelle>
</prestataire>

between the tag : </execute> and <NABMs>

In Destination transformer I create step : type -> Javascript
I dont know how to code what I want. ( I never develop on mirth and
I know a little about JavaScript)

I need help coding my task!

Thank you in advance to any one who may be able to give me some ideas.

Adrien
Reply With Quote
 

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 12:10 PM.


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