LibreHealthIO / lh-ehr

LibreHealth EHR - Free Open Source Electronic Health Records
Other
234 stars 257 forks source link

Patient Issues Show Incorrect Dates When Left Blank #1555

Open maggienegm opened 4 years ago

maggienegm commented 4 years ago

A) Outreachy Username: maggie.negm B) Issue Title: Patient Issues Show Incorrect Dates When Left Blank C) Report Date: 2/14/2020 D) Sites Affected: Documentation Site, NHANES E) OS/Browser Used: Chrome browser in Linux OS F) EHR Workflow Module: Issues G) Steps to Reproduce the Issue:

  1. Go to a patient profile.
    • There are many ways to do this. One way is to use the Patient Finder (“Patient/Client” from the main menu > “Finder” under “Patient/Client”) and choose a patient.
  2. Select “Issues” under the patient’s name.
  3. Create any issue by clicking the “Add” button next to an issue section.
  4. Fill out the form and leave the “Begin Date,” “End Date,” or both blank.
  5. Select the “Save” button.

H) Expected Behavior: When no begin or end date is entered during an issue’s creation, no timestamp should show under the date columns (“Begin” and “End”) in the “Issues” summary. I) What Actually Happened: When no date is entered during an issue’s creation, the “Issues” module shows a specific timestamp. In the Docs server, it shows “1969-12-31 19:00,” and in the NHANES server, it shows “01/01/1970 00:00.” J) Screenshots with Explanation: After creating issue(s) within a patient’s profile (using the Docs server), the “Issues” module will list the patient issues in the following format:

issues-w-outline

The following is the code that displays the form within Chrome Inspector: patient-stats-console

K) Estimation of Severity: Minor - distracting or confusing but workflow can continue correctly M) Solution: Display an empty string or some notation, like “N/A,” under the “Begin” and “End” columns to indicate no date was entered when an issue was created.

xurror commented 4 years ago

@mhn94 I'd like to work on this

maggienegm commented 4 years ago

Hello @xurror ! Feel free to work on it.