serenity-health / roadmap

Public roadmap for development of Serenity's apps reported by our community of users
0 stars 1 forks source link

bugfix/additional empty and unwanted observations found in diagnostic report #46

Closed chris-dare closed 2 years ago

chris-dare commented 2 years ago

Describe the bug "I entered report for CBC only for this patient but the final report ended up including liver function report, ear swab report( Although those test reports were empty)"

Impact Patients and doctors will see irrelevant diagnostic reports results

To Reproduce Steps to reproduce the behavior:

  1. Switch to diagnostic workspace
  2. Request a "Full Blood Count" via the "New Diagnostic Request"
  3. Process payment for the test
  4. Take a sample / collect the specimen
  5. When entering the results, choose "Liver Profile, Serum" to load the options for liver profile
  6. Now change the panel of results to Complete Blood Count
  7. Enter the results and save (@pkdadson check the payload here)
  8. You'll notice that you see test results for complete blood count however there are also empty fields for Liver Profile Serum

Expected behavior I should only see test results for the panel I selected

Screenshots/Screencast N/A

Desktop (please complete the following information):

Additional context N/A

chris-dare commented 2 years ago

Hi @pkdadson this bug is still there.

Here is an example of the payload that was sent for a Complete blood count. It has obsevations for a urine test which is what I first selected

{
  "based_on": 206,
  "status": "partial",
  "results": [
    {
      "code": "MCHC",
      "value": "78",
      "unit": null
    },
    {
      "code": "LYM%",
      "value": "78",
      "unit": null
    },
    {
      "code": "LYM#",
      "value": "8",
      "unit": null
    },
    {
      "code": "MON%",
      "value": "768",
      "unit": null
    },
    {
      "code": "MON#",
      "value": "66",
      "unit": null
    },
    {
      "code": "EOS%",
      "value": "79",
      "unit": null
    },
    {
      "code": "EOS#",
      "value": "6",
      "unit": null
    },
    {
      "code": "BAS%",
      "value": "6",
      "unit": null
    },
    {
      "code": "BAS#",
      "value": "3",
      "unit": null
    },
    {
      "code": "RBC",
      "value": "98",
      "unit": null
    },
    {
      "code": "HGB",
      "value": "09",
      "unit": null
    },
    {
      "code": "HCT",
      "value": "09",
      "unit": null
    },
    {
      "code": "MCV",
      "value": "97",
      "unit": null
    },
    {
      "code": "RDW",
      "value": "8",
      "unit": null
    },
    {
      "code": "MPV",
      "value": "7",
      "unit": null
    },
    {
      "code": "PLT",
      "value": "6",
      "unit": null
    },
    {
      "code": "NEU%",
      "value": "66",
      "unit": null
    },
    {
      "code": "NEU#",
      "value": "89",
      "unit": null
    },
    {
      "code": "WBC",
      "value": "87",
      "unit": null
    },
    {
      "code": "Glucose [Mass/volume] in Urine by Test strip",
      "value": null,
      "unit": null
    },
    {
      "code": "Bilirubin.total [Mass/volume] in Urine by Test strip",
      "value": null,
      "unit": null
    },
    {
      "code": "Ketones [Mass/volume] in Urine by Test strip",
      "value": null,
      "unit": null
    },
    {
      "code": "Specific gravity of Urine by Test strip",
      "value": null,
      "unit": null
    },
    {
      "code": "pH of Urine by Test strip",
      "value": null,
      "unit": null
    },
    {
      "code": "Protein [Mass/volume] in Urine by Test strip",
      "value": null,
      "unit": null
    },
    {
      "code": "Urobilinogen [Mass/volume] in Urine by Test strip",
      "value": null,
      "unit": null
    }
  ],
  "performers": [
    "195f155e-60bd-4ed6-b6fb-f062fe750a9d"
  ],
  "conclusion": "Note goes here"
}
chris-dare commented 2 years ago

Thanks for completing this @pkdadson