FHIR
¶
FHIR¶
The primary component of the FHIR parser with the FHIR class for handling all FHIR endpoint calls
-
class
fhir_parser.fhir.
FHIR
(endpoint: str = 'https://localhost:5001/api/', verify_ssl: bool = False, ignore_errors: bool = True)¶ Create the FHIR endpoint to retrieve patient and observation data
-
get_all_patients
() → List[fhir_parser.patient.Patient]¶ Returns: A list of patients
-
get_observation
(id: str) → fhir_parser.observation.Observation¶ - Parameters
id – Observation ID or UUID string
Returns: A single observation
-
get_patient
(id: str) → fhir_parser.patient.Patient¶ - Parameters
id – Patient ID or UUID string
Returns: A single patient
-
get_patient_observations
(id: str) → List[fhir_parser.observation.Observation]¶ - Parameters
id – Patient ID or UUID string
Returns: A list of observations for a patient
-
get_patient_observations_page
(id: str, page: int) → List[fhir_parser.observation.Observation]¶ - Parameters
id – Patient ID or UUID string
page – Page number int
Returns: A list of observations for a patient up to the specified page
-
get_patient_page
(page: int) → List[fhir_parser.patient.Patient]¶ - Parameters
page – Page number int
Returns: A list of patients up to the specified page
-