-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bulkdata patient/group exports are slow #1198
Comments
could you use an _include? like this... but this one is EOB "_include", "ExplanationOfBenefit:patient" |
not really, this is different, this is to get patient resources for the found ExplanationOfBenefits whose subject is the patients. |
what we need is getting ExplanationOfBenefits for all found patients. |
maybe can use _revinclude ... |
Right. It was just an example, you can flip it around |
actually, I'm thinking that using _revinclude for the patient search could cause huge join which may also cause bad performance ... maybe we can achieve better performance by passing multiple id to compartment search instead of one and use "in" instead of "=" in the sql layer, this hopefully can help us to achieve better performance and avoid the potential time out issue. e.g, if we want to export all patients with all their ExplainationOfBenefits, then this will cause huge join in the db side which could cause db timeout that we have seen before ... |
and seems _revinclude for patients may not work for group export ... because we don't have something like \patient?groupid="xxxxx" |
ideally, we could have api like \patient?groupid="xxxxx", not matter if the group is members based or characteritics based. then we can use _revinclude based on it .... |
Signed-off-by: Albert Wang <xuwang@us.ibm.com>
Signed-off-by: Albert Wang <xuwang@us.ibm.com>
issue #1198 performance enhancement for patient/group export
currently, the codes get the patients first, and then do compartment search for the patients one by one on for the required resource type, so this means for each page of patients(e.g, 200), 200 search queries have to be made to the database to get all those required resources for the patients.
we should consider to enhance the search API to allow it to be able to get compartment resources for multiple patients in one request, this will greatly improve the performance of patient/group exports.
The text was updated successfully, but these errors were encountered: