-
Notifications
You must be signed in to change notification settings - Fork 219
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
(fix) O3-4004: Fix Patient action menu button workspace #1336
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e710137
feat-metrics
kb019 f56fc3a
resolve conflicts
kb019 5104ac5
update metrics
kb019 321625b
Merge branch 'main' into feat/metrics
kb019 801177b
correct test
kb019 dd661e0
refactor useAdmission
kb019 c870aba
Merge branch 'main' of https://github.com/openmrs/openmrs-esm-patient…
kb019 7c947c8
fix e2e tests
kb019 82b6817
(refactor) Refactor registration form cancel modal to match conventio…
denniskigen 9a4671a
(feat) 03-3404: follow-up -ensure the dateAppointmentScheduled <= ap…
lucyjemutai 7bb7ed3
Merge branch 'feat/metrics' of https://github.com/kb019/openmrs-esm-p…
kb019 6a7e24d
correct yarn.lock
kb019 5e7d993
Merge branch 'main' of https://github.com/openmrs/openmrs-esm-patient…
kb019 a83b944
fix metrics calculations
kb019 74d4137
resolve conflicts
kb019 e4671c5
add internationalization
kb019 d1f9f4b
correct mocks
kb019 4211d83
add dir attribute
kb019 d2bb04d
resolve conflicts
kb019 bc68943
Merge branch 'main' of https://github.com/openmrs/openmrs-esm-patient…
kb019 9a1ca44
remove i18n code
kb019 18f854a
clean code
kb019 7eac5bf
Merge branch 'main' of https://github.com/openmrs/openmrs-esm-patient…
kb019 57a7dfa
use admissionLocation as source of truth
kb019 423475a
resolved conflicts
kb019 e9ff288
fix patient error
kb019 9875458
resolved conflicts
kb019 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/esm-ward-app/src/ward-patient-card/ward-patient-resource.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { launchWorkspace } from '@openmrs/esm-framework'; | ||
import { type WardPatient, type WardPatientWorkspaceProps } from '../types'; | ||
|
||
//To keep track of current patient when clicked on ward-patient-card and pass | ||
//it as a prop to launch workspace | ||
let wardPatient: WardPatient = null; | ||
export function setWardPatient(currentWardPatient: WardPatient) { | ||
wardPatient = currentWardPatient; | ||
} | ||
|
||
export function launchPatientWorkspace() { | ||
launchWorkspace<WardPatientWorkspaceProps>('ward-patient-workspace', { | ||
wardPatient, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you add a comment on why we need this?
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.
added the comment.Thanks