Download OpenAPI specification:Download
An API for managing orders with Innovative Health Diagnostics.
The LabFlow API offers various endpoints to provide diagnostics-as-a-service features to its partners.
The LabFlow API offers a single authentication mechanism: API keys. API keys are generated on a per-organization basis and are used to authenticate requests to the API. API keys are passed in the x-api-key
header.
Active partners will be provided with an admin portal to manage its own keys. Contact daas.support@ihdlab.coms to request access to the portal or require a staging key for testing.
Get all of the active configured kits and their associated details
[- {
- "kidId": "kit-d3544371-6b8e-4dfb-a604-55e07b962d13",
- "panelId": "000999",
- "externalId": "PRTNR-00001",
- "name": "Partner Kit #1",
- "description": "A kit containing a specific test"
}
]
Get a specific kit and its details by kit ID
id required | string Unique identifier for a kit |
{- "kidId": "kit-d3544371-6b8e-4dfb-a604-55e07b962d13",
- "panelId": "000999",
- "externalId": "PRTNR-00001",
- "name": "Partner Kit #1",
- "description": "A kit containing a specific test"
}
[- {
- "id": "order-8655eb89-0b28-44f2-9e2b-5779cf5730b7",
- "status": "NEW",
- "org": {
- "orgId": "MDT99999",
- "orgName": "IHD Partner Organization",
- "providerNpi": "1234567890",
- "location": "99999"
}, - "kit": {
- "kitId": "kit-d3544371-6b8e-4dfb-a604-55e07b962d13",
- "panelId": "999999",
- "registrationCode": "PRTNR-00001",
- "externalId": "partner-external-id",
- "customer": {
- "email": "noreply@ihdlab.com",
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "externalId": "PRTNR-99999",
- "shipping": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}, - "billing": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}
}, - "accession": {
- "externalId": "string",
- "kitBarcode": "string",
- "patient": {
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "email": "noreply@ihdlab.com",
- "phone": "+1-626-555-1234",
- "dob": "1980-01-31",
- "gender": "Male",
- "address": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}, - "results": [
- { }
]
}
}
]
Get a specific order by its order ID
id required | string |
{- "id": "order-8655eb89-0b28-44f2-9e2b-5779cf5730b7",
- "status": "NEW",
- "org": {
- "orgId": "MDT99999",
- "orgName": "IHD Partner Organization",
- "providerNpi": "1234567890",
- "location": "99999"
}, - "kit": {
- "kitId": "kit-d3544371-6b8e-4dfb-a604-55e07b962d13",
- "panelId": "999999",
- "registrationCode": "PRTNR-00001",
- "externalId": "partner-external-id",
- "customer": {
- "email": "noreply@ihdlab.com",
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "externalId": "PRTNR-99999",
- "shipping": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}, - "billing": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}
}, - "accession": {
- "externalId": "string",
- "kitBarcode": "string",
- "patient": {
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "email": "noreply@ihdlab.com",
- "phone": "+1-626-555-1234",
- "dob": "1980-01-31",
- "gender": "Male",
- "address": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}, - "results": [
- { }
]
}
}
Create an order for a kit
kitId required | string [ 1 .. 50 ] characters |
required | object |
{- "kitId": "kit-d3544371-6b8e-4dfb-a604-55e07b962d13",
- "customer": {
- "email": "noreply@ihdlab.com",
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "phone": "+1-626-555-1234",
- "shipping": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}, - "billing": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}
}
{- "id": "string",
- "success": true,
- "error": "Error message"
}
Register a kit that has been received by a customer. This will trigger the order to be sent to the lab.
test | string Instantly populates mock order results when set to |
testType | string Enum: "RECEIVED" "REJECTED" "RESULTED" Works when coupled with |
registrationCode required | string |
required | object |
{- "registrationCode": "string",
- "patient": {
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "email": "noreply@ihdlab.com",
- "phone": "+1-626-555-1234",
- "dob": "1980-01-31",
- "gender": "Male",
- "address": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}
}
{- "id": "string",
- "success": true,
- "error": "Error message"
}
Create a lab order directly
test | string Instantly populates mock order results when set to true |
testType | string Enum: "RECEIVED" "REJECTED" "RESULTED" Works when coupled with |
kitId required | string |
externalId | string An |
dateRegistered | string <date-time> ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$ |
required | object |
{- "kitId": "string",
- "externalId": "string",
- "dateRegistered": "2023-01-01T11:11:11Z",
- "patient": {
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "email": "noreply@ihdlab.com",
- "phone": "+1-626-555-1234",
- "dob": "1980-01-31",
- "gender": "Male",
- "address": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}
}
{- "id": "string",
- "success": true,
- "error": "Error message"
}
The inbox provides a mechanism for surfacing updates to orders that are deemed relevant to the partner.
The inbox should be checked between 30 and 60 minutes for the most current results.
[- {
- "id": "order-8655eb89-0b28-44f2-9e2b-5779cf5730b7",
- "status": "NEW",
- "org": {
- "orgId": "MDT99999",
- "orgName": "IHD Partner Organization",
- "providerNpi": "1234567890",
- "location": "99999"
}, - "kit": {
- "kitId": "kit-d3544371-6b8e-4dfb-a604-55e07b962d13",
- "panelId": "999999",
- "registrationCode": "PRTNR-00001",
- "externalId": "partner-external-id",
- "customer": {
- "email": "noreply@ihdlab.com",
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "externalId": "PRTNR-99999",
- "shipping": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}, - "billing": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}
}, - "accession": {
- "externalId": "string",
- "kitBarcode": "string",
- "patient": {
- "firstName": "John",
- "middleName": "Peter",
- "lastName": "Doe",
- "email": "noreply@ihdlab.com",
- "phone": "+1-626-555-1234",
- "dob": "1980-01-31",
- "gender": "Male",
- "address": {
- "name": "John Peter Doe",
- "street1": "123 Anywhere St.",
- "street2": "Apt B",
- "city": "Irvine",
- "state": "CA",
- "postalCode": "92610",
- "country": "US"
}
}, - "results": [
- { }
]
}
}
]