Openemr fix 6574 6575 6576 fhir updates (#6577)
commit595d0789677bd12acb8cdf50da93f10fb55a27f2
authorStephen Nielson <snielson@discoverandchange.com>
Sat, 17 Jun 2023 15:15:15 +0000 (17 11:15 -0400)
committerGitHub <noreply@github.com>
Sat, 17 Jun 2023 15:15:15 +0000 (17 11:15 -0400)
treeb74bcf03b7a83f2ef74afd5e06237140813c2fef
parentf625487a25e642b37e17382d191d4d8dbd679306
Openemr fix 6574 6575 6576 fhir updates (#6577)

* Fixes #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 #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 #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 #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 #6574
src/Common/Auth/OpenIDConnect/Repositories/ClientRepository.php
src/Common/Utils/HttpUtils.php [new file with mode: 0644]
src/RestControllers/AuthorizationController.php
src/RestControllers/RestControllerHelper.php
src/Services/FHIR/FhirCodeSystemConstants.php
src/Services/FHIR/Traits/MappedServiceCodeTrait.php
src/Services/FHIR/Traits/MappedServiceTrait.php
src/Services/FHIR/UtilsService.php
src/Services/QuestionnaireResponseService.php
src/Services/Search/TokenSearchField.php