Stream: implementers
Topic: Searching by extension
Sean McIlvenna (Sep 29 2016 at 22:07):
Can anyone point me to documentation that indicates how to search for resources by values of an extension? Also, how to define an extension that requires that the extension be searchable?
Grahame Grieve (Sep 29 2016 at 22:10):
you define a search parameter for the extension. There's an example here:
Grahame Grieve (Sep 29 2016 at 22:11):
http://hl7-fhir.github.io/searchparameter-example-extension.html
Grahame Grieve (Sep 29 2016 at 22:11):
to make support for it mandatory, you reference the search parameter from a conformance statement that is mandatory
Sean McIlvenna (Sep 29 2016 at 22:12):
Ah. Got it. Didn't even realize there *was* a SearchParameter resource
Sean McIlvenna (Sep 29 2016 at 22:12):
:)
Sean McIlvenna (Sep 29 2016 at 22:23):
So, where would you require that the SearchParameter be implemented in an implemenation guide
Sean McIlvenna (Sep 29 2016 at 22:23):
I could include the SearchParameter in the ImplementationGuide.package.resource
Sean McIlvenna (Sep 29 2016 at 22:23):
but, there is no cardinality
Sean McIlvenna (Sep 29 2016 at 22:23):
so, no way of saying it is required
Sean McIlvenna (Sep 29 2016 at 22:25):
I was thinking maybe under ImplementationGuide.global
Sean McIlvenna (Sep 29 2016 at 22:25):
but, that references specifically StructureDefinition
Sean McIlvenna (Sep 29 2016 at 22:25):
so, can't reference a SearchParameter there
Grahame Grieve (Sep 29 2016 at 22:26):
You reference it from a conformance resource
Sean McIlvenna (Sep 29 2016 at 22:27):
ah ok
Sean McIlvenna (Sep 29 2016 at 22:27):
so then to document it, would I need to profile the Conformance
Sean McIlvenna (Sep 29 2016 at 22:28):
nm... I'll look into that.
Grahame Grieve (Sep 29 2016 at 22:28):
no I don't think so - check how DAF does this
Sean McIlvenna (Sep 29 2016 at 22:28):
ok
Sean McIlvenna (Sep 29 2016 at 22:28):
wondering how the ig publisher handles some of these types of things
Sean McIlvenna (Sep 29 2016 at 22:28):
such as SearchParameter and Conformance
Sean McIlvenna (Sep 29 2016 at 22:30):
guessing it doesn't handle it by default at all.. maybe need to update the templates we use in our implementation guides so that it handles documenting these non-StructureDefinition resources
Sean McIlvenna (Sep 29 2016 at 22:30):
ex: a separate tab in the IG for "Conformance", and another one for "Search Parameters"
Sean McIlvenna (Sep 29 2016 at 22:30):
unless you have guidance on a better way to do this?
Grahame Grieve (Sep 29 2016 at 22:31):
I'm not sure what you mean by 'handle' - have you looked at what DAF does?
Sean McIlvenna (Sep 29 2016 at 22:36):
hmmm
Sean McIlvenna (Sep 29 2016 at 22:36):
looks like they have a custom section in the implementation guide's overview for conformance
Sean McIlvenna (Sep 29 2016 at 22:36):
so, a static page
Sean McIlvenna (Sep 29 2016 at 22:36):
that references a conformance resource
Sean McIlvenna (Sep 29 2016 at 22:36):
and the conformance page is an instance of Conformance whose "text" is displayed on the main page
Sean McIlvenna (Sep 29 2016 at 22:37):
and the raw xml/json shows the technical implementation of the Conformance resource
Sean McIlvenna (Sep 29 2016 at 22:38):
ok
Sean McIlvenna (Sep 29 2016 at 22:38):
yah, this gives me something to work with
Sean McIlvenna (Sep 29 2016 at 22:38):
thx
Grahame Grieve (Sep 29 2016 at 22:39):
np
Brian Postlethwaite (Sep 30 2016 at 05:01):
This is same for all the conformance resources, such as ValueSet
and OperationDefinition
too.
Last updated: Apr 12 2022 at 19:14 UTC