OHIF-163: Patient Name is displayed in correct format "Last Name, First Name" (#1820)

* Add util to formatpn

* Format patient name in patient information tab
This commit is contained in:
Igor Octaviano authored and GitHub committed 2020-06-26 16:11:00 +02:00
1 parent 101efa4cf4
commit 5180eb127d
5 files changed
+24 -4

No files matched your search

@@ -233,7 +233,7 @@ function TrackedCornerstoneViewport({
seriesDescription: SeriesDescription,
modality: Modality,
patientInformation: {
patientName: PatientName ? PatientName.Alphabetic || '' : '',
patientName: PatientName ? OHIF.utils.formatPN(PatientName.Alphabetic) : '',
patientSex: PatientSex || '',
patientAge: PatientAge || '',
MRN: PatientID || '',