6 lines
1.2 KiB
JSON
6 lines
1.2 KiB
JSON
{
|
|
"id": "1dde3f7e-53f0-49e2-a02d-c2fc7258a338",
|
|
"prefix": "check_upload_mig_pharma",
|
|
"description": "check l'avancée de l'upload des données agitées lors d'une migration depuis la pharmacie",
|
|
"body": "USE [Arizona];\r\nGO\r\nDECLARE @tot INT = 131715\r\n\r\nSELECT COUNT(*) AS [left], @tot AS [total], ROUND(100-(100.0*COUNT(1)/@tot), 2) AS [percent done], ROUND(100.0*COUNT(1)/@tot,2) AS [percent left]\r\n FROM APS_monitor_row amr WITH (NOLOCK)\r\n JOIN APS_monitor_table amt WITH (NOLOCK)\r\n ON amt.APS_monitor_table_ID = amr.AMR_APS_monitor_table\r\n AND amt.AMT_table_name IN ('address', 'PH_insurance_card', 'ph_patient', 'Address_key')\r\n WHERE amr.AMR_ArizonaRep_extraction_TS IS NULL;\r\n GO\r\n\r\n USE [Arizona];\r\nGO\r\n\r\nDECLARE @tot INT = 111279\r\n\r\nSELECT COUNT(*) AS [left], @tot AS [total], ROUND(100-(100.0*COUNT(1)/@tot), 2) AS [percent done], ROUND(100.0*COUNT(1)/@tot,2) AS [percent left]\r\n FROM APS_monitor_row amr WITH (NOLOCK)\r\n JOIN APS_monitor_table amt WITH (NOLOCK)\r\n ON amt.APS_monitor_table_ID = amr.AMR_APS_monitor_table\r\n AND amt.AMT_table_name IN ('Document_header')\r\n WHERE amr.AMR_ArizonaRep_extraction_TS IS NULL;\r\n GO"
|
|
} |