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

person to FHIR patient #4842

Merged
merged 56 commits into from
Dec 20, 2022
Merged

person to FHIR patient #4842

merged 56 commits into from
Dec 20, 2022

Conversation

BobanL
Copy link
Contributor

@BobanL BobanL commented Dec 12, 2022

BACKEND PULL REQUEST

Related Issue

Changes Proposed

  • A new toFhir method was added to convert our models into FHIR models.

Additional Information

  • We are using the Hapi FHIR structures library as recommended.
  • For Race we are using local race (as recommended by report stream), tribal affilation we are using us-core, and ethnicity we are using us-core
  • Update wiremock dependency to fix an issue with running TestResultUploadServiceTest locally since I was experiencing this java.lang.IllegalStateException: No Server ALPNProcessors!

Testing

  • View response from toFhir and ensure that it looks like it has everything it would need. There may need to be additional changes in the future when we begin testing the full bundle with report stream.

DanielSass
DanielSass previously approved these changes Dec 14, 2022
@BobanL BobanL marked this pull request as draft December 15, 2022 02:20
@BobanL BobanL changed the title person to FHIR patient [changes in progress] person to FHIR patient Dec 15, 2022
@BobanL
Copy link
Contributor Author

BobanL commented Dec 15, 2022

Working on a refactor of this to move much of the fhir conversition out of the db models and into it's own file.

@sonarcloud
Copy link

sonarcloud bot commented Dec 19, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

98.6% 98.6% Coverage
0.0% 0.0% Duplication

@BobanL BobanL changed the title [changes in progress] person to FHIR patient person to FHIR patient Dec 19, 2022
@BobanL BobanL marked this pull request as ready for review December 19, 2022 13:35
@BobanL
Copy link
Contributor Author

BobanL commented Dec 19, 2022

This is now ready for a review @zdeveloper @DanielSass! The last changes now introduced a new converter where you can simply pass primitives into it to convert values so that it can be re-used in any other part of the code where we may not have the db models.

throw new IllegalStateException("Utility class");
}

public static final String NULL_CODE_SYSTEM =
Copy link
Contributor

Choose a reason for hiding this comment

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

I recommend adding _URL to the name to keep it consistent with the others

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So the reason why these don't have _URL at the end is because the are used as the system and the _URL are added to the URL, but if that's confusing I can totally change it to describe what the contents of that variable is like recommended.

Copy link
Contributor

@zdeveloper zdeveloper left a comment

Choose a reason for hiding this comment

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

LGTM! thanks for your work on this

@BobanL BobanL merged commit 96aeaeb into main Dec 20, 2022
@BobanL BobanL deleted the boban/eventToFHIR branch December 20, 2022 19:50
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.

Create FHIR Patient using person
3 participants