ylboerner / Pathfinder

A frontend for the Firely .NET SDK FHIRPath engine.
2 stars 0 forks source link

Allow users to pass FHIRpath query in url, to allow opening from Zulip #3

Closed wardweistra closed 2 years ago

wardweistra commented 2 years ago

If an url like https://ylboerner.github.io/Pathfinder/?query=Patient.name.given%5B0%5D%20%3D%20%27Peter%27 would be supported to pass the FHIRPath query Patient.name.given[0] = 'Peter' to Pathfinder, that would allow us to configure every FHIRPath code block on chat.fhir.org to show a button to open it with Pathfinder.

FHIRPath code block in chat.fhir.org:

```fhirpath
Patient.name.given[0] = 'Peter'
``` (end of code block)

Example for FQL code block: image

Zulip docs: https://chat.fhir.org/help/code-blocks#code-playgrounds

wardweistra commented 2 years ago

URL structure is completely up to you, as long as an urlencoded FHIRPath statement can be pasted behind it.