Consultation without linked patient

 

sequenceDiagram
    participant Vendor
    participant Empego API
    participant Empego APP

    Note over Vendor,Empego API: Include "Api-Key" header
    Vendor->>Empego API: 1. Create/Update Patient resource

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

    Vendor->>Empego API: 3. Request iframe url with patientKey provided in the patient response
    Empego API->>Vendor: 4. Return iframe url
    Vendor->>Empego APP: 5. Open iframe url
  1. Create a Task (Consultation) using this operation - > Create task
  2. Success : A Task response is return with accessKey set in the identifier field. Failure: An error code is set accordingly.
  3. Request an iframe url using the accessKey previously provided -> Answer a consultation.
  4. Use the iframe url to answer the consultation in Empego App.
  5. For every state transitions on an Empego Resource, an event is emitted. See Event Delivery Service for further information. (Not displayed in the above diagram)