Skip to content

Synthea creates duplicate lab panels for the same date #1552

@shabiel

Description

@shabiel

What happened?

I am working on importing lab data. My destination system rejects it if it is a duplicate panel.

I have a feeling this is really a bug in the module itself, not in Synthea.

I created a Synthea Patient (very large... > 50MB, not attached). I used jq to analyze the data.

jq -r '.entry[].resource | select(.resourceType == "DiagnosticReport") | select (.category[0].coding[0].code == "LAB") | [ .code.text, .effectiveDateTime ] | @csv ' Adriene242_Danyelle408_Gibson10_f72c4f4a-07a7-d2fd-c486-e7e84994c3e1.json > time_analysis.csv

time_analysis.csv

Rows 3-6 look like this:

"Basic metabolic 2000 panel - Serum or Plasma","2015-01-19T12:55:09+00:00"
"Urinalysis macro (dipstick) panel - Urine","2015-01-19T12:55:09+00:00"
"Basic metabolic panel - Blood","2015-01-19T12:55:09+00:00"
"Lipid panel with direct LDL - Serum or Plasma","2015-01-19T12:55:09+00:00"

The problem is that there are two BMPs taking place at the same time. The second BMP is in Blood. Labcorp and Quest both say it's a SERUM specimen, not a whole blood specimen. I think that's probably the root of the problem.

Let me know if you agree; and if so, I can try to modify the module and see if that fixes the problem.

Environment

- OS: Rocky Linux
- Java: OpenJDK 17

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions