FHIR Chat · FHIRPath C# examples · questionnaire

Stream: questionnaire

Topic: FHIRPath C# examples


view this post on Zulip David Fallas (Oct 29 2020 at 00:33):

I'm new to FHIRPath. I would be grateful if anyone could point me to some C# examples. Thanks in advance.

view this post on Zulip Brian Postlethwaite (Oct 29 2020 at 03:31):

Usage in what way?

view this post on Zulip Brian Postlethwaite (Oct 29 2020 at 03:33):

This is likely way more complicated than you need given that it handles multiple versions concurrently, but might give some clues.
https://github.com/brianpos/FhirPathTester/blob/develop/WPF/FhirPathProcessor.cs

view this post on Zulip Brian Postlethwaite (Oct 29 2020 at 03:35):

That project (well the UWP version) is the source for the app in the Windows App Store
https://www.microsoft.com/store/productId/9NXV8QDQ154V

view this post on Zulip David Fallas (Oct 29 2020 at 18:43):

Thanks @Brian Postlethwaite - that gives me some clues to get started.

What I am aiming for is comprehensive unit and integration testing of Questionnaire instances. Editing these can be challenging, and mistakes are easily made. I need tests that can reach into every nook and cranny to generate QuestionnaireResponse instances that contain all the correct default (Initial) values that the Questionnaire provides. My Questionnaire instances are not particularly complex but in some places can be up to 7 or 8 levels deep so inserting a new Item at level 6, with a choice of Initial values dependent on some condition elsewhere in the Questionnaire, can be fraught.

I am hoping that FHIRPath will enable tests to programmatically traverse a target Questionnaire, enabling/activating disabled/inactive elements whilst progressively generating an appropriate QuestionnaireResponse as it goes.


Last updated: Apr 12 2022 at 19:14 UTC