Prod will have much more messages than Dev, you need to add something in your query that is using an indexed field, if you want to search by MRN.
If you have the Enslib HL7 SearchTable enabled on the business host you are looking at then the below query can help.
SELECT RawContent
FROM EnsLib_HL7.Message
WHERE ID IN (SELECT
DocId
FROM EnsLib_HL7.SearchTable
WHERE PropId = 4 AND PropValue = 'MRN'
)
ORDER BY TimeCreated Desc
- Log in to post comments