Skip to content

Commit

Permalink
change name to parse_pi()
Browse files Browse the repository at this point in the history
  • Loading branch information
jbwexler authored May 22, 2024
1 parent d86d73b commit f1db34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wbhiutils/parse_dicom_hdr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re

# Parse a dicom header and return the pi-id and sub-id
def parse_pi_sub(dcm_hdr: dict, site: str) -> str:
def parse_pi(dcm_hdr: dict, site: str) -> str:
"""Parse a dicom header and return the PI-ID"""
if site == 'ucsb':
return re.split('[^0-9a-zA-Z]', dcm_hdr["PatientName"], maxsplit=1)[0]
Expand Down

0 comments on commit f1db34d

Please sign in to comment.