Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagesql
SELECT e as ehr
FROM EHR e
WHERE e@subject.birthdate < '1958-01-01' and
e@subject.gender matches{'http://loinc.org|LA2-8'} and -- matches is interchangable with =
e@subject.birthdate > current_timestamp('-P12Y')