--- type: "fhir-fhirpath-function" title: "FHIR FHIRPath Function: %server.search" source: "source/fhirpath.html" --- # FHIR FHIRPath Function: %server.search This page is part of **FHIR FHIRPath** (FHIR-specific extensions). Base spec lives at [FHIRPath](/fhirpath). `%server.search(doPost, parameters) : Bundle` Perform a search on the server. Parameters: - **doPost**: A boolean value - true to use a POST, false to use a GET - **parameters**: A parameters resource, or a string with URL parameters (name=value&etc.) **Return Value:** A bundle with the search results. If the search fails, the return value is empty. * * * [Back to FHIR FHIRPath](/fhir-fhirpath)