# PID Types

## Waht is a PID Type?

PID (Patient IDentification) Type is a scheme of identification of the Patients. Depending on a country where iLab is used, different kinds of PID Types are applicabble. Ussually, PID types are [National Identifiers](https://en.wikipedia.org/wiki/National_identification_number). The pair PID Type and PID are unique in iLab.

## Anonymous Patients

Anonymous Patient in iLab is refered to a patient, which has not such identifier (PID Type = 0). In that case, Patient  is treated as not idetified and it hasn't its own patient file in the system. Anonymous patients are *per Sale*, they can't be reused in different Sales. Every visit of such a person leads to creation of a new Patient object.

## Supported PID Types

You can get a list of supported PID Tyoes with GET on /public/pidtypes. Here is the description of currently supported PID Types.

| PID Type | Country                    | Native name | Encoded data               |
| -------- | -------------------------- | ----------- | -------------------------- |
| 0        | Any                        | -           | None                       |
| 1        | Bulgaria                   | ЕГН         | Date of birth, Gender      |
| 2        | Bulgaria                   | ЛНЧ         | None                       |
| 3        | Any                        | -           | Anonymous type for animals |
| 4        | Post Yugoslavian countries | ЕМБГ        | Date of birth, gender      |
| 5        | Bulgaria                   | НАП номер   | None                       |


---

# 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://web-api.skyware-group.com/public-data/public-pid-types.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.
