Attempting to create a custom search parameter on the Practitioner in the FHIR store following the directions here.
I submitted the post request to create the search parameter and it came back as 201 created.
{
"resourceType": "SearchParameter",
"url": "http://example.com/SearchParameter/practitioner-biography-active",
"code": "biography-active",
"name": "biography-active",
"expression": "Practitioner.extension('https://example.com/fhir/StructureDefinition/practitioner-biography').extension('active').value.as(Boolean)",
"base": ["Practitioner"],
"type": "string",
"description": "Search on the approved status of the biography.",
"status": "active"
}
{
"error": {
"code": 400,
"message": "failed to process clause '\"Practitioner.extension('https://example.com/fhir/StructureDefinition/practitioner-biography').extension('active').value.as(Boolean)\"' from search parameter 431c2575-8ae6-4b33-a4ea-86d77a78e764",
"status": "INVALID_ARGUMENT"
}
Any thoughts on what's wrong here?
Hi @Jerry123456,
Welcome to Google Cloud Community!
This may happen if you're using different version for your Custom Search. With this, please try to use v1beta1
in both the curl commands and use type=token
while creating the Search Parameter.
Hope this helps.