Skip to content
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

Expected library size inquiry #34

Open
gomez-andres opened this issue Feb 4, 2025 · 1 comment
Open

Expected library size inquiry #34

gomez-andres opened this issue Feb 4, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@gomez-andres
Copy link

I am trying to integrate my app with FHIRModels (specifically R4) and am finding that adding the library to an app adds up to 30MB to the app. This app won't be utilizing the full FHIR spec (which is quite vast). Are there any build optimizations that can be done outside of just importing R4 and FMCore? What is the expected increase in IPA size when adding this library?

@p2-apple
Copy link
Collaborator

p2-apple commented Feb 5, 2025

That’s a good point. One option is to just include the resources you need in your own target, and then add the FHIR elements (such as Period, Address, …) as necessary. It’s probably a bit tedious but that way the size should come down.

I can think whether this could be automated via a script.

@p2-apple p2-apple added enhancement New feature or request question Further information is requested labels Feb 5, 2025
@p2-apple p2-apple self-assigned this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants