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:
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.
Select “Issues” under the patient’s name.
Create any issue by clicking the “Add” button next to an issue section.
Fill out the form and leave the “Begin Date,” “End Date,” or both blank.
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:
The “asthma” issue was created with a begin date of 01/09/2020 and no end date. The begin date is displayed correctly, but the “End” column shows the timestamp “1969-12-31 19:00.”
The “codeine” issue was created with no begin or end date. Both the “Begin” and “End” columns show the timestamp “1969-12-31 19:00.”
The “iodine” issue was created with no begin date and an end date of 02/12/2020, and the “Begin” column shows the timestamp “1969-12-31 19:00.” and the “End” column shows the correct date.
The following is the code that displays the form within Chrome Inspector:
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.
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:
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:
The “asthma” issue was created with a begin date of 01/09/2020 and no end date. The begin date is displayed correctly, but the “End” column shows the timestamp “1969-12-31 19:00.”
The “codeine” issue was created with no begin or end date. Both the “Begin” and “End” columns show the timestamp “1969-12-31 19:00.”
The “iodine” issue was created with no begin date and an end date of 02/12/2020, and the “Begin” column shows the timestamp “1969-12-31 19:00.” and the “End” column shows the correct date.
The following is the code that displays the form within Chrome Inspector:![patient-stats-console](https://user-images.githubusercontent.com/8771586/74613717-a9cd7e80-50de-11ea-9b8f-26ca6d83ac74.png)
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.