Skip to content

Commit

Permalink
Style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
adunsulag committed Aug 12, 2023
1 parent 697b712 commit 054dcaa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/FHIR/SMART/SMARTLaunchToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SMARTLaunchToken
{
public const INTENT_PATIENT_DEMOGRAPHICS_DIALOG = 'patient.demographics.dialog';

public const VALID_INTENTS = [self::INTENT_PATIENT_DEMOGRAPHICS_DIALOG, self::INTENT_APPOINTMENT_DIALOG];
public const VALID_INTENTS = [self::INTENT_PATIENT_DEMOGRAPHICS_DIALOG, self::INTENT_APPOINTMENT_DIALOG, self::INTENT_ENCOUNTER_DIALOG];

// used on the appointment add/edit dialog, context will include the selected appointment
// for now this intent is used by custom apps that consume the openemr.appointment.add_edit_event.close.before event
Expand Down Expand Up @@ -191,15 +191,18 @@ public function setUserUuid(?string $userUuid)
$this->userUuid = $userUuid;
}

public function getUserUuid() : ?string{
public function getUserUuid(): ?string
{
return $this->userUuid;
}

public function getUserType() : string {
public function getUserType(): string
{
return $this->userType;
}

public function setUserType(string $userType) {
public function setUserType(string $userType)
{
if ($userType !== 'patient') {
$userType = 'user';
}
Expand Down

0 comments on commit 054dcaa

Please sign in to comment.