web stats
Mirth Community - Search Results

Go Back   Mirth Community > Search Forums

Showing results 1 to 25 of 68
Search took 0.00 seconds.
Search: Posts Made By: flyerman
Forum: Support 05-01-2016, 04:02 PM
Replies: 2
Views: 932
Posted By flyerman
as user, i believe Mirth is a word meaning joy ...

as user, i believe Mirth is a word meaning joy

mirth development has originally referenced from HAPI (pronounced "happy") , a Java-based HL7 2.x parser with support for traditional (ER7) and XML...
Forum: Support 04-11-2016, 11:03 PM
Replies: 6
Views: 2,525
Posted By flyerman
I am using mirth 3.0.7 (I believed) I put the...

I am using mirth 3.0.7 (I believed)
I put the itext 5 library in the cust Lib folder
Mirth restarted

I TESTED, the following testing code works,
It is a simple code, at least show you it is...
Forum: Support 04-10-2016, 01:01 AM
Replies: 6
Views: 2,525
Posted By flyerman
importPackage(java.io); ...

importPackage(java.io);
importPackage(com.itextpdf);
var pdfTemplate = new com.itextpdf.PdfReader(inputFileName);
var pdfOutput = new FileOutputStream(outputFileName);
var stamper = new...
Forum: Support 03-25-2016, 06:59 PM
Replies: 6
Views: 3,790
Posted By flyerman
function childrenToUpperCase(inputNode) { ...

function childrenToUpperCase(inputNode)
{
for each(child in inputNode.children())
{
if (child.parent()[child.name()].length() > 1)
{
var iNodeCounter = child.childIndex() -...
Forum: Support 03-24-2016, 01:16 AM
Replies: 3
Views: 2,129
Posted By flyerman
You want to split a LONG comment into chunks less...

You want to split a LONG comment into chunks less than 80 characters , using "\n" and " ", but you don't want accidentally breaking a words in middle forming meaningless broken words (e.g. explo...
Forum: Support 03-21-2016, 11:45 PM
Replies: 1
Views: 753
Posted By flyerman
PROBLEM SOLVED with following modification ...

PROBLEM SOLVED with following modification

var likeOperator = "'%"+patID+"%'"
var query = "Delete from LAB_TABLE where patientID like" + likeOperator;
var res = db.executeUpdate(query);
Forum: Support 03-21-2016, 11:12 PM
Replies: 1
Views: 753
Posted By flyerman
SQL delete_like statement

On MSSQL 2008
I can delete some rows using
DELETE FROM [HOSPITAL].[dbo].[LAB_TABLE]
WHERE [patientID] like '%999888777%'

in Mirth
becasue 999888777 above is variable, I need to map it from the...
Forum: Support 02-26-2016, 08:12 PM
Replies: 3
Views: 1,797
Posted By flyerman
xhtml vs html

xhtml vs html
Forum: Support 02-12-2016, 06:27 AM
Replies: 3
Views: 1,046
Posted By flyerman
i did not test 1.) in preprocessor, add...

i did not test

1.) in preprocessor, add another separator e.g. the word
BATCH


var regexPattern=/A1\//g
message = message.replace(regexPattern,"BATCHA1/")
return message
Forum: Support 02-10-2016, 01:47 AM
Replies: 1
Views: 1,017
Posted By flyerman
any sample HL7 message and your desired output...

any sample HL7 message and your desired output sample ?

is your desired output a simple csv file or txt......or more complex file e.g xml, pdf?
Forum: Support 02-04-2016, 09:21 PM
Replies: 18
Views: 5,003
Posted By flyerman
please post a sample input message and desired...

please post a sample input message and desired output
Forum: Support 01-30-2016, 03:38 AM
Replies: 10
Views: 3,132
Posted By flyerman
thx for sharing

thx for sharing
Forum: Support 01-27-2016, 01:02 AM
Replies: 8
Views: 2,655
Posted By flyerman
have you able to use mirth to convert EDI to xml?...

have you able to use mirth to convert EDI to xml?

the you need to iterate through xml.
Forum: Support 01-27-2016, 12:29 AM
Replies: 2
Views: 955
Posted By flyerman
// is this what you want? var dataWanted =...

// is this what you want?
var dataWanted = msg[OBX][0][OBX.5][OBX.5.1].toString().trim()

var len=msg[OBX].length();
for(i=0;i<len;i++)
{
msg[OBX][i][OBX.3][OBX.3.1] = dataWanted...
Forum: Support 01-22-2016, 07:14 PM
Replies: 8
Views: 2,655
Posted By flyerman
1. don't tick append in flie writer destination ...

1. don't tick append in flie writer destination
2. choose a unique filename for each messages, e.g patient's mrn+ current dateTimeSeconds
Forum: Support 01-22-2016, 12:02 AM
Replies: 2
Views: 828
Posted By flyerman
CarrierCode},${CarrierName},${CarrierAddress1},$...

CarrierCode},${CarrierName},${CarrierAddress1},$ {CarrierAddress2},${CarrierCity},${CarrierState},$ {CarrierZip},${CarrierPhone}, endChar



in the source transformer

var endChar = "\r\n"
...
Forum: Support 01-15-2016, 05:37 AM
Replies: 4
Views: 1,420
Posted By flyerman
Based on msh7 of the message or current...

Based on msh7 of the message or current datetime....find out the number of days from a fixed date e.g. 20160101 e.g use joda time

Divide the number by 7, then convert to string...then remove the...
Forum: Support 12-28-2015, 04:04 PM
Replies: 7
Views: 3,975
Posted By flyerman
preprocessor to rename all NTE segment...

preprocessor to rename all NTE segment (NTE|||||||) to becomes OBX segment (OBX|||||||||)

message = message.replace(/\rNTE/g, "\rOBX")

return message;



(this method will rename*ALL*NTEs...
Forum: Support 12-19-2015, 06:29 AM
Replies: 1
Views: 3,508
Posted By flyerman
EXAMPLE ...

EXAMPLE
http://leakymllp.com/2010/08/17/MirthHL7ToPDF.html

what you want is doable using Mirth e.g document writer

Any sample HL7 message?
Any sample pdf output format?


if you are not...
Forum: Support 10-28-2015, 08:41 PM
Replies: 8
Views: 2,530
Posted By flyerman
Can you explain more what is the criteria to be...

Can you explain more what is the criteria to be moved?

Do U want to group the OBX according to some conditions?
Forum: Support 09-16-2015, 08:49 PM
Replies: 42
Views: 10,505
Posted By flyerman
The code assumes that each page can have max 55...

The code assumes that each page can have max 55 lines only

INPUTMSH|^~\&|
PID|1|XX99876756|ABC1234567|CCC^DDD|JOHN^DOE^^^^^||19780210|M||||||...
Forum: Support 09-16-2015, 05:33 PM
Replies: 42
Views: 10,505
Posted By flyerman
PLEASE CLARIFY 1. all "~" should become \.br\ ...

PLEASE CLARIFY
1. all "~" should become \.br\ understand
2. In every 54 line, add name, DOB, visit number etc (Let's called these " added elements") UNDERSTAND
3. to format the output page...
Forum: Support 09-14-2015, 05:56 AM
Replies: 42
Views: 10,505
Posted By flyerman
can you give a sample input HL7 and a...

can you give a sample input HL7

and a PERFECT output you want HL7

no one understand what exactly you want

the last code will already insert name, DOB, etc to every 54 lines, with no...
Forum: Support 09-13-2015, 06:05 PM
Replies: 42
Views: 10,505
Posted By flyerman
I did not change your code, but just add a few...

I did not change your code, but just add a few ESCAPE to it........




//Replace TX with FT in OBX 5.2.1

msg['OBX']['OBX.2']['OBX.2.1'] = "FT"
Forum: Support 08-25-2015, 05:41 PM
Replies: 42
Views: 10,505
Posted By flyerman
Input ...

Input
OBX|1|ST||1|AAA~BBB~CCC~DDD~EEE~FFF~GGG~~~~HHH|

Output
Please note the extra whitespace between \.br\
OBX|1|ST||1|AAA\.br\BBB\.br\CCC\.br\DDD\.br\EEE\.br\FFF\.br\GGG\.br\ \.br\ \.br\...
Showing results 1 to 25 of 68

 
Forum Jump

All times are GMT -8. The time now is 05:09 AM.


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