Skip to content

Commit

Permalink
Update EMR.php
Browse files Browse the repository at this point in the history
  • Loading branch information
atercode authored Apr 25, 2019
1 parent 122a6d0 commit d8ebd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EMR.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit d8ebd4c

Please # to comment.