searchResources by identifier not working
# support
a
I'm using the mock medplum client as shown in the screenshot and for some reason searching for resources by identifier isn't working - any ideas?
r
@aj__6570 - one possibility would be that you need to index the search parameters. The MockClient doesn't have a perfect 1:1 reproduction of all search semantics, and by default it looks at limited set of search params. See this guide on test setup for more information (https://www.medplum.com/docs/bots/unit-testing-bots#set-up-your-test-framework)
a
thanks! is this the right link?
r
whoops! Just edited
a
ah yep that was it - thanks!
r
@aj__6570 - I'm curious - what was your use case for using the
MockClient
?