Hello,
I am running into an issue while searching resources based on search parameter.
For my use case, I need to add an extra field in my Patient resource which will contain a patient-id that is assigned internally and I need to search for Patients based on this custom patient-id.
On reading docs & StackOverflow, I ended up adding it through an extension
```
{
"name": [
{
"use": "official",
"family": "Jones",
"given": [
"Indiana"
]
}
],
"gender": "male",
"birthDate": "1967-05-01",
"resourceType": "Patient",
"extension": [
{
"valueString": "c0f544bd-6022-4d89-b02c-0237db8b64c1"
}
]
}
```
As per the docs-
https://cloud.google.com/healthcare-api/docs/how-tos/fhir-custom-search?hl=en#create_a_searchparameter_resource_in_the_fhir_store1. I created a SearchParameter
```
{
"resourceType": "SearchParameter",
"url":
"http://example.com/abc/fhir/SearchParameter/my-patient-id",
"base": ["Patient"],
"code": "my-patient-id",
"name": "my-patient-id",
"type": "string",
"status": "active",
"description": "search based on internal patient-id"
}
```
But when I make a call to enable the custom search parameter, I am running into 404
```
{
"canonicalUrls": [
"http://example.com/abc/fhir/SearchParameter/my-patient-id"] }
```
Note: All these requests are being made to
https://healthcare.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/datasets/DATASET_ID/fhirStores/FHIR_STORE_ID
& my datastore is using R4 version.
What am I missing or doing wrong? Can someone please help me?
Thank You