This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(patients): use randomly generated code instead of sequence
BREAKING CHANGE: Any patient saved with friendly id will no longer map friendly id to the patient object, thus not displaying it in the UI or have it available for search fix #1876
- Loading branch information
1 parent
0d26e82
commit 1d6047d
Showing
15 changed files
with
43 additions
and
74 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ describe('General Information, without isEditable', () => { | |
phoneNumber: 'phoneNumber', | ||
email: '[email protected]', | ||
address: 'address', | ||
friendlyId: 'P00001', | ||
code: 'P00001', | ||
dateOfBirth: startOfDay(subYears(new Date(), 30)).toISOString(), | ||
isApproximateDateOfBirth: false, | ||
} as Patient | ||
|
@@ -197,7 +197,7 @@ describe('General Information, isEditable', () => { | |
phoneNumber: 'phoneNumber', | ||
email: '[email protected]', | ||
address: 'address', | ||
friendlyId: 'P00001', | ||
code: 'P00001', | ||
dateOfBirth: startOfDay(subYears(new Date(), 30)).toISOString(), | ||
isApproximateDateOfBirth: false, | ||
} as Patient | ||
|
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ describe('Edit Patient', () => { | |
phoneNumber: 'phoneNumber', | ||
email: '[email protected]', | ||
address: 'address', | ||
friendlyId: 'P00001', | ||
code: 'P00001', | ||
dateOfBirth: new Date().toISOString(), | ||
} as Patient | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ describe('ViewPatient', () => { | |
phoneNumber: 'phoneNumber', | ||
email: '[email protected]', | ||
address: 'address', | ||
friendlyId: 'P00001', | ||
code: 'P00001', | ||
dateOfBirth: new Date().toISOString(), | ||
} as Patient | ||
|
||
|
@@ -90,7 +90,7 @@ describe('ViewPatient', () => { | |
await setup() | ||
}) | ||
expect(titleUtil.default).toHaveBeenCalledWith( | ||
`${patient.givenName} ${patient.familyName} ${patient.suffix} (${patient.friendlyId})`, | ||
`${patient.givenName} ${patient.familyName} ${patient.suffix} (${patient.code})`, | ||
) | ||
}) | ||
|
||
|
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 |
---|---|---|
|
@@ -46,7 +46,7 @@ describe('Edit Appointment', () => { | |
phoneNumber: 'phoneNumber', | ||
email: '[email protected]', | ||
address: 'address', | ||
friendlyId: 'P00001', | ||
code: 'P00001', | ||
dateOfBirth: new Date().toISOString(), | ||
} as Patient | ||
|
||
|
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