Skip to content

A tool to provide a simple diff of StructureDefinition's of a given resource for different versions or implementations.

License

Notifications You must be signed in to change notification settings

NHSDigital/fhir-structure-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fhir-structure-diff

A tool to provide a simple diff of two profiles. The diff all provides context in terms of the base element definitions.

WIP

Currently supports diff same versions, but only minimally tested. Also possible to use a different Jinja2 template for the output. Fetches bases defintions from web, so needs a live connection.

From the root directory. Example usage:

pip install -r requirements.txt
python src/fhir_structure_diff.py ./src/tests/data/CareConnect-AllergyIntolerance-1.json ./src/tests/data/CareConnect-GPC-AllergyIntolerance-1.json

will generate a file markdown.md.

use

python src/fhir_structure_diff.py --help

for help on parameters

Example output

TODO

Unit tests
Extend to handle different versions

About

A tool to provide a simple diff of StructureDefinition's of a given resource for different versions or implementations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published