edfio.Patient#
- class edfio.Patient(*, code='X', sex='X', birthdate=None, name='X', additional=())[source]#
Object representation of the local patient identification.
Parsing from/to the string containing the local_patient_identification header field is done according to the EDF+ specs. Subfields must be ASCII (32..126) and may not contain spaces.
- Parameters:
- code
str, default:"X" The code by which the patient is known in the hospital administration.
- sex
{"X", "F", "M"}, default:"X" Sex,
Ffor female,Mfor male,Xif anonymized.- birthdate
datetime.date|None, default:None Patient birthdate, stored as
XifNone.- name
str, default:"X" The patient’s name, stored as
XifNone.- additional
Sequence[str], default:() Optional additional subfields. Will be stored in the header field separated by spaces.
- code
Attributes
Optional additional subfields.
Patient birthdate.
The code by which the patient is known in the hospital administration.
The patient's name.
Sex,
Ffor female,Mfor male,Xif anonymized.Methods
__init__Access a subfield of the local patient identification field by index.