Skip to content

Commit

Permalink
handle alphabetic in dcmjs output
Browse files Browse the repository at this point in the history
  • Loading branch information
emelalkim committed Dec 13, 2023
1 parent 6b58d6a commit 09d6da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aimHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ function getAimImageDataFromSeg(image) {
equipment.manufacturerModelName = image.ManufacturerModelName || "";
equipment.softwareVersion = image.SoftwareVersions || "";
person.sex = image.PatientSex || "";
person.name = image.PatientName || "";
person.name = image.PatientName ? (image.PatientName.Alphabetic ? image.PatientName.Alphabetic : image.PatientName) : "";
person.patientId = image.PatientID || "";
person.birthDate = image.PatientBirthDate || "";
return obj;
Expand Down

0 comments on commit 09d6da8

Please sign in to comment.