Which clinics see patients two to three times?

Why ask this?

A clinic coordinator planning follow-up contact wants to count patients within a visit range. The registered and active patient fields identify different populations, so choose the intended one first.

Start with the sample data

Open source.csv. In the first row of source.csv, Clinic = East, Registered Patient = A, Active Patient = 0.

What to say

Make a bar chart of the top two clinics by patients with between two and three visits.

Processing time

Recorded audio to chart ready
4.27 s
Transcript to chart ready
0.49 ms

One local replay from recorded audio through transcription and native chart data preparation. Includes processing of the clarification and reply. Time waiting for a person to answer is excluded. Recording time and screen painting are excluded.

See the transcript in the composerRecorded transcript entered in the native composer

When n0is asks

Which patients column should I use for the ranking?

Active Patient.

How the canvas produces the result

  1. CSV Input · Read the sample records

    source.csv supplies 6 rows. These records are the inputs to the next step.

  2. Aggregate · Count populated values in Active Patient for each Clinic, Active Patient

    If a category appears more than once, its records contribute to one result. The first output row contains Clinic = East, Active Patient = 0, nonblank_Active Patient = 2.

  3. Find / Replace · Clear values matching the saved expression

    Find & Replace applies ^(?!(?:2|3)$)[0-9]+$ to nonblank_Active Patient. For example, Clinic = West, Active Patient = 7, nonblank_Active Patient = 4 has its nonblank_Active Patient value cleared.

  4. Aggregate · Count populated values in nonblank_Active Patient for each Clinic

    If a category appears more than once, its records contribute to one result. The first output row contains Clinic = East, nonblank_nonblank_Active Patient = 1.

  5. Column Renamer · Prepare the output columns

    nonblank_nonblank_Active Patient becomes Active patients with 2 to 3 visits. The result exposes Clinic, Active patients with 2 to 3 visits.

  6. Sort · Order the results

    Sort by Active patients with 2 to 3 visits (descending), then Clinic (ascending). The first rows in order are East → West.

  7. Rank · Assign a rank

    The ordered rows receive positions starting at 1. Here, East is #1, West is #2.

  8. Measure Filter · Keep the requested rows

    The filter uses rank <= 2 in keep mode. 2 rows remain including East.

  9. Column Renamer · Prepare the output columns

    Remove rank. The result exposes Clinic, Active patients with 2 to 3 visits.

  10. Charts · Draw the bar chart

    Use Clinic for the categories and Active patients with 2 to 3 visits for the plotted values.

Native n0is canvas for Which clinics see patients two to three times?

The chart

Workflow result in n0is
ClinicActive patients with 2 to 3 visits
East1
West0

How to use the result

For Clinic East, the sample reports Active patients with 2 to 3 visits of 1.

Synthetic test audio. Screenshots from the recorded workflow in n0is.