You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 15
Next »
What do you do when a component almost does what you need but not quite?
That’s where customization comes in. Iguana components are deliberately made as simple as possible to make the code easy to understand and modify. Let’s try customizing an HL7 Server component to change the ACKnowledgement message it produces.
STEP 1: Using the HL7 Server component from the previous tutorial
Stop the component.
Make the HL7 Server editable.
Click Customize → Copy and Edit.
Enter the translator by the Edit Script button.
STEP 2: Alter the code to have ACKs generated hardcoded to say THANK YOU FOR TESTING WITH US for the Sending Facility
Copy and paste the following line to replace line 10 of your code:
A.MSH[4][1] = "THANK YOU FOR TESTING WITH US"
STEP 3: Commit the code and run it by changing the commit on the component card
Step 1: Click the + button in the menu bar of the translator:
Then follow this screenshot:
Step 2: Navigate back to the dashboard and open the component card, change the commit to the one you just made:
Step 3: Run the component.
The source code of the HL7 Server is deliberately written to make it easy to customize. Consider how you would do the same customization in Iguana 6?
Next Understanding Databases in Iguana
This is part of your product Orientation