Start a consultation without an existing patient

 

sequenceDiagram
    actor Vendor
    participant Empego API
    participant Empego APP (Patient view)
    actor Patient

   Vendor->>Empego API: 1. Create a Consultation (Task) resource

    alt Valid Request
        Empego API-->>Vendor: 2. Return Task Response
    else
        Empego API-->>Vendor: 2. Return error code
    end

    Vendor->>Empego API: 3. Request iframe url with accessKey provided in the Task response
    Empego API-->>Vendor: 4. Return iframe url
    Vendor ->> Patient: 5. Provide iframe url
    Patient->>Empego APP (Patient view): 6. Open iframe url and complete Consultation
    Empego APP (Patient view)-->>Patient: Emit consultation update event
    
    
  1. Create a Task (Consultation)
    • Success : A Task response is returned with accessKey set in the identifier field.
    • Failure: An error code is set accordingly.
  2. Request an iframe url using the accessKey previously provided -> Answer a consultation.
  3. Use the iframe url to answer the consultation in Empego App. (Patient flow)
  4. Upon completion of the consultation a message is fired in the browser through the Post message API. See message details here : Message Event
  5. With the id provided in the browser Message Event or the consultationKey of the Consultation Event from the server an employee can view the consultation details.