--- type: "fhir-fhirpath-function" title: "FHIR FHIRPath Function: %server.apply" source: "source/fhirpath.html" --- # FHIR FHIRPath Function: %server.apply This page is part of **FHIR FHIRPath** (FHIR-specific extensions). Base spec lives at [FHIRPath](/fhirpath). `%server.apply(resource, subject, parameters) : Bundle` Get a resource from the server. Parameters: - **resource**: The resource to drive the $apply operation (PlanDefinition, ActivityDefinition). - **subject**: The subject to apply to - can be a resource, or a string containing type/id for the subject. - **parameters**: A parameters resource, or a string with URL parameters (name=value&etc.) **Return Value:** The bundle from $apply. If the operation fails, the return value is empty. \[%file newfooter%\] [Back to FHIR FHIRPath](/fhir-fhirpath)