# Eşdeğer İlaçlar

### Uç-nokta: /equivalents

[api-url](https://doc.vapi.co/tr/api-klavuzu/api-url "mention")

### İstek Metodu: <mark style="color:green;">GET</mark>

### Header Parametreleri

<table><thead><tr><th width="154">parametre</th><th width="114">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>Authorization</td><td>string</td><td>Bearer &#x3C;API Anahtarı><a data-mention href="#curl-istek-oernegi">#curl-istek-oernegi</a> <a data-mention href="../kimlik-dogrulama">kimlik-dogrulama</a></td></tr></tbody></table>

### İstek Parametreleri

<table><thead><tr><th width="153">parametre</th><th width="110">tipi</th><th width="367">açıklama</th><th>zorunlu</th></tr></thead><tbody><tr><td>id</td><td>integer</td><td>İlaca ait atanmış olan tekil ürün id bilgisi. Bu bilgiye /products metodunda bulunan id alanından alınabilir.</td><td>hayır</td></tr><tr><td>page</td><td>integer</td><td>Sayfa numarası <a data-mention href="../cevap-yapisi">cevap-yapisi</a></td><td>hayır</td></tr><tr><td>per-page</td><td>integer</td><td>Bir sayfada bulunması istenen kayıt sayısı. Üst limit 500. <a data-mention href="../cevap-yapisi">cevap-yapisi</a></td><td>hayır</td></tr></tbody></table>

### Cevap Parametreleri

#### <mark style="color:green;">data</mark> [cevap-yapisi](https://doc.vapi.co/tr/api-klavuzu/cevap-yapisi "mention")

<table><thead><tr><th width="232">parametre</th><th width="222">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>product</td><td>productList</td><td><a data-mention href="#productlist">#productlist</a></td></tr><tr><td>equivalents</td><td>productList[]</td><td><a data-mention href="#productlist">#productlist</a></td></tr></tbody></table>

#### <mark style="color:green;">productList</mark>

<table><thead><tr><th width="126">parametre</th><th width="123">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>product</td><td>product </td><td><a data-mention href="#product">#product</a></td></tr><tr><td>drug</td><td>drug </td><td><a data-mention href="#drug">#drug</a></td></tr><tr><td>drugform</td><td>drug </td><td><a data-mention href="#drugform">#drugform</a></td></tr><tr><td>barcodes</td><td>barcodes </td><td><a data-mention href="#barcodes">#barcodes</a></td></tr><tr><td>published</td><td>boolean</td><td><mark style="color:green;"><strong>true</strong></mark> = ürünün ve bilgilerinin aktif bir şekilde yayınlanabildiği durumlar içindir<br><mark style="color:red;"><strong>false</strong></mark> = ürünün ve bilgilerinin çeşitli sebeplerle (firma talebi, regülasyonlar, hatalı kayıt vb.) yayından kaldırıldığı durumlar içindir</td></tr></tbody></table>

#### <mark style="color:green;">product</mark>

<table><thead><tr><th width="137">parametre</th><th width="105">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>id</td><td>integer</td><td>ürün tekil id'si</td></tr><tr><td>name</td><td>string</td><td><p>ürün ismi (drug + drugform + product şeklinde oluşturulmaktadır).</p><p></p><p><img src="https://1066508896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFijFX6qkv9C1NPJR2PMY%2Fuploads%2FertE3uYNRnjW49TFbMEY%2Fimage.png?alt=media&#x26;token=e2d31cff-eaac-4f6f-b97b-ed03515993db" alt="" data-size="original"></p><p> </p></td></tr></tbody></table>

#### <mark style="color:green;">drug</mark>

<table><thead><tr><th width="137">parametre</th><th width="105">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>id</td><td>integer</td><td>ürüne ait drug'ın id'si</td></tr><tr><td>name</td><td>string</td><td><p>drug'ın ismi</p><p><br>Örneğin:</p><p>"CALPOL Süspansiyon 120 mg/5 ml 150 ml'lik şişe"</p><p>için</p><p><mark style="color:red;">drug: CALPOL</mark></p><p></p><p><img src="https://1066508896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFijFX6qkv9C1NPJR2PMY%2Fuploads%2FertE3uYNRnjW49TFbMEY%2Fimage.png?alt=media&#x26;token=e2d31cff-eaac-4f6f-b97b-ed03515993db" alt="" data-size="original"></p><p> </p></td></tr></tbody></table>

#### <mark style="color:green;">drugform</mark>

<table><thead><tr><th width="131">parametre</th><th width="125">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>id</td><td>integer</td><td>ürüne ait drugform'un id'si</td></tr><tr><td>name</td><td>string</td><td><p>drugform'un ismi</p><p></p><p>Örneğin:</p><p>"CALPOL Süspansiyon 120 mg/5 ml 150 ml'lik şişe"</p><p>için</p><p><mark style="color:red;">drugform: Süspansiyon 120 mg/5 ml</mark><br><img src="https://1066508896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFijFX6qkv9C1NPJR2PMY%2Fuploads%2FgbUX9fVyc8eZI3cva0da%2Fimage.png?alt=media&#x26;token=2b3c86c3-3cfc-40a6-ac40-c230c59a1245" alt=""></p></td></tr></tbody></table>

#### <mark style="color:green;">barcodes</mark>

<table><thead><tr><th width="134">parametre</th><th width="123">tipi</th><th>açıklama</th></tr></thead><tbody><tr><td>barcode</td><td>integer</td><td>ürünün barkodu. 12 veya 13 haneli olabilir.</td></tr><tr><td>skrsStatus</td><td>string</td><td>barkoda ait SKRS durumu. Sağlık Kodlama Referans Sunucusu'nda tanımlı olan barkodu ve barkodun durumunu açıklar. Dönen sonuç <mark style="color:red;">aktif</mark>, <mark style="color:red;">pasif</mark> veya <mark style="color:red;">null (liste dışı)</mark> olacaktır.<br><br>İlaçların barkodu, belirli koşullarda değişebilir. Bu sebeple 1 ilacın 1'den fazla barkodu olabilir (aynı ilaç farklı barkodlarla piyasada olabilir) ve her barkodun SKRS durumu farklı olabilir. </td></tr></tbody></table>

### <mark style="color:blue;">curl</mark> İstek Örneği

```
curl --location 'https://api.vapi.co/equivalents' \
--header 'Authorization: Bearer <API Anahtarı>'
```

```
curl --location 'https://api.vapi.co/equivalents/802' \
--header 'Authorization: Bearer <API Anahtarı>'
```

### <mark style="color:blue;">postman</mark> İstek Örneği

**Liste Sorgusu**

<figure><img src="https://1066508896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFijFX6qkv9C1NPJR2PMY%2Fuploads%2FdRCDiuzRfXJb9ue5LV2G%2FScreen%20Shot%202024-04-15%20at%2016.07.04.png?alt=media&#x26;token=f691ca0e-e5f6-4598-b57a-89d73db83ae2" alt=""><figcaption></figcaption></figure>

**Tekil Sorgu**

<figure><img src="https://1066508896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFijFX6qkv9C1NPJR2PMY%2Fuploads%2F9t7PJnnTx6rv32GPqpV9%2FScreen%20Shot%202024-04-15%20at%2016.07.51.png?alt=media&#x26;token=78562eff-b3d7-4b61-863c-bd4a59ed6564" alt=""><figcaption></figcaption></figure>

### Cevap örneği

**Liste Sonucu**

```json
{
    "data": [
        {
            "product": {
                "id": 591,
                "name": "VECTAVİR Krem %1 2 g'lık tüp"
            },
            "equivalents": [
                {
                    "product": {
                        "id": 13059,
                        "name": "EX-LOVİR Krem %1 2 g'lık tüp"
                    },
                    "drug": {
                        "id": 9518,
                        "name": "EX-LOVİR"
                    },
                    "drugform": {
                        "id": 10131,
                        "name": "Krem %1"
                    },
                    "barcodes": [
                        {
                            "barcode": "8680053350011",
                            "skrsStatus": "Pasif"
                        }
                    ],
                    "published": true
                },
                {
                    "product": {
                        "id": 15674,
                        "name": "EX-LOVİR Krem %1 5 g'lık tüp"
                    },
                    "drug": {
                        "id": 9518,
                        "name": "EX-LOVİR"
                    },
                    "drugform": {
                        "id": 10131,
                        "name": "Krem %1"
                    },
                    "barcodes": [
                        {
                            "barcode": "8680053350066",
                            "skrsStatus": null
                        }
                    ],
                    "published": true
                },
                {
                    "product": {
                        "id": 20163,
                        "name": "PENSİVİR Krem %1 5 g'lık tüp"
                    },
                    "drug": {
                        "id": 10711,
                        "name": "PENSİVİR"
                    },
                    "drugform": {
                        "id": 12341,
                        "name": "Krem %1"
                    },
                    "barcodes": [
                        {
                            "barcode": "8699591350322",
                            "skrsStatus": "Pasif"
                        }
                    ],
                    "published": true
                },
                {
                    "product": {
                        "id": 21569,
                        "name": "PENSİVİR Krem %1 2 g'lık tüp"
                    },
                    "drug": {
                        "id": 10711,
                        "name": "PENSİVİR"
                    },
                    "drugform": {
                        "id": 12341,
                        "name": "Krem %1"
                    },
                    "barcodes": [
                        {
                            "barcode": "8699591350384",
                            "skrsStatus": null
                        }
                    ],
                    "published": true
                },
                {
                    "product": {
                        "id": 24892,
                        "name": "PENSİVİR Krem %1 10 g'lık tüp"
                    },
                    "drug": {
                        "id": 10711,
                        "name": "PENSİVİR"
                    },
                    "drugform": {
                        "id": 12341,
                        "name": "Krem %1"
                    },
                    "barcodes": [
                        {
                            "barcode": "8699591350445",
                            "skrsStatus": "Aktif"
                        }
                    ],
                    "published": true
                }
            ]
        },
        {
            "product": {
                "id": 10818,
                "name": "MİLK THİSTLE Kapsül 50 kapsüllük ambalaj"
            },
            "equivalents": []
        },
        {
            "product": {
                "id": 999,
                "name": "CONVULEX CR Tablet 300 mg 50 tabletlik ambalaj"
            },
            "equivalents": [
                {
                    "product": {
                        "id": 13494,
                        "name": "DEPALEX XR Uzun Etkili Film Kaplı Tablet 300 mg 30 tabletlik ambalaj"
                    },
                    "drug": {
                        "id": 5331,
                        "name": "DEPALEX XR"
                    },
                    "drugform": {
                        "id": 10486,
                        "name": "Uzun Etkili Film Kaplı Tablet 300 mg"
                    },
                    "barcodes": [
                        {
                            "barcode": "8699514030324",
                            "skrsStatus": "Aktif"
                        },
                        {
                            "barcode": "8699514030102",
                            "skrsStatus": "Pasif"
                        }
                    ],
                    "published": true
                }
            ]
        },
        ...
    ],
    "_links": {
        "self": {
            "href": "https://api.vapi.co/equivalents?page=1&per-page=200"
        },
        "first": {
            "href": "https://api.vapi.co/equivalents?page=1&per-page=200"
        },
        "last": {
            "href": "https://api.vapi.co/equivalents?page=1&per-page=200"
        }
    },
    "_meta": {
        "totalCount": 66,
        "pageCount": 1,
        "currentPage": 1,
        "perPage": 200
    },
    "success": true
}
```

**Tekil Sonuç**

```json
{
    "data": {
        "product": {
            "id": 802,
            "name": "MABTHERA İV İnf. İçin Konsantre Çözelti İçeren Flakon 100 mg/10 ml 2x10 ml'lik flakon"
        },
        "equivalents": [
            {
                "product": {
                    "id": 29955,
                    "name": "RUXİENCE İV İnfüzyonluk Çözelti Hazırlamak İçin Konsantre 100 mg/10 ml 1x10 ml'lik flakon"
                },
                "drug": {
                    "id": 17689,
                    "name": "RUXİENCE"
                },
                "drugform": {
                    "id": 22212,
                    "name": "İV İnfüzyonluk Çözelti Hazırlamak İçin Konsantre 100 mg/10 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8681308771032",
                        "skrsStatus": "Aktif"
                    }
                ],
                "published": true
            },
            {
                "product": {
                    "id": 21395,
                    "name": "REDDİTUX İV İnf. Çöz. Haz. İçin Konsantre Flakon 100 mg/10 ml 1x10 ml'lik flakon"
                },
                "drug": {
                    "id": 12270,
                    "name": "REDDİTUX"
                },
                "drugform": {
                    "id": 14891,
                    "name": "İV İnf. Çöz. Haz. İçin Konsantre Flakon 100 mg/10 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8680885576016",
                        "skrsStatus": "Aktif"
                    }
                ],
                "published": true
            },
            {
                "product": {
                    "id": 29134,
                    "name": "NOVEX İV İnfüzyonluk Çözelti İçin Konsantre 100 mg/10 ml 2x10 ml'lik flakon"
                },
                "drug": {
                    "id": 17202,
                    "name": "NOVEX"
                },
                "drugform": {
                    "id": 21540,
                    "name": "İV İnfüzyonluk Çözelti İçin Konsantre 100 mg/10 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8699514760047",
                        "skrsStatus": null
                    }
                ],
                "published": true
            },
            {
                "product": {
                    "id": 29106,
                    "name": "TRUXİMA İV İnfüzyon İçin Konsantre İçeren Flakon 100 mg/10 ml 2x10 ml'lik flakon"
                },
                "drug": {
                    "id": 13998,
                    "name": "TRUXİMA"
                },
                "drugform": {
                    "id": 21512,
                    "name": "İV İnfüzyon İçin Konsantre İçeren Flakon 100 mg/10 ml"
                },
                "barcodes": [
                    {
                        "barcode": "8680614140143",
                        "skrsStatus": "Aktif"
                    }
                ],
                "published": true
            }
        ]
    },
    "success": true
}
```
