From 30ab064c39f1a4b18078a7c722ec796bdf1eac46 Mon Sep 17 00:00:00 2001 From: Salim Kanoun Date: Thu, 28 Sep 2023 22:42:17 +0200 Subject: [PATCH 1/2] add get patient code --- .../Services/GaelOStudiesService/AbstractVisitDecisions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GaelO2/app/GaelO/Services/GaelOStudiesService/AbstractVisitDecisions.php b/GaelO2/app/GaelO/Services/GaelOStudiesService/AbstractVisitDecisions.php index 1f9186617..e27fe3fac 100644 --- a/GaelO2/app/GaelO/Services/GaelOStudiesService/AbstractVisitDecisions.php +++ b/GaelO2/app/GaelO/Services/GaelOStudiesService/AbstractVisitDecisions.php @@ -43,6 +43,12 @@ public function getPatientId() return $this->visitContext['patient_id']; } + + public function getPatientCode() + { + return $this->visitContext['patient']['code']; + } + /** * Must return the review status for each action on review (send, delete, unlock), * needs to handle backward and forward From 9ee30b0db08069f778389d0509d13aebdb02057b Mon Sep 17 00:00:00 2001 From: Salim Kanoun Date: Thu, 28 Sep 2023 22:44:15 +0200 Subject: [PATCH 2/2] add get patient code in abstract visit decision --- GaelO2/config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GaelO2/config/app.php b/GaelO2/config/app.php index 856e5ed31..909a9baca 100644 --- a/GaelO2/config/app.php +++ b/GaelO2/config/app.php @@ -25,7 +25,7 @@ | or any other location as required by the application or its packages. */ - 'version' => '2.2.0', + 'version' => '2.2.1', /* |--------------------------------------------------------------------------