FHIRModels icon indicating copy to clipboard operation
FHIRModels copied to clipboard

Expected library size inquiry

Open gomez-andres opened this issue 1 year ago • 1 comments

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?

gomez-andres avatar Feb 04 '25 23:02 gomez-andres

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 avatar Feb 05 '25 12:02 p2-apple