Download OpenAPI specification:Download
This API provides access to the Onegevity Health Intelligence Platform
| Security Scheme Type | OAuth2 |
|---|---|
| clientCredentials OAuth Flow | Token URL: /oauth/token Scopes:
|
Lists your fulfillment requests
fulfillment) object (Paging) Specifies paging and sorting properties for requests that return lists of items |
{- "pageNumber": 1,
- "totalNumberOfElements": 1,
- "numberOfElements": 1,
- "fulfillmentRequests": [
- {
- "requestIdentifier": "ORD18001",
- "recipientFirstName": "Jane",
- "recipientLastName": "Doe",
- "createdTimestamp": "2021-02-20T18:36:24Z",
- "status": "SHIPPED"
}, - {
- "requestIdentifier": "ORD12345",
- "recipientFirstName": "John",
- "recipientLastName": "Smith",
- "createdTimestamp": "2021-04-03T10:39:44Z",
- "status": "ACCEPTED"
}
]
}Submit a new fulfillment request
fulfillment) Specifies the details of the fulfillment request being placed
| requestIdentifier required | string <= 35 characters [a-zA-Z0-9]+ Client-specific identifier for this fulfillment request (for example: an order number). Must be alpha-numeric. |
| recipientFirstName required | string First name of the recipient of the items to be shipped |
| recipientLastName required | string Last name of the recipient of the items to be shipped |
| recipientCompanyName | string (Optional) Name of business receiving the shipment |
| recipientPhoneNumber | string (Optional) Phone number to be used to contact recipient if needed |
required | Array of objects (ProductAndQuantity) [ 1 .. 50 ] items List of the items to be shipped |
required | object (Address) The location the products are to be shipped to |
| shippingMethod | string Default: "GROUND" Enum: "GROUND" "TWODAY" "NEXTDAY" Specify the level of service requested for shipping the items in this fulfillment request |
| source | string (Optional) Client-specific field that can be used to differentiate fulfillment requests created via different methods / sources /channels |
| notes | string (Optional) Provide any additional notes to the carrier who will be delivering the shipment |
{- "requestIdentifier": "ORD12345",
- "recipientFirstName": "John",
- "recipientLastName": "Smith",
- "lineItems": [
- {
- "productIdentifier": "THD138",
- "quantity": 1
}, - {
- "productIdentifier": "THVM6",
- "quantity": 1
}
], - "shippingAddress": {
- "streetAddress1": "1575 Walnut St.",
- "city": "Sacramento",
- "region": "CA",
- "country": "US",
- "postalCode": "90000"
}, - "shippingMethod": "GROUND"
}{- "requestIdentifier": "ORD12345",
- "recipientFirstName": "John",
- "recipientLastName": "Smith",
- "createdTimestamp": "2021-04-03T10:39:44Z",
- "status": "ACCEPTED",
- "lineItems": [
- {
- "productName": "Vitamin D-5,000",
- "productIdentifier": "THD138",
- "quantityRequested": 1,
- "quantityShipped": 0
}, - {
- "productName": "Basic Nutrients 2/Day",
- "productIdentifier": "THVM6",
- "quantityRequested": 1,
- "quantityShipped": 0
}
], - "shippingAddress": {
- "streetAddress1": "1575 Walnut St.",
- "city": "Sacramento",
- "region": "CA",
- "country": "US",
- "postalCode": "90000"
}, - "shippingMethod": "GROUND"
}Gets detailed information about a specific fulfillment request
fulfillment) | fulfillmentRequestIdentifier | string Client-specific identifier for the fulfillment request (for example an order #) |
{- "requestIdentifier": "ORD12345",
- "recipientFirstName": "John",
- "recipientLastName": "Smith",
- "createdTimestamp": "2021-04-03T10:39:44Z",
- "status": "ACCEPTED",
- "lineItems": [
- {
- "productName": "Vitamin D-5,000",
- "productIdentifier": "THD138",
- "quantityRequested": 1,
- "quantityShipped": 0
}, - {
- "productName": "Basic Nutrients 2/Day",
- "productIdentifier": "THVM6",
- "quantityRequested": 1,
- "quantityShipped": 0
}
], - "shippingAddress": {
- "streetAddress1": "1575 Walnut St.",
- "city": "Sacramento",
- "region": "CA",
- "country": "US",
- "postalCode": "90000"
}, - "shippingMethod": "GROUND"
}This is the list of all service options available to users of your system.
packages_read) object (Paging) Specifies paging and sorting properties for requests that return lists of items |
{- "pageNumber": 1,
- "totalNumberOfElements": 1,
- "numberOfElements": 1,
- "packages": [
- {
- "id": 1,
- "clientIdentifier": "SLEEP",
- "name": "Sleep Test",
- "elements": [
- {
- "id": 1,
- "clientIdentifier": "SLEEP_KIT",
- "objectType": "kit",
- "name": "At-Home Urine Sample",
- "description": "Simple at-home urine sample collection kit.",
- "activationCodePrefix": "SL-",
- "instructions": "Samples will be collected 4 times per day: Upon rising in the morning, before lunch, mid-afternoon, and finally right before going to sleep",
- "imageUrls": [
]
}, - {
- "id": 37,
- "clientIdentifier": "SLEEP_SURVEY",
- "objectType": "survey",
- "surveyKey": "sleepSurvey",
- "name": "Sleep Profile Questionnaire",
- "description": "A short questionnaire related to your diet and lifestyle activities that may impact your sleep performance",
- "instructions": "Answer the questions shortly before you are ready to collect your samples so that your answers most accurately represent your current situation."
}
]
}
]
}packages_read) | packageIdentifier | string |
{- "id": 1,
- "name": "Sleep Test",
- "clientIdentifier": "SLEEP",
- "elements": [
- {
- "id": 1,
- "clientIdentifier": "SLEEP_KIT",
- "objectType": "kit",
- "name": "At-Home Urine Sample",
- "description": "Simple at-home urine sample collection kit.",
- "activationCodePrefix": "SL-",
- "instructions": "Samples will be collected 4 times per day: Upon rising in the morning, before lunch, mid-afternoon, and finally right before going to sleep",
- "imageUrls": [
]
}, - {
- "id": 37,
- "clientIdentifier": "SLEEP_SURVEY",
- "objectType": "survey",
- "surveyKey": "sleepSurvey",
- "name": "Sleep Profile Questionnaire",
- "description": "A short questionnaire related to your diet and lifestyle activities that may impact your sleep performance",
- "instructions": "Answer the questions shortly before you are ready to collect your samples so that your answers most accurately represent your current situation."
}
], - "biomarkerGroups": [
- {
- "name": "Melatonin",
- "description": "Your melatonin level directly impacts your sleep cycle because it helps to induce sleep and to increase sleep duration.",
- "biomarkers": [
- {
- "name": "Melatonin",
- "specimen": "URINE"
}
]
}, - {
- "name": "Cortisol",
- "description": "Your cortisol level follows a cycle that is opposite of melatonin's and, in this role, it is responsible for signaling your body to be awake and responsive.",
- "biomarkers": [
- {
- "name": "Cortisol",
- "specimen": "URINE"
}
]
}
], - "contentSections": [
- {
- "key": "how-it-works",
- "title": "How it works",
- "content": "Description of how it works..."
}, - {
- "key": "potential-symptoms",
- "title": "Potential systems",
- "content": "When your melatonin level does not rise properly at night, you might experience any of the following symptoms: ....."
}
]
}Returns a list of patients
patients_read) object (Paging) Specifies paging and sorting properties for requests that return lists of items |
{- "pageNumber": 1,
- "totalNumberOfElements": 1,
- "numberOfElements": 1,
- "patients": [
- {
- "id": 1,
- "patientIdentifier": "PN_0371398",
- "firstName": "Jane",
- "lastName": "Doe",
- "gender": "FEMALE",
- "dateOfBirth": "1973-04-22"
}, - {
- "id": 2,
- "patientIdentifier": "PN_1489385",
- "firstName": "John",
- "lastName": "Smith",
- "gender": "MALE",
- "dateOfBirth": "1982-12-13"
}
]
}Create a new patient record
patients_readpatients_write) Specify the attributes of the patient to be created
| patientIdentifier required | string [ 5 .. 128 ] characters [a-zA-Z0-9-._ ]{5,128} Client-specific identifier for this patient, something that has meaning within your own system. Must be unique and at least 5 characters long |
| firstName required | string The patient's first name |
| lastName required | string The patient's last name |
| gender required | string Enum: "FEMALE" "MALE" "UNKNOWN" The patient's gender, if known |
| dateOfBirth required | string <date> The patient's date of birth |
object A dictionary or map of health profile attributes to values | |
Array of objects (PatientAgreementUpdate) List of legal agreements accepted/declined by the patient. Only needs to be populated to indicate a change in status. Leaving this blank will not change anything. |
{- "patientIdentifier": "PN_1473",
- "firstName": "Jane",
- "lastName": "Doe",
- "gender": "FEMALE",
- "dateOfBirth": "1982-11-17",
- "healthProfile": {
- "SMOKER": "false",
- "DIABETES": "false",
- "CHRONIC_PAIN": "true",
- "LMP": "2020-03-19"
}
}{- "id": 0,
- "patientIdentifier": "string",
- "firstName": "string",
- "lastName": "string",
- "gender": "FEMALE",
- "dateOfBirth": "2019-08-24",
- "healthProfile": [
- {
- "attribute": "string",
- "label": "string",
- "valueType": "BOOLEAN",
- "value": "string",
- "createdTimestamp": "2019-08-24T14:15:22Z"
}
], - "agreements": [
- {
- "documentIdentifier": "string",
- "patientResponse": "PENDING",
- "responseTimestamp": "2019-08-24T14:15:22Z"
}
]
}Retrieves information about a specific patient
patients_read) | patientIdentifier | string Client-specific identifier for the patient. |
{- "id": 1,
- "patientIdentifier": "PN_0371398",
- "firstName": "Jane",
- "lastName": "Doe",
- "gender": "FEMALE",
- "dateOfBirth": "1973-04-22",
- "healthProfile": [
- {
- "attribute": "SMOKER",
- "label": "Currently smokes",
- "valueType": "BOOLEAN",
- "value": "false",
- "createdTimestamp": "2020-03-22T14:22:13Z"
}, - {
- "attribute": "LMP",
- "label": "Last Menstrual Period",
- "valueType": "DATE",
- "value": "2020-03-02",
- "createdTimestamp": "2020-03-22T14:22:13Z"
}
], - "agreements": [
- {
- "documentIdentifier": "hipaa-authorization",
- "patientResponse": "ACCEPTED",
- "responseTimestamp": "2020-03-21T09:17:44Z"
}, - {
- "documentIdentifier": "data-sharing-authorization",
- "patientResponse": "PENDING"
}
]
}Update information for an existing patient
patients_readpatients_write) | patientIdentifier | string Client-specific identifier for the patient |
Specify the attributes of the patient to be updated
| firstName | string The patient's first name |
| lastName | string The patient's last name |
| gender | string Enum: "FEMALE" "MALE" "UNKNOWN" The patient's gender, if known |
| dateOfBirth | string <date> The patient's date of birth |
object A dictionary or map of health profile attributes to values. |
{- "dateOfBirth": "1982-11-17",
- "firstName": "Jane",
- "lastName": "Doe",
- "healthProfile": {
- "SMOKER": "false",
- "DIABETES": "false",
- "CHRONIC_PAIN": "true",
- "LMP": "2020-03-19"
}
}{- "id": 1,
- "patientIdentifier": "PN_0371398",
- "firstName": "Jane",
- "lastName": "Doe",
- "gender": "FEMALE",
- "dateOfBirth": "1973-04-22"
}Update agreements for an existing patient
patients_readpatients_write) | patientIdentifier | string Client-specific identifier for the patient |
Specify the updated agreements for the patient
required | Array of objects (PatientAgreementUpdate) List of legal agreements accepted/declined by the patient. Only needs to be populated to indicate a change in status. Existing agreement responses not provided in this list will not be altered. |
{- "agreements": [
- {
- "documentIdentifier": "hipaa-authorization",
- "patientResponse": "ACCEPT"
}
]
}{- "id": 1,
- "patientIdentifier": "PN_0371398",
- "firstName": "Jane",
- "lastName": "Doe",
- "gender": "FEMALE",
- "dateOfBirth": "1973-04-22"
}Returns a list of documents that patients are asked to agree to in order to receive services. For example, a HIPAA Authorization Form or Informed Consent agreement
patients_read) object (Paging) Specifies paging and sorting properties for requests that return lists of items |
{- "pageNumber": 1,
- "totalNumberOfElements": 1,
- "numberOfElements": 1,
- "documents": [
- {
- "id": 1,
- "documentIdentifier": "hipaa-authorization",
- "title": "HIPAA Authorization Form",
- "contentType": "text/html",
- "createdTimestamp": "2020-03-22T14:22:13Z"
}
]
}Retrieve a specific patient agreement document
patients_read) | documentIdentifier | string Client-specific identifier for the agreement document |
{- "id": 1,
- "documentIdentifier": "hipaa-authorization",
- "title": "HIPAA Authorization Form",
- "contentType": "text/html",
- "createdTimestamp": "2020-03-22T14:22:13Z"
}List all of the orders for the specified patient
patients_read) | patientIdentifier | string Client-specific identifier for the patient |
object (Paging) Specifies paging and sorting properties for requests that return lists of items |
{- "pageNumber": 1,
- "totalNumberOfElements": 1,
- "numberOfElements": 1,
- "orders": [
- {
- "id": 1,
- "orderIdentifier": "PO_375",
- "completed": false,
- "createdTimestamp": "2020-08-24T14:15:22Z",
- "packageIdentifier": "SLEEP",
- "packageName": "Sleep Test",
- "notes": "Follow-up test from 9/9/2020 to see if there are improvements",
- "elements": [
- {
- "id": 1,
- "type": "kit",
- "name": "At-Home Urine Sample",
- "packageElementIdentifier": "SLEEP_KIT",
- "status": "ACTIVATED",
- "instructions": "Instructions how to collect the sample"
}, - {
- "id": 3,
- "type": "survey",
- "name": "Sleep Profile Questionnaire",
- "packageElementIdentifier": "SLEEP_SURVEY",
- "surveyKey": "sleepSurvey",
- "status": "COMPLETED"
}
]
}
]
}Creates an order of a given package for the specified patient. If no patient exists in the system with the given patientIdentifier it will also be created along with the order.
patients_readpatients_write) | patientIdentifier | string Client-specific identifier for the patient |
Specifies the details of the order being placed
| orderIdentifier required | string Client-specific identifier for this order |
| packageIdentifier required | string Client-specific identifier of the Onegevity Package being ordered. (the "clientIdentifier" attribute on Package object) |
required | object (PatientInformation) Patient information required to requisition lab work for an order. |
object (FulfillmentInformation) (Optional) If present, specifies that order fulfillment is requested and defines the necessary information to ship physical items (like sample collection kits) to the patient | |
| source | string (Optional) Client-specific field that can be used to differentiate orders created via different methods / sources /channels |
| notes | string Optional notes to include with the order for any client-specific needs. |
Array of objects (KitActivation) (Optional) Include activations for kits to avoid a subsequent call | |
Array of objects (LabVisitAppointment) (Optional) Include information about appointments for lab visits to avoid a subsequent call |
{- "orderIdentifier": "ORD_12345",
- "packageIdentifier": "SLEEP",
- "kitActivations": [
- {
- "packageElementIdentifier": "SLEEP_KIT",
- "activationCode": "SL-51378"
}
], - "patientInformation": {
- "address": {
- "streetAddress1": "12345 Example Dr.",
- "city": "Some Town",
- "region": "CA",
- "country": "US",
- "postalCode": "90210"
}, - "firstName": "Patient First",
- "lastName": "Patient Last",
- "gender": "MALE",
- "dateOfBirth": "1973-12-05",
- "email": "patient@email.com",
- "phoneNumber": "817-555-1212"
}
}{- "id": 1,
- "orderIdentifier": "PO_375",
- "completed": false,
- "createdTimestamp": "2020-08-24T14:15:22Z",
- "packageIdentifier": "SLEEP",
- "packageName": "Sleep Test",
- "notes": "Follow-up test from 9/9/2020 to see if there are improvements",
- "elements": [
- {
- "id": 1,
- "type": "kit",
- "name": "At-Home Urine Sample",
- "packageElementIdentifier": "SLEEP_KIT",
- "status": "COMPLETED",
- "instructions": "Instructions how to collect the sample"
}, - {
- "id": 3,
- "type": "survey",
- "name": "Sleep Profile Questionnaire",
- "packageElementIdentifier": "SLEEP_SURVEY",
- "surveyKey": "sleepSurvey",
- "status": "COMPLETED"
}
], - "relatedDocuments": [
- {
- "id": 29,
- "name": "Lab Requisition",
- "mediaType": "application/pdf",
- "createdTimestamp": "2020-11-17T13:42:07Z",
}
]
}Get the details for a specific patient's order
patients_read) | patientIdentifier | string Client-specific identifier for the patient |
| orderIdentifier | string Client-specific identifier for the order |
{- "id": 1,
- "orderIdentifier": "PO_375",
- "completed": false,
- "createdTimestamp": "2020-08-24T14:15:22Z",
- "packageIdentifier": "SLEEP",
- "packageName": "Sleep Test",
- "notes": "Follow-up test from 9/9/2020 to see if there are improvements",
- "elements": [
- {
- "id": 1,
- "type": "kit",
- "name": "At-Home Urine Sample",
- "packageElementIdentifier": "SLEEP_KIT",
- "status": "COMPLETED",
- "instructions": "Instructions how to collect the sample"
}, - {
- "id": 3,
- "type": "survey",
- "name": "Sleep Profile Questionnaire",
- "packageElementIdentifier": "SLEEP_SURVEY",
- "surveyKey": "sleepSurvey",
- "status": "COMPLETED"
}
], - "relatedDocuments": [
- {
- "id": 29,
- "name": "Lab Requisition",
- "mediaType": "application/pdf",
- "createdTimestamp": "2020-11-17T13:42:07Z",
}
]
}Update information about a patient order
patients_readpatients_write) | patientIdentifier | string Client-specific identifier for the patient |
| orderIdentifier | string Client-specific identifier for the order |
Patient-provided information about this order
object (PatientInformation) Patient information required to requisition lab work for an order. | |
| notes | string Optional notes to include with the order for any client-specific needs. |
Array of objects (LabVisitAppointment) Lab Visits only - Update the status of a lab visit element | |
Array of objects (KitActivation) Kits only - Activate one or more kit elements |
{- "kitActivations": [
- {
- "packageElementIdentifier": "GUT_KIT",
- "activationCode": "200000001"
}, - {
- "packageElementIdentifier": "SLEEP_KIT",
- "activationCode": "SL-44739"
}
]
}{- "id": 1,
- "orderIdentifier": "PO_375",
- "completed": false,
- "createdTimestamp": "2020-08-24T14:15:22Z",
- "packageIdentifier": "SLEEP",
- "packageName": "Sleep Test",
- "notes": "Follow-up test from 9/9/2020 to see if there are improvements",
- "elements": [
- {
- "id": 1,
- "type": "kit",
- "name": "At-Home Urine Sample",
- "packageElementIdentifier": "SLEEP_KIT",
- "status": "COMPLETED",
- "instructions": "Instructions how to collect the sample"
}, - {
- "id": 3,
- "type": "survey",
- "name": "Sleep Profile Questionnaire",
- "packageElementIdentifier": "SLEEP_SURVEY",
- "surveyKey": "sleepSurvey",
- "status": "COMPLETED"
}
], - "relatedDocuments": [
- {
- "id": 29,
- "name": "Lab Requisition",
- "mediaType": "application/pdf",
- "createdTimestamp": "2020-11-17T13:42:07Z",
}
]
}Gets all released test results for the given patient.
patients_read) | patientIdentifier | string Client-specific identifier for the patient. |
object (Paging) Specifies paging and sorting properties for requests that return lists of items | |
object (ResultsFilter) Options for filtering the set of test results that are returned for the patient |
Example test results
{- "pageNumber": 1,
- "totalNumberOfElements": 4,
- "numberOfElements": 4,
- "results": [
- {
- "name": "Total Cholesterol",
- "identifier": "TCHOL",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "180",
- "valueIsNumeric": true,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 200,
- "inclusive": false
}, - "risk": "MINIMAL",
- "selected": true
}, - {
- "lower": {
- "value": 200,
- "inclusive": true
}, - "risk": "HIGH",
- "selected": false
}
]
}
}, - {
- "name": "HDL Cholesterol",
- "identifier": "HDL-C",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "58",
- "valueIsNumeric": true,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 40,
- "inclusive": false
}, - "risk": "HIGH",
- "selected": false
}, - {
- "lower": {
- "value": 40,
- "inclusive": true
}, - "risk": "MINIMAL",
- "selected": true
}
]
}
}, - {
- "name": "VLDL",
- "identifier": "VLDL",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "TNP",
- "valueIsNumeric": false,
- "riskClassification": "INDETERMINATE",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 30,
- "inclusive": false
}, - "risk": "MINIMAL",
- "selected": false
}, - {
- "lower": {
- "value": 30,
- "inclusive": true
}, - "risk": "HIGH",
- "selected": false
}
]
}
}, - {
- "name": "Lipid Profile Assessment",
- "identifier": "LipidProfile",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "value": "Balanced",
- "valueIsNumeric": false,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "string",
- "description": "possible values",
- "ageSensitive": false,
- "timeSensitive": false,
- "possibleValues": [
- {
- "risk": "MINIMAL",
- "value": "Balanced",
- "selected": true
}, - {
- "risk": "HIGH",
- "value": "Hyperlipidemia",
- "selected": false
}, - {
- "risk": "HIGH",
- "value": "Hypolipidemia",
- "selected": false
}
]
}
}
]
}Gets the test results for a specific patient's order
patients_read) | patientIdentifier | string Client-specific identifier for the patient. |
| orderIdentifier | string Client-specific identifier for the order. |
object (Paging) Specifies paging and sorting properties for requests that return lists of items |
Example test results
{- "pageNumber": 1,
- "totalNumberOfElements": 4,
- "numberOfElements": 4,
- "results": [
- {
- "name": "Total Cholesterol",
- "identifier": "TCHOL",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "180",
- "valueIsNumeric": true,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 200,
- "inclusive": false
}, - "risk": "MINIMAL",
- "selected": true
}, - {
- "lower": {
- "value": 200,
- "inclusive": true
}, - "risk": "HIGH",
- "selected": false
}
]
}
}, - {
- "name": "HDL Cholesterol",
- "identifier": "HDL-C",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "58",
- "valueIsNumeric": true,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 40,
- "inclusive": false
}, - "risk": "HIGH",
- "selected": false
}, - {
- "lower": {
- "value": 40,
- "inclusive": true
}, - "risk": "MINIMAL",
- "selected": true
}
]
}
}, - {
- "name": "VLDL",
- "identifier": "VLDL",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "TNP",
- "valueIsNumeric": false,
- "riskClassification": "INDETERMINATE",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 30,
- "inclusive": false
}, - "risk": "MINIMAL",
- "selected": false
}, - {
- "lower": {
- "value": 30,
- "inclusive": true
}, - "risk": "HIGH",
- "selected": false
}
]
}
}, - {
- "name": "Lipid Profile Assessment",
- "identifier": "LipidProfile",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "value": "Balanced",
- "valueIsNumeric": false,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "string",
- "description": "possible values",
- "ageSensitive": false,
- "timeSensitive": false,
- "possibleValues": [
- {
- "risk": "MINIMAL",
- "value": "Balanced",
- "selected": true
}, - {
- "risk": "HIGH",
- "value": "Hyperlipidemia",
- "selected": false
}, - {
- "risk": "HIGH",
- "value": "Hypolipidemia",
- "selected": false
}
]
}
}
]
}Lists all of the uploaded batches of tests results for the given patient.
patients_read) | patientIdentifier | string Client-specific identifier for the patient. |
object (Paging) Specifies paging and sorting properties for requests that return lists of items |
Example test results batches
{- "pageNumber": 1,
- "totalNumberOfElements": 2,
- "numberOfElements": 2,
- "batches": [
- {
- "id": 3882,
- "batchIdentifier": "PT135_2022_01_01",
- "createdTimestamp": "2020-03-22T14:22:13Z",
- "releasedTimestamp": "2020-03-22T14:22:51Z",
- "reportedTimestamp": "2020-03-18T03:47:05Z",
- "resultCount": 39,
- "status": "PROCESSED"
}, - {
- "id": 3901,
- "batchIdentifier": "PT135_2022_02_13",
- "createdTimestamp": "2022-02-13T14:22:13Z",
- "releasedTimestamp": "2020-02-13T14:22:51Z",
- "reportedTimestamp": "2022-02-13T03:47:05Z",
- "resultCount": 3,
- "status": "ERRORED"
}
]
}Upload a batch of test results for the given patient
patients_readpatients_writeresults_write) | patientIdentifier | string Client-specific identifier for the patient. |
Required information for uploading tests results for a patient
| batchIdentifier required | string A client-specific identifier used to uniquely identify this batch of results in a way that means something to the client |
object (UploadTestResultsOrderAssociation) In addition to simply uploading test results to a patients records, specifying a patient order will trigger the downstream analysis and report generation associated with a specific Onegevity package. The uploaded results may be attached to an existing order for the patient, otherwise a new order for the patient will be created. | |
| reportedTimestamp required | string <date-time> The date and time that the test results were reported from the lab. |
required | Array of objects [ 1 .. 1000 ] items The list of test results observed that should be uploaded as part of this batch |
{- "batchIdentifier": "string",
- "patientOrder": {
- "orderIdentifier": "string",
- "packageIdentifier": "string",
- "packageElementIdentifier": "string"
}, - "reportedTimestamp": "2019-08-24T14:15:22Z",
- "testResults": [
- {
- "name": "string",
- "identifier": "string",
- "collectionDate": "2021-09-13",
- "collectionTime": "13:25:00",
- "specimen": "CALCULATED",
- "units": "string",
- "value": "string"
}
]
}Example test results batch
{- "id": 3882,
- "batchIdentifier": "PT135_2022_01_01",
- "createdTimestamp": "2020-03-22T14:22:13Z",
- "releasedTimestamp": "2020-03-22T14:22:51Z",
- "reportedTimestamp": "2020-03-18T03:47:05Z",
- "resultCount": 39,
- "status": "PROCESSED"
}Gets detailed information about a specific batch of uploaded test results for the given patient.
patients_read) | patientIdentifier | string Client-specific identifier for the patient. |
| batchIdentifier | string Client-specific identifier for the batch of uploaded test results. |
Example test results batch
{- "id": 3882,
- "batchIdentifier": "PT135_2022_01_01",
- "createdTimestamp": "2020-03-22T14:22:13Z",
- "releasedTimestamp": "2020-03-22T14:22:51Z",
- "reportedTimestamp": "2020-03-18T03:47:05Z",
- "resultCount": 39,
- "status": "PROCESSED"
}Update the status of an uploaded batch of patient test results
patients_readpatients_writeresults_write) | patientIdentifier | string Client-specific identifier for the patient. |
| batchIdentifier | string Client-specific identifier for the batch of uploaded test results. |
The updates to be made to the results batch
| action | string Enum: "RELEASE" "DELETE" Specifies the action to take on the given batch of test results. 'RELEASE' accepts the batch of results as-is, even if there were errors, and makes the uploaded test results available for downstream processing. 'DELETE' flags the batch as unusable and makes it unavailable for any downstream processing. |
Example updating test result batch to release the results for downstream processing
{- "action": "RELEASE"
}Example test results batch
{- "id": 3882,
- "batchIdentifier": "PT135_2022_01_01",
- "createdTimestamp": "2020-03-22T14:22:13Z",
- "releasedTimestamp": "2020-03-22T14:22:51Z",
- "reportedTimestamp": "2020-03-18T03:47:05Z",
- "resultCount": 39,
- "status": "PROCESSED"
}Gets all test results uploaded in the given batch for the given patient.
patients_read) | patientIdentifier | string Client-specific identifier for the patient. |
| batchIdentifier | string Client-specific identifier for the batch of uploaded test results. |
object (Paging) Specifies paging and sorting properties for requests that return lists of items |
Example test results
{- "pageNumber": 1,
- "totalNumberOfElements": 4,
- "numberOfElements": 4,
- "results": [
- {
- "name": "Total Cholesterol",
- "identifier": "TCHOL",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "180",
- "valueIsNumeric": true,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 200,
- "inclusive": false
}, - "risk": "MINIMAL",
- "selected": true
}, - {
- "lower": {
- "value": 200,
- "inclusive": true
}, - "risk": "HIGH",
- "selected": false
}
]
}
}, - {
- "name": "HDL Cholesterol",
- "identifier": "HDL-C",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "58",
- "valueIsNumeric": true,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 40,
- "inclusive": false
}, - "risk": "HIGH",
- "selected": false
}, - {
- "lower": {
- "value": 40,
- "inclusive": true
}, - "risk": "MINIMAL",
- "selected": true
}
]
}
}, - {
- "name": "VLDL",
- "identifier": "VLDL",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "units": "mg/dL",
- "value": "TNP",
- "valueIsNumeric": false,
- "riskClassification": "INDETERMINATE",
- "referenceRange": {
- "rangeType": "numeric",
- "description": "healthy adults",
- "ageSensitive": false,
- "timeSensitive": false,
- "bounds": [
- {
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 30,
- "inclusive": false
}, - "risk": "MINIMAL",
- "selected": false
}, - {
- "lower": {
- "value": 30,
- "inclusive": true
}, - "risk": "HIGH",
- "selected": false
}
]
}
}, - {
- "name": "Lipid Profile Assessment",
- "identifier": "LipidProfile",
- "collectionDate": "2020-05-17",
- "collectionTime": "13:48:00",
- "specimen": "DRIED_BLOOD_SPOT",
- "value": "Balanced",
- "valueIsNumeric": false,
- "riskClassification": "MINIMAL",
- "referenceRange": {
- "rangeType": "string",
- "description": "possible values",
- "ageSensitive": false,
- "timeSensitive": false,
- "possibleValues": [
- {
- "risk": "MINIMAL",
- "value": "Balanced",
- "selected": true
}, - {
- "risk": "HIGH",
- "value": "Hyperlipidemia",
- "selected": false
}, - {
- "risk": "HIGH",
- "value": "Hypolipidemia",
- "selected": false
}
]
}
}
]
}Retrieve a paged list of the patient's reports
patients_read) | patientIdentifier | string Client-specific identifier for the patient |
object (Paging) Specifies paging and sorting properties for requests that return lists of items | |
object (ReportsFilter) Example: createdAfter=2020-01-01&packageIdentifier=SLEEP Options for filtering the set of reports that are returned for the patient |
{- "pageNumber": 1,
- "numberOfElements": 2,
- "totalNumberOfElements": 2,
- "reports": [
- {
- "id": 44,
- "name": "Thyroid",
- "type": "patient-facing",
- "createdTimestamp": "2020-11-03T14:52:09Z"
}, - {
- "id": 59,
- "name": "Gut Health",
- "type": "patient-facing",
- "createdTimestamp": "2020-11-17T03:14:22Z"
}
]
}Retrieve a paged list of the reports for a specific patient order
patients_read) | patientIdentifier | string Client-specific identifier for the patient |
| orderIdentifier | string Client-specific identifier for the patient order |
object (Paging) Specifies paging and sorting properties for requests that return lists of items |
{- "pageNumber": 1,
- "numberOfElements": 2,
- "totalNumberOfElements": 2,
- "reports": [
- {
- "id": 44,
- "name": "Thyroid",
- "type": "patient-facing",
- "createdTimestamp": "2020-11-03T14:52:09Z"
}, - {
- "id": 59,
- "name": "Thyroid - Physician's Report",
- "type": "physician-facing",
- "createdTimestamp": "2020-11-17T03:14:22Z"
}
]
}Retrieve the detailed contents of a specific patient report
patients_read) | patientIdentifier | string Client-specific identifier for the patient |
| reportId | integer <int64> The id of the report to view |
{- "id": 271,
- "name": "Thyroid",
- "type": "patient-facing",
- "createdTimestamp": "2020-08-24T14:15:22Z",
- "summarySection": {
- "title": "Overview",
- "content": "Your test results indicate that your <strong>thyroid function is below normal</strong>. Studies show people with underactive thyroid....",
- "summaryResult": {
- "summaryResultType": "riskBuckets",
- "HIGH": [
- "TSH"
], - "MODERATE": [ ],
- "MINIMAL": [
- "Free T3",
- "Free T4",
- "TPOAbs"
]
}
}, - "bodySections": [
- {
- "title": "Thyroid Markers",
- "anchorId": "thyroid-markers",
- "includeInTOC": true,
- "footnotes": [
- "* Labs processed by ZRT"
]
}, - {
- "title": "TSH",
- "anchorId": "tsh",
- "parentAnchorId": "thyroid-markers",
- "includeInTOC": false,
- "results": [
- {
- "name": "TSH",
- "identifier": "TSH",
- "description": "Thyroid-stimulating hormone (TSH) triggers the thyroid gland in your neck to produce thyroid hormones T3 and T4 which are crucial for your body's use of energy, also known as your metabolism. The amount of functioning thyroid hormones gives your brain feedback as to how much TSH to release, so the brain will release less or more as it senses is necessary. TSH is therefore used as a screening test for thyroid disease, which is the most common hormone abnormality in society, affecting nearly 1 in 10 people, most of whom are undiagnosed. Thyroid dysfunction can cause weight gain/loss, fatigue, cold/heat intolerance or hyperactivity. By correcting thyroid function, you can help address these symptoms.\n",
- "specimen": "DRIED_BLOOD_SPOT",
- "value": "5.2",
- "units": "μU/mL",
- "riskClassification": "HIGH",
- "content": "Clinically Normal Range: 0.5 - 3.0 μU/mL • Your <span class=\"description-hover\">TSH</span> level is 5.2 μU/mL, which is above the normal range for healthy adults.",
- "range": {
- "ageSensitive": false,
- "timeSensitive": false,
- "rangeType": "numeric",
- "bounds": [
- {
- "risk": "HIGH",
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 0.5,
- "inclusive": false
}, - "selected": false
}, - {
- "risk": "MINIMAL",
- "lower": {
- "value": 0.5,
- "inclusive": true
}, - "upper": {
- "value": 3,
- "inclusive": true
}, - "selected": true
}, - {
- "risk": "HIGH",
- "lower": {
- "value": 3,
- "inclusive": false
}, - "selected": false
}
]
}
}
]
}, - {
- "title": "Free T3",
- "anchorId": "ft3",
- "parentAnchorId": "thyroid-markers",
- "includeInTOC": false,
- "results": [
- {
- "name": "FT3",
- "identifier": "FT3",
- "description": "Though there is more active T4 in the body, T3 has a stronger thyroid effect. Most T3 is bound to protein and not available. Free T3 is the T3 not bound to protein, and therefore is available for the body. Too much or too little Free T3 can be a sign of hyper or hypothyroidism.\n",
- "specimen": "DRIED_BLOOD_SPOT",
- "value": "2.8",
- "units": "pg/mL",
- "riskClassification": "MINIMAL",
- "content": "Clinically Normal Range: 2.4 - 4.2 pg/mL • Your <span class=\"description-hover\">Free T3</span> level is 2.8 pg/mL, which is in the normal range for healthy adults.",
- "range": {
- "ageSensitive": false,
- "timeSensitive": false,
- "rangeType": "numeric",
- "bounds": [
- {
- "risk": "HIGH",
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 2.4,
- "inclusive": false
}, - "selected": false
}, - {
- "risk": "MINIMAL",
- "lower": {
- "value": 2.4,
- "inclusive": true
}, - "upper": {
- "value": 4.2,
- "inclusive": true
}, - "selected": true
}, - {
- "risk": "HIGH",
- "lower": {
- "value": 4.2,
- "inclusive": false
}, - "selected": false
}
]
}
}
]
}, - {
- "title": "Free T4",
- "anchorId": "ft4",
- "parentAnchorId": "thyroid-markers",
- "includeInTOC": false,
- "results": [
- {
- "name": "FT4",
- "identifier": "FT4",
- "description": "Though T3 has stronger thyroid effects than T4, there is far more T4 in the body. Most T4, or Thyroxine, is bound to protein and inactive. The Free T4 is a measure of the T4 not bound to protein, or that which is available. Too much or too little Free T4 can indicate excessive or too little thyroid function.\n",
- "specimen": "DRIED_BLOOD_SPOT",
- "value": "1.1",
- "units": "ng/dL",
- "riskClassification": "MINIMAL",
- "content": "Clinically Normal Range: 0.7 - 2.5 ng/dL • Your <span class=\"description-hover\">Free T4</span> level is 1.1 ng/dL, which is in the normal range for healthy adults.",
- "range": {
- "ageSensitive": false,
- "timeSensitive": false,
- "rangeType": "numeric",
- "bounds": [
- {
- "risk": "HIGH",
- "lower": {
- "value": 0,
- "inclusive": true
}, - "upper": {
- "value": 0.7,
- "inclusive": false
}, - "selected": false
}, - {
- "risk": "MINIMAL",
- "lower": {
- "value": 0.7,
- "inclusive": true
}, - "upper": {
- "value": 2.5,
- "inclusive": true
}, - "selected": true
}, - {
- "risk": "HIGH",
- "lower": {
- "value": 2.5,
- "inclusive": false
}, - "selected": false
}
]
}
}
]
}, - {
- "title": "TPOAbs",
- "anchorId": "topabs",
- "parentAnchorId": "thyroid-markers",
- "includeInTOC": false,
- "results": [
- {
- "name": "Anti-TPO",
- "identifier": "Anti-TPO",
- "description": "Thyroid peroxidase or thyroperoxidase (TPO) is an enzyme expressed mainly in the thyroid that releases iodine for addition onto thyroglobulin for the production of the thyroid hormones thyroxine (T4) or triiodothyronine (T3). Thyroid peroxidase is a frequent target of autoantibodies, or antibodies which the body produces against itself, in autoimmune thyroid disease, with such antibodies being called anti-thyroid peroxidase antibodies (anti-TPO antibodies). A positive test for these antibodies can reveal a cause of this \"sub-clinical\" hypothyroidism, while a negative test means there may be another cause for the abnormal thyroid tests.\n",
- "specimen": "DRIED_BLOOD_SPOT",
- "value": "13.0",
- "units": "IU/mL",
- "riskClassification": "MINIMAL",
- "content": "Clinically Normal Range: < 150 IU/mL • Your <span class=\"description-hover\">TPOAbs</span> level is 13.0 IU/mL, which is in the normal range for healthy adults.",
- "range": {
- "ageSensitive": false,
- "timeSensitive": false,
- "rangeType": "numeric",
- "bounds": [
- {
- "risk": "MINIMAL",
- "lower": {
- "value": 0,
- "inclusive": true
}, - "selected": true,
- "upper": {
- "value": 150,
- "inclusive": false
}
}, - {
- "risk": "HIGH",
- "lower": {
- "value": 150,
- "inclusive": true
}, - "selected": false
}
]
}
}
]
}, - {
- "title": "Insights",
- "anchorId": "thyroid-insights",
- "parentAnchorId": "thyroid-markers",
- "content": "You are at risk for underactive thyroid indicated by a high level of TSH. As a result you might experience fatigue, weight gain, ....",
- "includeInTOC": false
}, - {
- "title": "Recommendations",
- "anchorId": "recommendations",
- "content": "Personalized recommendations below are algorithmically generated from your individual test results and medical literature related to ....",
- "includeInTOC": true
}, - {
- "title": "Diet",
- "anchorId": "diet-recommendations",
- "parentAnchorId": "recommendations",
- "includeInTOC": true,
- "recommendations": [
- {
- "name": "Eat nuts and oils",
- "recommendationType": "diet",
- "category": "FOOD",
- "sources": [
- "Coconut oil",
- "almonds"
], - "content": "Limit due to high fat, high calorie; good fats like olive oil associated with weight loss..."
}
]
}, - {
- "title": "Activity",
- "anchorId": "activity-recommendations",
- "parentAnchorId": "recommendations",
- "includeInTOC": true,
- "recommendations": [
- {
- "name": "Yoga",
- "recommendationType": "lifestyle",
- "category": "WELLBEING",
- "frequency": "Daily",
- "duration": "30 minutes",
- "examples": [
- "Hot yoga",
- "Hatha yoga",
- "Iyengar yoga"
], - "content": ""
}
]
}, - {
- "title": "Products",
- "anchorId": "product-recommendations",
- "parentAnchorId": "recommendations",
- "includeInTOC": true,
- "recommendations": [
- {
- "name": "Thyrocsin",
- "recommendationType": "product",
- "category": "SUPPLEMENT",
- "productName": "Thyrocsin",
- "productCatalog": "Thorne",
- "productIdentifier": "SF784",
- "suggestedUse": "Take 2 capsules with meals",
- "imageUrls": [
], - "content": "Thyrocsin supports health thyroid function with nutrients and botanicals that enhance T4 hormone levels and ..."
}
]
}
], - "appendixSections": [ ]
}Retrieve a paged list of the patient's recommendations
patients_read) | patientIdentifier | string Client-specific identifier for the patient |
object (Paging) Specifies paging and sorting properties for requests that return lists of items | |
object (RecommendationsFilter) Example: createdAfter=2020-01-01&includeArchived=false&recommendationType=diet,product Options for filtering the set of reports that are returned for the patient |
{- "pageNumber": 1,
- "numberOfElements": 3,
- "totalNumberOfElements": 3,
- "recommendations": [
- {
- "id": 24,
- "name": "Eat nuts and oils",
- "recommendationType": "diet",
- "category": "FOOD",
- "archived": false,
- "createdTimestamp": "2020-08-24T14:15:22Z"
}, - {
- "id": 25,
- "name": "Yoga",
- "summary": "30 minutes daily",
- "recommendationType": "lifestyle",
- "category": "WELLBEING",
- "archived": false,
- "createdTimestamp": "2020-08-24T14:15:22Z"
}, - {
- "id": 26,
- "name": "Thyrocsin",
- "summary": "Take 2 capsules daily with meals",
- "recommendationType": "product",
- "category": "SUPPLEMENT",
- "archived": false,
- "createdTimestamp": "2020-08-24T14:15:22Z",
}
]
}Retrieve the detailed contents of a specific patient recommendation
patients_read) | patientIdentifier | string Client-specific identifier for the patient |
| recommendationId | integer <int64> The id of the recommendation to view |
{- "id": 24,
- "name": "Functional Nutrition Drink",
- "recommendationType": "diet",
- "category": "FUNCTIONAL_NUTRITION_DRINK",
- "archived": false,
- "createdTimestamp": "2020-08-24T14:15:22Z",
- "sources": [
- "1 tsp. Arabinoxylans",
- "1 Tbsp. Resistant Starch",
- "1 Tbsp. Inulin"
], - "content": "Mix in 14 oz. of cold water and consume daily for 30 days. This is your personalized prebiotic and foundational nutrition drink ..."
}Updates a specific patient recommendation
patients_read) | patientIdentifier | string Client-specific identifier for the patient |
| recommendationId | integer <int64> The id of the recommendation to update |
Specifies the changes to be made to the recommendation
| archived required | boolean Setting a recommendation to archived will cause to be hidden when listing a patient's recommendations using the default filters |
{- "archived": true
}{- "id": 24,
- "name": "Functional Nutrition Drink",
- "recommendationType": "diet",
- "category": "FUNCTIONAL_NUTRITION_DRINK",
- "archived": false,
- "createdTimestamp": "2020-08-24T14:15:22Z",
- "sources": [
- "1 tsp. Arabinoxylans",
- "1 Tbsp. Resistant Starch",
- "1 Tbsp. Inulin"
], - "content": "Mix in 14 oz. of cold water and consume daily for 30 days. This is your personalized prebiotic and foundational nutrition drink ..."
}List all available products
products_read) object (Paging) Specifies paging and sorting properties for requests that return lists of items | |
| productIdentifier | Array of strings <= 20 characters (Optional) - You may provide an arbitrary number of productIdentifiers to retrieve information about a batch of up to 20 products with one request |
{- "pageNumber": 1,
- "totalNumberOfElements": 1,
- "numberOfElements": 1,
- "products": [
- {
- "identifier": "THORNE::D138",
- "catalog": "THORNE",
- "sku": "D138",
- "name": "Vitamin D-5,000",
- "shortDescription": "Vitamin D, in its D3 form, is more potent and better absorbed form than its D2 form. Thorne’s vitamin D supplements contain no lactose and no preservatives. NSF Certified for Sport®",
- "longDescription": "<p>Extensive description of the product and its benefits</p>",
- "mediaUrls": [
], - "availableForFulfillment": true,
- "additionalFields": {
- "suggestedUse": "Take 1 capsule daily or as recommended by your health professional.",
- "warnings": "<strong>ALLERGY WARNING</strong> <br/>This product is contraindicated in an individual with a history of hypersensitivity to any of its ingredients.<br/><br/><strong>PREGNANCY</strong> <br/>If pregnant, consult your health professional before using this product.<br/><br/><strong>INTERACTIONS</strong> <br/>There are no known adverse interactions or contraindications at publication date.",
- "orderable": true,
- "discontinued": false,
- "form": "Capsule",
- "outOfStock": false,
- "retailPrice": 48.53,
- "salePrice": 39.81,
- "wholesalePrice": 42.17
}
}
]
}Gets the details for a specific product
products_read) | productIdentifier | string |
{- "identifier": "THORNE::D138",
- "catalog": "THORNE",
- "sku": "D138",
- "name": "Vitamin D-5,000",
- "shortDescription": "Vitamin D, in its D3 form, is more potent and better absorbed form than its D2 form. Thorne’s vitamin D supplements contain no lactose and no preservatives. NSF Certified for Sport®",
- "longDescription": "<p>Extensive description of the product and its benefits</p>",
- "mediaUrls": [
], - "availableForFulfillment": true,
- "additionalFields": {
- "suggestedUse": "Take 1 capsule daily or as recommended by your health professional.",
- "warnings": "<strong>ALLERGY WARNING</strong> <br/>This product is contraindicated in an individual with a history of hypersensitivity to any of its ingredients.<br/><br/><strong>PREGNANCY</strong> <br/>If pregnant, consult your health professional before using this product.<br/><br/><strong>INTERACTIONS</strong> <br/>There are no known adverse interactions or contraindications at publication date.",
- "orderable": true,
- "discontinued": false,
- "form": "Capsule",
- "outOfStock": false,
- "retailPrice": 48.53,
- "salePrice": 39.81,
- "wholesalePrice": 42.17
}
}Returns a paged list of survey summaries; in-which excludes the questions. To get the detailed representation, a call must be made to retrieve the Survey Details
surveys_read) object (Paging) Specifies paging and sorting properties for requests that return lists of items |
{- "pageNumber": 1,
- "totalNumberOfElements": 1,
- "numberOfElements": 1,
- "surveys": [
- {
- "id": 1,
- "version": "1",
- "title": "General Health",
- "key": "general-health",
- "description": "A general health survey"
}, - {
- "id": 2,
- "version": "2",
- "title": "Generic quiz title",
- "key": "generic-quiz",
- "description": "Generic quiz description"
}
]
}Retrieves details about a specific survey
surveys_read) | key required | string |
{- "id": 1,
- "version": "1",
- "title": "General Health",
- "key": "general-health",
- "description": "A general health survey",
- "sections": [
- {
- "title": "Health History",
- "questions": [
- {
- "id": 12387,
- "key": "SMOKED_EVER",
- "questionType": "choice",
- "display": "radio",
- "title": "Have you ever smoked?",
- "subtitle": "(tobacco, vaping, or other nicotine-containing products)",
- "required": true,
- "options": [
- {
- "id": 72363,
- "key": "YES",
- "label": "Yes",
- "selected": false
}, - {
- "id": 72364,
- "key": "NO",
- "label": "No",
- "selected": true
}
]
}, - {
- "id": 26423,
- "key": "CONDITIONS",
- "questionType": "multiChoice",
- "display": "checkbox",
- "title": "Do you have a history of any of the following conditions?",
- "required": false,
- "options": [
- {
- "id": 72365,
- "key": "ANX",
- "label": "Anxiety",
- "selected": true
}, - {
- "id": 72366,
- "key": "CNCR",
- "label": "Cancer",
- "selected": false
}, - {
- "id": 72367,
- "key": "DEP",
- "label": "Depression",
- "selected": true
}, - {
- "id": 72368,
- "key": "HCL",
- "label": "High Cholesterol",
- "selected": true
}
]
}
]
}
]
}Retrieves a survey that is filled out with the patient's response profile. To get the survey with results for a specific order and or version, use the relative query parameters.
surveys_readpatients_read) | patientIdentifier required | string |
| key required | string |
| orderIdentifier | string |
| version | integer <int64> |
{- "version": 3,
- "versionTimestamp": "2020-08-24T14:15:22Z",
- "survey": {
- "id": 1,
- "version": "1",
- "title": "General Health",
- "key": "general-health",
- "description": "A general health survey",
- "sections": [
- {
- "title": "Health History",
- "questions": [
- {
- "id": 12387,
- "key": "SMOKED_EVER",
- "questionType": "choice",
- "display": "radio",
- "title": "Have you ever smoked?",
- "subtitle": "(tobacco, vaping, or other nicotine-containing products)",
- "required": true,
- "options": [
- {
- "id": 72363,
- "key": "YES",
- "label": "Yes",
- "selected": false
}, - {
- "id": 72364,
- "key": "NO",
- "label": "No",
- "selected": true
}
]
}, - {
- "id": 26423,
- "key": "CONDITIONS",
- "questionType": "multiChoice",
- "display": "checkbox",
- "title": "Do you have a history of any of the following conditions?",
- "required": false,
- "options": [
- {
- "id": 72365,
- "key": "ANX",
- "label": "Anxiety",
- "selected": true
}, - {
- "id": 72366,
- "key": "CNCR",
- "label": "Cancer",
- "selected": false
}, - {
- "id": 72367,
- "key": "DEP",
- "label": "Depression",
- "selected": true
}, - {
- "id": 72368,
- "key": "HCL",
- "label": "High Cholesterol",
- "selected": true
}
]
}
]
}
]
}
}Submits a survey for the given patient. To submit the survey tied to an order, then the order identifier need be specified on the request body.
surveys_readpatients_write) | patientIdentifier required | string |
| key required | string |
The answered survey as well as optional settings controlling whether and how patient orders are updated with the survey results
| updateOrders | boolean Default: false Indicates whether or not the survey responses should be used for a patients order(s). If set to "true", the orderIdentifierFilters attribute controls which orders get updated. |
| orderIdentifierFilters | Array of strings The list of order identifiers that will be used to filter which patient orders get updated with the survey responses. If left empty, all the patients active orders that include this survey will be updated. Has no effect if updateOrders is "false". |
| complete | boolean Default: false Boolean value indicating whether or not the client wishes to mark the updated orders survey element to complete or not. |
required | object A dictionary or map of options to values. |
Example submitting the patient survey results for a specific order, marking the order survey requirement as complete
{- "updateOrders": true,
- "orderIdentifierFilters": [
- "LO-2394922"
], - "complete": true,
- "responses": {
- "GENDER": "FEMALE",
- "RACE": "WHITE",
- "NOT_PREGNANT_OR_LACTATING": "true",
- "HORMONE_REPLACEMENT_THERAPY": "YES",
- "HORMONE_REPLACEMENT_THERAPY_INPUT": "Testosterone pellet therapy",
- "ORAL_CONTRACEPTIVE": "true",
- "OTHER_CONTRACEPTIVE_INPUT": "true",
- "LAST_MENSTRUATION_DATE": "DATE_PROVIDED",
- "LAST_MENSTRUATION_DATE_INPUT": "2020-01-01",
- "PRIMARY_ACTIVITY": "ENDURANCE",
- "DAILY_FRUIT": "4",
- "DAILY_NUTS_SEEDS": "1",
- "DAILY_WATER": "4",
- "DAILY_COFFEE": "5",
- "DAILY_DELI_MEAT": "2",
- "ANXIETY": "true",
- "IBS_M": "true",
- "OPIOIDS": "true"
}
}{- "version": 3,
- "versionTimestamp": "2020-08-24T14:15:22Z",
- "survey": {
- "id": 1,
- "version": "1",
- "title": "General Health",
- "key": "general-health",
- "description": "A general health survey",
- "sections": [
- {
- "title": "Health History",
- "questions": [
- {
- "id": 12387,
- "key": "SMOKED_EVER",
- "questionType": "choice",
- "display": "radio",
- "title": "Have you ever smoked?",
- "subtitle": "(tobacco, vaping, or other nicotine-containing products)",
- "required": true,
- "options": [
- {
- "id": 72363,
- "key": "YES",
- "label": "Yes",
- "selected": false
}, - {
- "id": 72364,
- "key": "NO",
- "label": "No",
- "selected": true
}
]
}, - {
- "id": 26423,
- "key": "CONDITIONS",
- "questionType": "multiChoice",
- "display": "checkbox",
- "title": "Do you have a history of any of the following conditions?",
- "required": false,
- "options": [
- {
- "id": 72365,
- "key": "ANX",
- "label": "Anxiety",
- "selected": true
}, - {
- "id": 72366,
- "key": "CNCR",
- "label": "Cancer",
- "selected": false
}, - {
- "id": 72367,
- "key": "DEP",
- "label": "Depression",
- "selected": true
}, - {
- "id": 72368,
- "key": "HCL",
- "label": "High Cholesterol",
- "selected": true
}
]
}
]
}
]
}
}