BPGW Logo

BP Clinical Lab - External Client API

Secure, versioned REST API for authorised external clients — powered by Azure AD OAuth 2.0

📖

API Documentation

Explore all available endpoints, request / response schemas, and try requests directly in the browser.

Swagger UI
🔐

Authentication

All endpoints require a valid Azure AD bearer token. Register your application in Azure AD and request an access token via the OAuth 2.0 client credentials flow.

Azure AD / JWT
💚

Health Check

Verify the API is running. No authentication required — suitable for load balancer and uptime probes.

GET /health
🚀

Getting Started

Obtain an access token, then call GET /api/v1/client/me to verify your identity, then POST /api/v1/lab/results to retrieve lab results.

v1

Available Endpoints

MethodEndpointAuthDescription
GET /health None Health check probe — returns Healthy with HTTP 200.
GET /api/v1/client/me Bearer Returns the authenticated client details and mapped account codes.
POST /api/v1/lab/results Bearer Returns a paginated list of patient lab results filtered by account, patient IDs, and date range.
GET /api/v1/lab/result Bearer Returns a single patient result by barcode and orderId query parameters.
POST /api/v1/lab/pdf-results Bearer Returns PDF result files for the supplied list of barcodes. Links valid for 15 minutes.

Rate Limits & Versioning

Rate limit100 requests / minute per client IP (HTTP 429 when exceeded)
API versionSpecified in the URL path — /api/v1/ — or via the X-Api-Version header
FormatsJSON (default) and XML — use the Accept header to select