baghu
December 28th, 2009, 10:33 AM
Hi,
I'm importing a csv file as a database and I've provided the input and output file for your further reference.
Input file
SCAN# PAGE# code code level
1 7044 99213 Level 1
99053 Level 2
1 7048 99213 Level 1
99053 Level 2
1 7049 99214 Level 1
87804 Level 2
99058 Level 3
1 7089 99204 Level 1
87880 Level 2
99051 Level 3
1 7093 99204 Level 1
94640 Level 2
94640 Level 3
99051 Level 4
Output file as required.
SCAN# PAGE# code code level code 2 code 3 code 4
1 7044 99213 Level 1 99053
1 7048 99213 Level 1 99053
1 7049 99214 Level 1 87804 99058
1 7089 99204 Level 1 87880 99051
1 7093 99204 Level 1 94640 94640 99051
Whenever I see Level 2, Level 3, Level 4 etc. in the code level column, I need to copy the data under the CPT column and paste it as a new column like code 2, code 3 etc.
I'm using Monarch 10.5 as the version. I do not want to export this data as a .txt file as I have another 50 columns with the same database input file.
Any help is appreciated and also let me know how to attach a file in this forum.
Regards
Baghavathy
I'm importing a csv file as a database and I've provided the input and output file for your further reference.
Input file
SCAN# PAGE# code code level
1 7044 99213 Level 1
99053 Level 2
1 7048 99213 Level 1
99053 Level 2
1 7049 99214 Level 1
87804 Level 2
99058 Level 3
1 7089 99204 Level 1
87880 Level 2
99051 Level 3
1 7093 99204 Level 1
94640 Level 2
94640 Level 3
99051 Level 4
Output file as required.
SCAN# PAGE# code code level code 2 code 3 code 4
1 7044 99213 Level 1 99053
1 7048 99213 Level 1 99053
1 7049 99214 Level 1 87804 99058
1 7089 99204 Level 1 87880 99051
1 7093 99204 Level 1 94640 94640 99051
Whenever I see Level 2, Level 3, Level 4 etc. in the code level column, I need to copy the data under the CPT column and paste it as a new column like code 2, code 3 etc.
I'm using Monarch 10.5 as the version. I do not want to export this data as a .txt file as I have another 50 columns with the same database input file.
Any help is appreciated and also let me know how to attach a file in this forum.
Regards
Baghavathy