Skip to content

    Patient Entry With Python

    Created by
    GodCodeEnabled
    GodCodeEnabled

    This python script simulates a healthcare patient data entry program, allows users to enter new patient information, including name, address, DOB, phone number, and diagnosis. Also has the functionality to search patients and query a full list with pagination in the case the list becomes too long.

    Each time a new patient is added by the user, the keys and values are appended to a list of dictionaries, and each index is then saved into a new line on a text file. When the program is initialized, each line from the txt file is then appended to a list of Python dictionaries, this serves as a method to store data for this serverless program, exclusively to mitigate volatile memory and showcase it's functionality.

    Give it a try and add some fictional characters, or just search and query the list.