making a ten digit medicalrecord number

G

gordyr

I have a macro that takes a word template that doctors use for progress
notes and onverts to an HL7 file to interface with our Electronic
Medical Record System. The problem I have is that the medical record
number for a patient could be anywhere from 3 to 10 digits and I need
them all to be 10 digits for the interface so I need to add preceding
0's to make it 10. example 3489 would be 0000003489. Not sure how to
accomplish this?

Any help would be appreciated.
 
K

Karl E. Peterson

I have a macro that takes a word template that doctors use for progress
notes and onverts to an HL7 file to interface with our Electronic
Medical Record System. The problem I have is that the medical record
number for a patient could be anywhere from 3 to 10 digits and I need
them all to be 10 digits for the interface so I need to add preceding
0's to make it 10. example 3489 would be 0000003489. Not sure how to
accomplish this?

?format(3489, "0000000000")
0000003489
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top