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'];