Testkatalog
Biomarker ofruffen
En eenzele Biomarker iwwer d’ID ofruffen
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]
}
]
}
}
Gëtt en eenzele Biomarker iwwer seng numeresch
id zeréck. Nëtzlech, fir d’IDen aus Panelen oplëschten oder Rendez-vous-Payloads a komplett Detailer (Numm, Eenheet, Material, Kategorie) opzeléisen, ouni de ganze Katalog ze duerchsichen.
Et gëtt de selwechte Katalog wéi Biomarker oplëschten aus, also schéck déi selwecht Originn mat. En archivéierte Biomarker gëtt 404 zeréck. Datselwecht gëllt fir e Biomarker, dee s du un där Originn net bei de Laboen, déi däi Schlëssel benotzen däerf, bestelle kanns.
Brauch de panels_access-Scope. De pricing-Objet brauch och de prices_view-Scope.
Path-Parameteren
Query-Parameteren
D’Originn huet eng vun zwou Formen: en Teststanduert oder en Testkit fir doheem. Schéck genau eng mat. Keng oder béid gi400 zeréck.
- Teststanduert
- Testkit fir doheem
Iwwerschreif, wéi eng Präislëscht
price_cents benotzt: retail oder d’id vun enger Präislëscht, déi däi Schlëssel benotzen däerf. Präislëscht ofruffen gëtt déi id zeréck. Standardméisseg gëtt d’Präislëscht vum Ofrechnungskonto vun dengem API-Schlëssel benotzt, soss d’Retail-Präislëscht.Headeren
D’Sprooch vun den Nimm, Beschreiwungen a Kategorienimm, zum Beispill
de. Ouni dësen Header si
se op Englesch. Kuck Sproochen.Äntwert
Numm vun der Haaptkategorie, zum Beispill
Hormones. Den Numm ass an der Sprooch vun der
Ufro.Stabille Schlëssel vun der Haaptkategorie, zum Beispill
hormones. En ass an all Sprooch dee selwechten.
Vergläich dëse Wäert, net den Numm. Biomarkerkategorien
oplëschten gëtt all Schlëssel zeréck.Numm vun der Ënnerkategorie, zum Beispill
Tree pollen. Den Numm ass an der Sprooch vun der
Ufro. null, wann de Biomarker keng huet.Standardmiesseenheet. Benotz
id, fir d’Referenz iwwer Eenheeten oplëschten opzeléisen,
wanns du eng stabil Identitéit och no Ëmbenennunge brauchs.Wat dëse Biomarker kascht a wéi e verkaaft gëtt — kuck
Präisobjeten.
null nëmmen, wann dengem Schlëssel de
Scope prices_view feelt; e Biomarker, fir deen Aniva kee Präis festgeluecht huet, gëtt trotzdem
zeréckginn, mat pricing.price_cents: null.Feeleräntwerten
| Status | Beschreiwung |
|---|---|
400 | Validéierungsfeeler — ongëlteg id, keng oder zwou Originnen, oder onbekannt/net berechtegt rate_card. |
403 | Verbueden — de panels_access-Scope feelt. |
404 | Biomarker net fonnt, archivéiert oder un der Originn net bestellbar. Och bei enger onbekannter location_id. |
500 | Interne Serverfeeler. |
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]
}
]
}
}