Reputation: 77
I want to search according to the id of the reference in the extension of the encounter reference in the ChargeItem resource. Why is the search parameter I wrote not working?
Search Parameter;
{
"resourceType": "SearchParameter",
"id": "charge-item-encounter-reference",
"url": "http://dev.genyazilim.com/fhir/SearchParameter/charge-item-encounter-reference",
"name": "searchByEncounterReferenceChargeItem",
"status": "active",
"experimental": false,
"date": "2024-02-12T00:00:00Z",
"publisher": "İsmail Can Karataş",
"description": "Search for Fee Items based on the reference of the referenced visit",
"code": "encounter-reference",
"base": [
"ChargeItem"
],
"type": "reference",
"expression": "ChargeItem.encounter.resolve().extension('reference').value"
}
Upvotes: 1
Views: 162
Reputation: 6793
It's pretty unusual for servers to support 'resolve()' as part of a search parameter definition. Try using chaining, where you define two search parameters - one on ChargeItem.encounter, and one on Encounter extension.
Also, 'reference' isn't a valid URL for a root-level extension. You need a full URI as the URL for extensions. Only extension is nodes inside a complex extension.
Upvotes: 0