Hi everyone,
I've got a string variable ("ID") which contains a patient code. This code ist composed of the patients' 3rd letter of his/her first name, the 3rd letter of his/her last name, the date of his/her birthday and a clinic identifier.
For example: Jane Meyer, born on the 11th of November, patient in the clinic with the number 22 would have the following patient code: NY1122.
If Jane Meyer would have been born on the 8th of November, her code would be: NY0822.
However, for some patients it has been forgotten to include the "0" when the day of the birthday was single-digit. So sometimes it's: NY822.
I want to add the character "0" for these cases. So I am looking for something that says: add a 0 on the third place of the string label if the label is 5 characters long.
I am quite at loss how to do this and would really appreciate your help!
Best
Katja
I've got a string variable ("ID") which contains a patient code. This code ist composed of the patients' 3rd letter of his/her first name, the 3rd letter of his/her last name, the date of his/her birthday and a clinic identifier.
For example: Jane Meyer, born on the 11th of November, patient in the clinic with the number 22 would have the following patient code: NY1122.
If Jane Meyer would have been born on the 8th of November, her code would be: NY0822.
However, for some patients it has been forgotten to include the "0" when the day of the birthday was single-digit. So sometimes it's: NY822.
I want to add the character "0" for these cases. So I am looking for something that says: add a 0 on the third place of the string label if the label is 5 characters long.
I am quite at loss how to do this and would really appreciate your help!
Best
Katja
Comment