Skip to content

Commit

Permalink
fakes creatable patients
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Jul 16, 2024
1 parent 60611aa commit 206ec3e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions GaelO2/app/GaelO/Services/SpecificStudiesRules/TEST/TEST.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\GaelO\Services\GaelOStudiesService\DefaultVisitRules;
use App\GaelO\Services\GaelOStudiesService\Events\BaseStudyEvent;
use App\GaelO\Services\GaelOStudiesService\Events\VisitUploadedEvent;
use App\GaelO\Services\GaelOStudiesService\ExpectedPatient\ExpectedPatient;

class TEST extends AbstractGaelOStudy {

Expand Down Expand Up @@ -81,6 +82,17 @@ public function getVisitRulesClass(string $visitGroupName, string $visitTypeName

}

public function getExpectedPatients(): array
{
$expectedPatients = [];
$initialvalue = '12345671234567';
for($i=1; $i<100; $i++){
$value = ++$initialvalue;
array_push($expectedPatients, new ExpectedPatient($value, null, 'Included'));
}
return $expectedPatients;
}

}


Expand Down

0 comments on commit 206ec3e

Please sign in to comment.