Skip to content

Commit

Permalink
Fixes openemr#5187 Allergy Intolerance System (openemr#5188)
Browse files Browse the repository at this point in the history
Missing system value for allergy intolerance
  • Loading branch information
adunsulag committed Apr 19, 2022
1 parent 3c12ffe commit 46a0bc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Services/FHIR/FhirAllergyIntoleranceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ public function parseOpenEMRRecord($dataRecord = array(), $encode = false)
$display = !empty($codeValues['description']) ? $codeValues['description'] : $dataRecord['title'];
// we trim as some of the database values have white space which violates ONC spec
$diagnosisCoding->setDisplay(trim($display));
$diagnosisCoding->setSystem($codeValues['system']);
$diagnosisCode->addCoding($diagnosisCoding);
}
$allergyIntoleranceResource->setCode($diagnosisCode);
Expand Down

0 comments on commit 46a0bc3

Please sign in to comment.