anchor.diff:  wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS code_status; CREATE TABLE code_status AS "; cat code_status.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
   wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS echo_data; CREATE TABLE echo_data AS "; cat echo_data.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
   
  -# Durations (usually of treatments)
  +REM Durations (usually of treatments)
   echo 'Directory 1 of 9: durations'
   wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS ventilation_classification; CREATE TABLE ventilation_classification AS "; cat durations/ventilation_classification.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
   wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS ventilation_durations; CREATE TABLE ventilation_durations AS "; cat durations/ventilation_durations.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  
positive.code: wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS kdigo_stages_48hr; CREATE TABLE kdigo_stages_48hr AS "; cat organfailure/kdigo_stages_48hr.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS meld; CREATE TABLE meld AS "; cat organfailure/meld.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  
  # Severity of illness scores (requires many views from above)
  echo 'Directory 9 of 9: severityscores'
  wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS oasis; CREATE TABLE oasis AS "; cat severityscores/oasis.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS sofa; CREATE TABLE sofa AS "; cat severityscores/sofa.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  
negative.code: echo 'Directory 3 of 9: demographics'
  wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS icustay_detail; CREATE TABLE icustay_detail AS "; cat demographics/icustay_detail.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  
  REM data which is extracted from a patient's first ICU stay
  echo 'Directory 4 of 9: firstday'
  wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS blood_gas_first_day; CREATE TABLE blood_gas_first_day AS "; cat firstday/blood_gas_first_day.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS blood_gas_first_day_arterial; CREATE TABLE blood_gas_first_day_arterial AS "; cat firstday/blood_gas_first_day_arterial.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  wsl.exe { cmd.exe /c echo %PSQL_PREAMBLE%";"; echo "DROP TABLE IF EXISTS gcs_first_day; CREATE TABLE gcs_first_day AS "; cat firstday/gcs_first_day.sql; } | wsl.exe sed -r -e "%REGEX_SCHEMA%" | wsl.exe sed -r -e "%REGEX_DATETIME_DIFF%" | "%PSQL_PATH%" "%CONNSTR%"
  