SearchForResource Example

The SearchForResource process illustrates methods of searching through a FHIR resource.

For more information about searching for a FHIR resource, see Search for Resource.

SearchForResource Process

The SearchForResource process is illustrated here:

Process Definition

The process performs the following operations:
  1. The Timer activity starts the process.
  2. The CreateResource activity is used to create a CommunicationRequest FHIR resource with a unique ID.
  3. The SearchCommunicationRequestById activity searches the Communication Request by input ID.
  4. The CreatePatient activity is used to create Patient resources.
  5. The SearchPatient activity searches the Patient information by two parameters: active (state) and gender.
  6. The CreateCommunication activity is used to create Communication resources.
  7. The SearchCommunication activity searches for a Communication Request based on sender input.
  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 CreateResource activity output displays the CommunicationRequest FHIR resource that was created.
  • The SearchCommunicationRequestById returns data matching the requested search by ID.
  • The CreatePatient activity outputs Patient ID.
  • The SearchPatient activity returns data matching the requested search of Patient information by active (state) and gender.
  • The CreateCommunication outputs Communication resource ID.
  • The SearchCommunication activity returns data matching requested search of the Communication Request by sender input.