A Swift library providing native data models for FHIR® resources across multiple versions.
FHIRModels is a Swift library that provides native data models for FHIR® (Fast Healthcare Interoperability Resources) resources. It allows developers to work with standardized healthcare data structures in Swift, enabling the development of interoperable health applications and services that can exchange clinical and administrative data.
Swift developers building healthcare applications, medical software, or health tech solutions that require FHIR compliance, particularly those targeting Apple platforms (iOS, macOS, watchOS, tvOS) or Linux.
Developers choose FHIRModels for its native Swift implementation, type safety, and support for multiple FHIR versions, which simplifies working with complex healthcare data standards and ensures data integrity in health applications.
Swift library for FHIR® resource data models
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides full Swift models for FHIR resources, elements, and data types, making it idiomatic and seamless for Swift developers building health apps on Apple platforms or Linux.
Offers separate targets for DSTU2, STU3, R4, R4B, R5, and build versions, allowing developers to work with various FHIR standards in a single codebase without compatibility issues.
Enforces non-nullability for mandatory parameters and uses enums for closed code systems, reducing runtime errors and ensuring data consistency in healthcare applications.
Includes Swift Codable support for easy JSON serialization and deserialization, simplifying the parsing and validation of FHIR resources in Swift.
Works on macOS, iOS, watchOS, tvOS, and Linux, as indicated by the platform badge, enabling broad deployment across different Apple ecosystems and Linux servers.
The majority of the codebase is generated, and the README states Pull Requests are not accepted, restricting community contributions and making it hard to modify core models for specific needs.
At version 0.8.0, the API is likely unstable with potential breaking changes, which could disrupt production applications relying on long-term stability.
Requires Swift 5.7 or newer, excluding projects stuck on older Swift versions and adding migration overhead for legacy codebases.
FHIR resources are inherently complex, and the library's comprehensive models may increase memory usage and slow performance on devices with limited resources, such as older iPhones or wearables.