Hello everyone,
I have the following situation:
Mirth receives an ADT-message for an admission of a patient. If the patient doesn't exist in the DB, mirth should write the new patient and his data to the database (that works fine). But if the patient already exists in the DB (this should be checked for example by the PID), I would like that Mirth executes an Update of the patients information, leaving his PID untouched.
My question is: How can I design the whole situation? Should I use Javascript and exactly where in mirth (There is possibility to use Javascript in the "destination" tab or on the "scripts" tab or as a filter rule). Is there a way to use Java instead of Javascript for such situations?
Thanks for any help! I appreciate it.
Svetlomir
I have the following situation:
Mirth receives an ADT-message for an admission of a patient. If the patient doesn't exist in the DB, mirth should write the new patient and his data to the database (that works fine). But if the patient already exists in the DB (this should be checked for example by the PID), I would like that Mirth executes an Update of the patients information, leaving his PID untouched.
My question is: How can I design the whole situation? Should I use Javascript and exactly where in mirth (There is possibility to use Javascript in the "destination" tab or on the "scripts" tab or as a filter rule). Is there a way to use Java instead of Javascript for such situations?
Thanks for any help! I appreciate it.
Svetlomir
Comment