# Get lab by ID Retrieve detailed information about a lab including all test panels and components. Endpoint: GET /partner/v2/account/{accountId}/location/{locationId}/lab/{labId} Version: 2.0 Security: PartnerOAuth ## Path parameters: - `labId` (integer, required) Lab ID - `accountId` (integer, required) Account identifier - `locationId` (integer, required) Location identifier ## Response 200 fields (application/json): - `appointmentId` (integer) Associated appointment ID - `collectedOn` (string) Collection date Example: "2025-01-15T09:30:00Z" - `completedOn` (string) Completion date Example: "2025-01-16T14:00:00Z" - `createdAt` (string) Creation timestamp Example: "2025-01-15T10:00:00Z" - `drawnBy` (string) Drawn by (staff name) Example: "Jane Smith" - `entryOn` (string) Entry date Example: "2025-01-15T10:00:00Z" - `externalResult` (boolean) Whether from external source Example: true - `id` (integer) Unique lab identifier Example: 12345 - `locationId` (integer) Location ID Example: 111 - `locked` (boolean) Whether lab is locked for editing Example: true - `manual` (boolean) Whether manually entered - `notes` (string) Notes Example: "Fasting specimen" - `patientId` (integer) Patient ID Example: 67890 - `patientName` (string) Patient name Example: "John Doe" - `status` (string) Lab status Enum: "PROCESSING", "COMPLETE", "ORDER_ERROR" - `testPanels` (array) Test panels in this lab - `testPanels.components` (array) Test components in this panel - `testPanels.components.abnormalFlag` (string) Abnormal flag Enum: "BELOW_NORMAL", "WITHIN_NORMAL", "ABOVE_NORMAL" - `testPanels.components.externalId` (string) External ID from vendor Example: "GLU" - `testPanels.components.id` (integer) Unique component identifier Example: 98765 - `testPanels.components.name` (string) Test name Example: "Glucose" - `testPanels.components.referenceHigh` (string) Reference range high Example: "100" - `testPanels.components.referenceLow` (string) Reference range low Example: "70" - `testPanels.components.referenceText` (string) Reference range text (if non-numeric) Example: "Negative" - `testPanels.components.resultStatus` (string) Result status Enum: "PRELIMINARY", "FINAL", "CORRECTED", "CANCELLED" - `testPanels.components.unit` (string) Unit of measurement Example: "mg/dL" - `testPanels.components.value` (string) Result value Example: "95" - `testPanels.id` (integer) Unique panel identifier Example: 54321 - `testPanels.name` (string) Panel name Example: "Comprehensive Metabolic Panel" - `thirdPartyLabId` (string) External lab ID from vendor - `updatedAt` (string) Last update timestamp Example: "2025-01-16T14:00:00Z" - `vendorId` (integer) Lab vendor configuration ID Example: 222 - `vendorName` (string) Vendor name Example: "Labcorp" - `vendorType` (string) Lab vendor type Enum: "IN_HOUSE", "LABCORP", "PRIME", "BRIO", "SPOTDX", "OTHER" ## Response 401 fields ## Response 403 fields ## Response 404 fields