>> DIS-style query2:
>> prod?q=RETURN = mrn AND RETURN = birth_dt_tm AND loc_nurse_unit_cd_desc_1 =
>> 'PICU' OR loc_nurse_unit_cd_desc_1 = 'PICU2'
>
> This isn't a valid DIS-tyle query. Note that you can't do RETURN = a *AND* b.
> It's RETURN = a AND RETURN = b.
I think it is valid. The constraint is "loc_nurse_unit_cd_desc_1 = 'PICU' OR
loc_nurse_unit_cd_desc_1 = 'PICU2'" and the range is "mrn" and "birth_dt_tm".
We usually write all the RETURNs at the end:
loc_nurse_unit_cd_desc_1 = 'PICU' OR loc_nurse_unit_cd_desc_1 = 'PICU2'
AND RETURN = mrn AND RETURN = birth_dt_tm
But if I remember how the parser works, it doesn't matter where the RETURNs
appear, or what conjunctive is used to attach them in. Or, at least, it
shouldn't. (We have a bug?)
--k