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

DDP-6484 test boston manual orders #215

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

zyme
Copy link
Collaborator

@zyme zyme commented Jun 28, 2021

DDP-6484 provides a one-off java CLI for placing CareEvolve orders for kits that arrive without UPS data. See DDP-6484 for more details.

To test this on dev, I used the following set of args:
P02133 TBOS-100006T XWPE86O8WIYS2XWO228J "01/01/1970 00:00"

As for the "test" class, it was a temporary measure for placing orders. The new CLI is much better, so I've removed the "test".

@zyme zyme requested review from yufengwng and pegahtah June 28, 2021 13:16

@Ignore
@Test
public void testOrderForParticipant() throws Exception {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The only thing going on here was placing an order, so in the spirit of not doing stuff like this in a "test", it's gone!

Copy link

@yufengwng yufengwng left a comment

Choose a reason for hiding this comment

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

Nice CLI! I like that we take in a config file and it reuses a lot of the existing Covid19OrderRegistrar functionality (from what I can tell) for placing an order. Just a few suggestions below.

private static final String USAGE = "args in order are hruid, kitLabel, externalOrderNumber, and collectionTime\n" +
"for example java -Dconfig.file=... RegisterBirchOrderCLI P1234 TBOS-123 12345678910111213 06/30/2020 15:34\n" +
"Make sure you are on a broad network\n";
public static final String DATE_FORMAT = "MM/dd/yyyy HH:mm";
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@yufengwng your suggestion worked once I updated this from hh to HH (I've been putting in hours as 0-23).

Choose a reason for hiding this comment

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

Noted! And it's helpful that the "usage" string shows an example of 15:34 hinting at 24-hr format!

@zyme zyme requested review from yufengwng and pegahtah July 1, 2021 21:14
@zyme
Copy link
Collaborator Author

zyme commented Jul 1, 2021

Ready for re-review

Copy link

@yufengwng yufengwng left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants