-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fhir: tooling to auto-generate an adaptor #801
base: main
Are you sure you want to change the base?
Conversation
Refer to #812 for guidance on how to handle types. I don't think it's a copy and paste solution but it at least shows where we were going wrong. |
well, actually, there is a diff because the order changes unfortunately. But if you sort linesascending there is no diff
4400ab5
to
7246dd2
Compare
Here's the a no-diff diff from builders.js in a02d9c0
This depends on mappings file (because of course it does!), which I've temporarily checked in. It uses ordered generation too. Pretty pleased with this: I've externalised the tooling into a pretty elegant command. The commits from this point will start to diverge the code |
Auto-generated unit tests 😎 They don't do a lot, but they do verify that the generated code works and resources can be created
|
Summary
This PR adds tooling to auto-generate a FHIR adaptor from a FHIR spec.
Closes #798
Usage guide
First time (to generate
packages/fhir-jembi
):To rebuild from the same spec:
To update/redownload the spec:
To rebuild from the same spec:
Steps
pnpm generate-fhir
AI Usage
Please disclose how you've used AI in this work (it's cool, we just want to know!):
You can read more details in our Responsible AI Policy