Skip to content

Unit conversion with the existing tasks #265

@rvandewater

Description

@rvandewater

Hi, @mmcdermott @gkondas

I am looking to fit the tasks in different datasets to the following tasks:


"abnormal_lab/vital/hypotension/first_24h"
"abnormal_lab/blood_chemistry/metabolic_acidosis/first_24h"
"abnormal_lab/blood_chemistry/hyponatremia/first_24h"
"abnormal_lab/blood_chemistry/elevated_creatinine/first_24h"
"abnormal_lab/cbc/leukocytosis/first_24h"
"abnormal_lab/cbc/thrombocytopenia/first_24h"
"abnormal_lab/cbc/anemia/first_24h"

The issue is that several datasets report mmol/L instead of g/dL. Firstly, this is non-trivial, as we need to know the molecular mass (although we can use common conversions, such as those for hemoglobin).

Second: currently, the thresholds are in both the predicates.yaml and the task.yaml: see https://github.com/Medical-Event-Data-Standard/MEDS-DEV/blob/main/src/MEDS_DEV/tasks/abnormal_lab/blood_chemistry/elevated_creatinine/first_24h.yaml. I would think the preferred place to put them is in the predicates only, such that the unit can be dataset-agnostic. Is this a bug? Why is this redundancy here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DatasetsAssociated with the curated set of datasets in MEDS-DEVTasksAssociated with the curated set of tasks in MEDS-DEV

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions