Skip to content

Commit

Permalink
VACMS-17114: Updates how Office Visits are captued
Browse files Browse the repository at this point in the history
  • Loading branch information
omahane committed Feb 16, 2024
1 parent 6dd8500 commit 55b5126
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,10 @@ protected function getServiceLocations(): array {

// Set the office visits policy to non-default for the service.
$office_visits = $location->get('field_office_visits')->value;
$this->officeVisits = ($this->officeVisits === "yes_with_or_without_appointment")
? $this->officeVisits :
$this->stringNullify($office_visits);
$this->officeVisits = (($this->officeVisits !== "yes_with_or_without_appointment")
|| !isset($this->officeVisits))
? $this->stringNullify($office_visits)
: $this->officeVisits;

// Set the appointment text values to the non-default for the service.
$field_appt_intro_text_type = $location->get('field_appt_intro_text_type')->value;
Expand Down Expand Up @@ -435,7 +436,7 @@ protected function getServiceLocations(): array {
// currently sourced from the facility service node.
$service_location->referral_required = $this->getReferralRequired();
$service_location->walk_ins_accepted = $location->get('field_office_visits')->value;
$service_location->online_scheduling_available = $location->get('field_online_scheduling_avail')->value;
$service_location->online_scheduling_available = $this->getOnlineScheduling($location->get('field_online_scheduling_avail')->value);

$service_locations[] = $service_location;
}
Expand Down

0 comments on commit 55b5126

Please sign in to comment.