 This topic has 9 replies, 5 voices, and was last updated 13 years, 8 months ago by .

Topic

Hi all. I have a bit of a problem concerning patient account numbers.
Throughout our hospital, we use account numbers that are 13 digits long. 12 of these digits are significant. The first one is a leading 0, which is not really important. Also, the remaining 12 digits are not necessarily composed of the medical record number + 4 digits representing visit #, like other facilities do. Most of the time that’s the case, but not always.
The problem I have is this. I need to figure out how to send this account number from our registration system to a new pharmacy system, and then from the pharmacy system out to other systems throughout the hospital. The new pharmacy system will only accept 10 digits for the account number, not 12.
Is there anything I can do in Cloverleaf to somehow compress this 12 digit number down to 10 digits? I tried using the approach of converting the digits to hex, and also using other conversion routines such that the resulting account number contains letters, but these methods are unacceptable. The pharmacy system will only accept digits in PID.#18. I need to figure out a way to convert the 12digit number going from registration to a 10digit number going into pharmacy system, and then convert it back to the 12digit number going out of pharmacy to anywhere else in the hospital.
Any thoughts? Thanks in advance.
George Kulz
Senior Java Programmer
Information Services
Memorial Hospital of Rhode Island
 The forum ‘Cloverleaf’ is closed to new topics and replies.