Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

Commit

Permalink
Merge branch 'jira/OEM-258'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Wadham committed Nov 6, 2014
2 parents 7b216a2 + e4ecb6f commit f221a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/OphDrPrescription_API.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class OphDrPrescription_API extends BaseAPI
public function getLetterPrescription($patient)
{
if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
if ($details = $this->getElementForLatestEventInEpisode($patient, $episode, 'Element_OphDrPrescription_Details')) {
if ($details = $this->getElementForLatestEventInEpisode($episode, 'Element_OphDrPrescription_Details')) {
return $details->getLetterText();
}
}
Expand Down

0 comments on commit f221a1c

Please sign in to comment.