-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8673aa8
commit 7071e79
Showing
9 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
10 changes: 7 additions & 3 deletions
10
packages/esm-patient-common-lib/src/get-patient-uuid-from-url.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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { getPatientUuidFromUrlOrStore } from './store/patient-chart-store'; | ||
import { getPatientUuidFromStore } from './store/patient-chart-store'; | ||
|
||
/** | ||
* @deprecated This function is now replaced with `getPatientUuidFromUrlOrStore`. This function will be removed in upcoming releases. | ||
* @deprecated This function is now replaced with `getPatientUuidFromStore`. This function will be removed in upcoming releases. | ||
* @returns {string} patientUuid | ||
*/ | ||
export const getPatientUuidFromUrl = getPatientUuidFromUrlOrStore; | ||
export function getPatientUuidFromUrl(): string { | ||
const match = /\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname); | ||
const patientUuidFromUrl = match && match[1]; | ||
return patientUuidFromUrl || getPatientUuidFromStore(); | ||
} |
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
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
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
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
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
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
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
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