FHIR Chat · example of SearchParameter · shorthand

Stream: shorthand

Topic: example of SearchParameter


view this post on Zulip John Moehrke (Feb 08 2021 at 21:58):

Is there any available examples of SearchParameters defined in FSH? I have an extension element of type codeableConcept, and need to define a SearchParameter that searches that.

view this post on Zulip Chris Moesel (Feb 08 2021 at 22:51):

mCODE does a couple: https://github.com/HL7/fhir-mCODE-ig/blob/master/input/fsh/DEF_SearchParameters.fsh

view this post on Zulip John Moehrke (Feb 09 2021 at 00:07):

thanks. those do look simple... but I am struggling. I think I am more lost in the SearchParameter definitions (lack of ).

view this post on Zulip Chris Moesel (Feb 09 2021 at 13:37):

Ah... you mean just the science of writing a SearchParameter in general? Yeah, I agree, there is not a lot of documentation I can find that addresses that directly. I think having a solid understanding of how search works (documented here) helps, along w/ the SearchParameter resource documentation. But after that, you still need to connect a lot of the dots on your own. For me, I find it most helpful just to look at a lot of definitions and learn by example. There is a page called Defined Search Parameters that lists all of the search parameters in the whole FHIR spec. One nice thing about this page is that it has a link near the top to download all the definitions as a FHIR Bundle (XML or JSON) -- so you can also see how each search parameter is actually defined.

Other than that, I don't have any other guidance, but perhaps someone else does.

view this post on Zulip John Moehrke (Feb 09 2021 at 14:09):

I have somewhat figured out the use-case of adding a search parameter on a core element that exists... I am needing to add a search parameter against an extension that I am defining. I do find this in SANER, but wow that is complex... @Keith Boone can you help me?

view this post on Zulip John Moehrke (Feb 11 2021 at 00:58):

so with help from @Keith Boone and @ryan moehrke I have what I think is right... and am glad to put it out here for comments or to help others: All nicely in this sushi file https://github.com/IHE/ITI.MHD/blob/master/input/fsh/mhdList.fsh

view this post on Zulip John Moehrke (Feb 11 2021 at 01:00):

mostly explained on this narrative page http://build.fhir.org/ig/IHE/ITI.MHD/branches/master/ITI-66.html


Last updated: Apr 12 2022 at 19:14 UTC