FHIR Chat · sdc-questionnaire-sourceQueries · questionnaire

Stream: questionnaire

Topic: sdc-questionnaire-sourceQueries


view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 00:44):

Anyone have an example that shows how to use this extension
http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-sourceQueries
Specifically around the "Prior to executing, FHIRPaths embedded in the queries (referring to elements from the questionnaire-launchContext variables) SHALL be resolved"

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 01:11):

This is somewhat related to GF#22803

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 01:46):

I've thrown together a sample of the FHIR-Path based extraction stuff.
https://sqlonfhir-r4.azurewebsites.net/fhir/Questionnaire/gp-assessment-report
@Lloyd McKenzie , @Paul Lynch , @Robinette Renner Think you could take a look at it to see if this matches up to what you'd expect to see?
The parts that I'm not sure on are how the prep-population query can be used in the fhirpath expressions, and also wanted to check if you all thought that my usage of launch context variables was right.

view this post on Zulip Lloyd McKenzie (Jul 05 2019 at 01:47):

Probably not until I get back. Re-ping in 1.5 weeks if this is still open...

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 01:58):

Enjoy your "break" @Lloyd McKenzie !

view this post on Zulip Paul Lynch (Jul 05 2019 at 19:21):

@Brian Postlethwaite
I see sourceQueries has to do with StructureMap population, which I have not looked at and am somewhat sorry to see there is interest in (because it means I will probably need to look at it).
Regarding your tracker item, you might take a look at the resolution of mine: GF#20951
An example of how I used launchContext is here: https://github.com/lhncbc/lforms-fhir-app/blob/master/e2e-tests/data/R4/ussg-fhp.json
I think your use of launchContext is the same as mine, except I used the same name as the type, but our processing code supports any name.
The one problem I spot is your syntax for embedding FHIRPath into PrePopQuery. Per the spec it should be with {{...}} instead of [...].

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 23:40):

Thanks, I didn't see that in there, I'll have another look now that I know what it should be, and maybe propose some clarifications.

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 23:42):

I don't plan on doing structure map, just the fhirpath, but I do need more than launch context to extract data. Hence this crossing both approaches, only missing step is the name for the bundle in the environment, which could be through the bundle id (which is what I propose in there).
It's so close.

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 23:43):

I'll take a look at your example.

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 23:44):

Yeah, that launch context looks the same, I used a different name so that it was clearer to the reader what was going on.

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 23:45):

Looks like this example is mixing fhirpath and observation extraction...

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 23:47):

And yes, looks like my tracker has duplicate parts as with yours. I'll add some notes and reference it.

view this post on Zulip Brian Postlethwaite (Jul 05 2019 at 23:48):

Maybe I should also do some applying of changes to help move things along. And pull request for Lloyd/others to review.

view this post on Zulip Joee Garcia (May 26 2020 at 17:40):

Hi @Brian Postlethwaite, I'm helping Lloyd create examples for the SDC IG and I'm currently looking at StructureMap-based population. Have you been able to use this approach? If so, do you have any example that I can look at? Thanks!

view this post on Zulip Brian Postlethwaite (May 26 2020 at 21:52):

I've done fhirpath and definition based ones, no structure map ones.

view this post on Zulip Lloyd McKenzie (May 26 2020 at 21:57):

I thought you'd said you were going to to do StructureMap. Was it someone else?

view this post on Zulip Brian Postlethwaite (May 29 2020 at 10:31):

Must have been someone else.

view this post on Zulip Paul Lynch (Jun 02 2020 at 14:41):

I think the confusion was that @Brian Postlethwaite is using some pieces of the StructureMap prepopulation approach (questionnaire-launchContext and sdc-questionnaire-sourceQueries-- two of the three pieces) though not questionnaire-sourceStructureMap itself.


Last updated: Apr 12 2022 at 19:14 UTC