-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
(feat) O3-3244 & O3-3250: Add hook for fetching EMR Configuration #1259
Conversation
Size Change: +33 B (0%) Total Size: 3.91 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @vasharma05 , Looks good!
|
||
export default function useEmrConfiguration() { | ||
const swrData = useSWRImmutable<FetchResponse<EmrApiConfigurationResponse>>( | ||
`${restBaseUrl}/emrapi/onfiguration`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`${restBaseUrl}/emrapi/onfiguration`, | |
`${restBaseUrl}/emrapi/configuration`, |
typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I was testing failure case and forgot to fix it, I have fixed it now.
Thanks for the catch!
@@ -275,6 +275,7 @@ | |||
"ticketNumber": "Ticket Number", | |||
"time": "Time", | |||
"timeCannotBeInFuture": "Time cannot be in the future", | |||
"timeCannotBePriorToPreviousQueueEntry": "Time cannot be before start of previous queue entry: {{time}}", | |||
"timeOfTransition": "Time of transition", | |||
"tirageNotYetCompleted": "Triage has not yet been completed", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"tirageNotYetCompleted": "Triage has not yet been completed", | |
"triageNotYetCompleted": "Triage has not yet been completed", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @denniskigen!
This change in translation is not related to this PR, the change came up from the extract-translations
command. Let me get another PR to improve the key name.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Belated LGTM, thanks @vasharma05 !
Requirements
Summary
This PR adds a new hook
useEmrConfiguration
to fetch the EMR Configuration.Screenshots
None
Related Issue
https://issues.openmrs.org/browse/O3-3244
https://issues.openmrs.org/browse/O3-3250
Other