> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.clinicea.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Fetch Patient Visit Data from Clinicea via API

## Introduction

Sometimes a Client might require to fetch the patient encounter data from Clinicea for their own requirements. This data can be fetched via Clinicea API.

According to this approach an API call will fetch the encounter data (in XML format). Client can use the same call to fetch the data and format it as per your requirement.

So for the purpose of handling this, the API calls in Clinicea as follows.

1.  getPatientVisit
    

Let’s get down to the details of both this API calls one by one.

This API method is accessible through Patient Visit Controller. This a **GET** method. The method will search for the **patient encounter data** of the patient against a sync date that will be passed by the user. If the search is successful, it will fetch the encounter data and will return in XML.

**Authorization:** The API role must have the necessary permissions enabled in the Clinicea Application.

**Details**:

![](https://storage.crisp.chat/users/helpdesk/website/521ceb7bc2a4340/2be8d633-834a-48fd-88af-4645c1_v72emi.png)

## Possible Responses:

![](https://storage.crisp.chat/users/helpdesk/website/d589138095353800/4d4cd587-cd58-4424-b97e-73e676_li3fmd.png)

## Result Details:

![](https://storage.crisp.chat/users/helpdesk/website/ad5b6e40366e4800/03842a21-5faf-43b1-b517-67ed60_5glm4z.png)