From e17b2f4d3fdd1867a058bb1a84c7c92cb5905e9c Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 21 May 2024 18:56:27 +0200 Subject: [PATCH] Replace IDs with all OCAplus related patient IDs --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index e2379a6..4238926 100644 --- a/main.go +++ b/main.go @@ -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)