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

feat OH2-285: exams crud #601

Merged
merged 14 commits into from
Jul 24, 2024
Merged

Conversation

gasp
Copy link
Contributor

@gasp gasp commented Jun 6, 2024

See OH2-285.

Admin/Exams CRUD

exams

@mwithi mwithi changed the title feat(oh-282): exams crud feat OH2-282: exams crud Jun 6, 2024
@mwithi mwithi changed the title feat OH2-282: exams crud feat OH2-285: exams crud Jun 6, 2024
@gasp gasp marked this pull request as ready for review June 7, 2024 08:10
@gasp gasp marked this pull request as draft June 7, 2024 08:10
@gasp gasp marked this pull request as ready for review July 10, 2024 08:07
Copy link
Contributor

@SteveGT96 SteveGT96 left a comment

Choose a reason for hiding this comment

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

Thanks @gasp for the efforts.

I've noticed that the filter on the exam type field is not working, and the procedure field is not validated correctly. I can input 500 as value(I think procedures for the moment are 1, 2, 3. @mwithi could you confirm that ?).

@mwithi
Copy link
Member

mwithi commented Jul 11, 2024

Thanks @gasp for the efforts.

I've noticed that the filter on the exam type field is not working, and the procedure field is not validated correctly. I can input 500 as value(I think procedures for the moment are 1, 2, 3. @mwithi could you confirm that ?).

I confirm

@gasp gasp force-pushed the feature/oh2-285-exams-crud branch from da80bae to 747a16e Compare July 12, 2024 12:37
@gasp gasp requested a review from SteveGT96 July 12, 2024 12:54
@gasp
Copy link
Contributor Author

gasp commented Jul 12, 2024

Thanks for the feedback and the testing, I fixed those issues!

@SilverD3
Copy link
Contributor

SilverD3 commented Jul 15, 2024

Wrong "save button"'s label
Screenshot 2024-07-15 at 08-50-19 Open Hospital

It should be "Save exam", I think.

Also procedure field should be same length as code field for suitable design

@gasp
Copy link
Contributor Author

gasp commented Jul 15, 2024

Wrong "save button"'s label
Screenshot 2024-07-15 at 08-50-19 Open Hospital

It should be "Save exam", I think.

Also procedure field should be same length as code field for suitable design

Ha ha, I copypasted 😅
Thanks for the feedback!

@gasp
Copy link
Contributor Author

gasp commented Jul 15, 2024

Fixed, thanks @SilverD3

Screenshot 2024-07-15 at 15 23 35

@mwithi
Copy link
Member

mwithi commented Jul 16, 2024

Procedure 1, 2 or 3 imply that, aside the default value, one should also define other sets of data:

  • Procedure 1: a list of available "string" results
  • Procedure 2: a list of all "boolean" results
  • Proceudre 3: exact value (it will be typed in by the laboratorist)

For this reason I would change Procedure field to a selector in first sight.
Please have a look at how the feature is working in the GUI.

image

Procedure 1:

image

Procedure 2:

image

Procedure 3 (no predefined results):

image

@mwithi
Copy link
Member

mwithi commented Jul 16, 2024

Also, I get this error on saving with real backend:

image

@gasp
Copy link
Contributor Author

gasp commented Jul 16, 2024

Also, I get this error on saving with real backend:

My bad, backend expects an examtype, not a type. It's fixed now!

Screenshot 2024-07-16 at 14 23 33

What does the "lock" property stand for?

@mwithi
Copy link
Member

mwithi commented Jul 16, 2024

What does the "lock" property stand for?

is for record versioning, you should read from the DB and send back: if it is changed the update will be refused for concurring access

@gasp gasp force-pushed the feature/oh2-285-exams-crud branch from b3f1288 to 5bceabd Compare July 17, 2024 12:53
Copy link
Contributor

@SteveGT96 SteveGT96 left a comment

Choose a reason for hiding this comment

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

Hi @gasp. Please, fix the pipeline and then we could move on.

@gasp
Copy link
Contributor Author

gasp commented Jul 24, 2024

Hi @gasp. Please, fix the pipeline and then we could move on.

should I fix #601 (comment) in a separate pull request then ?

@SteveGT96
Copy link
Contributor

Hi @gasp. Please, fix the pipeline and then we could move on.

should I fix #601 (comment) in a separate pull request then ?

Sorry, I did not see it early. You could fix it here before we move on.

@gasp
Copy link
Contributor Author

gasp commented Jul 24, 2024

Screenshot from 2024-07-24 19-45-59

Changed procedure to be a select

@gasp
Copy link
Contributor Author

gasp commented Jul 24, 2024

@mwithi @SteveGT96 , As I am coding the changes, I realize that we can't edit examRows without having an exam, so I would not recommend having both in the same form (such as in the GUI view).

Thus, that handling the examRows is not a trivial change and involves design decisions. I would recommend reviewing it separately. Can we merge this PR for clarity?

@mwithi
Copy link
Member

mwithi commented Jul 24, 2024

@mwithi @SteveGT96 , As I am coding the changes, I realize that we can't edit examRows without having an exam, so I would not recommend having both in the same form (such as in the GUI view).

Thus, that handling the examRows is not a trivial change and involves design decisions. I would recommend reviewing it separately. Can we merge this PR for clarity?

I think we should have an ExamDTO including its ExamRowDTOs and to send it as is to API for persistance. @SilverD3 don't you mind to create an issue for this?

@gasp let's merge this one and then we'll see how to move on.

@mwithi mwithi closed this Jul 24, 2024
@mwithi mwithi reopened this Jul 24, 2024
Copy link
Member

@mwithi mwithi left a comment

Choose a reason for hiding this comment

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

Approve temporary work in order to better design the model

@mwithi mwithi merged commit 22b33da into informatici:develop Jul 24, 2024
6 checks passed
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.

4 participants