skalarsystems / fhirzeug

A Python FHIR specification parser and class generator
Apache License 2.0
17 stars 1 forks source link

60 add reference validator #62

Closed Wauplin closed 3 years ago

Wauplin commented 4 years ago

Normally with this solution we would be able to dynamically add validation rules to Resource classes after generating them. I tried to test any simple cases that we might need.

Also implemented a validator for Reference resource to close #60 .

codecov[bot] commented 4 years ago

Codecov Report

Merging #62 into master will increase coverage by 0.33%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #62      +/-   ##
==========================================
+ Coverage   83.00%   83.33%   +0.33%     
==========================================
  Files          11       11              
  Lines        1300     1326      +26     
==========================================
+ Hits         1079     1105      +26     
  Misses        221      221              
Flag Coverage Δ
#unittests 83.33% <100.00%> (+0.33%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
fhirzeug/generator.py 100.00% <100.00%> (ø)
...ators/python_pydantic/templates/resource_header.py 99.07% <100.00%> (+0.25%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9fcd0f0...04f0f89. Read the comment docs.