I’m trying to use the stored procedure in the outbound database protocol of Cloverleaf 6.1 but sending a NULL-value doesn’t seem to work. Does anyone can help me with this?
The (simplified) situation is:
– In a MS SQL server 2012 I’ve a database with a table, let’s say ‘patient’ with columns ‘patientid’ (int), ‘name’ (varchar), and ‘dob’ (datetime)
– There is a stored procedure that puts new patients in this table
– I want to call this stored procedure by Cloverleaf, based on a translation from HL7 ADT to VRL (based on the imported database schema)
This all works when the id, name and dob-values are present in the stored procedure call. The problem arises when the DOB is unknown: then I want to call the stored procedure with putting a NULL as value for DOB, so that the field in the database would have the NULL-value.
I’ve tried to options in the Xlate from ADT–>VRL:
1) COPY of =NULL -> field DOB (in VRL). This doesn’t work, because the driver or database sees this as text and tries to convert to a datetime datatype. Relevant parts of the process-log:
[pd