Katalog testov
Pridobi biomarker
Pridobi posamezen biomarker po ID-ju
GET
/
api
/
v1
/
biomarkers
/
{id}
curl --url 'https://anivahealth.com/api/v1/biomarkers/42?home_kit=true' \
--header 'x-api-key: YOUR_API_KEY'
{
"id": 42,
"slug": "vitamin-d-25-oh",
"name": "Vitamin D (25-OH)",
"description": "Serum 25-hydroxyvitamin D …",
"primary_category": "Micronutrients",
"primary_category_key": "micronutrients",
"secondary_category": null,
"secondary_category_key": null,
"type": "clinical",
"material": "serum",
"unit": { "id": 1, "title": "nmol/L", "display_title": null },
"pricing": {
"price_cents": 3952,
"retail_cents": 4549,
"tier": "specialty"
}
}
{
"id": 77,
"slug": "mean-platelet-volume",
"name": "Mean Platelet Volume (MPV)",
"description": null,
"primary_category": "Hematology",
"primary_category_key": "hematology",
"secondary_category": null,
"secondary_category_key": null,
"type": "clinical",
"material": "whole_blood",
"unit": { "id": 7, "title": "fL", "display_title": null },
"pricing": {
"price_cents": 0,
"retail_cents": 0,
"positions": [
{
"id": "3f1a8c22-64bd-4e57-8a90-1c2d3e4f5a6b",
"name": "Blood Count (extended)",
"price_cents": 460,
"retail_cents": 529,
"biomarker_ids": [71, 72, 73, 77],
"includes": [71, 72, 73]
}
]
}
}
Vrne posamezen biomarker po njegovem številskem
id. Uporabno za razreševanje ID-jev, ki jih vrne Seznam panelov ali ki jih vsebujejo podatki termina, v popolne podrobnosti (ime, enota, material, kategorija) brez pregledovanja celotnega kataloga.
Streže isti katalog kot Seznam biomarkerjev, zato pošlji isto izhodišče. Arhiviran biomarker vrne 404. Enako velja za biomarker, ki ga na tem izhodišču ne moreš naročiti pri laboratorijih, ki jih tvoj ključ sme uporabljati.
Zahteva obseg panels_access. Objekt pricing zahteva tudi obseg prices_view.
Parametri poti
Parametri poizvedbe
Izhodišče je ene od dveh oblik: lokacija za testiranje ali domači testni komplet. Pošlji natanko eno. Brez izhodišča ali z obema vrne400.
- Lokacija za testiranje
- Domači testni komplet
Preglasi cenik, ki ga uporablja
price_cents: retail ali id cenika, ki ga tvoj ključ sme uporabljati. Ta id vrne Pridobi cenik. Privzeto se uporabi cenik na obračunskem računu tvojega API-ključa, sicer maloprodajni.Glave
Jezik imen, opisov in imen kategorij, na primer
de. Brez njega so v angleščini. Glej
Jeziki.Odgovor
Stalen ključ primarne kategorije, na primer
hormones. V vseh jezikih je enak.
Primerjaj to vrednost, ne imena. Seznam kategorij
biomarkerjev vrne vse ključe.Ime sekundarne kategorije, na primer
Tree pollen. Ime je v jeziku
zahteve. null, če je biomarker nima.Privzeta merska enota. Uporabi
id za sklicevanje na Seznam enot, če
potrebuješ stalno identiteto tudi ob preimenovanjih.Koliko ta biomarker stane in kako se prodaja — glej cenovne
objekte.
null samo, če tvoj ključ nima
obsega prices_view; biomarker, za katerega Aniva ni določila cene, se vseeno vrne z
pricing.price_cents: null.Odgovori z napako
| Status | Opis |
|---|---|
400 | Napaka preverjanja — neveljaven id, brez izhodišča ali z dvema izhodiščema ali neznan/nepooblaščen rate_card. |
403 | Prepovedano — manjka obseg panels_access. |
404 | Biomarkerja ni mogoče najti, je arhiviran ali ga na tem izhodišču ni mogoče naročiti. Tudi neznan location_id. |
500 | Notranja napaka strežnika. |
curl --url 'https://anivahealth.com/api/v1/biomarkers/42?home_kit=true' \
--header 'x-api-key: YOUR_API_KEY'
{
"id": 42,
"slug": "vitamin-d-25-oh",
"name": "Vitamin D (25-OH)",
"description": "Serum 25-hydroxyvitamin D …",
"primary_category": "Micronutrients",
"primary_category_key": "micronutrients",
"secondary_category": null,
"secondary_category_key": null,
"type": "clinical",
"material": "serum",
"unit": { "id": 1, "title": "nmol/L", "display_title": null },
"pricing": {
"price_cents": 3952,
"retail_cents": 4549,
"tier": "specialty"
}
}
{
"id": 77,
"slug": "mean-platelet-volume",
"name": "Mean Platelet Volume (MPV)",
"description": null,
"primary_category": "Hematology",
"primary_category_key": "hematology",
"secondary_category": null,
"secondary_category_key": null,
"type": "clinical",
"material": "whole_blood",
"unit": { "id": 7, "title": "fL", "display_title": null },
"pricing": {
"price_cents": 0,
"retail_cents": 0,
"positions": [
{
"id": "3f1a8c22-64bd-4e57-8a90-1c2d3e4f5a6b",
"name": "Blood Count (extended)",
"price_cents": 460,
"retail_cents": 529,
"biomarker_ids": [71, 72, 73, 77],
"includes": [71, 72, 73]
}
]
}
}
⌘I
curl --url 'https://anivahealth.com/api/v1/biomarkers/42?home_kit=true' \
--header 'x-api-key: YOUR_API_KEY'
{
"id": 42,
"slug": "vitamin-d-25-oh",
"name": "Vitamin D (25-OH)",
"description": "Serum 25-hydroxyvitamin D …",
"primary_category": "Micronutrients",
"primary_category_key": "micronutrients",
"secondary_category": null,
"secondary_category_key": null,
"type": "clinical",
"material": "serum",
"unit": { "id": 1, "title": "nmol/L", "display_title": null },
"pricing": {
"price_cents": 3952,
"retail_cents": 4549,
"tier": "specialty"
}
}
{
"id": 77,
"slug": "mean-platelet-volume",
"name": "Mean Platelet Volume (MPV)",
"description": null,
"primary_category": "Hematology",
"primary_category_key": "hematology",
"secondary_category": null,
"secondary_category_key": null,
"type": "clinical",
"material": "whole_blood",
"unit": { "id": 7, "title": "fL", "display_title": null },
"pricing": {
"price_cents": 0,
"retail_cents": 0,
"positions": [
{
"id": "3f1a8c22-64bd-4e57-8a90-1c2d3e4f5a6b",
"name": "Blood Count (extended)",
"price_cents": 460,
"retail_cents": 529,
"biomarker_ids": [71, 72, 73, 77],
"includes": [71, 72, 73]
}
]
}
}