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

Update EditCommand.java, EditCommandParser.java, and ParserUtil.java #103

Merged

Conversation

longnguyentan
Copy link

Update EditCommand.java, EditCommandParser.java, and ParserUtil.java

Edit EditCommand.java, EditCommandParser.java, and ParserUtil.java so that we can edit the patient information and its record.

longnguyentan and others added 2 commits October 17, 2023 00:01
Update project from the team repo
Edit EditCommand.java, EditCommandParser.java, and ParserUtil.java so that we can edit the patient information and its record.
@longnguyentan longnguyentan added this to the v1.2b milestone Oct 16, 2023
Copy link

@AaronJT1 AaronJT1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, the changes looks good to me!!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that you have implemented Riya's task for this week. Would be good to discuss with her about this!!

Comment on lines +71 to +93
if (argMultimap.getValue(PREFIX_GENDER).isPresent()) {
editPatientDescriptor.setGender(ParserUtil.parseGender(argMultimap.getValue(PREFIX_GENDER).get()));
}
if (argMultimap.getValue(PREFIX_BIRTHDAY).isPresent()) {
editPatientDescriptor.setBirthday(ParserUtil.parseBirthday(argMultimap.getValue(PREFIX_BIRTHDAY).get()));
}
if (argMultimap.getValue(PREFIX_IC_NUMBER).isPresent()) {
editPatientDescriptor.setIcNumber(ParserUtil.parseIcNumber(argMultimap.getValue(PREFIX_IC_NUMBER).get()));
}
if (argMultimap.getValue(PREFIX_DEPARTMENT).isPresent()) {
editPatientDescriptor.setDepartment(ParserUtil.parseAssignedDepartment(
argMultimap.getValue(PREFIX_DEPARTMENT).get()));
}
if (argMultimap.getValue(PREFIX_INITIAL_OBSERVATION).isPresent()) {
editPatientDescriptor.setInitialObservation(argMultimap.getValue(PREFIX_INITIAL_OBSERVATION).get());
}
if (argMultimap.getValue(PREFIX_DIAGNOSIS).isPresent()) {
editPatientDescriptor.setDiagnosis(argMultimap.getValue(PREFIX_DIAGNOSIS).get());
}
if (argMultimap.getValue(PREFIX_TREATMENT_PLAN).isPresent()) {
editPatientDescriptor.setTreatmentPlan(argMultimap.getValue(PREFIX_TREATMENT_PLAN).get());
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that you have implemented the same checks as previous attributes. Good job!

@AaronJT1 AaronJT1 merged commit 839b570 into AY2324S1-CS2103T-T14-2:master Oct 17, 2023
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants