This guide provides some general guidelines on formatting code for the MIMIC Code Repository. Maintaining a consistent-ish style across the repository should make the code simpler to read and reuse.
Please include the following header information at the top of your code:
-- ------------------------------------------------------------------
-- Title: Short descriptive title.
-- Description: More detailed description explaining the purpose.
-- ------------------------------------------------------------------
We would also recommend adding in any relevant references or usage notes in the top of the query.
- Always use uppercase for the reserved keywords like SELECT and WHERE.
- Use lower case for other words such as table and column names.
For more detail, following the guidelines at: http://www.sqlstyle.guide/
Following PEP8 guidelines is recommended. Read more here: https://www.python.org/dev/peps/pep-0008/