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

Fix ids for flexporter executeScript #1501

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

lmd59
Copy link
Collaborator

@lmd59 lmd59 commented Sep 3, 2024

Summary

Fixes an issue with the flexporter where mappings that use execute_script export files without ids on the resources.

New behavior

Resets ids by searching for and removing urn:uuid:. Now flexporter run appropriately exports resources with ids when executing a script during mapping.

Code changes

Copies code from line 151 of RunFlexporter.java which is used to fix an issue with HAPI ids. (Thanks for the fix @dehall!)

Testing guidance

Run the synthea flexporter with something like ./run_synthea -fm {mapping_file.yaml} where the mapping file contains some execute_script mapping as described in the flexporter wiki. Look at the output patient file in output/fhir and confirm that the appropriate resources are exported with id fields.

@dehall dehall merged commit eeb6539 into synthetichealth:master Sep 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants