Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (18 sloc) 1.02 KB

Style guide for the MIMIC Code Repository

Overview

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.

Required header information

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.

SQL

  • 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/

Python

Following PEP8 guidelines is recommended. Read more here: https://www.python.org/dev/peps/pep-0008/