Skip to content

Commit

Permalink
Added key exists
Browse files Browse the repository at this point in the history
  • Loading branch information
atercode authored Apr 26, 2019
1 parent 37440c6 commit 1066faa
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 @@ -315,7 +315,7 @@ public function receiveTestRequest(Request $request)
$encounter->patient_id = $patient->id;
$encounter->location_id = $request->input('location_id');
$encounter->practitioner_name = $contained[1]['name'][0]['given'][0]." ".$contained[1]['name'][0]['family'];
if($contained[1]['telecom'][0]['value']){
if(array_key_exists("value",$contained[1]['telecom'][0])){
$encounter->practitioner_contact = $contained[1]['telecom'][0]['value'];
}
$encounter->save();
Expand Down

0 comments on commit 1066faa

Please # to comment.