feat: Display biomarkers by category in collapsible sections on the dashboard, including new UI styles and backend category_id in the API response.

This commit is contained in:
2025-12-19 21:12:02 +05:30
parent d08f63f50c
commit 10e6d2c58a
3 changed files with 145 additions and 4 deletions

View File

@@ -43,6 +43,7 @@ pub struct ReferenceRuleResponse {
#[derive(Serialize)]
pub struct BiomarkerListItem {
pub id: i32,
pub category_id: i32,
pub name: String,
pub test_category: String,
pub unit: String,
@@ -62,6 +63,7 @@ pub async fn list_biomarkers(
.into_iter()
.map(|b| BiomarkerListItem {
id: b.id,
category_id: b.category_id,
name: b.name,
test_category: b.test_category,
unit: b.unit,