From d8ebd4c7c03cea67f596bd6b9037242b02e5a3ad Mon Sep 17 00:00:00 2001 From: atercode Date: Thu, 25 Apr 2019 17:06:14 +0300 Subject: [PATCH] Update EMR.php --- src/EMR.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EMR.php b/src/EMR.php index a23a647..d8a5af4 100644 --- a/src/EMR.php +++ b/src/EMR.php @@ -298,7 +298,7 @@ public function receiveTestRequest(Request $request) $patient->identifier = $contained[0]['identifier'][0]['value']; $patient->name_id = $name->id; $patient->gender_id = $gender[$contained[0]['gender']]; - if (strpos($contained, '/')) { + if (strpos($contained[0]['birthDate'], '/')) { $date = str_replace('/', '-', $contained[0]['birthDate']); } else { $date = $contained[0]['birthDate'];