Minimal FHIR standard models and data types of STU3 and R4 for Android and Java
Check current documentation
Add the following maven repository url to your root build.gradle:
allprojects { repositories { ... maven { url = URI("https://maven.pkg.github.com/d4l-data4life/hc-fhir-sdk-java") credentials { username = project.findProperty("gpr.user") as String? ?: System.getenv("PACKAGE_REGISTRY_USERNAME") password = project.findProperty("gpr.key") as String? ?: System.getenv("PACKAGE_REGISTRY_TOKEN") } } } }
Your GitHub username and token needs to be stored in your global Gradle properties: ~/.gradle/gradle.properties
- NOTICE
-
You need to have read access to this repository and generate a personal access token with
repo
,write:packages
andread:packages
scope.
gpr.user=github-username gpr.key=github-token
fastlane is used to manage fhir-parser and integrate generated models into fhir-java project
fhir-parser is used to generate Java models from JSON examples for latest FHIR standard
Required resources include: * Base classes for primitive data types * Rules and templates for mapping * Settings with custom profiles and build targets
git submodule update --init --recursive (for furst time installation)
bundle exec fastlane generate_fhir_java_models
After generating the models please run a reformat code on the fhir-java/src-gen
folder and make sure the test in ObservationTest
and PatientTest
adjustments are still in place.
-
fhir-parser as FHIR model generator