Good morning! Cloverleaf 20.1 user here. We have a handful of interfaces at our institution where we do live SQL DB lookups for messages in flight. It works well except in situations where there’s a delay by the end user in our EMR to get the necessary data written to the EMR DB. For example, creating a new patient where the Medical Record isn’t available right away but requires an automated registration function to run. So there could be a 30-60 second delay from the time the SIU message is received by Cloverleaf before the Medical Record data is available for that SQL query.
We were using the sleep command until we ran into an issue so we want to move away from that completely. Is there any other way to implement a delay in the xlate to allow the SQL DB time to get the data it needs before the SQL query fires? I’ve looked on this forum and haven’t found anything promising aside from saving the outbound HL7 to a DB or file and processing the file based on date/time. If this is all that’s possible, we’ll try it but we’d love if there was a way just to include a delay in the xlate somehow without sleeping the process. Thanks in advance!