---
# System prepended metadata

title: How to Enable Advance Search Parameter on FHIR Server
tags: [Tutorial]

---

---
title: How to Enable Advance Search Parameter on FHIR Server
tags: Tutorial
---
# How to Enable Advance Search Parameter on FHIR Server
###### tags: `FHIR`,`healthcare information standard`,`advance search parameter`,`tutorial`

## Table of Contents
[TOC]

## 1. Scenario
FHIR has several advanced search parameters that can be used to make queries faster and more efficient. However, it turns out that by default the advanced parameter is not enabled on standard FHIR Server installations, therefore it needs to be enabled, let's do it!

## 2. Purpose
This chapter aims to make the reader understand the steps to activate and enable advance search parameters on FHIR Server.

## 3. Step
1. Find and download the ROOT.war file from your FHIR server.  It is common exist on your FHIR server in path: /usr/local/tomcat/webapps/ROOT.war
![image](https://hackmd.io/_uploads/By5r3QMuC.png)
2. Find the application.yaml file inside the file (without extract it!), you can open it using 7zip :+1: 
![image](https://hackmd.io/_uploads/B1BzF3zdC.png)

3. Enable the search parameter by delete the '#', change it to 'true', and save it
![image](https://hackmd.io/_uploads/HkEKYnM_A.png)
4. Upload the ROOT.war back to the server, and set it permission to 0644
![image](https://hackmd.io/_uploads/HJBK93zu0.png)
5. Set file owner (you can use PUTTY)
![image](https://hackmd.io/_uploads/Hkj0K3Gu0.png)
6. Check and test by querying FHIR resource using the advance search paramater and Congrats! you done it!
![image](https://hackmd.io/_uploads/ByVy33zuA.png)


## 4. Reference
- https://www.hl7.org/fhir/search.html
- https://docs.oracle.com/en/industries/health-sciences/healthcare-data-repository/8.2/fhir-guide/contained-resources.html

:::info
To enable the _contained parameter on Oracle HDR FHIR server, set the below property to true in the hdr_fhir.yaml file. By default this property is set to false. If this is set to true all the contained resources will be indexed while persisting the resources.
enable_index_contained_resource: true
:::
