Reference: Kahn, M. G.; Tu, S.; & Fagan, L. M. TQuery: A Context-Sensitive Temporal Query Language. 1991.
Abstract: Users of electronic medical databases request pertinent information by recasting their clinical questions into a formal database query language. Because the query language is the user's only access to the data, the query language must be powerful enough to enable users to express their data requirements. However, a competing need is for the query language to be restrictive enough so that the queries can have unambiguous semantics and the query processor can generate correct answers. We describe a query language, called TQuery, that was designed specifically to formulate database queries that are dependent on temporal and contextual relationships. TQuery specifications express contextual constraints without the need to explicitly reference calendar dates. TQuery is the database query language use to retrieve patient data from an object-oriented electronic patient medical- record system called the temporal network (TNET). TNET and TQuery were developed to support the real-time temporal reasoning and representation needs of a LISP workstation-based medical expert system.