# Medical Services

![](/files/mBkvSL8m1NtKT2MPQnAl)

Most Private and Government Hospitals provide online services. As medical services are pretty expensive, the patient should be able to estimate the total cost of medical facilities they want to receive. For this purpose, the tutorial that we’re going to show is about cost estimation for medical services.&#x20;

Now onto the specifics,&#x20;

The Backend of our Cost Calculator would look like this,

![](/files/emqoRQQQ9lu0ndU2SGsV)

Firstly, the patient needs to select what specialized doctor they want to see. We’re using a **Drop Down** menu for that,

![](/files/tZrTLVHu2cMqQvWEqYid)

After they've selected the Service, they need to mention if they are visiting the doctor for the first time or if they are follow-up patients. We using **Drop Down** menu for this as well,

![](/files/3oGAxwQyyEh2IKebVwbL)

Then they can select if they want to do Medical Tests. We’re using **Toggle Button** for this field. The patient can turn the toggle button on or off.

![](/files/ndzvwKp4UJBCHbmfgXwl)

If they say yes, then we’ll add a **Checkbox Field** for selecting the number of tests.

![](/files/oHZ8UqgIrbn5VzI3QGt2)

The total amount would be calculated using this formula,

![](/files/KgnsUk4b3eyAdr5SjYoD)

**Frontend Preview:**

![](/files/0m6StLVI8B0HD08ZQ61r)

**Exported Calculator:**

{% file src="/files/igfhvzhmqSCfEP7zPLXf" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stylemixthemes.com/cost-calculator-builder/pre-built-calculators-and-cases/medical-services.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
