From 206ec3e235f97d2b8beca62e8bf4a1bf60397dda Mon Sep 17 00:00:00 2001 From: Salim Kanoun Date: Tue, 16 Jul 2024 22:52:53 +0200 Subject: [PATCH] fakes creatable patients --- .../Services/SpecificStudiesRules/TEST/TEST.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/GaelO2/app/GaelO/Services/SpecificStudiesRules/TEST/TEST.php b/GaelO2/app/GaelO/Services/SpecificStudiesRules/TEST/TEST.php index aa7453f3f..4104ba649 100644 --- a/GaelO2/app/GaelO/Services/SpecificStudiesRules/TEST/TEST.php +++ b/GaelO2/app/GaelO/Services/SpecificStudiesRules/TEST/TEST.php @@ -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 { @@ -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; + } + }