Technology can play a significant role in documenting and retrieving patient wishes. Electronic health records (EHRs) can include sections for advance directives and other patient preferences, making this information easily accessible to all healthcare providers involved in the patient's care.