-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
FHIRStore Crash When Using CloudKit/CoreData #16
Comments
@advatar Thank you for reporting the issue! Can you share the project that you are working on so we can try to reproduce the issue; is it open-source? From the stacktrace, it looks like you are using or trying to modify LLMonFHIR? |
I am modifying that project but the rest is a bit too messy at the moment. One thing I noticed is that dependencies are a bit outdated due to the SpeziML -> SpeziLLM change.
I can try and maybe get the same problem with LLMonFHIR.
… On 16 Jan 2024, at 17:55, Paul Schmiedmayer ***@***.***> wrote:
@advatar <https://github.com/advatar> Thank you for reporting the issue!
Can you share the project that you are working on so we can try to reproduce the issue; is it open-source? From the stacktrace, it looks like you are using or trying to modify LLMonFHIR?
—
Reply to this email directly, view it on GitHub <#16 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAAG77WCS47IYH26HPFJBR3YO2WJVAVCNFSM6AAAAABB5CCFLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGEZTQOBRGU>.
You are receiving this because you were mentioned.
|
I modified LLMonFHIR like this:
I did not get a crash and it works for one launch but next time I get "No health records are available" btw, same thing with: |
Hmm, I am using CoreData/CloudKit and noticed that the crash only happens if I do:
on the HomeView |
@advatar Can you share a minimally reproducible example that we can use to work on fixing the bug together? A very simple iOS app that just contains the necessary code to reproduce the results and only the necessary Stanford dependencies would be great. Ideally you can share it as an GitHub project; that would be perfect! |
I will try. I live in Sweden and Clinical Records are not available in HealthKit. I am getting data from a national service, 23andme, microbiome and blood testing sites. Non of this is FHIR. A couple of features that would be nice
Anyways, this project is a few years old and used CoreData etc. Cleaning up all of that. At the moment it does not crash as often. |
Just a quick question. I have now implemented generation of FHIRResources and can filter on vital-signs and laboratory. I works and I can view lab results. However, there is no persistence, I have to create the resources every time. I am doing something like this:
Do I need something else than insert? |
I did this for now:
|
This example is easily reproducible StanfordBDHG/LLMonFHIR#45 |
Description
When collecting samples like this:
I often get crashes ending with:
SwiftUI/FetchCommon.swift:51: Fatal error: Can only invoke this method on the main queue
The traceback is like:
Reproduction
See above
Expected behavior
Samples should be collected and added to the FHIRStore without crashing
Additional context
I am doing something similar to t:
Code of Conduct
The text was updated successfully, but these errors were encountered: