Skip to content

Get test component by ID

Request

Retrieve detailed information about a specific test component.

Security
PartnerApiKey and PartnerOAuth
Path
labIdinteger, (int64)required
componentIdinteger, (int64)required

Test component ID

accountIdinteger, (int64)required

Account identifier

locationIdinteger, (int64)required

Location identifier

curl -i -X GET \
  'https://api-docs.lobbie.com/_mock/openapi/partner/v2/account/{accountId}/location/{locationId}/lab/{labId}/test-component/{componentId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

Test component found and returned successfully

Bodyapplication/json
abnormalFlagstring

Abnormal flag

Enum:"BELOW_NORMAL""WITHIN_NORMAL""ABOVE_NORMAL"
Example:"WITHIN_NORMAL"
commentsstring

Comments on this result row.

Example:"Clinical note"
externalIdstring

External ID from vendor

Example:"GLU"
idinteger, (int64)

Unique component identifier

Example:98765
labIdinteger, (int64)

Parent lab ID.

Example:12345
namestring

Test name

Example:"Glucose"
packetIdinteger, (int64)

Parent packet ID when the component is under a packet; otherwise null.

Example:10
packetNamestring

Packet name when packetId is set; otherwise null.

Example:"Metabolic bundle"
panelIdinteger, (int64)

Parent panel ID. Null when the component is not under a panel.

Example:54321
panelNamestring

Panel name. Null when the component is not under a panel.

Example:"Comprehensive Metabolic Panel"
referenceRangesArray of objects(ReferenceRangeDTO)

All configured numeric reference intervals for this test (from lab component config), with optional qualifiers. Empty when no ranges are configured.

Example:
[]
unitstring

Unit of measurement

Example:"mg/dL"
valuestring

Result value

Example:"95"
Response
{ "abnormalFlag": "WITHIN_NORMAL", "comments": "Clinical note", "externalId": "GLU", "id": 98765, "labId": 12345, "name": "Glucose", "packetId": 10, "packetName": "Metabolic bundle", "panelId": 54321, "panelName": "Comprehensive Metabolic Panel", "referenceRanges": [], "unit": "mg/dL", "value": "95" }