Minimal FHIR standard models and data types for iOS
fastlane is used to manage fhir-parser and integrate generated models into Xcode project
fhir-parser is used to generate Swift models from JSON examples for latest FHIR standard
Swift-FHIR was used as inspiration for this project
Apple-FHIR R4 models were (tepmorarily) ported over because we needed a pod version of it
Required resources include:
Note: Check parser-resources for more info
To install with CocoaPods add the following lines (according to which model version you use) to the podfile.
source 'https://github.com/d4l-data4life/d4l-cocoapods-specs.git' pod 'Data4LifeFHIR', '~> 0.21.1' pod 'ModelsR4', '~> 0.21.1'
Note: For more info check README.
To install with Swift Package Manager add this package as a dependency in
.package(url: "https://github.com/d4l-data4life/d4l-fhir-ios.git", .upToNextMinor(from: "0.21.1")) .package(url: "https://github.com/d4l-data4life/d4l-utils-ios.git", .upToNextMinor(from: "0.6.0"))
brew install sourcery
Note: For other installation methods check README.
These directories are not generated and are not meant to be removed from the project. They include FHIR DateTime encoding/tests and helpers/tests for contained resources.
Note: It's possible to generated separately STU3 Models, R4 helpers or R4 tests, check Fastlane README for more information
|Last commit: 4 days ago|