(Q17) Find procedures in which no anesthesia occurs before the first incision.

-- Finds potential lawsuits
FOR $p in //procedure
WHERE empty($p//anesthesia BEFORE ($p//incision)[1])
RETURN $p
  • The empty() function operates exactly the same on a node-set as XPath's not() function.
<<<  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15    >>>