Use virtual health data tables

This article lists some common examples of virtual health data table capabilities.

Search and filter

Search and sort are supported in a limited scope, depending on the FHIR server. Support is based on what the target FHIR server currently supports. The following section explains some examples.

Filter on observation for a specific patient

  1. In the main Observation view, open the Advanced filters panel. In this panel, select Add Row, select Subject (Patient) as the column, and then select one or more patient records from the list.

    A screenshot displaying how to filter on observation for a specific patient.

  2. Select Apply to view the filtered results.

    A screenshot displaying the filter results.

Filter on observation for one or more codes

Follow the same steps explained in the previous example to filter on Observation Code. Select a Code and a Code value for filtering.

A screenshot showing how to filter on observation for a specific code.

The result would be as follows:

A screenshot displaying the filter results for the specified code.

Filter on linked entities

The virtual health data tables support only one level of linked entity filtering. Filtering on the linked entity requires that the data being filtered also exists on the FHIR server, such as Patient. The following screenshot displays an example of filtering on a patient with the last name "James":

A screenshot displaying an example for linked entity filtering.

The Azure API for FHIR limits the subquery results to 1,000 records. If the subquery isn't selective enough, the FHIR server returns an error and no results. For example, changing the last name filter to "Smith" in the same example results in the following error:

A screenshot displaying the error message for linked entity filtering.

The latest version of Azure Health Data Services should address this issue.

Use virtual health data table events

With the virtual health data table events feature, you can register your own plug-ins to receive events and execute custom code. To learn more about the events feature, go to Virtual health data table events.

Register plug-ins for virtual events

Virtual tables include support to raise asynchronous Dataverse events. The virtual health data tables include Virtual Entity Metadata records as part of its deployment solution. The events are enabled by default with no extra configuration required.

After you deploy virtual health data tables, you can immediately register new plug-ins against these events.

Example: Register for events on encounters

In this example, we assume you have a plug-in assembly compiled and registered in your environment. After the assembly is registered, you can register the new virtual events.

Using the Plug-in Registration tool, select your assembly, and then select Register New Step. In the list of messages, you can see the following three available messages for virtual tables:

  • OnExternalCreated
  • OnExternalUpdated
  • OnExternalDeleted

A screenshot displaying the plug-in messages for virtual tables.

These new messages are available because we've deployed the Virtual Entity Metadata records for the virtual health data table virtualized tables.

Select OnExternalCreated, and then select Primary Entity to view the list of available virtualized tables.

A screenshot displaying the available virtualized tables registered for events.

Because the virtual events are asynchronous, the final setting you need to apply is the Execution Mode. Set the value to Asynchronous.

A screenshot displaying the event plug-in details.

After you save the changes, your plug-in receives the requested events within the Dataverse Event Framework pipeline. In this example, your plug-in is registered against the OnExternalCreated message. When the event is triggered, your plug-in has access to the Encounter FHIR data via the target object plug-in execution context, similar to a standard Dataverse plug-in.

For more information on virtual table events and examples, see Enable Virtual Tables to support Dataverse events.

See also

What is Microsoft Cloud for Healthcare?
Overview of Data integration toolkit
Overview of virtual health data tables
Configure virtual health data tables