Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › ADT inbound from business partner › Re: Re: Rad billing interface
The ADTs are stored in files on the CL server. All of the work is done by Cloverleaf…
2) A01, A04, and A08 messages are routed (raw) to cmpm_hold_out.
3) A tcl proc parses the message for the admit date and sets the outbound file name to the admitdate in YYYYMMDD format. Today’s admits for example will be written to a file named 20050429.
4) The cmpm_hold_out thread appends the ADT to the file using fileset/local.
5) ORM messages come in to the engine from the HIS.
6) While they are being routed/translated to/for Radiology (Swearengen) the patient’s account number is written to the file accounts.dat. These are the patients who had rad orders placed.
7) ORU messages come into the engine from Radiology.
8) These are routed to cmpm_out.
9) cmpm_out writes them to a file stamped with today’s date. eg – CMPMORU20050429. The fileset/FTP protocol is used to send them to a Windows server for later transfer to CMPM.
10) Daily at midnight cmpm_hold_in picks up the ADT files that are dated more than 4 days ago. Today for example it picked up the file named 20050425.
11) These are routed to cmpm_out.
12) A tclproc takes these ADTs and matches them with the accounts.dat file. If they match then the ADT segments are stored in an array. If later in the file another (newer) ADT message is found for the same patient then the newer segments overwrite the older segments. This means that only one message per patient per day will be sent to CMPM and it will have the latest version of each segment.
13) cmpm_out writes them to a file stamped with today’s date. eg – CMPMADT20050429. The fileset/FTP protocol is used to send them to a Windows server for later transfer to CMPM.
14) That’s where Cloverleaf’s involvment stops.
15) A batch script runs every night on the windows server where the files now sit. It FTPs the files to CMPM via a VPN connection. Two files are sent every day – CMPMORU
It sounds pretty complex so it helps me to think of the dated ADT files as ‘buckets’ for storing a given day’s ADTs. Once I had that concept in my head everything else fell into place.
Scott, thanks for replying, so it sounds like you are getting an ADT feed from the HIS.