To achieve your goal of filtering results based on EMS/Ambulance patient arrivals in the ED and using a lookup table for filtering based on PV1;19 values, you can consider the following approach:
Using a SearchTable:
- To create your lookup table, you can base it on the
EnsLib.HL7.SearchTableclass. This class allows for indexing specific fields within HL7 messages for faster query and rule processing. - You would typically:
- To create your lookup table, you can base it on the
Creating the Lookup Table:
Referencing the Table in Business Rules:
- Once the table is populated with relevant messages based on filtering from PV1;19, you can create business rules that reference this lookup table to decide whether subsequent result messages should be sent or filtered.
- Ensure your business rule uses the encounter number present in the result messages and checks for its presence in the SearchTable before sending the result to the vendor [4].
Populating Data into the SearchTable:
This approach allows for high-performance filtering and aligns with the described requirement of checking result messages against previously processed ADT messages to identify valid cases.
If additional help is needed with specific code examples or validation, the Developer Community or detailed examples provided in documentation can provide further support.
Sources:
- Log in to post comments