Pie Chart

This floor plan template can be used to create a query api based widget and show the data in form of a pie chart

Use Cases

Few examples of widgets created by using this template:

  • Show member distribution based on enrollment type

  • Show membership per product

Page Layout and Components

Presentation Configuration

Widget is based on query api and it queries the resource associated with the widget configuration. The query and the properties are specified in the widget floorplan.

JSON Template (Payload Structure)

The following JSON outlines the structure of the foldout template.

{
  "floorplan_queryBasedWidgets":{
    "title": "boilerplate key",
     "query": "",
     "resizingTileSize":"2:3",
     "quickSearch":{},
     "advancedSearch:{},
     "groupingCriteria": {
        "properties":[{property that is the grouping criteria, must be part of group by clause
      }]}
     "value":{
        "properties":[{property that gives the value, aggregate value of the group by expression
      }]}
  }
}

Components

This template can have the following components

Title

  • Optional Component

  • Shown as the title of the widget

  • The value of the boilerplate key shows up as the title

Query

  • query supported by Oracle Health Insurance query API

  • it is possible to add filter criteria based on the object context. The context object is the data object that is currently being used or worked upon in the page. For example to show group account products that are based on the given enrollment product "query" :

    /groupaccountproducts?enrollmentProduct.code.eq($\{context.code}).

    Such a widget when added on enrollment products page will show all the group account products in context of the worked upon enrollment product

  • Optional component

  • right aligned

  • Can be customized to search on multiple attributes including flex codes, reference fields

  • For more details refer Quick Search component

  • If the widget is access from the object whose properties form some of the quick search criteria, then such a widget will show the data based on the context object when access from the object page. For example - When a widget is configured to show membership by products, group account and has quick search on group account, then such a widget when added to group account page pre-filters the results based on the group account in the context. i.e quick search is prefilled with the group account in context.

  • Optional component

  • Enables search on a combination of attributes

  • For more details refer Advanced Search component

  • If the widget is access from the object whose properties form some of the quick search criteria, then such a widget will show the data based on the context object when access from the object page.
    For example - When a widget is configured to show membership by products, group account and has quick search on group account, then such a widget when added to group account page pre-filters the results based on the group account in the context. i.e quick search is prefilled with the group account in context.

Sort

  • Optional component

  • Can only have default sort criteria

  • For more details refer Sort Component component page