SearchResource query the Reference type
# support
s
I have used medplum sdk and used medplu.searchResource method where i have provided the query of based-on =somevalue but i got the empty response as basedOn is Reference but when i query using the identifier=somevalue which is IDentifier [] type it is working fine can i get any solutions #905144809105260608
r
To help debug, could you share an example resource and query (without any sensitive data)
In general, make sure you are following the "Search by Reference" syntax: https://www.medplum.com/docs/search/basic-search#searching-by-reference
However, in general you need to give a reference to a specific resource. The FHIR search spec doesn't allow the search "Saerch of all resources of type A, that reference resourceType B"
s
Thank you so much for the reply
Can you also help me how do i add the magic link basically authenticating to the app through the email link how do i do that ?
r
@sagunkhambushrestha would you mind posting this question as a seperate issue, tagged with "auth"
s
Okay sir no worries
303 Views