This function uses the lPatOut as a database of patients, it pulls 1 patient out and adds it to lEnrolledPats

AddPatient(
  lPatOut,
  dCurrentTime,
  nISA,
  nTrt,
  dfCov,
  cEnrolledPats,
  nPrintDetail = 0
)

See also