Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #5127 mapped uuids not saving in registry #5139

Conversation

adunsulag
Copy link
Sponsor Member

Fixes #5127 Made it so the uuids for mapped resources such as vitals are being populated in the uuid registry. Users will need to run the sql_upgrade.php for any existing installation in order for any new vitals to be retrievable via FHIR for the single resource GET operation.

Made it so the uuids for mapped resources such as vitals are being
populated in the uuid registry.  Users will need to run the
sql_upgrade.php for any existing installation in order for the vitals to
get their registry populated.
@bradymiller
Copy link
Sponsor Member

bonus: the populateAllMissingUuids function is actually called by an OpenEMR service every 4 hours, so should take care of the missing uuid's silently without the user even knowing it :)

@adunsulag adunsulag merged commit d535d6e into openemr:master Apr 12, 2022
adunsulag added a commit to DiscoverAndChange/openemr that referenced this pull request Apr 15, 2022
Made it so the uuids for mapped resources such as vitals are being
populated in the uuid registry.  Users will need to run the
sql_upgrade.php for any existing installation in order for the vitals to
get their registry populated.
adunsulag added a commit that referenced this pull request Apr 16, 2022
* Fixes #5095 Patient,Goals,Immunization (#5097)

Not sure what happened but it looks like provider_uuid got stomped on in
CarePlan and Immunization.  Adding that in to our uuid mappings fixes
the problem with the resources returning 500.

For Patient it looks like the patient/* context was broken in the
Patient resource endpoint when we refactored the parameter name for
documentation purposes.  I've updated the $id parameter in the patient
route to be $uuid.

* Openemr fhir single patient api #5122 (#5129)

* Fix SurgeryService query.

FHIR searchAll was relying on a username column that doesn't exist.  Not
sure if some code got stomped on or how this ever passed our inferno
test suite.

* Fix Provenance queries.

Again not sure if code got stomped on but DiagnosticReports and
DocumentReference and Immunization Provenance were not working with
single patient api.

* FHIR document how medication works inside request

Added comments that explain how medication is embedded via the code
property inside of MedicationRequest.

* Fixes #5125,#5123 FHIR ids,Provenance

Reworked the FHIR ids for Provenance,CarePlan, and Goals.  FHIR R4.0.1
changed the logical id allowed fields (or at least inferno started
validating them) so we had to adjust how we handle these resources.  I
use a different surrogate key string which is valid in 4.0.1.  I also
handle the prior key data so we can still read and return the old format
so people's data doesn't break.

I also fix the issue where clinical notes,procedures and immunization weren't
returning provenance resources

* Fix style issues.

* Fix Care Plan unit tests.

We had too many fixture interdependencies now that the careplan also
joins on the forms table. Since I was testing the
surrogate key logic I stopped the getOne test and just focused on the
surrogateKey.

* Fixes #5137 Vitals save data absent value (#5138)

Make it so we can save a 0 value for columns in vitals to signify the
data is missing.

* Fixes #5127 mapped uuids not saving in registry (#5139)

Made it so the uuids for mapped resources such as vitals are being
populated in the uuid registry.  Users will need to run the
sql_upgrade.php for any existing installation in order for the vitals to
get their registry populated.
@adunsulag adunsulag deleted the openemr-fix-5127-missing-mapped-uuids branch April 5, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New FHIR Vitals Observations not retrievable due to missing UUID Registry records
2 participants