Skip to content

Commit

Permalink
updating the manual pull
Browse files Browse the repository at this point in the history
  • Loading branch information
irvins committed Dec 10, 2024
1 parent ede44b6 commit 2b318ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions HTNapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b318ff

Please sign in to comment.