Skip to content

Commit

Permalink
Add title to all appointment sql queries (openemr#7311)
Browse files Browse the repository at this point in the history
  • Loading branch information
BerwoutK authored Sep 28, 2024
1 parent 69d188e commit 1c4622d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Services/AppointmentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public function search($search, $isAndCondition = true)
pce.pc_catid,
pce.pc_pid,
pce.pc_duration,
pce.pc_title,
f1.name as facility_name,
f1_map.uuid as facility_uuid,
f2.name as billing_location_name,
Expand All @@ -158,7 +159,8 @@ public function search($search, $isAndCondition = true)
pc_facility,
pc_billing_location,
pc_catid,
pc_pid
pc_pid,
pc_title
FROM
openemr_postcalendar_events
) pce
Expand All @@ -181,7 +183,7 @@ public function search($search, $isAndCondition = true)

$sql .= $whereClause->getFragment();
$sqlBindArray = $whereClause->getBoundValues();
$statementResults = QueryUtils::sqlStatementThrowException($sql, $sqlBindArray);
$statementResults = QueryUtils::sqlStatementThrowException($sql, $sqlBindArray);

$processingResult = new ProcessingResult();
while ($row = sqlFetchArray($statementResults)) {
Expand Down Expand Up @@ -214,6 +216,7 @@ public function getAppointmentsForPatient($pid)
pce.pc_billing_location,
pce.pc_catid,
pce.pc_pid,
pce.pc_title,
f1.name as facility_name,
f1_map.uuid as facility_uuid,
f2.name as billing_location_name,
Expand Down

0 comments on commit 1c4622d

Please sign in to comment.