How can we generate a scripted field just like we can in Kibana

Hi,

Hi, Can we generate a scripted field in grafana as we can in Kibana? We have generated a scripted field(patient_id) from the logs message ("/dashboard/patient_id/homescreen/*") and then we are able to get active patient number by using patient_id scripted field’s unique count as a metric… Is that same possible in grafana please?