Open Annual excel file (with pwd)
[Read the Annual excel file]
[Save the Annual excel file dataset]
[Open Quarterly excel file (with pwd)]
[Read the Quarterly excel file]
[Save the Quarterly excel file dataset]
[Compare the Annual & Quarterly dataset]
[Check whether both data have the same patient’s record in a specific month]
[Check for the differences of the required fields]
[Save the incorrect data after comparing]
[Highlight the cells with different data for both excel files]
[Save all incorrected data into a new excel sheet]
Idea 1
Read and save both excel files in format (json, array etc). Compare two records, if they have the same record, compare the required fields. If they have the same data, move on to the next record. If the record does not exist in another excel file, save it in a variable. If the records exist in both files but have different required field data, save it in a variable. Delete each record after moving on.
Read and save the data of the quarterly excel file into a valuable, then just open the annual excel file to compare.
Delete the checked record
Data format
e.g (not requirement, just an idea)
file1 = {
T1234567pJan24: {
columnName: ”some data”,
columnName: ”some data”
},
}
T1234567pFeb24: {}
}
Or
file1 = {
T1234567p: {
Jan24: {
columnName: ”some data”,
columnName: ”some data”
},
Feb24: {}
}
T1234567p: {}
}