List

API URL

{{url}}/admin-service/labtest/list

Method

POST

Description

Get lab test list

Input 1:

Field Name

Type

Mandatory

Example

Authorization(Header)

String

Yes

Bearer eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.MCm0mJDfpfjlr10Uok79-kTF7fv9Tn7cI5m2WsRDGUd9VS7iRmfbszjuc1-w5D-PYt9CdVxRMGBQlzYauhnI

Sample Input 1:

{ "searchTerm": "", "countryId": 4, "tenantId": 156 }

Output 1:

Field Name

Type

Comments

id

String

Lab test id

countryId

Number

Country id

tenantId

Number

Country tenant id

name

String

Lab test name

active

String

Lab test status

Sample Output 1:

{
    "message": "Got All LabTests.",
    "entity": null,
    "status": true,
    "entityList": [
        {
            "id": 98,
            "patientTrackId": null,
            "countryId": 4,
            "roleNames": null,
            "searchTerm": null,
            "patientVisitId": null,
            "tenantId": 156,
            "name": "Potassium",
            "displayOrder": 11,
            "updatedAt": "2023-02-20T13:25:14+05:30",
            "active": true,
            "resultTemplate": true
        },
       
        {
            "id": 95,
            "patientTrackId": null,
            "countryId": 4,
            "roleNames": null,
            "searchTerm": null,
            "patientVisitId": null,
            "tenantId": 156,
            "name": "Lipids",
            "displayOrder": 0,
            "updatedAt": "2022-05-20T14:43:27+05:30",
            "active": true,
            "resultTemplate": true
        },
        {
            "id": 43,
            "patientTrackId": null,
            "countryId": 4,
            "roleNames": null,
            "searchTerm": null,
            "patientVisitId": null,
            "tenantId": 156,
            "name": "Serum alanine aminotransferase (ALT, SGPT)",
            "displayOrder": 19,
            "updatedAt": "2022-05-20T14:43:22+05:30",
            "active": true,
            "resultTemplate": true
        },
        {
            "id": 99,
            "patientTrackId": null,
            "countryId": 4,
            "roleNames": null,
            "searchTerm": null,
            "patientVisitId": null,
            "tenantId": 156,
            "name": "Serum aspartate aminotransferase (AST, SGOT)",
            "displayOrder": 20,
            "updatedAt": "2022-05-20T14:43:22+05:30",
            "active": true,
            "resultTemplate": true
        },
        {
            "id": 32,
            "patientTrackId": null,
            "countryId": 4,
            "roleNames": null,
            "searchTerm": null,
            "patientVisitId": null,
            "tenantId": 156,
            "name": "Urine Protein",
            "displayOrder": 4,
            "updatedAt": "2022-05-20T14:43:22+05:30",
            "active": true,
            "resultTemplate": true
        }       
        
    ],
    "responseCode": 200,
    "totalCount": 23
}

Input 2:

Field Name

Type

Mandatory

Example

Authorization(Header)

String

Yes

Bearer eyJlbmMiOiJBMTI4R0NNIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0.MCm0mJDfpfjlr10Uok79-kTF7fv9Tn7cI5m2WsRDGUd9VS7iRmfbszjuc1-w5D-PYt9CdVxRMGBQlzYauhnI

Search Name

String

No

Diabetes care

Sample Input 2:

{ "tenantId": "5", "limit": 10, "searchTerm": "Urine Ketones", "countryId": "3", "paginated": true }

Output 2:

Field Name

Type

Comments

id

String

Lab test id

countryId

Number

Country id

tenantId

Number

Country tenant id

name

String

Lab test name

active

String

Lab test status

Sample Output 2:

{
    "message": "Got All LabTests.",
    "entity": null,
    "status": true,
    "entityList": [
        {
            "id": 52,
            "patientTrackId": null,
            "countryId": 3,
            "roleNames": null,
            "searchTerm": null,
            "patientVisitId": null,
            "tenantId": 5,
            "name": "Urine Ketones",
            "displayOrder": 0,
            "updatedAt": "2023-03-14T10:05:34-08:00",
            "labTestResults": [
                {
                    "id": 75,
                    "createdBy": 2,
                    "updatedBy": 2,
                    "createdAt": "2023-03-14T10:05:34-08:00",
                    "updatedAt": "2023-03-14T10:05:34-08:00",
                    "tenantId": 5,
                    "name": "Urine Ketones",
                    "labTestId": 52,
                    "displayOrder": 1,
                    "active": true,
                    "deleted": false
                }
            ],
            "createdBy": 2,
            "updatedBy": 2,
            "createdAt": "2023-03-14T10:05:34-08:00",
            "active": true,
            "deleted": false,
            "resultTemplate": true
        }
    ],
    "responseCode": 200,
    "totalCount": 1
}

@2024 Medtronic LABS