Skip to content

PyZDC Functions Flow

The diagram below illustrates the workflow of the functions in PyZDC. It visually represents how different functions interact in the data retrieval process.

%%{init: {"themeVariables": {"fontFamily": "Times New Roman, Times, serif"}}}%% %%{init: {'theme':'neutral'}}%% graph LR; A[Start] -->|User calls a function| B{Choose Function} B -->|Get Available Years| C[get_years] --> L[Output: List of Years] B -->|Extract Data| D[get_notifications] --> M[Returns DataFrame] B -->|Extract Personal Data| E[get_personal_data] --> M B -->|Extract Clinical Signs| F[get_clinical_signs] --> M B -->|Extract Patient Diseases| G[get_patient_diseases] --> M B -->|Extract Exams| H[get_exams] --> M B -->|Extract Hospital Info| I[get_hospital_info] --> M B -->|Extract Alarm Severities| J[get_alarm_severities] --> M B -->|Extract SINAN Info| K[get_sinan_info] --> M M -->|Data is processed| N[User Uses Data]
  1. User Starts the Process → The user initiates the workflow by calling a function.

  2. Choosing a Function → The user selects one of the available functions to fetch epidemiological data.

  3. Functions:

  4. get_years(disease) → Retrieves the list of available years for a given disease.

  5. get_notifications(years, disease, limit) → Fetches notification records for a disease within the specified years.

  6. get_personal_data(years, disease, limit) → Extracts anonymized personal data of affected individuals.

  7. get_clinical_signs(years, disease, limit) → Retrieves clinical symptoms related to disease cases.

  8. get_patient_diseases(years, disease, limit) → Fetches additional diseases present in patient records.

  9. get_exams(years, disease, limit) → Obtains laboratory test results for reported cases.

  10. get_hospital_info(years, disease, limit) → Retrieves hospital admission records.

  11. get_alarm_severities(years, disease, limit) → Fetches cases classified as severe.

  12. get_sinan_info(years, disease, limit) → Extracts raw SINAN database records.

  13. Data Processing:

  14. If get_years is called, it returns a list of years where data is available.

  15. If any other function is called, it fetches data and returns a Pandas DataFrame.

  16. User Data → The retrieved data is processed, analyzed, or saved for further use.

For more details, visit: GitHub Repository.