Skip to content

Commit

Permalink
Replace IDs with all OCAplus related patient IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed May 21, 2024
1 parent e5ce190 commit e17b2f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ func main() {
gocsv.SetCSVWriter(getCsvWriter(cli.ExportPatients.Csv || cli.ExportSamples.Csv))
gocsv.SetCSVReader(getCsvReader(cli.ExportPatients.Csv || cli.ExportSamples.Csv))

if cli.OcaPlus {
patients := InitPatients(db)
cli.PatientID, _ = patients.FetchOcaPlusPatientIds()
}

switch context.Command() {
case "export-patients":
handleCommand(cli, db, FetchAllPatientData)
Expand Down

0 comments on commit e17b2f4

Please sign in to comment.