forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Openemr fix 6574 6575 6576 fhir updates (openemr#6577)
* Fixes openemr#6575 refactor oauth2 client save Made it possible to save an oauth2 client using the client repository. This makes it so OpenEMR callers don't need to include the RestConfig class or deal with the AuthorizationController to generate a smart app client record if needed. Module writers can register their own smart app as needed using this functionality. * Fixes openemr#6576 FHIR Capability statement createUpdate made it so the create update flag is set to false so API consumers know they can't provider their own logical ids when creating a resource. Fixes openemr#6576 * Add systems for task/questionnaire IN preparation for future Task and Questionnaire endpoints we want to add the system constants here. * Add mapped service helper methods. Add helper methods for grabbing a token using a subset of codes as well as grabbing a service based on a specific code. * Fix url bug in utils service to prevent slashes * Add helper method to Token search for isUuid * Fixes openemr#6574 QuestionnaireResponse search The questionnaire response search would fail when searching on things such as id due to duplicate column names. In order to make this service work in a FHIR context we need to fix up the search method and handle the uuid translations. Fixes openemr#6574
- Loading branch information
Showing
10 changed files
with
253 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
/** | ||
* HttpUtils utility class for functions dealing with urls and http. | ||
* @package openemr | ||
* @link http://www.open-emr.org | ||
* @author Discover and Change, Inc. <[email protected]> | ||
* @copyright Copyright (c) 2023 Discover and Change, Inc. <[email protected]> | ||
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
*/ | ||
|
||
namespace OpenEMR\Common\Utils; | ||
|
||
class HttpUtils | ||
{ | ||
public static function base64url_encode($data): string | ||
{ | ||
return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.