Skip to content

Conversation

@kollil
Copy link
Collaborator

@kollil kollil commented May 14, 2025

New diet to bypass the enddate is added to the meds order list

E-X1380 - Diet Daily (Non-standard), 5LOP (TAD)

@kollil kollil requested a review from Ohsudev May 14, 2025 18:47
Ohsudev
Ohsudev previously approved these changes May 14, 2025
@kollil kollil requested review from Ohsudev and removed request for Ohsudev May 27, 2025 21:07
@Ohsudev
Copy link
Collaborator

Ohsudev commented May 27, 2025 via email

@kollil kollil requested a review from Ohsudev May 27, 2025 21:56
Ohsudev
Ohsudev previously approved these changes May 27, 2025
@kollil
Copy link
Collaborator Author

kollil commented May 29, 2025

Hi @labkey-martyp,
I am getting teamcity build error which is unrelated to my changes in the code. Could you please look into this so I can merge the code into the master.

Thanks
Lakshmi

@labkey-martyp
Copy link
Contributor

Hi @labkey-martyp, I am getting teamcity build error which is unrelated to my changes in the code. Could you please look into this so I can merge the code into the master.

Thanks Lakshmi

Hi @kollil, since you updated the treatment_orders end date trigger to be an error, the tests need to fill in end date when entering treatment orders. Looks like just one test is testing that area. I believe those rows in the test are auto populated from a template, so you'll have to make the test manually enter an end date for each row. Here is where you would do that. Try adding that and let me know if you run into issues.

@kollil
Copy link
Collaborator Author

kollil commented Jun 1, 2025

Hi @labkey-martyp,
I have added a line in the test code and now it's complaining another dataset. Please see the attached screenshot of the code.

Thanks
Screenshot 2025-06-01 110441
Lakshmi

@labkey-martyp
Copy link
Contributor

Hi @labkey-martyp, I have added a line in the test code and now it's complaining another dataset. Please see the attached screenshot of the code.

Thanks Screenshot 2025-06-01 110441 Lakshmi

@labkey-martyp
Copy link
Contributor

Hi @kollil, the line you added is only asserting that the end date exists, it is not adding it to the row. Since the test is loading from a template that does not have an end date the test will have to manually add the end date. You can see above in the same test how the drugGrid is getting the code manually added.

Note that it looks like there are three treatment orders being added so each row will need an end date.

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