I suppose we intend to allow this, and we should be preserving the ordering. As long as there are just the two transitions on the same day, and one of them continues, I'm not sure how we distinguish the proper order. (E.g. if on one day you go to state A, then B, then C, and continue in C, but A and B are both stored with start-date and end-date = midnight, we can't know whether A or B came first.)
-Darius On Mon, Aug 8, 2011 at 12:03 AM, Ben Wolfe <[email protected]> wrote: > Yes, same day transitions should be allowed. Can you post your patch to a > ticket and then link us to it here? > > Ben > > > On Sat, Aug 6, 2011 at 11:58 AM, Christian Neumann <[email protected]>wrote: > >> Hi, >> >> Is it supported to have multiple program workflow state with the same >> start date? >> >> Sometimes it happens that we have 2 state transitions at the same day >> (e.g. initially enrolled and referred to another facility at the same day). >> OpenMRS allows this and properly sets the end date for the first state to >> the same day in the DB and leaves the second state open without an end date. >> >> However the order of the states displayed in the UI and for voiding the >> last one isn't consistent. Sometimes the history of the states is ok; >> sometimes the already closed state is shown last. And it's not only a >> display problem as voiding the last state (aka the active one) sometimes >> voids the first already closed state, and sometimes the one which is still >> open. The two screenshots for the same patient should make it clear. >> >> For some time now I have a workable patch for the underlying >> PatientProgram class, but I wanted to check and see what others think about >> same day transitions. >> >> Cheers, >> christian >> >> ------------------------------ >> Click here to >> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list > > > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from > OpenMRS Developers' mailing list > _________________________________________ To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to [email protected] with "SIGNOFF openmrs-devel-l" in the body (not the subject) of your e-mail. [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]
<<right.jpg>>
<<wrong.jpg>>

