Condition
- class fhir_biobank.condition.ConditionResource(condition_id: str, condition_code: str, starting_date_condition: datetime.date, patient: fhir_biobank.patient.PatientResource)[source]
Bases:
objectThis class represents medical condition or diagnosis of a patient.
- Parameters
condition_id (string) – Internal id that represents unique Condition, and is used for references to other resources
condition_code (string) – Code that represents condition, problem, or diagnosis.
starting_date_condition (date) – estimated or actual date or the condition began, in opinion of a clinician
patient (PatientResource) – Indicates which patient is associated with the condition.
- Raises
TypeError – This exception is raised when incorrect Types of arguments are provided.
ValueError – This exception is raised when incorrect value inside argument is provided.
- property FHIRInterpretation
Getter for a FHIR object that is created from this Class.
- Returns
Condition in a correct FHIR interpretation.
- property conditionCode
Getter for condition code - code that represents condition, problem or diagnosis.
- Returns
Code that represents condition, problem, or diagnosis.
- property conditionId
Getter for a internal id that represents unique Condition.
- Returns
internal id of the Condition resource
- conditionJSON()[source]
Method that creates JSON representation of a Condition Resource.
- Returns
FHIR condition resource interpreted as a json format.
- property patient
Getter for a patient that is associated with the condition.
- Returns
PatientResource that is associated to the condition
- property startingDateCondition
Getter for a date that the condition began.
- Returns
date when the condition began