[BACK-4489] Add bulk patient account creation API. - #257
Open
lostlevels wants to merge 7 commits into
Open
Conversation
ewollesen
requested changes
Aug 7, 2026
ewollesen
requested changes
Sep 3, 2026
| return err | ||
| } | ||
| reader := csv.NewReader(ec.Request().Body) | ||
| reader.FieldsPerRecord = -1 |
Contributor
There was a problem hiding this comment.
You'll need the same change in the OpenAPI handler that's parsing the CSV body.
Name,Birthdate,MRN,Email
Ann Three,2000-01-01,MRN-RAG-003
Bob Four,2000-01-02,MRN-RAG-004,
Cat Five,2000-01-03,MRN-RAG-005,,type1
Dan Six,2000-01-04,MRN-RAG-006,,type2,adaStandard
Eve Seven,2000-01-05,MRN-RAG-007,,,,extra-ignored-column
The CSV above is rejected by the OpenAPI generated handler before it ever even hits the real handler.
A clinic integration test seems like a good idea.
| parsedPatient.Columns[OutputColEmailed] = "N" | ||
| } | ||
| } else { | ||
| _, err := patientSvc.Create(ctx, *parsedPatient.Patient) |
Contributor
There was a problem hiding this comment.
I wonder how many patients can be created before the bulk creation request times out?
Contributor
|
Looks like a rebase is also required. :/ |
lostlevels
force-pushed
the
jp-bulk-patient-creation
branch
from
September 10, 2026 07:43
8218c44 to
fef9f06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.