Leave a comment at the end of this page or email contact@krishagni.com
Managing Dashlets
How to Create Dashlets
You can create dashlets using OpenSpecimen's query module. For detailed steps, see: https://openspecimen.atlassian.net/wiki/spaces/CAT/pages/83791234
Alternatively, create dashlets using JSON. Refer to the 'JSON' section below for examples.
Editing Dashlets:
A dashlet can be edited to change the name and/or description.
Delete Dashlets
You can delete a dashlet that is not required anymore.
Export/Import Dashlets
Export Dashlet
Import Dashlet
You can modify the exported dashlet definitions and import the JSON back.
Also, the dashlets can be exported from one instance and imported to another instance of OpenSpecimen.
JSON Examples
In the JSON examples below, you will notice OpenSpecimen internal variable names used in criteria/expr to create the Dashlets. Please read this page to learn how to quickly get these internal names.
Pie Chart: Total Available Specimen Subdivided by Specimen Type
Bar Graph: Specimen Count by Type and Gender
Pie Chart: Visit Count by Collection Department (Custom Field)
Pie Chart: Visit Count by Fasting Status (Custom Form)
#3 and #4 are visit-level examples, if you wish to know the expression for ‘Participant’ or ‘Specimen’ refer below table:
The key-difference in the custom form v/s custom field is extensions vs customFields in the expressions.
Level | Expression |
|---|---|
Participant Form |
|
Participant Custom Field |
|
Visit Form |
|
Visit Custom Field |
|
Specimen Form |
|
Specimen Custom Field |
|
Leave a comment at the end of this page or email contact@krishagni.com