web stats
Code generalization - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2017, 12:54 AM
mauro90 mauro90 is offline
What's HL7?
 
Join Date: Oct 2016
Location: Trieste
Posts: 3
mauro90 is on a distinguished road
Default Code generalization

Hi all,

I'm developing a channel with Mirth 3.4.2 to manage hl7 messages.
I'm tring to find out a way to generalize better my channel.
I want to install the channel in some installation for different customers.

My goal is to have a clean channel with no configurations that i can update or modify in my develope installation and than only import the updated channel in the customer installation.

For some variables i think i can solve it using the configuration map, in the channel i will keep only variables and i set the value in the configuration map.

I want also to find a similar solution for the mapping of the hl7 message (trasformers) that can change. I thought that a solution could be to export customer's transformers before updating the channel and then import them again, but it isn't so elegant and error-safe as solution.

Does anyone know a better way to solve this issue?
Reply With Quote
  #2  
Old 10-19-2017, 03:44 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 565
kirbykn2 is on a distinguished road
Default

It sounds like using a code template might be a good solution for you. Do your transformations in the code template and call the code template from your channel. when changes are needed, update the code template and redeploy the channel.
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #3  
Old 10-23-2017, 05:52 AM
mauro90 mauro90 is offline
What's HL7?
 
Join Date: Oct 2016
Location: Trieste
Posts: 3
mauro90 is on a distinguished road
Default

ok thanks for your suggestion
Reply With Quote
Reply

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:42 PM.


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