Lightmatter / welkin-health

A Python wrapper of the Welkin Health API
https://welkin.readthedocs.io
Other
4 stars 3 forks source link

Feature/encounter dispositions #30

Closed edcohen08 closed 2 years ago

edcohen08 commented 2 years ago

This pull request adds getting and updating encounter dispositions. It adds the Disposition resource and a utility model EncounterSubResource for Encounter subresources to get the patient id and encounter id.

As a note fixes a QOL bug in the test_authentication that caused problems running new tests as part of the entire test suite because of overwriting the auth token.

codecov[bot] commented 2 years ago

Codecov Report

Merging #30 (f1a2bd3) into develop (4a7c768) will increase coverage by 0.08%. The diff coverage is 92.59%.

@@             Coverage Diff             @@
##           develop      #30      +/-   ##
===========================================
+ Coverage    93.14%   93.22%   +0.08%     
===========================================
  Files           23       24       +1     
  Lines         1108     1166      +58     
===========================================
+ Hits          1032     1087      +55     
- Misses          76       79       +3     
Impacted Files Coverage Δ
test/test_authentication.py 96.77% <50.00%> (-3.23%) :arrow_down:
welkin/models/util.py 79.16% <79.16%> (ø)
test/test_encounters.py 98.83% <100.00%> (+0.26%) :arrow_up:
welkin/models/__init__.py 100.00% <100.00%> (ø)
welkin/models/assessment.py 92.85% <100.00%> (+2.61%) :arrow_up:
welkin/models/encounter.py 94.73% <100.00%> (+1.40%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.