Skip to content

Commit

Permalink
fixed bug observation
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwilliammd committed Dec 23, 2024
1 parent 3c31dd2 commit a12853f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FHIR/Observation.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function addCategory(string $category): Observation
* @param string $code The valid observation code to add.
* @return Observation Returns the updated observation object.
*/
public function addCode(string $code): Observation
public function addCode(string $observationCode): Observation
{
$code = [
'system' => 'http://loinc.org',
Expand All @@ -99,7 +99,7 @@ public function addCode(string $code): Observation

$display = '';
$code = '';
switch ($code) {
switch ($observationCode) {
case '8480-6':
$display = 'Systolic blood pressure';
$code = '8480-6';
Expand Down

0 comments on commit a12853f

Please sign in to comment.