Grafana dashboard: Statistiques Pulse


{
  "__inputs": [
    {
      "name": "DS_INFLUXDB_PULSE",
      "label": "InfluxDB Pulse",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    },
    {
      "name": "VAR_BUCKET",
      "type": "constant",
      "label": "Bucket",
      "value": "sample",
      "description": ""
    },
    {
      "name": "VAR_ORG_TOKEN",
      "type": "constant",
      "label": "org_token",
      "value": "*****",
      "description": ""
    },
    {
      "name": "VAR_AGGR_TIME",
      "type": "constant",
      "label": "Bucket",
      "value": "6d",
      "description": ""
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "barchart",
      "name": "Bar chart",
      "version": ""
    },
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.2.1-37459"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 15113,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1634307857184,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 26,
      "type": "row"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "Factures sécurisés et/ou envoyes",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "currencyEUR"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 0,
        "y": 1
      },
      "hideTimeOverride": false,
      "id": 3,
      "interval": "1M",
      "maxDataPoints": null,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.1-37459",
      "targets": [
        {
          "hide": false,
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"total_facture_ht\")\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> aggregateWindow(every: v.windowPeriod, fn: sum, createEmpty: false)",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CA facturé HT",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "currencyEUR"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 5,
        "y": 1
      },
      "hideTimeOverride": false,
      "id": 5,
      "interval": "1M",
      "maxDataPoints": null,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.1-37459",
      "targets": [
        {
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"total_facture_ht\")\n  |> filter(fn: (r) => r[\"sens\"] == \"Avoir\")\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> aggregateWindow(every: v.windowPeriod, fn: sum, createEmpty: false)",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CA Avoir HT",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "currencyEUR"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 9,
        "y": 1
      },
      "hideTimeOverride": false,
      "id": 10,
      "interval": "1M",
      "maxDataPoints": null,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.1-37459",
      "targets": [
        {
          "hide": false,
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"total_facture_ttc\")\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"activite\", \"traitements\", \"agence\", \"destinataire\", \"statut\", \"adeli_rpps\", \"age_id\", \"assigne_a\", \"code_postal\", \"sens\", \"type_facture\", \"type_prescripteur\", \"facture_auto\"])\n  |> group(columns: [\"_measurement\", \"_field\"])",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CA facturé TTC",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "currencyEUR"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 14,
        "y": 1
      },
      "hideTimeOverride": false,
      "id": 11,
      "interval": "1M",
      "maxDataPoints": null,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.1-37459",
      "targets": [
        {
          "hide": false,
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"total_reglement_ttc\")\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> aggregateWindow(every: v.windowPeriod, fn: sum, createEmpty: false)",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Règlement TTC",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          },
          "unit": "currencyEUR"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 19,
        "y": 1
      },
      "hideTimeOverride": false,
      "id": 12,
      "interval": "1M",
      "maxDataPoints": null,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.1-37459",
      "targets": [
        {
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"total_facture_ttc\")\n  |> filter(fn: (r) => r[\"sens\"] == \"Avoir\")\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> aggregateWindow(every: v.windowPeriod, fn: sum, createEmpty: false)",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CA avoir TTC",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "Pré-admission + Admission + Active + Suspendue",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "min": 0,
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 3,
        "x": 0,
        "y": 4
      },
      "hideTimeOverride": true,
      "id": 59,
      "interval": null,
      "maxDataPoints": null,
      "options": {
        "colorMode": "none",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.2.1-37459",
      "targets": [
        {
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"aggr_priseencharge\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"total\")\n  |> filter(fn: (r) => r[\"statut\"] == \"active\" or r[\"statut\"] == \"pending\" or r[\"statut\"] == \"draft\" or r[\"statut\"] == \"suspended\")\n  |> group(columns: [\"_field\", \"_measurement\"])\n  |> drop(columns: [\"_start\", \"_stop\", \"org_token\", \"agence\", \"age_id\", \"assigne_a\", \"activite\", \"type_pec\", \"motif\"])\n",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": "${aggr_time}",
      "timeShift": null,
      "title": "Total des PEC",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "displayName": "${__cell_0:date:MMMM}",
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 3,
        "y": 4
      },
      "hideTimeOverride": true,
      "id": 31,
      "interval": null,
      "maxDataPoints": null,
      "options": {
        "displayMode": "gradient",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": true
        },
        "showUnfilled": false,
        "text": {}
      },
      "pluginVersion": "8.2.1-37459",
      "repeat": null,
      "targets": [
        {
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"ordonnance\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"position\")\n  |> filter(fn: (r) => r[\"_value\"] == 0)\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> aggregateWindow(every: 1mo, fn: count, createEmpty: false, timeSrc: \"_start\", timeDst: \"_time\")",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": "3M",
      "timeShift": "0M/M",
      "title": "Nouvelles admissions (3 derniers mois)",
      "transformations": [],
      "transparent": true,
      "type": "bargauge"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "min": 0,
          "noValue": "0",
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "closed"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Cloturée"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "active"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Active"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "draft"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Pré-admission"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "pending"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Admission"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "suspended"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Suspendue"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "death"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Décès"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 11,
        "y": 4
      },
      "hideTimeOverride": true,
      "id": 58,
      "interval": null,
      "maxDataPoints": null,
      "options": {
        "displayLabels": [],
        "legend": {
          "displayMode": "table",
          "placement": "right",
          "values": [
            "value",
            "percent"
          ]
        },
        "pieType": "donut",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"aggr_priseencharge\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"total\")\n  |> group(columns: [\"statut\", \"_field\", \"_measurement\"])\n  |> drop(columns: [\"_start\", \"_stop\", \"org_token\", \"agence\", \"age_id\", \"assigne_a\", \"activite\", \"type_pec\", \"motif\"])\n",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": "${aggr_time}",
      "timeShift": null,
      "title": "Répartition des PEC",
      "transformations": [
        {
          "id": "labelsToFields",
          "options": {
            "valueLabel": "statut"
          }
        }
      ],
      "transparent": true,
      "type": "piechart"
    },
    {
      "datasource": "${DS_INFLUXDB_PULSE}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "bars",
            "fillOpacity": 80,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "total_participants"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Total interventions"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 6,
        "w": 7,
        "x": 17,
        "y": 4
      },
      "hideTimeOverride": true,
      "id": 38,
      "interval": null,
      "maxDataPoints": null,
      "options": {
        "legend": {
          "calcs": [
            "sum"
          ],
          "displayMode": "hidden",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"agenda\" )\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"total_participants\")\n  |> filter(fn: (r) => r[\"_value\"] == 1)\n  |> filter(fn: (r) => r[\"statut\"] == \"Validé\")\n  |> filter(fn: (r) => r[\"type\"] == \"Intervention\")\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> aggregateWindow(every: 1d, fn: count)",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Interventions validées",
      "transformations": [],
      "transparent": true,
      "type": "timeseries"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "id": 28,
      "panels": [
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 0,
            "y": 11
          },
          "hideTimeOverride": false,
          "id": 30,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.5-35396",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"ordonnance\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"position\")\n  |> filter(fn: (r) => r[\"_value\"] == 0)\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> group(columns: [\"_measurement\", \"_field\", \"type_pec\"])\n  |> count()\n  \n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Nouvelles admissions par type de PEC",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "unit": "short"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "nom"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Nom de l'établissement"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_prises_en_charges (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Total"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 8,
            "y": 11
          },
          "hideTimeOverride": false,
          "id": 35,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.5-35396",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"ordonnance\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"position\")\n  |> filter(fn: (r) => r[\"_value\"] == 0)\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"id_ordo\", \"id_pec\", \"traitements\", \"date_cloture_pec\", \"activite\", \"agence\", \"code_postal\", \"civilite\", \"total_traitements\", \"duree_en_jour\", \"age_du_patient\"])\n  |> group(columns: [\"_measurement\", \"_field\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Nouvelles admissions par collaborateur",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {}
            },
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "groupBy",
              "options": {
                "fields": {
                  "_value": {
                    "aggregations": [
                      "distinctCount"
                    ],
                    "operation": "aggregate"
                  },
                  "assigne_a": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "position": {
                    "aggregations": [
                      "count"
                    ],
                    "operation": "aggregate"
                  }
                }
              }
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 16,
            "y": 11
          },
          "hideTimeOverride": false,
          "id": 37,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"agenda\" and r._field == \"total_participants\" )\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"statut\"] == \"Validé\")\n  |> filter(fn: (r) => r[\"type\"] == \"Intervention\")\n  |> drop (columns: [\"_time\", \"_start\", \"_stop\", \"age_id\", \"org_token\", \"activite\", \"agence\", \"assigne_a\", \"civilite\", \"code_postal\", \"lieu\", \"nature\", \"statut\"])\n  |> group(columns: [\"_measurement\", \"_field\", \"type_pec\"])\n  |> count()",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Interventions validées par type de PEC",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 0,
            "y": 18
          },
          "hideTimeOverride": false,
          "id": 39,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"agenda\" and r._field == \"total_participants\" )\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"statut\"] == \"Validé\")\n  |> filter(fn: (r) => r[\"type\"] == \"Intervention\")\n  |> drop (columns: [\"_time\", \"_start\", \"_stop\", \"age_id\", \"org_token\", \"activite\", \"agence\", \"type_pec\", \"civilite\", \"code_postal\", \"lieu\", \"nature\", \"statut\"])\n  |> group(columns: [\"_measurement\", \"_field\", \"assigne_a\"])\n  |> count()",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Interventions validées par collaborateur",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 8,
            "y": 18
          },
          "hideTimeOverride": false,
          "id": 40,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"agenda\" and r._field == \"total_participants\" )\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"statut\"] == \"Validé\")\n  |> filter(fn: (r) => r[\"type\"] == \"Intervention\")\n  |> drop (columns: [\"_time\", \"_start\", \"_stop\", \"age_id\", \"org_token\", \"activite\", \"agence\", \"assigne_a\", \"type_pec\", \"civilite\", \"code_postal\", \"lieu\", \"statut\"])\n  |> group(columns: [\"_measurement\", \"_field\", \"nature\"])\n  |> count()",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Interventions validées par nature",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": true
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "nom"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Nom du prescripteur"
                  },
                  {
                    "id": "custom.displayMode",
                    "value": "auto"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_prises_en_charges (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Total"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "Nom du prescripteur"
                },
                "properties": [
                  {
                    "id": "custom.width",
                    "value": 507
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 25
          },
          "hideTimeOverride": false,
          "id": 32,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "Total"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"prescripteur\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"total_prises_en_charges\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"activite\", \"traitements\", \"agence\", \"adeli_rpps\", \"age_id\", \"activite\", \"type_pec\", \"type\"])",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Total prescriptions par prescripteur (initial et renouvellement)",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {}
            },
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "groupBy",
              "options": {
                "fields": {
                  "nom": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "total_chiffre_daffaires": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_facture_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_prises_en_charges": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_reglement_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "traitements": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "type_pec": {
                    "aggregations": [],
                    "operation": null
                  }
                }
              }
            },
            {
              "id": "sortBy",
              "options": {
                "fields": {},
                "sort": [
                  {
                    "desc": true,
                    "field": "total_prises_en_charges (sum)"
                  }
                ]
              }
            }
          ],
          "type": "table"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": true
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "nom"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Nom de l'établissement"
                  },
                  {
                    "id": "custom.displayMode",
                    "value": "auto"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_prises_en_charges (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Total"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 25
          },
          "hideTimeOverride": false,
          "id": 34,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "Total"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"etablissement\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"total_prises_en_charges\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"activite\", \"traitements\", \"agence\", \"adeli_rpps\", \"age_id\", \"activite\", \"type_pec\", \"type\"])",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Total prescriptions par établissement",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {}
            },
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "groupBy",
              "options": {
                "fields": {
                  "nom": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "total_chiffre_daffaires": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_facture_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_prises_en_charges": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_reglement_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "traitements": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "type_pec": {
                    "aggregations": [],
                    "operation": null
                  }
                }
              }
            },
            {
              "id": "sortBy",
              "options": {
                "fields": {},
                "sort": [
                  {
                    "desc": true,
                    "field": "total_prises_en_charges (sum)"
                  }
                ]
              }
            }
          ],
          "type": "table"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": true
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "string"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_facture_ht"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_facture_ttc"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_reglement_ttc"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 34
          },
          "hideTimeOverride": false,
          "id": 33,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": false,
                "displayName": "Date d'enregistrement"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"ordonnance\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"id_ordo\", \"id_pec\", \"traitements\", \"date_cloture_pec\", \"activite\", \"agence\", \"code_postal\", \"civilite\", \"total_traitements\", \"duree_en_jour\", \"age_du_patient\"])\n  |> group(columns: [\"_measurement\", \"_field\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Liste des prescriptions",
          "transformations": [
            {
              "id": "organize",
              "options": {
                "excludeByName": {
                  "activite": true,
                  "adeli_rpps": true,
                  "agence": true,
                  "assigne_a": false,
                  "code_postal": false,
                  "facture_auto": true,
                  "type_prescripteur": true
                },
                "indexByName": {
                  "_time": 0,
                  "adeli_rpps": 7,
                  "assigne_a": 6,
                  "date_debut": 3,
                  "date_fin": 4,
                  "numero_pec": 1,
                  "position": 2,
                  "type_pec": 5
                },
                "renameByName": {
                  "_time": "Date d'enregistrement",
                  "adeli_rpps": "RPPS/Adeli",
                  "date_debut": "Début de prescription",
                  "date_fin": "Fin de prescription",
                  "id_facturation_prescripteur": "N° Facturation prescripteur",
                  "numero_facture": "N° Facture",
                  "numero_pec": "N° PEC",
                  "position": "N° de prescription",
                  "sens": "Type",
                  "total_facture_ht": "Total HT",
                  "total_facture_ttc": "Total TTC",
                  "total_reglement_ttc": "Règlement TTC",
                  "traitements": "",
                  "type_prescripteur": ""
                }
              }
            }
          ],
          "type": "table"
        }
      ],
      "title": "FILE ACTIVE (sur la période)",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 11
      },
      "id": 16,
      "panels": [
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "currencyEUR"
            },
            "overrides": [
              {
                "__systemRef": "hideSeriesFrom",
                "matcher": {
                  "id": "byNames",
                  "options": {
                    "mode": "exclude",
                    "names": [
                      "_value"
                    ],
                    "prefix": "All except:",
                    "readOnly": true
                  }
                },
                "properties": [
                  {
                    "id": "custom.hideFrom",
                    "value": {
                      "legend": false,
                      "tooltip": false,
                      "viz": true
                    }
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 7,
            "w": 7,
            "x": 0,
            "y": 12
          },
          "hideTimeOverride": false,
          "id": 9,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"facture\" and r._field == \"total_facture_ht\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> drop (columns: [\"_time\", \"_start\", \"_stop\", \"_field\", \"org_token\", \"activite\", \"agence\", \"destinataire\", \"statut\", \"adeli_rpps\", \"age_id\", \"assigne_a\", \"code_postal\", \"sens\", \"traitements\", \"type_facture\", \"type_prescripteur\", \"facture_auto\"])\n  |> sum()\n  |> group(columns: [\"_measurement\", \"total_facture_ht\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Répartition par type de PEC (CA HT)",
          "transformations": [],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "currencyEUR"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 7,
            "x": 7,
            "y": 12
          },
          "hideTimeOverride": false,
          "id": 13,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"facture\" and r._field == \"total_facture_ht\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> drop (columns: [\"_time\", \"_start\", \"_stop\", \"_field\", \"org_token\", \"activite\", \"agence\", \"destinataire\", \"statut\", \"adeli_rpps\", \"age_id\", \"assigne_a\", \"code_postal\", \"sens\", \"traitements\", \"type_pec\", \"type_prescripteur\", \"facture_auto\"])\n  |> sum()\n  |> group(columns: [\"_measurement\", \"total_facture_ht\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Répartition par type de facture",
          "transformations": [],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "currencyEUR"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 7,
            "x": 14,
            "y": 12
          },
          "hideTimeOverride": false,
          "id": 52,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"facture\" and r._field == \"total_facture_ht\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> drop (columns: [\"_time\", \"_start\", \"_stop\", \"_field\", \"org_token\", \"activite\", \"agence\", \"destinataire\", \"statut\", \"adeli_rpps\", \"age_id\", \"type_facture\", \"code_postal\", \"sens\", \"traitements\", \"type_pec\", \"type_prescripteur\", \"facture_auto\"])\n  |> sum()\n  |> group(columns: [\"_measurement\", \"total_facture_ht\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Répartition par collaborateur",
          "transformations": [],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "Factures sécurisés et/ou envoyes",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 21,
            "y": 12
          },
          "hideTimeOverride": false,
          "id": 18,
          "interval": "1M",
          "maxDataPoints": null,
          "options": {
            "colorMode": "none",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "hide": false,
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> filter(fn: (r) => r[\"_field\"] == \"numero_facture\")\n  |> drop (columns: [\"_time\", \"_start\", \"_stop\", \"org_token\", \"activite\", \"agence\", \"type_pec\", \"destinataire\", \"statut\", \"adeli_rpps\", \"age_id\", \"assigne_a\", \"code_postal\", \"sens\", \"traitements\", \"type_facture\", \"type_prescripteur\", \"facture_auto\"])\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> count()",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Nombre de factures",
          "transformations": [],
          "transparent": true,
          "type": "stat"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "displayName": "${__cell_0:date:MMMM}",
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "currencyEUR"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 10,
            "x": 0,
            "y": 19
          },
          "hideTimeOverride": true,
          "id": 2,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayMode": "gradient",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "showUnfilled": false,
            "text": {}
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> filter(fn: (r) => r[\"_field\"] == \"total_facture_ht\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> aggregateWindow(every: 1mo, fn: sum, createEmpty: false, timeSrc: \"_start\", timeDst: \"_time\")\n  ",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": "5M",
          "timeShift": "0M/M",
          "title": "CA des 6 derniers mois (HT)",
          "transformations": [],
          "transparent": true,
          "type": "bargauge"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "displayName": "${__cell_0:date:MMMM}",
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-blue",
                    "value": null
                  }
                ]
              },
              "unit": "currencyEUR"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 14,
            "x": 10,
            "y": 19
          },
          "hideTimeOverride": true,
          "id": 14,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayMode": "gradient",
            "orientation": "vertical",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "showUnfilled": false,
            "text": {}
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r[\"_measurement\"] == \"previsionnel\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> filter(fn: (r) => r[\"_field\"] == \"total_facture_ht\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> group(columns: [\"_measurement\", \"_field\"])\n  |> aggregateWindow(every: 1mo, fn: sum, createEmpty: false, timeSrc: \"_start\", timeDst: \"_time\")\n  |> limit(n:6)",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": "+3M",
          "timeShift": null,
          "title": "CA Prévisionnel (HT)",
          "transformations": [],
          "transparent": true,
          "type": "bargauge"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": false
              },
              "displayName": "CA",
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "currencyEUR"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "type_pec"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Type de PEC"
                  },
                  {
                    "id": "custom.displayMode",
                    "value": "auto"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_facture_ttc (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "CA TTC"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_reglement_ttc (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Réglé TTC"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 26
          },
          "hideTimeOverride": false,
          "id": 17,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "CA TTC"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"total_facture_ttc\" or r[\"_field\"] == \"total_reglement_ttc\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"activite\", \"traitements\", \"agence\", \"destinataire\", \"statut\", \"adeli_rpps\", \"age_id\", \"assigne_a\", \"code_postal\", \"sens\", \"type_facture\", \"type_prescripteur\", \"facture_auto\"])",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "CA par type de PEC",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {}
            },
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "groupBy",
              "options": {
                "fields": {
                  "total_facture_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_reglement_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "traitements": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "type_pec": {
                    "aggregations": [],
                    "operation": "groupby"
                  }
                }
              }
            },
            {
              "id": "sortBy",
              "options": {
                "fields": {},
                "sort": [
                  {
                    "field": "total_facture_ttc (sum)"
                  }
                ]
              }
            }
          ],
          "type": "table"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": false
              },
              "displayName": "CA",
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "currencyEUR"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "traitements"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Traitements"
                  },
                  {
                    "id": "custom.displayMode",
                    "value": "auto"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_facture_ttc (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "CA TTC"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_reglement_ttc (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Réglé TTC"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "CA TTC"
                },
                "properties": [
                  {
                    "id": "custom.width",
                    "value": 312
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 26
          },
          "hideTimeOverride": false,
          "id": 4,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "CA TTC"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "repeat": null,
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"total_facture_ttc\" or r[\"_field\"] == \"total_reglement_ttc\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"sens\"] == \"Facture\")\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"activite\", \"type_pec\", \"agence\", \"destinataire\", \"statut\", \"adeli_rpps\", \"age_id\", \"assigne_a\", \"code_postal\", \"sens\", \"type_facture\", \"type_prescripteur\", \"facture_auto\"])",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "CA par traitements",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {}
            },
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "groupBy",
              "options": {
                "fields": {
                  "total_facture_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_reglement_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "traitements": {
                    "aggregations": [],
                    "operation": "groupby"
                  }
                }
              }
            },
            {
              "id": "sortBy",
              "options": {
                "fields": {},
                "sort": [
                  {
                    "field": "total_facture_ttc (sum)"
                  }
                ]
              }
            }
          ],
          "type": "table"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": false
              },
              "displayName": "CA",
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "currencyEUR"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "nom"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Nom du prescripteur"
                  },
                  {
                    "id": "custom.displayMode",
                    "value": "auto"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_chiffre_daffaires (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "CA HT"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 35
          },
          "hideTimeOverride": false,
          "id": 23,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "CA TTC"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"prescripteur\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"total_chiffre_daffaires\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"activite\", \"traitements\", \"agence\", \"adeli_rpps\", \"age_id\", \"activite\", \"type_pec\", \"type\"])",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "CA par prescripteur",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {}
            },
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "groupBy",
              "options": {
                "fields": {
                  "nom": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "total_chiffre_daffaires": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_facture_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_reglement_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "traitements": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "type_pec": {
                    "aggregations": [],
                    "operation": null
                  }
                }
              }
            },
            {
              "id": "sortBy",
              "options": {
                "fields": {},
                "sort": [
                  {
                    "desc": true,
                    "field": "total_chiffre_daffaires (sum)"
                  }
                ]
              }
            }
          ],
          "type": "table"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": false
              },
              "displayName": "CA",
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "currencyEUR"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "nom"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "Nom de l'établissement"
                  },
                  {
                    "id": "custom.displayMode",
                    "value": "auto"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_chiffre_daffaires (sum)"
                },
                "properties": [
                  {
                    "id": "displayName",
                    "value": "CA HT"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 35
          },
          "hideTimeOverride": false,
          "id": 24,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "CA TTC"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"etablissement\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => r[\"_field\"] == \"total_chiffre_daffaires\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"activite\", \"traitements\", \"agence\", \"destinataire\", \"statut\", \"adeli_rpps\", \"age_id\", \"assigne_a\", \"code_postal\", \"sens\", \"type_facture\", \"type_prescripteur\", \"facture_auto\"])",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "CA par établissements",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {}
            },
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "groupBy",
              "options": {
                "fields": {
                  "nom": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "total_chiffre_daffaires": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_facture_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "total_reglement_ttc": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  },
                  "traitements": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "type_pec": {
                    "aggregations": [],
                    "operation": null
                  }
                }
              }
            },
            {
              "id": "sortBy",
              "options": {
                "fields": {},
                "sort": [
                  {
                    "desc": true,
                    "field": "total_chiffre_daffaires (sum)"
                  }
                ]
              }
            }
          ],
          "type": "table"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": true
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "string"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_facture_ht"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_facture_ttc"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_reglement_ttc"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 44
          },
          "hideTimeOverride": false,
          "id": 20,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "N° Facture"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"facture\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"id_facture\", \"destinataire\", \"statut\", \"type_pec\", \"traitements\", \"total_facture_patient\",  \"total_facture_amo\", \"total_facture_amc\"])\n  |> group(columns: [\"_measurement\", \"_field\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Liste des factures",
          "transformations": [
            {
              "id": "organize",
              "options": {
                "excludeByName": {
                  "activite": true,
                  "agence": true,
                  "assigne_a": true,
                  "code_postal": true,
                  "facture_auto": true,
                  "type_prescripteur": true
                },
                "indexByName": {
                  "_time": 0,
                  "activite": 10,
                  "adeli_rpps": 6,
                  "agence": 11,
                  "assigne_a": 12,
                  "code_postal": 13,
                  "facture_auto": 14,
                  "id_facturation_prescripteur": 4,
                  "numero_facture": 2,
                  "numero_pec": 3,
                  "sens": 1,
                  "total_facture_ht": 7,
                  "total_facture_ttc": 8,
                  "total_reglement_ttc": 9,
                  "type_facture": 15,
                  "type_prescripteur": 5
                },
                "renameByName": {
                  "_time": "Date de sécurisation",
                  "adeli_rpps": "RPPS/Adeli",
                  "id_facturation_prescripteur": "N° Facturation prescripteur",
                  "numero_facture": "N° Facture",
                  "numero_pec": "N° PEC",
                  "sens": "Type",
                  "total_facture_ht": "Total HT",
                  "total_facture_ttc": "Total TTC",
                  "total_reglement_ttc": "Règlement TTC",
                  "type_prescripteur": ""
                }
              }
            }
          ],
          "type": "table"
        }
      ],
      "title": "CHIFFRES D'AFFAIRES (sur la période)",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 12
      },
      "id": 42,
      "panels": [
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 0,
            "y": 13
          },
          "hideTimeOverride": false,
          "id": 43,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.5-35396",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"achats_reception\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"quantite_recue\")\n  |> group(columns: [\"_measurement\", \"_field\", \"fournisseur\"])\n  |> sum()",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Répartition des achats par fournisseur (Qté recues)",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 8,
            "y": 13
          },
          "hideTimeOverride": false,
          "id": 44,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.5-35396",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"achats_reception\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"prix_achat\")\n  |> group(columns: [\"_measurement\", \"_field\", \"fournisseur\"])\n    |> sum()",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Répartition des achats par fournisseur (Prix d'achats)",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 16,
            "y": 13
          },
          "hideTimeOverride": false,
          "id": 45,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.5-35396",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"achats_reception\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"quantite_recue\")\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"entrepot\", \"fournisseur\", \"reference_article\"])\n  |> group(columns: [\"_measurement\", \"_field\"])",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Quantité réceptionnées par collaborateur",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {}
            },
            {
              "id": "merge",
              "options": {}
            },
            {
              "id": "groupBy",
              "options": {
                "fields": {
                  "prepare_par": {
                    "aggregations": [],
                    "operation": "groupby"
                  },
                  "quantite_recue": {
                    "aggregations": [
                      "sum"
                    ],
                    "operation": "aggregate"
                  }
                }
              }
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "currencyEUR"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 0,
            "y": 21
          },
          "hideTimeOverride": false,
          "id": 47,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"livraison\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"prix_de_revient\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"entrepot\", \"agence\", \"reference_article\", \"activite\", \"destinataire\", \"livre_par\"])\n  |> group(columns: [\"_measurement\", \"_field\", \"type_pec\"])\n  |> sum()\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Répartition du prix de revient par type de PEC",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "currencyEUR"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 8,
            "y": 21
          },
          "hideTimeOverride": false,
          "id": 48,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"livraison\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"prix_de_revient\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"entrepot\", \"agence\", \"reference_article\", \"activite\", \"destinataire\", \"type_pec\"])\n  |> group(columns: [\"_measurement\", \"_field\", \"livre_par\"])\n  |> sum()\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Répartition du prix de revient par collaborateur",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": true
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "string"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "Prix d'achat"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "Prix d'achat unitaire"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 29
          },
          "hideTimeOverride": false,
          "id": 46,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": false,
                "displayName": "Date d'enregistrement"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"achats_reception\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"agence\", \"id_bon\"])\n  |> group(columns: [\"_measurement\", \"_field\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Liste des articles commandés",
          "transformations": [
            {
              "id": "organize",
              "options": {
                "excludeByName": {
                  "activite": true,
                  "adeli_rpps": true,
                  "agence": true,
                  "assigne_a": false,
                  "code_postal": false,
                  "facture_auto": true,
                  "type_prescripteur": true
                },
                "indexByName": {
                  "_time": 0,
                  "agence": 1,
                  "bon_de_commande": 4,
                  "entrepot": 2,
                  "fournisseur": 3,
                  "nom_article": 6,
                  "prepare_par": 7,
                  "prix_achat": 10,
                  "prix_achat_unitaire": 11,
                  "quantite_commande": 9,
                  "quantite_recue": 8,
                  "reference_article": 5
                },
                "renameByName": {
                  "_time": "Date d'enregistrement",
                  "adeli_rpps": "RPPS/Adeli",
                  "bon_de_commande": "N° bon de commande",
                  "date_debut": "Début de prescription",
                  "date_fin": "Fin de prescription",
                  "entrepot": "Entrepôt",
                  "fournisseur": "Fournisseur",
                  "id_facturation_prescripteur": "N° Facturation prescripteur",
                  "nom_article": "Nom de l'article",
                  "numero_facture": "N° Facture",
                  "numero_pec": "N° PEC",
                  "position": "N° de prescription",
                  "prepare_par": "Préparé par",
                  "prix_achat": "Prix d'achat",
                  "prix_achat_unitaire": "Prix d'achat unitaire",
                  "quantite_commande": "Quantité commandée",
                  "quantite_recue": "Quantité reçue",
                  "reference_article": "Référence",
                  "sens": "Type",
                  "total_facture_ht": "Total HT",
                  "total_facture_ttc": "Total TTC",
                  "total_reglement_ttc": "Règlement TTC",
                  "traitements": "",
                  "type_prescripteur": ""
                }
              }
            }
          ],
          "type": "table"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": true
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "string"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "Prix d'achat"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "Prix d'achat unitaire"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "destinataire"
                },
                "properties": [
                  {
                    "id": "custom.width",
                    "value": 268
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 44
          },
          "hideTimeOverride": false,
          "id": 49,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": false,
                "displayName": "Date d'enregistrement"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"livraison\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"agence\", \"destinataire\",\"id_bon\", \"activite\", \"transporteur\"])\n  |> group(columns: [\"_measurement\", \"_field\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Liste des articles livrés",
          "transformations": [
            {
              "id": "organize",
              "options": {
                "excludeByName": {
                  "activite": true,
                  "adeli_rpps": true,
                  "agence": true,
                  "assigne_a": false,
                  "code_postal": false,
                  "facture_auto": true,
                  "type_prescripteur": true
                },
                "indexByName": {
                  "_time": 0,
                  "entrepot": 1,
                  "livre_par": 8,
                  "nom_article": 3,
                  "numero_bon": 4,
                  "numero_pec": 12,
                  "prix_de_revient": 9,
                  "prix_de_revient_unitaire": 10,
                  "quantite_demandee": 5,
                  "quantite_livree": 7,
                  "quantite_preparee": 6,
                  "reference_article": 2,
                  "type_pec": 11
                },
                "renameByName": {
                  "_time": "Date d'enregistrement",
                  "adeli_rpps": "RPPS/Adeli",
                  "bon_de_commande": "N° bon de commande",
                  "date_debut": "Début de prescription",
                  "date_fin": "Fin de prescription",
                  "entrepot": "Entrepôt",
                  "fournisseur": "Fournisseur",
                  "id_facturation_prescripteur": "N° Facturation prescripteur",
                  "livre_par": "Livré par",
                  "nom_article": "Nom de l'article",
                  "numero_bon": "N° du bon",
                  "numero_facture": "N° Facture",
                  "numero_pec": "N° PEC",
                  "position": "N° de prescription",
                  "prepare_par": "Préparé par",
                  "prix_achat": "Prix d'achat",
                  "prix_achat_unitaire": "Prix d'achat unitaire",
                  "prix_de_revient": "Prix de revient",
                  "prix_de_revient_unitaire": "Prix de revient unitaire",
                  "quantite_commande": "Quantité commandée",
                  "quantite_demandee": "Qté demandée",
                  "quantite_livree": "Qté livrée",
                  "quantite_preparee": "Qté préparée",
                  "quantite_recue": "Quantité reçue",
                  "reference_article": "Référence",
                  "sens": "Type",
                  "total_facture_ht": "Total HT",
                  "total_facture_ttc": "Total TTC",
                  "total_reglement_ttc": "Règlement TTC",
                  "traitements": "",
                  "type_pec": "Type de PEC",
                  "type_prescripteur": ""
                }
              }
            }
          ],
          "type": "table"
        }
      ],
      "title": "LOGISTIQUE (sur la période)",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 13
      },
      "id": 51,
      "panels": [
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "mappings": [],
              "min": 0,
              "noValue": "0",
              "unit": "short"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 7,
            "w": 5,
            "x": 0,
            "y": 14
          },
          "hideTimeOverride": true,
          "id": 54,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "table",
              "placement": "right",
              "values": [
                "value",
                "percent"
              ]
            },
            "pieType": "donut",
            "reduceOptions": {
              "calcs": [],
              "fields": "",
              "values": true
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"aggr_observance\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"usage\")\n  |> group(columns: [\"forfait\", \"_field\", \"_measurement\"])\n  |> count()\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": "${aggr_time}",
          "timeShift": null,
          "title": "Niveaux d'observance de l'agence",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "_field"
              }
            }
          ],
          "transparent": true,
          "type": "piechart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "axisSoftMin": 0,
                "fillOpacity": 80,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineWidth": 0
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "short"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "TL1"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "green",
                      "mode": "fixed"
                    }
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "TL2"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "orange",
                      "mode": "fixed"
                    }
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "TL3"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "red",
                      "mode": "fixed"
                    }
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 7,
            "w": 19,
            "x": 5,
            "y": 14
          },
          "hideTimeOverride": true,
          "id": 56,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "barWidth": 0.96,
            "groupWidth": 0.9,
            "legend": {
              "calcs": [
                "sum"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "orientation": "auto",
            "showValue": "auto",
            "stacking": "none",
            "text": {},
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.2.0",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"aggr_observance\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> filter(fn: (r) => r[\"_field\"] == \"usage\")\n  |> group(columns: [\"forfait\", \"assigne_a\", \"_field\", \"_measurement\"])\n  |> drop(columns: [\"_field\"])\n  |> count()\n\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": "${aggr_time}",
          "timeShift": null,
          "title": "Qualité d'observance par colllaborateur",
          "transformations": [
            {
              "id": "labelsToFields",
              "options": {
                "valueLabel": "forfait"
              }
            },
            {
              "id": "merge",
              "options": {}
            }
          ],
          "transparent": true,
          "type": "barchart"
        },
        {
          "datasource": "${DS_INFLUXDB_PULSE}",
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "left",
                "displayMode": "auto",
                "filterable": true
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "light-green",
                    "value": null
                  }
                ]
              },
              "unit": "string"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_facture_ht"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_facture_ttc"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "total_reglement_ttc"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "currencyEUR"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 21
          },
          "hideTimeOverride": true,
          "id": 57,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": false,
                "displayName": "usage"
              }
            ]
          },
          "pluginVersion": "8.2.1-37459",
          "targets": [
            {
              "query": "from(bucket: \"${bucket}\")\n  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n  |> filter(fn: (r) => r._measurement == \"aggr_observance\")\n  |> filter(fn: (r) => r[\"org_token\"] == \"${org_token}\")\n  |> filter(fn: (r) => contains(value: r[\"agence\"], set: ${agences:json}))\n  |> filter(fn: (r) => contains(value: r[\"activite\"], set: ${activites:json}))\n  |> filter(fn: (r) => contains(value: r[\"type_pec\"], set: ${type_pec:json}))\n  |> pivot(rowKey: [\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")\n  |> drop (columns: [\"_time\", \"_start\", \"_stop\", \"org_token\", \"age_id\", \"organisation\", \"activite\", \"id_pec\", \"nom_produit\"])\n  |> group(columns: [\"_measurement\", \"_field\"])\n",
              "queryType": "randomWalk",
              "refId": "A"
            }
          ],
          "timeFrom": "${aggr_time}",
          "timeShift": null,
          "title": "Liste des dispositifs observants",
          "transformations": [
            {
              "id": "organize",
              "options": {
                "excludeByName": {
                  "nom_produit": true
                },
                "indexByName": {
                  "_time": 0,
                  "agence": 1,
                  "assigne_a": 2,
                  "days": 9,
                  "forfait": 7,
                  "nom_produit": 6,
                  "num_pec": 4,
                  "numero_serie": 5,
                  "type_pec": 3,
                  "usage": 8
                },
                "renameByName": {
                  "assigne_a": "Assignée à",
                  "days": "Nb jours",
                  "forfait": "",
                  "nom_produit": "Nom du DM",
                  "num_pec": "N° PEC",
                  "numero_serie": "N° série du DM",
                  "type_pec": "Type de PEC",
                  "usage": "Usage (heures)"
                }
              }
            }
          ],
          "type": "table"
        }
      ],
      "title": "OBSERVANCE (Calcul hebdomadaire)",
      "type": "row"
    }
  ],
  "refresh": false,
  "schemaVersion": 31,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": "Bucket",
        "name": "bucket",
        "query": "${VAR_BUCKET}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_BUCKET}",
          "text": "${VAR_BUCKET}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_BUCKET}",
            "text": "${VAR_BUCKET}",
            "selected": false
          }
        ]
      },
      {
        "description": "Token de sécurité",
        "error": null,
        "hide": 2,
        "label": null,
        "name": "org_token",
        "query": "${VAR_ORG_TOKEN}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_ORG_TOKEN}",
          "text": "${VAR_ORG_TOKEN}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_ORG_TOKEN}",
            "text": "${VAR_ORG_TOKEN}",
            "selected": false
          }
        ]
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB_PULSE}",
        "definition": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n    bucket: \"$bucket\",\n    tag: \"agence\",\n    predicate: (r) => r.org_token == \"$org_token\",\n    start: -30d\n)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Agences",
        "multi": true,
        "name": "agences",
        "options": [],
        "query": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n    bucket: \"$bucket\",\n    tag: \"agence\",\n    predicate: (r) => r.org_token == \"$org_token\",\n    start: -30d\n)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB_PULSE}",
        "definition": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n    bucket: \"$bucket\",\n    tag: \"activite\",\n    predicate: (r) => r.org_token == \"$org_token\",\n    start: -90d\n)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Activités",
        "multi": true,
        "name": "activites",
        "options": [],
        "query": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n    bucket: \"$bucket\",\n    tag: \"activite\",\n    predicate: (r) => r.org_token == \"$org_token\",\n    start: -90d\n)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB_PULSE}",
        "definition": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n    bucket: \"$bucket\",\n    tag: \"type_pec\",\n    predicate: (r) => r.org_token == \"$org_token\",\n    start: -90d\n)",
        "description": "Type de prises en charge",
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Type de PEC",
        "multi": true,
        "name": "type_pec",
        "options": [],
        "query": "import \"influxdata/influxdb/v1\"\nv1.tagValues(\n    bucket: \"$bucket\",\n    tag: \"type_pec\",\n    predicate: (r) => r.org_token == \"$org_token\",\n    start: -90d\n)",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "description": "Délais de calcul des statistiques agrégées",
        "error": null,
        "hide": 2,
        "label": "Bucket",
        "name": "aggr_time",
        "query": "${VAR_AGGR_TIME}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_AGGR_TIME}",
          "text": "${VAR_AGGR_TIME}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_AGGR_TIME}",
            "text": "${VAR_AGGR_TIME}",
            "selected": false
          }
        ]
      }
    ]
  },
  "time": {
    "from": "now-1M/M",
    "to": "now-1M/M"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Statistiques Pulse",
  "uid": "rf3nZbSnzeR",
  "version": 302
}