Stream: implementers
Topic: SearchParameter
Sufyan Patel (Feb 08 2021 at 09:42):
Hi, I am trying to create a SearchParameter on the Slot resource that searches for slots for a specific healthcare service. It will reference the service via the Schedule resource. (Slot -> Schedule -> HealthcareService) My question is that whether a search parameter can do this?
The expression I've tried are Slot.schedule.actor and Slot.schedule.actor.HealthcareService but they do not seem to work.
René Spronk (Feb 08 2021 at 09:59):
GET [base]/Slot?schedule.actor:HealthcareService.service-type=xxx , where xxx is the code for the requested HealthcareService.
Sufyan Patel (Feb 08 2021 at 15:09):
That works as a REST command but I'm trying to create a separate SearchParameter resource that performs the same search. Something like GET [base]/Slot?<searchparameter>=xxx.
Adding schedule.actor:HealthcareService is not allowed in the expression element.
ryan moehrke (Feb 08 2021 at 15:35):
expression is expecting fhirpath (http://hl7.org/fhirpath/) you may be able to use Slot.schedule.resolve().actor but I don't know how well implemented that would be
Michele Mottini (Feb 08 2021 at 15:39):
Implementing a new search parameter requires writing code in the server to implement it. The SearchParameter resource just describes the search parameters that have been implemented
Paul Church (Feb 08 2021 at 18:09):
Some general purpose FHIR servers accept SearchParameter resources as configuration. Writing code is not required.
But typically you can't put a chained search in a SearchParameter. The expression would contain a resolve() which is unlikely to be supported.
Last updated: Apr 12 2022 at 19:14 UTC