Skip to content
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

Specialities on encounters #1047

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Specialities on encounters #1047

wants to merge 10 commits into from

Conversation

eedrummer
Copy link
Collaborator

Adds a specialty property on the Encounter state in GMF. This will require the encounter to happen at a Provider that offers that specialty.

The preferred provider infrastructure has been updated to handle this. People now have a preferred provider by encounter class and specialty.

Checkstyle fixes added in as well. It appears that there are now checkstyle violations on master 😲

@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (c28eec1) 77% compared to head (a03a6fc) 80%.
Report is 40 commits behind head on master.

❗ Current head a03a6fc differs from pull request most recent head 2872fee. Consider uploading reports for the commit 2872fee to get more accurate results

Files Patch % Lines
src/main/java/org/mitre/synthea/engine/State.java 60% 2 Missing and 2 partials ⚠️
...tre/synthea/world/concepts/PreferredProviders.java 84% 2 Missing and 2 partials ⚠️
.../java/org/mitre/synthea/world/agents/Provider.java 33% 1 Missing and 1 partial ⚠️
.../world/agents/behaviors/ProviderFinderQuality.java 50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             master   #1047     +/-   ##
==========================================
+ Coverage        77%     80%     +2%     
+ Complexity     3690    3212    -478     
==========================================
  Files           170     120     -50     
  Lines         24000   21779   -2221     
  Branches       3332    2959    -373     
==========================================
- Hits          18560   17458   -1102     
+ Misses         4405    3403   -1002     
+ Partials       1035     918    -117     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jawalonoski jawalonoski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments and questions.

@jawalonoski
Copy link
Member

jawalonoski commented May 4, 2022

@eedrummer, can you resolve the conflicts? Then I'll merge it in if it passes the unit tests.

@eedrummer eedrummer marked this pull request as draft May 5, 2022 22:47
@eedrummer
Copy link
Collaborator Author

Converting this to draft while we figure out the best way to address the underlying needs of this PR. Namely, how can we limit a provider location in Synthea to offer a subset of services. It may be something like fully enabling some of the clinical specialty infrastructure... or something else.

@eedrummer
Copy link
Collaborator Author

There have been changes in Synthea since this PR was first submitted. When this was first created, the provider files had specialities listed. An update to the provider files removed specialties.

The more recent commits attempt to add specialties back in using information from NPPES. It's unclear at the current moment whether this approach will be useable as the test suite is breaking because some patients in MA can't find a cardiologist. This may be due to me picking the wrong specialty for cardiology or it may be that the data isn't good enough for our purposes and a new approach is needed.

@eedrummer
Copy link
Collaborator Author

After attempting to do some more work, it's clear that the Healthcare Provider Taxonomy Codes in NPPES aren't going to be useful for clinical specialty information for providers in Synthea. There are a few reasons for this:

  1. Most hospitals are listed with just the General Acute Care Hospital Code.
  2. Although NPPES has information on provides that work at these hospitals, attempting to aggregate or "roll up" this information is difficult. Inconsistencies in organization names (Massachusetts General Hospital vs. MG) and addresses (55 Fruit St. vs. 55 Fruit Street) make require a more sophisticated approach to aggregation than plain string matching.

If specialty information is to be incorporated into Synthea, it will likely have to come from a different source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants