PL_SamePHIN_Site_Diff_chart
| Data Integrity Checks | |
| Summary: | Another record exists for this site with the same PHIN and a different Chart number. |
| Related: | PHIN field, Chart number |
| Firmness: | soft check |
| Timing: | always |
| App: | Centralized data front end.accdb |
| Coding: | query PL_SamePHIN_Site_Diff_chart |
| Uses L Problem table: | No |
| Status: | implemented |
| Implementation Date: | not entered |
| Backlogged: | No |
This query compares the chart numbers and PHINs of profiles started in the last 30 days to any charts in our database.
The query takes several minutes to run. Tina reviewed it 2021-07-15 and could not see further ways to streamline it.
Log
- 2026-05-07 Realized during troubleshooting for PL_SameCHART_Site_Diff_PHIN that there is a more efficient way to do these queries so updated this one to work on same principle. Set up with .._new and .._old copies for now for testing. In this case the query actually found additional problems so the old one must not be working right...
- 2022-04-13 - didn't have an explicit D_ID field so would not have worked with PatientList; wonder if it's been used at all
- 2021-07-15 - updated to overcome 2GB limit, it now only compares the required data components, and the second datset is only the last 30 days