Skip to content

client.search #1964

Answered by mbaltus
dennisbrox asked this question in Q&A
Feb 11, 2022 · 5 comments · 2 replies
Discussion options

You must be logged in to vote

You can do a search on _id, with FhirClient.SearchById or using a SearchParams with "_id=[value]" and the FhirClient.Search method.
However, you asked about searching on an identifier and its use, type, etc. fields, which is why I asked for more information.

A FHIR resource's id is a technical thing that just has a value. It is meant for easy, quick lookups. For example it could be the primary key in a database table. It's not an identifier. It does not have any associated attributes like type or use. So while you can search on that value, there is no notion of a 'use', 'type', 'system', etc. and you cannot do a search on those using the _id search parameter.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mbaltus
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mbaltus
Comment options

You must be logged in to vote
1 reply
@mbaltus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants