FHIR Chat · state machine for Task · patient empowerment

Stream: patient empowerment

Topic: state machine for Task


view this post on Zulip Virginia Lorenzi (Dec 10 2020 at 20:46):

1) looks like I have to put a Task through the Draft state before it goes to the Requested state - is that by any chance an error? I think we should be able to go right to Requested.
2) would there be any purpose for Failed or Ready in the request scenarios?
3) @Michele Mottini I think you suggested we add transitions something like this: https://www.google.com/search?q=state+machine&rlz=1C1GCEB_enUS821US821&sxsrf=ALeKk03qcEP4ERLj5lcva80pR2Sj7K0vMg:1607632157178&tbm=isch&source=iu&ictx=1&fir=7s6FJrXJpbV6lM%252CDDUX-n_F7-aK7M%252C%252Fm%252F02ykc&vet=1&usg=AI4_-kQVZWaQBw_N7NLN3U5dSOP3TsMGJg&sa=X&ved=2ahUKEwjXt6G9oMTtAhUDZd8KHZkcBLEQ_B16BAghEAE&safe=active&ssui=on#imgrc=9t-5bavqwzAmaM
4) We decided not Received and Draft do not apply
5) I see there is a state called Entered-In-Error but its not on the state machine diagram.
6) Did not plan to use Entered-In-Error, just canceled.
@Vassil Peytchev @Lloyd McKenzie

view this post on Zulip Vassil Peytchev (Dec 10 2020 at 20:50):

1) You can create the Task in Requested State.

view this post on Zulip Michele Mottini (Dec 10 2020 at 20:55):

Not me...

view this post on Zulip Virginia Lorenzi (Dec 10 2020 at 21:07):

@Mikael Rinnetmäki I meant :) oops

view this post on Zulip Lloyd McKenzie (Dec 10 2020 at 23:06):

I'm not sure excluding 'Draft' is wise. If you want to store the Task before it's ready to be processed, 'Draft' is the appropriate state. 'entered-in-error' can be reached from any state, however we should probably add it to the diagram - can you submit a change request @Virginia Lorenzi. Probably ok for us to not demand support for it in our IG, but probably don't want to disallow it.
I don't think we need 'ready'. Failed might be possible - custodian agreed to change the record and then discovered there was an issue that prevented them from doing so.

view this post on Zulip Virginia Lorenzi (Dec 10 2020 at 23:59):

Do you think there should be a way to go from Start directly to Requested? At this point I don't think we are leaving out states. We could instead show them used.

view this post on Zulip Virginia Lorenzi (Dec 11 2020 at 00:03):

i thought the way a start machine worked is you have o follow a valid path on the machine. The black dot goes to draft and then has lines to ready, received and canceled.

view this post on Zulip Lloyd McKenzie (Dec 11 2020 at 00:13):

Absolutely.

view this post on Zulip Lloyd McKenzie (Dec 11 2020 at 00:14):

You can jump to any state from start, actually. Feel free to submit a change request for us to make that clearer too... :)


Last updated: Apr 12 2022 at 19:14 UTC