From 2b318ff5565b81bc455a515f593d784b2f87f98a Mon Sep 17 00:00:00 2001 From: Irvin Szeto Date: Tue, 10 Dec 2024 15:43:21 -0800 Subject: [PATCH] updating the manual pull --- HTNapi.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/HTNapi.php b/HTNapi.php index b6e4019..00c63bd 100644 --- a/HTNapi.php +++ b/HTNapi.php @@ -1776,6 +1776,7 @@ public function dailyOmronDataPull($since_today = null, $testMode = false) { } $data = []; + ini_set('max_execution_time', 3000); foreach ($patients_with_tokens as $patient) { // $this->emDebug("patient", $patient); // Ensure provider_id and omron_client_id are valid @@ -1789,10 +1790,6 @@ public function dailyOmronDataPull($since_today = null, $testMode = false) { $record_id = $patient["record_id"]; $expiration_date = $patient["omron_token_expire"]; - if(!in_array($record_id ,["stanford_8196","stanford_8234", "stanford_9397"] )){ - continue; - } - // Attempt to save Omron data and get status try { $result = $this->recurseSaveOmronApiData($omron_client_id, $since_today); @@ -1820,6 +1817,7 @@ public function dailyOmronDataPull($since_today = null, $testMode = false) { } else { $this->emDebug("Failed to download BP data for record_id $record_id"); } + usleep(100000); } // Return collected data if in testMode