Procedure when there are differences between L Log and L PHI: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
No edit summary
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[["Pulling" Centralized data.mdb]] should result in consistent data sets being copied, but sometimes differences appear between L_PHI and L_Log. Usually this happens when something goes wrong during [[sending]] or during [[PHI copy automation]] or when a patient is deleted in one but not the other table.  
[["Pulling" Centralized data.mdb]] should result in consistent data sets being copied, but sometimes differences appear between L_PHI and L_Log. Usually this happens when something goes wrong during [[sending]] or during [[PHI copy automation]] or when a patient is deleted in one but not the other table.  


You would usually find out about this when you try to reconnect tables in [[CFE]] and get an error.  
You would usually find out about this when you click the [["Re-connect Data" button]] in [[CFE]] and get an error that the number of records in L_Log and L_PHI is not the same.  


* By clicking the  re-connect button it will tell you if their is a problem or not.
== More records in L_Log than in L_PHI ==
***Like if it says some records with Record Status "Complete" so a send must have failed. To fix collector need to re send.
In that case, 1_In_L_Log_but_NOT_in_L_PHI will show you which record.  
***With this scenario the number of records in 1_In_L_Phi_but_NOT_in_L_Log means sent did not go through completely, to fix need to re send.
***If the scenario is 1_In_L_Log_but_NOT_in_L_PHI the counts for the linked tables number are not matched, their was a problem in sending due to the laptop problem. but this scenario never happened anymore. [[User:PTorres|PTorres]] 16:06, 2021 December 15 (CST)


To address the problem:
* inform the collector whose [[Laptop identifier|whose laptop]] caused the error to [[Re-sending data|re-send data]]
* In [[CFE]], look at the object listing on the left and open the following two queries to identify the record that is different.
* set the relevant records from [[RecordStatus]] "sent" to "incomplete" as needed
**1_In_L_Phi_but_NOT_in_L_Log
**1_In_L_Log_but_NOT_in_L_PHI


*if in L_Log but not in L_PHI:
* to ask them to send now:  
**check [[X:\]]CCMDB/PHI/PHI_CSV. You want to make sure there is no CSV file sitting in this folder that was not uploaded to PHI.mdb
Your send did not go through correctly today, please reset the "sent" records to "complete" and then re-send. I have pushed the data and it is ready for you to re-send now. Please let me know when done so I can pull again to make sure that the error is fixed.  
**this could mean a problem with [[PHI copy automation]]


*If in L_PHI but not in L_Log
or
** check [[X:\]]CCMDB/PH/PHI_CSV_Archive folder to check if the missing file was in the batch sent from the data collector.
* to ask them to send when ready:  
Your send did not go through correctly today, please reset the "sent" records to "complete" and then re-send. I don't need you to re-send right now, just '''don't delete your sent records''' and send at your usual time.


If this does '''not''' fix it, then: *
* check [[X:\]]CCMDB/PHI/PHI_CSV.  You want to make sure there is no CSV file sitting in this folder that was not uploaded to PHI.mdb
* this could mean a problem with [[PHI copy automation]]


*if not sure review with main office or data collector.
== More records in L_PHI than in L_Log ==
 
In that case, query 1_In_L_Phi_but_NOT_in_L_Log triggers.
*If file was a test, or error, you can delete it from L_Log and/or L_PHI, whichever still has part of the record.
* inform the collector [[Laptop identifier|whose laptop]] caused the error to [[Re-sending data|re-send data]] (see email snippet above)
 
{{ex| Today Pam sent with that problem and her error message say "Invalid SQL statement expected Delete,Insert,Procedure,Select or Update" message.  Also I need to change in the master CFE the Record Status Complete to Incomplete so collector can send no problem.}}
 
== Test records ==
* If file was a test, or error, you can delete it from L_Log and/or L_PHI, whichever still has part of the record. Usually you would have heard from Tina or whoever is doing the testing in that case. 


== Related articles ==
== Related articles ==
Line 31: Line 34:
[[Category:Centralized data push pull]]
[[Category:Centralized data push pull]]
[[Category:Data Processing]]
[[Category:Data Processing]]
[[Category:Re-sending]]

Latest revision as of 15:51, 2022 April 5

"Pulling" Centralized data.mdb should result in consistent data sets being copied, but sometimes differences appear between L_PHI and L_Log. Usually this happens when something goes wrong during sending or during PHI copy automation or when a patient is deleted in one but not the other table.

You would usually find out about this when you click the "Re-connect Data" button in CFE and get an error that the number of records in L_Log and L_PHI is not the same.

More records in L_Log than in L_PHI

In that case, 1_In_L_Log_but_NOT_in_L_PHI will show you which record.

  • to ask them to send now:
Your send did not go through correctly today, please reset the "sent" records to "complete" and then re-send. I have pushed the data and it is ready for you to re-send now. Please let me know when done so I can pull again to make sure that the error is fixed. 

or

  • to ask them to send when ready:
Your send did not go through correctly today, please reset the "sent" records to "complete" and then re-send. I don't need you to re-send right now, just don't delete your sent records and send at your usual time.

If this does not fix it, then: *

  • check X:\CCMDB/PHI/PHI_CSV. You want to make sure there is no CSV file sitting in this folder that was not uploaded to PHI.mdb
  • this could mean a problem with PHI copy automation

More records in L_PHI than in L_Log

In that case, query 1_In_L_Phi_but_NOT_in_L_Log triggers.

Example:   
Today Pam sent with that problem and her error message say "Invalid SQL statement expected Delete,Insert,Procedure,Select or Update" message.  Also I need to change in the master CFE the Record Status Complete to Incomplete so collector can send no problem.

Test records

  • If file was a test, or error, you can delete it from L_Log and/or L_PHI, whichever still has part of the record. Usually you would have heard from Tina or whoever is doing the testing in that case.

Related articles

Related articles: