Openemr fhir provenance (#4562)
commitda2e5c0bfe5fbce067e02044d5c5a8224b08e6e4
authorStephen Nielson <stephen@nielson.org>
Sat, 7 Aug 2021 06:24:13 +0000 (7 02:24 -0400)
committerGitHub <noreply@github.com>
Sat, 7 Aug 2021 06:24:13 +0000 (6 23:24 -0700)
tree4fd8c553045eb82b7c55aa4c3ab6c09d7b78c08a
parentd90dd5a8d9c6f9fb726ca21653579b1f926a4570
Openemr fhir provenance (#4562)

* FHIR Provenance Implementation.

I took a creative approach to implementing the provenance. Instead of
trying to figure out how to tie the provenance to each individual
resource I use the resource and the resource uuid to uniquely identify
the provenance resource.  Using that ID I can load the corresponding
FHIR resource service and re-run all of the queries and grab the correct
Provenance exactly as it was generated.

Since us-core doesn't require we list the provenance resources and we
just need to handle the read operation.

I had to modify the route parser so we could handle colon characters
inside the route.

* Fix FHIR ONC provenance missing fields

* Implement Provenance search operation

We implemented the search operation which inferno tests for but US core
does not require.

* Fix styles
_rest_routes.inc.php
src/Common/Http/HttpRestParsedRoute.php
src/RestControllers/FHIR/FhirProvenanceRestController.php
src/RestControllers/RestControllerHelper.php
src/Services/FHIR/FhirPatientService.php
src/Services/FHIR/FhirProvenanceService.php
tests/Tests/Unit/Common/Http/HttpRestParsedRouteTest.php