PatientMatching Example

The PatientMatching process demonstrates how you can find patients by using the MatchResource activity.

For more information about the FHIR palette Match Resource activity, see Match Resource Activity.

PatientMatching Process

The PatientMatching process is illustrated here:

Process Definition

The process performs the following operations:
  1. The Timer activity starts the process.
  2. The CreatePatient loop creates two patients in one iteration of the loop. There are ten iterations and 20 patients are created.
  3. The Patient objects generated as the output of CreatePatient loop are provided as input to the MatchResourceFNAll activity. It matches the first given number of patients that match the given value.
  4. The Patient objects generated as the output of CreatePatient loop are provided as input to the MatchResourceTopX activity. It matches the first patient that matches the given value.
  5. The Patient objects generated as the output of CreatePatient loop are provided as input to the MatchResourceGNAll activity. It matches the first given number of patients that match the given value.
  6. The Patient objects generated as the output of CreatePatient loop are provided as input to the MatchResourceDOBAll activity. It matches all the patients that match the given date of birth.
  7. The final DeletePatient loop iterates 20 times and deletes all the patients that were created by the CreatePatient loop.
  8. After the process executes successfully, a Success message is written to the Console. Select Window > Show Console in TIBCO Business Studio to view the log messages.

Process Output

Select the desired activity and click the Output tab.

  • The CreatePatient loop creates 20 patients.
  • The MatchResourceFNAll activity output displays all the matching patients found. In this case 20.

  • The MatchResourceTopX activity displays the topmost patient that matches the given value.

  • The MatchResourceGNAll activity displays the first 3 patients that match the given value.

  • The MatchResourceDOBAll activity displays all the patients that match the given date of birth.