Hi All,
Here’s a very naive approach to how the API and data could look like. Right now I’m imagining a GET request with two parameters, one for patientUuid and one for the name of convenience set, lab set, or test to search for. Data would preserve the tree structure, and tests array would preserve ordering.
GET /concept
Query parameters:
- patientUuid - uuid of patient to search for
- name - name of convenience set, lab set, or test to search for
Response:
{
"name": "Bloodwork",
"class": "ConvSet", // convenience set
"tests": [],
"sub-sets": [
{
"name": "Hematology",
"class": "ConvSet",
"tests": [],
"sub-sets": [
{
"name": "Complete Blood Count",
"class": "LabSet",
"tests": [
{
"name": "Hematocrit",
"class": "Test",
"values": {values obj},
"attributes": {attributes obj}
},
{
"name": "Platlets",
"class": "Test",
"values": {values obj},
"attributes": {attributes obj}
},
{
"name": "Mean corpuscular hemoglobin",
"class": "Test",
"values": {values obj},
"attributes": {attributes obj}
},
...
],
"sub-sets": []
}
]
},
{
"name": "Chemistry",
"class": "ConvSet",
"tests": [],
"sub-sets": [
{
"name": "Serum chemistry panel",
"class": "LabSet",
"tests": [
{
"name": "Serum calcium",
"class": "Test",
"values": {values obj},
"attributes": {attributes obj}
},
{
"name": "Serum glutamic-pyruvic transaminase",
"class": "Test",
"values": {values obj},
"attributes": {attributes obj}
},
{
"name": "Serum albumin",
"class": "Test",
"values": {values obj},
"attributes": {attributes obj}
},
...
],
"sub-sets": []
}
]
}
]
}
Please let me know your thoughts, Thanks.