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

Is there a way to direct output to a field named after contents of a variable? #35

Open
torstees opened this issue Jan 7, 2022 · 0 comments
Labels

Comments

@torstees
Copy link

torstees commented Jan 7, 2022

I'd like to aggregate all records associated with a given patient together so that they can be bundled together inside a single bundle. So, to do that, the target field would need to be something like

out record.patient_id : ProcessPatient(...)
out record.patient_id: ProcessObservations(...)

and at the end of the run, each ID would contain the Patient, ResearchSubject, all Observations, all Conditions, etc. Then, inside post-processing I would translate each of those ID lists into separate bundles

Obviously the example above wouldn't work since all patient data would end up inside record.patient_id instead of the actual ID associated with each of the records' patient but I'm not seeing anything in the docs that jumps out as a way to do this in whistle itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants