Patient

class fhir_biobank.patient.PatientResource(patient_id: str, identifier: str, gender: str = 'unknown', birth_date: Optional[datetime.date] = None, deceased_boolean: bool = False, deceased_datetime: Optional[datetime.date] = None, multiple_birth_boolean: bool = False, multiple_birth_int: Optional[int] = None, patient_links: Optional[List[fhir_biobank.patient.PatientResource]] = None, identifier_type: str = 'ACSN')[source]

Bases: object

This class containts information about an individual receiving health care services.

Parameters
  • patient_id (string) – Internal id that represents unique Patient, and is used for references to other resources

  • identifier (string) – used to uniquely identify patient. Identifier should be social security number.

  • gender (string) – gender of a person used for administrative purposes. Possible entries are “male”, “female”, “other”, “unknown”

  • birth_date (date) – Birth date of a patient. At least estimated year should be provided as a guess.

  • deceased_boolean (Optional[bool]) – true/false value that represents if patient is deceased

  • deceased_datetime (Optional[date]) – date of patient’s death

  • multiple_birth_boolean (Optional[bool]) – true/false value that represents if patient comes from multiple birth.

  • multiple_birth_int (Optional[int]) – number that represents the order of birth in the multiple birth.

  • patient_links (Optional[List[PatientResource]]) – list containing references to other patient resource that concerns the same person

  • identifier_type (Optional[string]) – a coded type for the identifier that can be used to determine specific purpose of the identifier. default value is “ACSN” correct values are : “DL”, “PPN”, “BRN”, “MR”, “MCN”, “EN”, “TAX”, “NIIP”,”PRN”, “MD”, “DR”, “ACSN”, “UDI”, “SNO”, “SB”, “PLAC”, “FILL”, “JHN”. For more info see https://simplifier.net/packages/hl7.fhir.r4.core/4.0.1/files/82653

Raises
  • TypeError – This exception is raised when incorrect types of arguments are provided

  • ValueError – This exception is raised when incorrect value in argument is provided

property FHIRInterpretation

Getter for a FHIR object that is created from this class.

Returns

FHIR Patient Resource object.

property birthDate

Getter for a birth date of the patient.

Returns

Birth Date of the patient.

property deceasedBoolean

Getter for a True/False value indicating if the patient is deceased.

Returns

True/False value that indicates if the patient is deceased.

property deceasedDatetime

Getter for a deceased Date of a patient, if one is provided

Returns

Date of the patient’s death.

property gender

Getter for a gender of the patient.

Returns

Gender of the patient.

property identifier

Getter for identifier of the patient.

Returns

Identifier of the patient.

property identifierType

Getter for a type of the indentifier that identifies the patient

Returns

type of identifier that identifies the patient

Getter for a list of links to another PatientResource, that references the same patient.

Returns

List of links to another PatientResource

property multipleBirthBoolean

Getter for a True/False value that indicates if patient comes from multiple birth.

Returns

True/False value that indicates if patient comes from multiple birth.

property multipleBirthInteger

Getter for a number that indicates order of the patient’s birth in the multiple birth, if provided.

Returns

Number that indicates order of the patients birth in multiple birth.

property patientId

Getter for a internal id that represents unique Condition

Returns

internal id used for references to other resources

patientJSON()[source]

Method that creates JSON representation of a Patient Resource.

Returns

Json representation containing all given information of FHIR patient resource.