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

(feat) Add ability to retrieve encounter type and default to unknown encounter role #4

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

donaldkibet
Copy link
Member

What does this PR do?

At the moment the hard code value for encounterRole is Clinician for some implementors this might be missing. I have added the ability to retrieve the encounterRole and add preference to Clinician as the default value if present. In its absence the UnKnown encounterRole is picked.

@denniskigen @samuelmale @pirupius @larslemos What are your thoughts on this approach.

Copy link
Member

@samuelmale samuelmale left a comment

Choose a reason for hiding this comment

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

Nice one Donald, just a few minor comments

@samuelmale samuelmale merged commit a17a7cb into openmrs:main Apr 3, 2023
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.

3 participants