# Patient Transfer - Country Site List

| **API URL**     | {{url}}/admin-service/site/country/site-list |
| --------------- | -------------------------------------------- |
| **Method**      | POST                                         |
| **Description** | Patient transfer country site list           |

#### **Input:** <a href="#patienttransfer-countrysitelist-input" id="patienttransfer-countrysitelist-input"></a>

| **Field Name**        | **Type** | **Mandatory** | **Example**                                                                                                                                     |
| --------------------- | -------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Authorization(Header) | String   | Yes           | Bearer eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.MCm0mJDfpfjlr10Uok79-kTF7fv9Tn7cI5m2WsRDGUd9VS7iRmfbszjuc1-w5D-PYt9CdVxRMGBQlzYauhnI |

#### **Input:** <a href="#patienttransfer-countrysitelist-input-.1" id="patienttransfer-countrysitelist-input-.1"></a>

| **Field Name** | **Type** | **Mandatory** | **Example** |
| -------------- | -------- | ------------- | ----------- |
| Facility       | String   | Yes           | ze          |

#### **Sample Input:** <a href="#patienttransfer-countrysitelist-sampleinput" id="patienttransfer-countrysitelist-sampleinput"></a>

{\
"countryId": 1,\
"searchTerm": "ze",\
"tenantId": 4\
}

#### **Output:** <a href="#patienttransfer-countrysitelist-output" id="patienttransfer-countrysitelist-output"></a>

| **Field Name**      | **Type** | **Comments**               |
| ------------------- | -------- | -------------------------- |
| `name`              | String   | Site name                  |
| `email`             | String   | Site mail ID               |
| `addressType`       | String   | Address type               |
| `addressUse`        | String   | Address use                |
| `address1`          | String   | Address 1                  |
| `address2`          | String   | Address 2                  |
| `latitude`          | String   | Latitude                   |
| `longitude`         | String   | Longitude                  |
| `city`              | String   | City                       |
| `phoneNumber`       | String   | Phone number               |
| `siteLevel`         | String   | Site level                 |
| `siteType`          | String   | Site type                  |
| `countryId`         | Bigint   | Country Id                 |
| `countyId`          | Bigint   | County Id                  |
| `subCountyId`       | Bigint   | Sub county Id              |
| `accountId`         | Bigint   | Account Id                 |
| `operatingUnit`     | Object   | Operating unit details     |
| `account`           | Object   | Account details            |
| `country`           | Object   | Country details            |
| `clinicalWorkflows` | Object   | Clinical workflows details |
| `culture`           | Object   | Culture details            |

#### **Sample Output:** <a href="#patienttransfer-countrysitelist-sampleoutput" id="patienttransfer-countrysitelist-sampleoutput"></a>

```
{
  "message": "Site fetched successfully.",
  "entity": null,
  "status": true,
  "entityList": [
    {
      "createdBy": 1,
      "id": 2,
      "updatedBy": 1,
      "createdAt": "2023-05-23T13:04:17+00:00",
      "updatedAt": "2023-05-23T13:04:17+00:00",
      "tenantId": 5,
      "name": "Zen care",
      "email": null,
      "addressType": "Physical",
      "addressUse": "Home",
      "address1": "jhytf",
      "address2": null,
      "latitude": "13.08377",
      "longitude": "80.28257",
      "city": "India, Chennai, Chennai",
      "phoneNumber": "9876654436",
      "workingHours": 0,
      "postalCode": "9886675532",
      "siteLevel": "Level 2",
      "siteType": "Clinic",
      "countryId": 1,
      "countyId": 1,
      "subCountyId": 2,
      "accountId": 1,
      "operatingUnit": {
        "createdBy": 1,
        "id": 1,
        "updatedBy": 1,
        "createdAt": "2023-05-23T12:25:02+00:00",
        "updatedAt": "2023-05-23T12:25:02+00:00",
        "name": "Medical care",
        "account": {
          "createdBy": 1,
          "id": 1,
          "updatedBy": 1,
          "createdAt": "2023-05-23T12:24:13+00:00",
          "updatedAt": "2023-05-23T12:24:13+00:00",
          "tenantId": 2,
          "name": "Medical care",
          "maxNoOfUsers": 1,
          "country": {
            "createdBy": 1,
            "id": 1,
            "updatedBy": 23,
            "createdAt": "2023-05-23T12:15:19+00:00",
            "updatedAt": "2023-05-26T09:44:25+00:00",
            "tenantId": 1,
            "name": "Kenya",
            "countryCode": "254",
            "unitMeasurement": "metric",
            "active": true,
            "deleted": false
          },
          "clinicalWorkflows": [
            {
              "createdBy": 1,
              "id": 1,
              "updatedBy": 1,
              "createdAt": "2023-05-23T12:15:19+00:00",
              "updatedAt": "2023-05-23T12:15:19+00:00",
              "tenantId": null,
              "name": "mental health",
              "viewScreens": null,
              "workflow": "phq4",
              "moduleType": "clinical",
              "countryId": null,
              "default": false,
              "active": true,
              "deleted": false
            },
            {
              "createdBy": 1,
              "id": 2,
              "updatedBy": 1,
              "createdAt": "2023-05-23T12:15:19+00:00",
              "updatedAt": "2023-05-23T12:15:19+00:00",
              "tenantId": null,
              "name": "pregnancy",
              "viewScreens": null,
              "workflow": "pregnancy",
              "moduleType": "clinical",
              "countryId": null,
              "default": false,
              "active": true,
              "deleted": false
            },
            {
              "createdBy": 1,
              "id": 3,
              "updatedBy": 1,
              "createdAt": "2023-05-23T12:15:19+00:00",
              "updatedAt": "2023-05-23T12:15:19+00:00",
              "tenantId": null,
              "name": "hypertension",
              "viewScreens": null,
              "workflow": "bp_log",
              "moduleType": "clinical",
              "countryId": null,
              "default": true,
              "active": true,
              "deleted": false
            },
            {
              "createdBy": 1,
              "id": 4,
              "updatedBy": 1,
              "createdAt": "2023-05-23T12:15:19+00:00",
              "updatedAt": "2023-05-23T12:15:19+00:00",
              "tenantId": null,
              "name": "diabetics",
              "viewScreens": null,
              "workflow": "glucose_log",
              "moduleType": "clinical",
              "countryId": null,
              "default": true,
              "active": true,
              "deleted": false
            }
          ],
          "customizedWorkflows": [],
          "reason": null,
          "status": null,
          "usersRestricted": false,
          "active": true,
          "deleted": false
        },
        "countryId": 1,
        "tenantId": 3,
        "active": true,
        "deleted": false
      },
      "culture": {
        "createdBy": 1,
        "id": 1,
        "updatedBy": 1,
        "createdAt": "2023-05-23T12:15:19+00:00",
        "updatedAt": "2023-05-23T12:15:19+00:00",
        "name": "English - India",
        "code": "en_IN",
        "active": true,
        "deleted": false,
        "hibernateLazyInitializer": {}
      },
      "active": true,
      "deleted": false
    },
    {
      "createdBy": 1,
      "id": 3,
      "updatedBy": 1,
      "createdAt": "2023-05-23T13:19:08+00:00",
      "updatedAt": "2023-05-23T13:19:41+00:00",
      "tenantId": 8,
      "name": "Zen                 care",
      "email": null,
      "addressType": "Physical",
      "addressUse": "Home",
      "address1": "jhyyd",
      "address2": null,
      "latitude": "13.08377",
      "longitude": "80.28257",
      "city": "India, Chennai, Chennai",
      "phoneNumber": "9887676643",
      "workingHours": 0,
      "postalCode": "0865531234",
      "siteLevel": "Level 2",
      "siteType": "Clinic",
      "countryId": 1,
      "countyId": 1,
      "subCountyId": 2,
      "accountId": 1,
      "operatingUnit": {
        "createdBy": 1,
        "id": 1,
        "updatedBy": 1,
        "createdAt": "2023-05-23T12:25:02+00:00",
        "updatedAt": "2023-05-23T12:25:02+00:00",
        "name": "Medical care",
        "account": {
          "createdBy": 1,
          "id": 1,
          "updatedBy": 1,
          "createdAt": "2023-05-23T12:24:13+00:00",
          "updatedAt": "2023-05-23T12:24:13+00:00",
          "tenantId": 2,
          "name": "Medical care",
          "maxNoOfUsers": 1,
          "country": {
            "createdBy": 1,
            "id": 1,
            "updatedBy": 23,
            "createdAt": "2023-05-23T12:15:19+00:00",
            "updatedAt": "2023-05-26T09:44:25+00:00",
            "tenantId": 1,
            "name": "Kenya",
            "countryCode": "254",
            "unitMeasurement": "metric",
            "active": true,
            "deleted": false
          },
          "clinicalWorkflows": [
            {
              "createdBy": 1,
              "id": 1,
              "updatedBy": 1,
              "createdAt": "2023-05-23T12:15:19+00:00",
              "updatedAt": "2023-05-23T12:15:19+00:00",
              "tenantId": null,
              "name": "mental health",
              "viewScreens": null,
              "workflow": "phq4",
              "moduleType": "clinical",
              "countryId": null,
              "default": false,
              "active": true,
              "deleted": false
            },
            {
              "createdBy": 1,
              "id": 2,
              "updatedBy": 1,
              "createdAt": "2023-05-23T12:15:19+00:00",
              "updatedAt": "2023-05-23T12:15:19+00:00",
              "tenantId": null,
              "name": "pregnancy",
              "viewScreens": null,
              "workflow": "pregnancy",
              "moduleType": "clinical",
              "countryId": null,
              "default": false,
              "active": true,
              "deleted": false
            },
            {
              "createdBy": 1,
              "id": 3,
              "updatedBy": 1,
              "createdAt": "2023-05-23T12:15:19+00:00",
              "updatedAt": "2023-05-23T12:15:19+00:00",
              "tenantId": null,
              "name": "hypertension",
              "viewScreens": null,
              "workflow": "bp_log",
              "moduleType": "clinical",
              "countryId": null,
              "default": true,
              "active": true,
              "deleted": false
            },
            {
              "createdBy": 1,
              "id": 4,
              "updatedBy": 1,
              "createdAt": "2023-05-23T12:15:19+00:00",
              "updatedAt": "2023-05-23T12:15:19+00:00",
              "tenantId": null,
              "name": "diabetics",
              "viewScreens": null,
              "workflow": "glucose_log",
              "moduleType": "clinical",
              "countryId": null,
              "default": true,
              "active": true,
              "deleted": false
            }
          ],
          "customizedWorkflows": [],
          "reason": null,
          "status": null,
          "usersRestricted": false,
          "active": true,
          "deleted": false
        },
        "countryId": 1,
        "tenantId": 3,
        "active": true,
        "deleted": false
      },
      "culture": {
        "createdBy": 1,
        "id": 1,
        "updatedBy": 1,
        "createdAt": "2023-05-23T12:15:19+00:00",
        "updatedAt": "2023-05-23T12:15:19+00:00",
        "name": "English - India",
        "code": "en_IN",
        "active": true,
        "deleted": false,
        "hibernateLazyInitializer": {}
      },
      "active": true,
      "deleted": false
    }
  ],
  "responseCode": 200,
  "totalCount": 2
}
```
