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) SL-833 add triage actions to queue entries in triage queue table #9

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

chibongho
Copy link
Collaborator

Summary

This PR creates an extension for use in the MCOE Triage queues table, to provide a "triage" action, which opens up the MCOE triage form. If the patient already has that form filled out during their current visit, it opens up the latest filled out form for editing.

Screenshots

image
image
image

Related Issue

// else, we load the last filled out form to edit
const src =
filledOutTriageForms.length == 0
? `${window.openmrsBase}/htmlformentryui/htmlform/enterHtmlFormWithStandardUi.page?patientId=${patientUuid}&visitId=${visitUuid}&definitionUiResource=file:/home/tomcat/.OpenMRS/configuration/pih/htmlforms/triage.xml&returnUrl=%2Fopenmrs%2Fcoreapps%2Fclinicianfacing%2Fpatient.page%3FpatientId%3D${patientUuid}%26`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is a file path in this URL that's machine dependent. I copied it from kgh-test and assume that it'll be the same for production.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, this isn't quite right. You can exclude the /home/tomcat/.OpenMRS/ from the URL, and just start from file:configuration/....

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to relative path. Confirmed that it worked locally.

Copy link
Member

@mseaton mseaton left a comment

Choose a reason for hiding this comment

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

I gave it a cursory review, I generally trust your code here and we can shake it out in testing and downstream use. Just the one fix to that URL should do it.

@chibongho chibongho requested a review from mseaton January 13, 2025 16:56
@chibongho chibongho merged commit 4c5ff83 into main Jan 13, 2025
3 checks passed
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