fastenhealth / fasten-onprem

Fasten is an open-source, self-hosted, personal/family electronic medical record aggregator, designed to integrate with 100,000's of insurances/hospitals/clinics
GNU General Public License v3.0
1.61k stars 84 forks source link

[Bug] Line Graph does not appear to use data from DB #506

Open jmberd02 opened 2 months ago

jmberd02 commented 2 months ago

Contact Details

Please reply here

What happened?

Hi, I believe this is user error, however it appears that the following dashboard does not output any data, even though the api endpoint gives back data.


{
  "id": "default",
  "schema_version": "1.0",
  "title": "TEST",
  "description": "An example dashboard to show-off the power of Fasten widgets",
  "widgets": [
    {
      "title_text": "Weight",
      "description_text": "",
      "x": 0,
      "y": 0,
      "width": 10,
      "height": 10,
      "item_type": "complex-line-widget",
      "queries": [
        {
          "q": {
            "select": [
              "issued as label", "valueQuantity.value as data"
            ],
            "from": "Observation",
            "where": {
              "code": "5802-4"              
            }
          },
          "dataset_options": {}
        }
      ],
      "parsing": {
        "xAxisKey": "label",
        "yAxisKey": "data"
      }
    }
  ]
}```

Instead I get back the default diabetes tracking rather than any data. I am sure this is user error but the only way I can see to contact you guys is via bug.
![image](https://github.com/user-attachments/assets/b99d6627-cb7f-4651-a089-403e24e5f104)

### Flavor

Docker

### Version

main#7d07157

### Relevant log output

_No response_
jmberd02 commented 2 months ago

Thank you so much for taking the time to looking into this, I am sure this is user error. I cant wait to be able to design a dashboard I can use Fasten with!

AnalogJ commented 2 months ago

Hey @jmberd02 how did you provide Fasten with the new dashboard configuration? Also, thanks for playing with the custom dashboards! Not many people have used it yet, and I personally think its one of the most powerful (but underdeveloped) features!

jmberd02 commented 2 months ago

Hi @AnalogJ, I just added it via GitHub gist. The docker im using doesn't seem to have sh in it :/

Im excited for the dashboard so that it can help give me history of my vitals.