How to upload a custom Code System and a Value Set
There are two options for how to upload our own dictionary of coded values.: via the GitHub repository or API.
Upload CS and VS via API
- Prepare a file with a valid CS
- Upload it to the Kodjin FHIR Server by posting to
{{host}}/terminology/CodeSystem
- Prepare a file with valid VS, referencing your CS
- Upload it by posting to
{{host}}/terminology/ValueSet
- Wait several minutes until it is cached
- Check that everything works fine by calling an $expand operation on your ValueSet:
{{host}}/terminology/ValueSet/{{vs_id}}/$expand
Upload CS and VS via the GitHub Repository
- Prepare a file with a valid CS and a file with a valid VS, referencing your CS
- Add CS to
{{your_repository}}/terminology/custom/code_systems
folder in your fixtures repository and VS to{{your_repository}}/terminology/custom/value_sets
folder - Push to the repository and wait several minutes until VS and CS are cashed
- Check that everything works fine by calling an $expand operation on your VS:
{{host}}/terminology/ValueSet/{{vs_id}}/$expand