Search FHIR resource with id
# support
m
Hi there, Can we search FHIR resource with id? Please see below code. ` const researchStudy2 = await medplum.searchOne( "ResearchStudy",
id=${value.id}
, );` It seems like we can only search with search parameters, not the one in the inherited elements as attached.... why id is not available to search with?
I found that it's able to search with ID using Graphql...
Also, can we PATCH with Graphql?
n
https://hl7.org/fhir/r4/search.html#Summary Try with
_id
when using the REST API
r
Hi @minha_1268 , @nathan-watkins-unityai 's advice is exactly right. There is a special search parameter called
_id
https://www.medplum.com/docs/search/advanced-search-parameters#_id
> only search with search parameters, not the one in the inherited elements as attached > In general, Medplum follows the FHIR standard search paramters that are defined by HL7 for maximizing interoperability
181 Views