Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error loading lab/diagnostic report #502

Open
dwradcliffe opened this issue Aug 13, 2024 · 2 comments
Open

[Bug]: Error loading lab/diagnostic report #502

dwradcliffe opened this issue Aug 13, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dwradcliffe
Copy link
Contributor

dwradcliffe commented Aug 13, 2024

Contact Details

No response

What happened?

Trying to view a specific lab report.
From Medical History -> Clinical Reports -> click a report.

http://localhost:4200/labs/report/57792b77-4e4e-4b9f-85bd-ae3a76143f01/DiagnosticReport/8665ba2c-5cf6-4b7c-826d-389f07ef3f6f

I'm able to find the resource in the explore view, here's the dump:

{
  "resourceType": "DiagnosticReport",
  "id": "8665ba2c-5cf6-4b7c-826d-389f07ef3f6f",
  "status": "final",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/v2-0074",
          "code": "LAB",
          "display": "Laboratory"
        }
      ]
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://loinc.org",
        "code": "58410-2",
        "display": "Complete blood count (hemogram) panel - Blood by Automated count"
      }
    ],
    "text": "Complete blood count (hemogram) panel - Blood by Automated count"
  },
  "subject": {
    "reference": "urn:uuid:470bbce1-f80a-4038-8d47-341290f59282"
  },
  "encounter": {
    "reference": "urn:uuid:1098cfe8-d2da-4d96-9faf-ccdcdb558b80"
  },
  "effectiveDateTime": "2019-09-06T16:51:28-04:00",
  "issued": "2019-09-06T16:51:28.918-04:00",
  "result": [
    {
      "reference": "urn:uuid:f53aef5d-3d2d-4bd9-85dd-0de735867a3c",
      "display": "Leukocytes [#/volume] in Blood by Automated count"
    },
    {
      "reference": "urn:uuid:c230f591-dee9-4d49-81cb-02b2623e99f2",
      "display": "Erythrocytes [#/volume] in Blood by Automated count"
    },
    {
      "reference": "urn:uuid:e95e6413-e9ff-4c80-97f2-932d311d4f97",
      "display": "Hemoglobin [Mass/volume] in Blood"
    },
    {
      "reference": "urn:uuid:3377e296-71e4-4095-b459-92873f255ea4",
      "display": "Hematocrit [Volume Fraction] of Blood by Automated count"
    },
    {
      "reference": "urn:uuid:f66eacd7-af86-4588-a1af-f3f80f701595",
      "display": "MCV [Entitic volume] by Automated count"
    },
    {
      "reference": "urn:uuid:fc1b999a-6404-4ef8-ae18-8a9dbff8258f",
      "display": "MCH [Entitic mass] by Automated count"
    },
    {
      "reference": "urn:uuid:8a96c7f7-4211-4893-9342-0da266d736dc",
      "display": "MCHC [Mass/volume] by Automated count"
    },
    {
      "reference": "urn:uuid:4c5f22cb-3a22-47a4-9b4f-41cbf54a2939",
      "display": "Erythrocyte distribution width [Entitic volume] by Automated count"
    },
    {
      "reference": "urn:uuid:362e3465-ab64-46cc-a337-b46770281416",
      "display": "Platelets [#/volume] in Blood by Automated count"
    },
    {
      "reference": "urn:uuid:e88196b8-431b-4395-b817-4c510176cd59",
      "display": "Platelet distribution width [Entitic volume] in Blood by Automated count"
    },
    {
      "reference": "urn:uuid:01c4cc82-7cd2-4aae-ab10-c59d8f9e15e1",
      "display": "Platelet mean volume [Entitic volume] in Blood by Automated count"
    }
  ]
}

Flavor

Docker

Version

7d0715755051d591bc94e873a75f43d3da4ba921

Relevant log output

DEBU[44792] THE QUERY OBJECT===========> {
  "id": "00000000-0000-0000-0000-000000000000",
  "created_at": "0001-01-01T00:00:00Z",
  "updated_at": "0001-01-01T00:00:00Z",
  "user_id": "5b682497-44ba-4a9a-90a0-3c9ddbea8857",
  "source_id": "57792b77-4e4e-4b9f-85bd-ae3a76143f01",
  "source_resource_type": "urn:uuid:01c4cc82-7cd2-4aae-ab10-c59d8f9e15e1",
  "source_resource_id": ""
}  type=web
ERRO[44792] An error occurred while retrieving resources Invalid resource type for table name: urn:uuid:01c4cc82-7cd2-4aae-ab10-c59d8f9e15e1  type=web
@dwradcliffe dwradcliffe added the bug Something isn't working label Aug 13, 2024
@AnalogJ
Copy link
Member

AnalogJ commented Aug 28, 2024

ugh. Looks like there are embedded references that need to be extracted and transformed.
I'm guessing this is from an uploaded FHIR bundle?

We need to make some changes in https://github.com/fastenhealth/fasten-sources/tree/main/clients/internal/manual to handle this

@dwradcliffe
Copy link
Contributor Author

Yes, from one of the Synthea files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants