Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS2103-T14-2] Advanced&Efficient #79

Open
wants to merge 418 commits into
base: master
Choose a base branch
from

Conversation

AaronJT1
Copy link

Advanced&Efficient helps Emergency Department (ED) doctors in logging patient reports and connect patients with relevant departments and doctors under time pressure during an emergency.

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Attention: 274 lines in your changes are missing coverage. Please review.

Comparison is base (517b785) 75.26% compared to head (911c632) 76.32%.

Files Patch % Lines
src/main/java/seedu/address/ui/RecordCard.java 0.00% 42 Missing ⚠️
src/main/java/seedu/address/ui/PatientCard.java 0.00% 30 Missing ⚠️
src/main/java/seedu/address/ui/MainWindow.java 0.00% 28 Missing ⚠️
src/main/java/seedu/address/ui/RecordPanel.java 0.00% 24 Missing ⚠️
src/main/java/seedu/address/ui/HelpWindow.java 0.00% 20 Missing ⚠️
.../java/seedu/address/storage/JsonAdaptedRecord.java 51.85% 8 Missing and 5 partials ⚠️
...c/main/java/seedu/address/ui/PatientListPanel.java 0.00% 13 Missing ⚠️
.../seedu/address/model/patient/UniqueRecordList.java 71.42% 7 Missing and 5 partials ⚠️
src/main/java/seedu/address/model/AddressBook.java 69.44% 10 Missing and 1 partial ⚠️
.../java/seedu/address/model/util/SampleDataUtil.java 10.00% 9 Missing ⚠️
... and 22 more
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #79      +/-   ##
============================================
+ Coverage     75.26%   76.32%   +1.06%     
- Complexity      419      724     +305     
============================================
  Files            71       96      +25     
  Lines          1338     2374    +1036     
  Branches        126      245     +119     
============================================
+ Hits           1007     1812     +805     
- Misses          301      476     +175     
- Partials         30       86      +56     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

yuxunn pushed a commit to yuxunn/tp that referenced this pull request Oct 20, 2023
…s-and-leads

Refactor addclient and addlead, Add test cases
AaronJT1 and others added 28 commits October 26, 2023 13:46
Modify Delete Command to use IC Number
Currently, the deletecommand is finding a patient to delete based
on a filtered list rather than full list of patients

It is important for a user to delete a patient outside of the
filtered list as well.

Create a getCurrentPatientList method in ModelManager.java to
get the current list of patients
Make changes to edit and delete to access a patient in the list using ic number instead of patient index. Update User Guide to reflect these changes to edit and delete commands.

Let's modify User Guide to ensure an easy tutorial for the users
Currently, the Add Command is implemented in a way that patients
with similar ic numbers are allowed to be added

Since ic numbers should be unique to every patient, it is important
to inform users that the ic number of the new patient already exist

Update AddCommand.java and AddCommandTest.java for ic number check
Currently the UI Component section of the developer guide
is outdated and missing information related to the
newly added RecordCard and RecordPanel classes.

Updating the guide can help us keep better documentation
of our project.

Let's add the newly added RecordPanel and RecordCard
classes to the UML diagram and alter the explanation
to include them as well.
Implement JsonAdaptedRecord to enable JSON serialization for patient records.
Update JsonSerializableAddressBook to work with new serialization.
Enhance AddressBook model to support new serialization functionality.
Introduce UniqueRecordList for ensuring record uniqueness.
The A&E current UI does not match with the team's design.
Update the FXML files to update the design.
- Test default constructor for Record.
- Validate initialization with default values for fields.
- Test setters and getters for initialObservations, diagnosis, treatmentPlan.
- Ensure correct behavior of equals method.
- Detailed the JSON representation of the `Record` class.
- Provided an example JSON format with explanations for each field.
- Highlighted the default values used for certain fields when no data is provided.
Implement Record command to edit patient record.

A Record attribute with relevant fields has been created for our Patient
class. However, it cannot be edited and will stay as default values.

Implementing a record function will allow us to take the first step in making
a more viable product with suitable features.

Let’s create the RecordCommand classes along with parser and test
classes. Doing so will allow us to edit a patient’s record more efficiently.
Fix Checkstyle Errors

Some classes have errors with checkstyle.

Fixing the checkstyle errors will ensure that the errors do not
accumulate.

Let’s make sure we run checkstyle before pushing our code.
Doing so will allow us to have cleaner code.
Modify User Guide to include Edit and Delete Features
Add Birthday class and save Assigned Department to Storage. Also modify delete and edit a patient to use IC Number instead of index of the patient.
Currently, the app does not support the editing of department
or the assignment of a patient to a department.

This functionality must be added for our app to be fully
functional as per its functional requirements.

Let's,
* Add an AssignCommand class to handle the command execution
* Add an AssignCommandParser class to parse user input
* Add the command to the AddressBookParser
The current developer guide lacks details regarding our
new features.

Updating it now would alleviate the burden of having
to do them later.

Let's add a section about how our department attribute
and assign department feature is implemented.
Modify DeveloperGuide.md to include enhancements
Update DG with Implementation of Record Command

A New Record Command has been created and implemented. DG does
not contain information about the Record Command.

Updating the DG will ensure that DG is kept up to date and fellow
developers understand the implementation of the newly added Record command.

Let’s keep the DG up to date with our enhancements. Doing so allows
everyone to be aware of the changes made and how they were made.
Update Add command to check for existing Ic Number
Currently there is placeholder text for the sequence diagram
for assign department in the implementation section.

Let's replace it with the actual diagram.
Update DG with Assign Department Feature and Ui Component
Add `Record` JSON Storage Format to DG
wujy28 and others added 30 commits November 13, 2023 17:53
Fix minor formatting issues in UG and DG
Considered potential design considerations under the Edit section of DeveloperGuide.md
Add design considerations under Edit feature
Currently the no of  pull requests stated is incorrect

There is a need to add correct information into PPP

Update PPP regarding pull requests approved
* Update test cases for JsonAdaptedRecordTest and modify JsonAdaptedRecord.java.
* Add JavaDocs to some files.
Update personal contribution to Project Portfolio Page (PPP).
Update JsonAdaptedRecordTest
Updated PPP with the relevant details on contributions through the project
Fix minor line spacing issues in PPP
Fix formatting issues in PPP
Fix minor formatting issues in PPP to ensure consistency.
Fix formatting issues in PPP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants