Create sequence diagrams with simple online tool

Swimlanes.io is a free webapp for making sequence diagrams. You simply edit the text on the left and the diagram is updated in real time. You can download your sequence diagrams as images or distribute with a link.

title: Generic patient import + pathway start via Awell API (push) Order: Hospital, Awell alias Hospital: {fas-browser} Hospital alias Awell: {fas-server} Awell API note: This type of integration should be used if a new appointment / surgery has been planned for a patient. Full Awell API documentation can be found here: https://app.swaggerhub.com/apis-docs/awell/awell-api/1.2.4 Hospital -> Awell: Search patient based on hospital patient ID note: ``` GET /v1.2/patients?hospital_patient_id={hospitalPatientID} ``` Awell --> Hospital: Response from search patient endpoint note: If the **patient exists**, the entire patient information will be returned, including pathway instances that have been started for that patient. If the **patient does not exist**, the following response will be returned: ``` { "error": "Patient not found" } ``` if: If patient does not exist Hospital -> Awell: Create patient note: ``` POST /v1.2/patients ``` Awell --> Hospital: Response containing Awell patient record else: If patient exists Hospital -> Awell: Update patient note: ``` POST /v1.2/patients/[escape-left-curley-bracket]awellPatientId} ``` Remark: This step is recommended to make sure that Awell contains the latest information about patients, especially the patient email. Awell --> Hospital: Response containing Awell patient record end Hospital -> Awell: Start pathway and set the baseline information note: ``` POST /v1.2/patients/{awellPatientId}/pathway_instances ``` Remarks: - The pathway id will be provided by Awell. - The fields for baseline information have to be configured in the pathway autonumber