I am trying perform a SELECT against a database table using the inbound database thread. I want to implement a where clause to select based upon patient ID, e.g.:
SELECT name, DOB from tblPatient where tblPatient.PatientID = patientID
In this case “patientID” is a value in a vrl (mapped from an HL7 msg). The message passed to the database thread is in that vrl format
I’ve tried setting it as <patientID>, similar to a db lookup table it errors on the “<”
I’ve also tried adding the vrl name, e.g, patientVRL.patientID
Is there a way to get this to accept a parameter on the SELECT?