Welcome to iNTERFACEWARE’s code repository – a place to find and share official and community-submitted code. Our goal is to provide useful and commonly used interfaces, modules, code snippets, and to encourage the members of our community to learn, share and help each other with their projects.

Rating
iNTERFACEWARE
Added by iNTERFACEWARE
How to process a batch of HL7 messages by removing the batch header and splitting it into separate messages.
Added by iNTERFACEWARE
Use conn:query() to select data from a table in a database
Added by iNTERFACEWARE
Query a database to identify patient in incoming HL7 messages. If a patient is not found return an ACK with a "Patient does not exist" message.
Added by iNTERFACEWARE
Use the error() function to raise an error and write it to the logs
Added by iNTERFACEWARE
Demonstrates the best way to read an empty XML TEXT element, by using the text(' ') function from the xml.lua module
Added by iNTERFACEWARE
Use os.fs.glob() to return to process a list of filenames and statistics matching a specified pattern
Added by iNTERFACEWARE
How to open and read a file from disk, either one line at a time, or read the whole file at once
Added by iNTERFACEWARE
How to remove duplicate words from a string, using PCRE regex with string.rxsub()
Added by iNTERFACEWARE
Use os.fs.rename() to rename a file or directory, if the file or directory does not exist an error is returned
Added by iNTERFACEWARE
Use string.gsub() to find and replace one or more instances of text within a string
Added by iNTERFACEWARE
Resubmit a logged message to an Iguana channel using the unique reference number (refmsgid).
Added by iNTERFACEWARE
Retries a a custom ACK using the retry.lua module
Added by iNTERFACEWARE
Execute programs and batch files, you can also load results from a directory listing etc.
Added by iNTERFACEWARE
This code checks EDI (XML) data for some common errors, you can use this approach for pre-processing messages to clean them up
Added by iNTERFACEWARE
The “scrub” module given below redacts sensitive information from HL7 messages.
Added by iNTERFACEWARE
Use smtp.send() to send an email from your Lua code.
Added by iNTERFACEWARE
Demonstrates the best way to set a XML node to a space character, by using setText(' ') from the xml.lua module
Showing 101 - 120 of 164 results