Table of Contents | ||||
---|---|---|---|---|
|
Intakes
POST /intakes
Status | ||||
---|---|---|---|---|
|
Create intake information.data object
Custom parameters
Apart from the parameters below, any amount of custom JSON field-value pairs may be sent. They will all be saved into the Intake object. Later they may be displayed to the provider (please contact VSee to configure the rendering format).
Parameters
Parameter | Type | Description |
---|---|---|
|
| (optional) The ID of the provider who is being visited |
|
| (optional) Reason for visit |
|
| (optional) Visit type: 1 - walkin; 2 - schedule |
|
| (optional) Patient’s code ID on behalf of whom the intake will be created |
|
| Room’s code |
|
| (optional) Multiple formats supported: |
|
| (optional) |
|
| (optional) e.g |
Sample Request
Code Block |
---|
curl -k -X POST -d "provider=541&reason_for_visit=Test&reset=true&type=1" https://api.vsee.mevseepreview.com/vc/next/api_v3/intakes.json { "data": { "id": "56e8c536-566c-44b6-bbca-66f0ac1f0144" } } |
...
Code Block |
---|
curl -k -X POST -d "provider=541&reason_for_visit=Test&reset=true&type=1" https://api.vsee.mevseepreview.com/vc/next/api_v3/intakes.json { "data": { "id": "56e8c536-566c-44b6-bbca-66f0ac1f0144", "custom_is_allergic": "Yes", "custom_symptoms": "Rash, Red Eyes", "custom_symptoms_duration": "2 weeks" } } |
POST /intakes/:id
Status | ||||
---|---|---|---|---|
|
Update a selected intake informationdata object
Parameters
Parameter | Type | Description |
---|---|---|
|
| (optional) The ID of the provider who is being visited |
|
| (optional) Reason for visit |
|
| (optional) Visit type: 1 - walkin; 2 - schedule |
|
| (optional) Patient’s code ID on behalf of whom the intake will be created |
|
| Room’s code |
|
| Multiple formats supported: |
|
|
|
|
|
|
|
| (optional) Required for payment related, the consultation objects can be found at |
Response
Code Block |
---|
curl -X POST -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" -H "X-AccountCode: vclinic" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "location=CA" -F "phone=7123456789" -F "reason_for_visit=Test intake functionalities 2" "https://api.vsee.mevseepreview.com/vc/next/api_v3/intakes/57a0705e-1c4c-4f24-b51d-3c71ac1f0144" { "data": { "id": "56e8c536-566c-44b6-bbca-66f0ac1f0144" } } |
...
GET /intakes/:id
...
Status | ||||
---|---|---|---|---|
|
Retrieve a selected intake data object
Parameters
None
Response
Code Block |
---|
curl -X GET \ -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \ -H "X-AccountCode: vclinic" \ "https://api.vsee.mevseepreview.com/vc/next/api_v3/intakes/57a0705e-1c4c-4f24-b51d-3c71ac1f0144" { "data": { "modified": 1471465080, "created": 1471465080, "type": "1", "reason_for_visit": "the reason", "attachments": [ { "_id": "57b4c65d-7ef8-461f-8951-43b1ac1f0144", "name": "575004c7-b350-421d-8542-4dcdac1f0144.png", "path": "files/2016/08/17/57b4c65d-7ef8-461f-8951-43b1ac1f0144.png", "size": 12859, "ext": "png", "type": 0, "creator_id": "575", "remark": null, "using": 1, "modified": { "sec": 1471465053, "usec": 966000 }, "created": { "sec": 1471465053, "usec": 967000 } } ], "id": "57b4c678-de20-4c1a-a52b-43e9ac1f0144" } } |
Walkin Visits
POST /visits/add_walkin
Status | ||||
---|---|---|---|---|
|
Create a walkin walk-in visit
Parameters
Parameter | Type | Description |
---|---|---|
|
| (optional) The ID of the provider who is being visited if patient is starting an appointment. Shouldn’t pass this for walkins. |
|
| The ID of the intake. |
|
| The ID of a scheduled appointment. This one is used in the case when the patient visits a scheduled appointment. |
|
| (optional) The ID of a scheduled appointment. This one is used in the case when the patient visits a scheduled appointment. |
|
| (optional) Patient’s code ID on behalf of whom the intake will be created |
|
| Current room’s code in which the visit will be created |
Response
Code Block |
---|
curl -k -X POST \ -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \ -H "X-AccountCode: vclinic" \ -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" \ -F "provider_id=826" \ -F "intake_id=57a0705e-1c4c-4f24-b51d-3c71ac1f0144" \ -F "room_code=ceproom1" \ "https://api.vsee.mevseepreview.com/vc/next/api_v3/visits/add_walkin" { "data": { "id": "1525", "member_id": "508", "provider_id": "509", "account_code": null, "code": "56e8c580f55c44a2868b66f0ac1f0144", "start": "1458095488", "end": "1458096388", "actual_start": null, "actual_end": null, "specialty_id": null, "state": null, "type": "1", "status": "10", "completed_by": null, "created": 1458095488, "modified": 1458095488, "room_id": null, "_id": "1525", "payment": { "duration": 15, "amount": "00.00", "description": "FruitStreet Config Level One-time charge" }, "intake": { "provider": "509", "reason_for_visit": "Test intake functionalities 1", "type": "1", "modified": 1458095488, "created": 1458095414, "visit_id": "1525", "id": "56e8c536-566c-44b6-bbca-66f0ac1f0144" }, "provider": { "id": "509", "first_name": "Ligeng", "last_name": "Doctor", "vseeid": "wellikodev+user509", "title": "" }, "member": { "id": "508", "first_name": "Ligeng", "last_name": "01", "vseeid": "wellikodev+user508", "dob": "2014-09-10", "gender": 1, "phone": "6506506500" }, } } |
Asynchronous Visits
POST /visits/
...
Close/Cancel a visit or an appointment
Parameters
...
Parameter
...
Type
...
Description
...
id
...
String
...
The ID of the visit/appointment
...
reason
...
String
...
"patient_end_call" - Patient click End Call button on VSee
...
"patient_exit_room" - Patient click Exit Waiting Room
...
"call_ended" - When call ended not by patient, could be due to network problem or provider ended the call
...
"patient_cancel_appointment" - Patient click cancel appointment button
...
add_econsult
Status | ||||
---|---|---|---|---|
|
Create an asynchronous e-consult visit. The econsult will be created without scheduling, the providers will see it on their dashboards and will need to accept it.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The ID of the intake |
|
| Room code (required) |
Response
Code Block |
---|
curl -k -Xlocation POST -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" -H "X-AccountCode: vclinic" -H "-request POST 'https://api.vseepreview.com/vc/next/api_v3/visits/add_econsult' \ --header 'X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb' \ --header 'X-AccountCode: vclinic' \ --header 'X-ApiKey: 44c4d9bec884a8ca356177bebd59551d' \ --header 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "id=14" "https://api.vsee.me/api_v3/visits/close"application/json' \ --data-raw '{ "intake_id": "6050d1a8-b120-45b4-a568-61a664457b11", "room_code": "vclinic_room_code" }' { "data": { "idincharge": "1525"false, } } |
POST /visits/add_econsult
Create an asynchronous e-consult visit. The econsult will be created without scheduling, the providers will see it on their dashboards and will need to accept it.
Parameters
...
Parameter
...
Type
...
Description
...
intake_id
...
String
...
The ID of the intake
...
room_code
...
String
...
Room code (required)
Response
Code Block |
---|
curl --location --request POST 'https://api.vsee.me/api_v3/visits/add_econsult' \ --header 'X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb' \ --header 'X-AccountCode: vclinic' \ --header 'X-ApiKey: 44c4d9bec884a8ca356177bebd59551d' \ --header 'Content-Type: application/json' \ --data-raw '{ "intake_id": "6050d1a8-b120-45b4-a568-61a664457b11", "room_code": "vclinic_room_code" }' { "data": { "incharge": false, "isEditExpired": false, "id": "14814100", ""isEditExpired": false, "id": "14814100", "member_id": 14396847, "provider_id": 0, "account_code": "vclinic", "code": "6050d2e590d847429d312c8664457b11", "start": 1615909605, "end": 1615910505, "actual_start": null, "actual_end": null, "specialty_id": null, "state": "--", "type": 3, "status": 20, "completed_by": null, "room_id": 10019500, "room_code": "vclinic_room_code", "member": { "id": "14396847", "code": "member_01", "type": "200", "subtype": "", "first_name": "Ligeng", "last_name": "Member 01", "full_name": "Ligeng Member 01", "active": true, "vseeid": "cmo+604ef759ccd04d859847431864457b13" }, "pending_actions": [], "invoice": { "user_id": 14396847, "status": 10, "currency": "USD", "livemode": false, "amount_due": 0, "visit_id": "14814100", "modified": 1615909605, "created": 1615909605, "id": "6050d2e5-f680-4695-b284-2c8664457b11" }, "creator": { "id": "14396847", "code": "member_01", "vseeid": "cmo+604ef759ccd04d859847431864457b13", "type": 200, "subtype": "", "first_name": "Ligeng", "last_name": "Member 01", "account_code": "vclinic" }, "invoice_id": "6050d2e5-f680-4695-b284-2c8664457b11", "intake_id": "6050d1a8-b120-45b4-a568-61a664457b11", "postvisit": { "member_id": "14396847", "class_id": null, "visit_id": "14814100", "modified": 1615909605, "created": 1615909605 }, "account": { "domain": null, "code": "vclinic", "name": "VClinic" }, "room": { "id": "10019500", "code": "vclinic_room_code", "name": "VClinic UAT Room" }, "intake": { "reason_for_visit": "This is to test the API", "question_1": "Answer 1", "question_2": "Answer 2", "location": "--", "modified": 1615909288, "created": 1615909288, "visit_id": "14814100", "invoice_id": "6050d2e5-f680-4695-b284-2c8664457b11", "id": "6050d1a8-b120-45b4-a568-61a664457b11" }, "subtype": 4, "expiry": 1615924905 } } |
Appointment API
GET /availability
Get provider's available slots
Status | ||||
---|---|---|---|---|
|
Get provider's available slots
Parameters
Parameter | Type | Location | Description |
---|---|---|---|
|
|
| (optional) Room code. If not given, will try to fall back to Intake.room |
|
|
| Search for available slots from this start time |
|
|
| Search for available slots up to this end time |
|
|
| Search for available slots during certain seconds |
|
|
| (optional) Pick only this provider’s slots |
|
|
| Intake ID. Should be passed when patient is choosing a slot for an appointment. It will use intake’s location, specialty, etc. |
|
|
| Consultation ID. This will help to determine slot duration |
|
|
| (beta) Header value is required if the application want to retrieve availablity without user token |
|
|
| (beta) Header value is required if the application want to retrieve availablity without user token |
Notes: If application want to retrieve providers availability slots for a room without user token, the following are required X-ApiKey
, X-ApiSecret
, room_code
, start
, end
, consultation_id
. location
will be required if you want to filter by state as well.
Notes: The time range parameters 'start', 'end' and 'duration' obey the following rules:
input | actual | |||||
---|---|---|---|---|---|---|
start | end | duration | start | end | duration | |
1 | not set | not set | not set | available | available+4d | 4d |
2 | set | not set | not set |
|
| 4d |
3 | set | set | not set | start | end | (ignored) |
4 | set | not set | set |
|
| duration |
5 | not set | set | not set | end-4d | end | 4d |
6 | not set | set | set | end-duration | end | duration |
7 | not set | not set | set | available | available+duration | duration |
8 | set | set | set | start | end | (ignored) |
(available: The start time of the 1st available slot)
...
Code Block |
---|
curl -k -X GET -H "X-ApiToken: 6366a7018a39536a1ef4b63626f8e734" https://api.vsee.mevseepreview.com/vc/next/api_v3/availability { "data": { "slots": [ { "slot_id": "5277", "slot_start": 1470186000, "slot_end": 1470186900, "slot_booked": 0, "slot_available": 1, "group_id": "57106583f46874e70afc93b4" }, ] } ] } curl -X GET \ 'https://api.vsee.mevseepreview.com/vc/next/api_v3/availability?consultation_id=593999b2-08e4-404c-82f8-772dc0a8016f&start=1497063600&end=1497065400&location=AL&room_code=234yn' \ -H 'x-accountcode: vclinic' \ -H 'x-apikey: vclinic_api_key' \ -H 'x-apisecret: vclinic_api_secret' \ { "data": { "slots": [ { "slot_id": "4", "slot_start": 1497063600, "slot_end": 1497065400, "slot_booked": 0, "slot_available": "1", "group_id": "59399694-9ec0-4108-927d-7776c0a8016f" } ] } } |
...
Code Block |
---|
{ "data": [ { "start": 1470186000, "end": 1470186900, "providers": ["123", "345"] }, { "start": 1470186000, "end": 1470186900, "providers": ["123", "345"] } ] ] } |
POST /visits
Status | ||||
---|---|---|---|---|
|
Create an appointment
Parameters
Parameter | Type | Description |
---|---|---|
|
| The ID of the visiting patient (optional - only use in paramedic workflow) |
|
| The timestamp of the beginning of the appointment (in UNIX timestamp format) |
|
| The timestamp of the ending of the appointment (in UNIX timestamp format) |
|
| Room code (required) |
|
| 2 - scheduling |
|
| The ID of the intake |
|
| (optional) The ID of the provider who is being visited |
Response
Code Block |
---|
curl -X POST \ -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \ -H "X-AccountCode: vclinic" \ -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" \ -F "member_id=575" \ -F "slot_start=1470669300" \ -F "slot_end=1470670200" \ -F "type=2" \ -F "intakeId=57a0705e-1c4c-4f24-b51d-3c71ac1f0144" \ "https://api.vsee.mevseepreview.com/vc/next/api_v3/appointments" { "data": { "member_id": 17778181, "provider_id": 12456470, "account_code": "vclinic", "code": "615f2e2eabc46ad94e9b6457b11", "start": 1631628616, "end": 1631628916, "actual_start": 1631628211, "actual_end": null, "specialty_id": null, "state": null, "type": 2, "status": 30, "completed_by": null, "room_id": 1002387, "room_code": "vclinicroom", "modified": 1633630312, "created": 1633627694, "provider": { "id": "12456470", "email": "anton+providersa@vseelab.com", "subtype": "482", "vseeid": "anton+providersa@vseelab.com", "photo": null, "full_name": "Anton Provider", "title": "", "suffix": "" }, "member": { "id": "17778181", "code": "anton+vclinic2@vseelab.com", "email": "anton+vclinic2@vseelab.com", "vseeid": "cmo+615f28cd70804d8994d62bd564457b11", "photo": null, "full_name": "Anton Test", "phone": "5551231122" }, "subType": 3, "more_provider_ids": null, "guest_emails": null, "guest_mobiles": null, "reminder_type": null, "reminder_time": null, "host_ids": [ "12456470" ], "hosts": [ { "username": "anton+providersa@vseelab.com", "email": "anton+providersa@vseelab.com", "phone": "", "timezone": "America/Los_Angeles", "vseeid": "anton+providersa@vseelab.com", "full_name": "Anton Provider", "title": "", "suffix": "", "id": "12456470", "photo_attachment_id": "", "role": "owner" } ], "creator": { "id": "15729940", "code": "60aed4242c90409099385cef64457b11", "vseeid": "d55d2f77ff3653891a587fdfa83207b4@vsee.com", "type": 160, "subtype": "", "first_name": null, "last_name": null, "account_code": "vclinic" }, "pending_actions": [], "is_test": false, "meeting": { "recording_auto_start": false, "phone_numbers": { "US": [ "+1.650.758.0255" ] }, "hosts": [ "anton+providersa@vseelab.com", "chau+provider@vseelab.com" ], "expiry": 1633643316, "conference_pin": 838759, "meeting_id": "1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi" }, "one_time_link_token": "l0vht6wkxj", "notify_list": [], "payment": { "duration": null, "amount": "25.00", "description": "Cloud Clinic Default One-time Charge Message", "id": "615cec5b-14c8-4493-b9ce-365764457b11" }, "intake_id": "615f2de7-8ab8-48d3-80d8-53f564457b11", "related_walkin_id": "18407370", "call_logs": { "total_start": 1633628208, "total_end": 1633628268, "total_duration": 60, "waiting_time": 0, "provider_id_1": "anton+providersa@vseelab.com", "call_start_1": 1633628208, "call_duration_1": 60, "wait_time_1": 0, "patients": [ "cmo+615f28cd70804d8994d62bd564457b11" ], "source": "v2", "source_ids": [ "1633628104000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi", "1633628745000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi" ] }, "incharge": false, "intake": { "provider_id": "12456470", "member_id": "17778181", "room_code": "vclinicroom", "location": "MI", "phone": "5551234415", "type": "2", "room": "vclinicroom", "modified": 1633627623, "created": 1633627623, "visit_id": "18407167", "attachments": "", "reason_for_visit": "", "consent": "true", "consultation": { "description": "test", "duration": 60, "charge": false, "group": false, "slots": 1, "amount": 0, "visible_to_patient": true, "id": "615cec5b-14c8-4493-b9ce-365764457b11", "currency": "USD" }, "id": "615f2de7-8ab8-48d3-80d8-53f564457b11" }, "related_walkin": { "start": 1633628101, "end": 1633631701, "status": 30, "id": "18407370" }, "postvisit": { "member_id": "17778181", "class_id": null, "visit_id": "18407167", "modified": 1633627695, "created": 1633627695, "id": "615f2e2f-c240-4088-a28b-594b64457b11" }, "isEditExpired": false, "room": { "id": "10023087", "code": "vclinicroom", "name": "VClinic UAT", "domain": "vclinic.vseepreview.com", "account_code": "vclinic", "slug": "UAT" }, "account": { "code": "vclinic", "name": "VClinic", "domain": "vclinic.vseepreview.com", "vsee_api": { "meeting": { "enabled": true, "guest_invite_enabled": true, "adhoc_group_call": { "disabled": true } } } }, "root_visit": { "id": "18407167", "group_chat_id": null, "participants": null }, "id": "18407167", "subtype": 3 }, "s": "ms" } |
...
POST /visits
...
Get the visits list of the patient. The frontend can check the data["start"] field. If the start field is greater than the current timestamp then the visit is a upcoming appointment, otherwise it’s a past session. Group appointments and one-to-one appointments are now differentiated by the field visit_group_id
which only exists in group appointments data.
For one-to-one appointments, consultation information can be retrieved from intake.consultation; for group appointments, consultation information has to be got from visit_group.consultation.
The following sample response offers 2 example for one-to-one appointment and one for group appointment.
Fields that can be returned for fields with format: "html"
: <u>, <b>, <i>, <strong>, <ul>, <ol>, <li>, <p>, <br>
Parameters
Response
...
/close
Status | ||||
---|---|---|---|---|
|
Close/Cancel a visit or an appointment
Parameters
Parameter | Type | Description |
---|---|---|
|
| The ID of the visit/appointment |
|
|
"patient_end_call" - Patient click End Call button on VSee
"patient_exit_room" - Patient click Exit Waiting Room
"call_ended" - When call ended not by patient, could be due to network problem or provider ended the call
"patient_cancel_appointment" - Patient click cancel appointment button
"max_waiting_time_reached" - Patient side max waiting time reached
Response
Code Block |
---|
curl -k -X POST -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" -H "X-AccountCode: vclinic" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "id=14" "https://api.vseepreview.com/vc/next/api_v3/visits/close"
{
"data": {
"id": "1525"
}
} |
POST /visits/delete
Status | ||||
---|---|---|---|---|
|
Force cancel a visit. You can use admin token to cancel any existing visits.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The ID of the visit/appointment |
Response
Code Block |
---|
curl --location 'https://api.vseepreview.com/vc/stable/api_v3/visits/delete' \
--header 'X-ApiToken: 614c588d4b03c60d9c6e480d14978164' \
--header 'X-AccountCode: vclinic' \
--form 'id="5010007042332"' |
GET /visits
Status | ||||
---|---|---|---|---|
|
Get the visits list of the patient. The frontend can check the data["start"] field. If the start field is greater than the current timestamp then the visit is a upcoming appointment, otherwise it’s a past session. Group appointments and one-to-one appointments are now differentiated by the field visit_group_id
which only exists in group appointments data.
For one-to-one appointments, consultation information can be retrieved from intake.consultation; for group appointments, consultation information has to be got from visit_group.consultation.
The following sample response offers 2 example for one-to-one appointment and one for group appointment.
Fields that can be returned for fields with format: "html"
: <u>, <b>, <i>, <strong>, <ul>, <ol>, <li>, <p>, <br>
Parameters
Response
Code Block |
---|
curl -k -X GET \ -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \ -H "X-AccountCode: vclinic" \ "https://api.vseepreview.com/vc/next/api_v3/visits.json" { "data": [ { "id": "7727", "member_id": "575", "provider_id": "1096", "account_code": "vclinic", "code": "57a07c26947c4544aeef4e5cac1f0144", "start": "1470669300", "end": "1470670200", "actual_start": null, "actual_end": null, "specialty_id": null, "state": null, "type": "2", "subtype": "3", "status": "20", "completed_by": null, "created": 1470135334, "modified": 1470135334, "room_id": null, "_id": "7727", "payment": { "duration": null, "amount": "0.00", "description": "CMO Config Level One-time charge" }, "invoice_id": "57a071d0-c0dc-45a6-9bc3-40fdac1f0144", "provider": { "id": "1096", "code": "563b40f082584368bee10335ac1f0144", "first_name": "Anton", "last_name": "Provider III", "username": "anton+provider3@vsee.com", "vseeid": "conciergedev+user1096", "email": "anton+provider3@vsee.com", "photo": "https://api.vseepreview.com/vc/next/api_v3/files/index/app_user/photo/1096/?auth_code=8350f279578774a6e31787fc5a5a05d2948770e0", "active": true, "title": "", "suffix": "", "tos": true, "phone": "(334) 229-4100", "subtype": "482" }, "member": { "id": "7727575", "member_idcode": "575553ea41edfd041bd94475276ac1f0144", "providerfirst_idname": "1096Keven2", "accountlast_codename": "vclinicTeodoro2", "codeusername": "57a07c26947c4544aeef4e5cac1f0144anton+1@vsee.com", "startvseeid": "1470669300conciergedev+user575", "enddob": "14706702001983-02-02", "actual_startemail": null"anton+1@vsee.com", "actual_endgender": null2, "specialty_idactive": nulltrue, "statetos": nulltrue, "typephone": "27123456111", "subtype": "3", "status": "20",} }, "completed_bypostvisit": { null, "visit_id": "created9709": 1470135334, "modified": 14701353341473370072, "room_idcreated": null1473368099, "member_id": "77271290", "paymentmodifiedBy": {"Alexey Provider 2", "durationdraft": nullfalse, "amountattachments": "0.00", [], "descriptionphysical_exam": "CMO Config Level One-time charge" }<p>dfvevofivuoiwue<\/p><p>iou<\/p><p>oi<\/p>", "invoiceassessment_idplan": "57a071d0-c0dc-45a6-9bc3-40fdac1f0144<p>oiuoiwfuweoifu<\/p><p>efweiofweiofuweoif<\/p><p><br><\/p>", "providerreason_for_visit": {"Allergic reaction", "id"reason_for_visit_other": "1096", "codeschema": "563b40f082584368bee10335ac1f0144", "first_namediagnosis": "Anton"Allergic reaction,initial encounter (T78.40XA),Asthma (J45.909)", "lastpatient_nameinstructions": "Provider III<p>Plan \/ Discharge...<br><\/p>", "usernamedisposition": "anton+provider3@vsee.comReferred to ED", "vseeiddea": "conciergedev+user1096", "emailnpi": "anton+provider3@vsee.com", } "photo": "https://api.vsee.me/api_v3/files/index/app_user/photo/1096/?auth_code=8350f279578774a6e31787fc5a5a05d2948770e0", "active": true, "title": "", "suffix": "", "tos": true, "phone": "(334) 229-4100", "subtype": "482" },} |
GET /visits/:id
Status | ||||
---|---|---|---|---|
|
Get detailed information for a certain appointment.
Group appointments and one-to-one appointments are now differentiated by the field "visitgroupid" which only exists in group appointments data.
For one-to-one appointments, consultation information can be retrieved from intake.consultation; for group appointments, consultation information has to be got from visit_group.consultation.
Parameters
None
Response
Code Block |
---|
curl -k -X GET \ -H "X-ApiToken: 5a2eb231d652b49f4d7fc0fbb78328fb" \ -H "X-AccountCode: vclinic" \ "https://api.vseepreview.com/vc/next/api_v3/visits/7727.json" { "data": { "member_id": {17778181, "provider_id": "575"12456470, "account_code": "553ea41edfd041bd94475276ac1f0144vclinic", "first_namecode": "Keven2615f2e2eabc46ad94e9b6457b11", "last_namestart": "Teodoro2"1631628616, "usernameend": "anton+1@vsee.com"1631628916, "vseeidactual_start": "conciergedev+user575"1631628211, "dobactual_end": "1983-02-02"null, "emailspecialty_id": "anton+1@vsee.com"null, "genderstate": 2null, "activetype": true2, "tosstatus": true30, "phonecompleted_by": "7123456111"null, "subtyperoom_id": ""1002387, } "room_code": "vclinicroom", }, "postvisitmodified": 1633630312, { "visit_idcreated": "9709"1633627694, "modifiedprovider": 1473370072, { "created": 1473368099, "member_id": "129012456470", "modifiedBy "email": "Alexey Provider 2","anton+providersa@vseelab.com", "draftsubtype": false"482", "attachments": [], "physical_examvseeid": "<p>dfvevofivuoiwue<\/p><p>iou<\/p><p>oi<\/p>anton+providersa@vseelab.com", "assessment_plan "photo": "<p>oiuoiwfuweoifu<\/p><p>efweiofweiofuweoif<\/p><p><br><\/p>", null, "reason_for_visit": "Allergic reaction", "reason_for_visit_otherfull_name": "Anton Provider", "schema": "", "diagnosistitle": "Allergic reaction,initial encounter (T78.40XA),Asthma (J45.909)",", "patient_instructionssuffix": "<p>Plan \/ Discharge...<br><\/p>"," "disposition": "Referred to ED", }, "deamember": "", { "npiid": "17778181", } } |
GET /visits/:id
Get detailed information for a certain appointment.
Group appointments and one-to-one appointments are now differentiated by the field "visitgroupid" which only exists in group appointments data.
For one-to-one appointments, consultation information can be retrieved from intake.consultation; for group appointments, consultation information has to be got from visit_group.consultation.
Parameters
None
Response
Code Block |
---|
curl -k -X GET \ -H "X-ApiTokencode": 5a2eb231d652b49f4d7fc0fbb78328fb" \"anton+vclinic2@vseelab.com", -H "X-AccountCode: vclinic" \ "https://api.vsee.me/api_v3/visits/7727.json" {email": "anton+vclinic2@vseelab.com", "datavseeid": {"cmo+615f28cd70804d8994d62bd564457b11", "member_idphoto": 17778181null, "providerfull_idname": "Anton 12456470Test", "account_codephone": "vclinic"5551231122" }, "codesubType": "615f2e2eabc46ad94e9b6457b11"3, "more_provider_ids": null, "startguest_emails": 1631628616null, "endguest_mobiles": 1631628916null, "actualreminder_starttype": 1631628211null, "actualreminder_endtime": null, "specialtyhost_idids": null, [ "state": null12456470" ], "typehosts": 2,[ "status": 30, { "completed_by": null, "room_idusername": 1002387"anton+providersa@vseelab.com", "room_code "email": "vclinicroomanton+providersa@vseelab.com", "modifiedphone": 1633630312"", "created": 1633627694, "timezone": "provider": {America/Los_Angeles", "idvseeid": "12456470anton+providersa@vseelab.com", "email "full_name": "anton+providersa@vseelab.com",Anton Provider", "subtypetitle": "482", "vseeidsuffix": "anton+providersa@vseelab.com", "photoid": null"12456470", "full_name "photo_attachment_id": "Anton Provider", "titlerole": "owner", "suffix": ""} }], "membercreator": { "id": "1777818115729940", "code": "anton+vclinic2@vseelab.com60aed4242c90409099385cef64457b11", "emailvseeid": "anton+vclinic2@vseelabd55d2f77ff3653891a587fdfa83207b4@vsee.com", "vseeid"type": 160, "subtype": "cmo+615f28cd70804d8994d62bd564457b11", "photofirst_name": null, "fulllast_name": "Anton Test"null, "phoneaccount_code": "5551231122vclinic" }, "subTypepending_actions": 3[], "more_provider_ids": null,is_test": false, "meeting": { "guestrecording_auto_emailsstart": nullfalse, "guestphone_mobilesnumbers": null, { "reminder_typeUS": null,[ "reminder_time": null, "host_ids": [+1.650.758.0255" "12456470" ] ], }, "hosts": [ "hosts": [ { "username": "anton+providersa@vseelab.com", "email": "anton+providersa@vseelabchau+provider@vseelab.com", ], "phoneexpiry": ""1633643316, "timezone"conference_pin": "America/Los_Angeles"838759, "vseeid"meeting_id": "anton+providersa@vseelab.com",1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi" }, "full_nameone_time_link_token": "Anton Providerl0vht6wkxj", "notify_list": [], "titlepayment": "", { "suffixduration": ""null, "idamount": "1245647025.00", "photo_attachment_iddescription": "",Cloud Clinic Default One-time Charge Message", "roleid": "owner"615cec5b-14c8-4493-b9ce-365764457b11" }, }"intake_id": "615f2de7-8ab8-48d3-80d8-53f564457b11", ]"related_walkin_id": "18407370", "creatorcall_logs": { "idtotal_start": "15729940"1633628208, "codetotal_end": "60aed4242c90409099385cef64457b11"1633628268, "vseeidtotal_duration": "d55d2f77ff3653891a587fdfa83207b4@vsee.com"60, "typewaiting_time": 1600, "subtypeprovider_id_1": "anton+providersa@vseelab.com", "firstcall_start_name1": null1633628208, "lastcall_duration_name1": null60, "accountwait_time_code1": "vclinic"0, }, "patients": [ "pending_actions": [], "is_test": false,cmo+615f28cd70804d8994d62bd564457b11" "meeting": { ], "recording_auto_startsource": false"v2", "phonesource_numbersids": {[ "US": [1633628104000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi", "+1.650.758.0255" "1633628745000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi" ] }, "hostsincharge": [ false, "anton+providersa@vseelab.com", "intake": { "chau+provider@vseelab.com""provider_id": "12456470", ] "member_id": "17778181", "expiryroom_code": 1633643316"vclinicroom", "conference_pinlocation": 838759"MI", "meeting_idphone": "1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi" 5551234415", }, "one_time_link_token"type": "l0vht6wkxj2", "notify_list": [], "payment"room": {"vclinicroom", "durationmodified": null1633627623, "amount": "25.00"created": 1633627623, "descriptionvisit_id": "Cloud Clinic Default One-time Charge Message18407167", "idattachments": "615cec5b-14c8-4493-b9ce-365764457b11" ", }, "intakereason_for_idvisit": "615f2de7-8ab8-48d3-80d8-53f564457b11", "related_walkin_idconsent": "18407370true", "call_logs "consultation": { "total_start "description": 1633628208"test", "total_end "duration": 163362826860, "total_durationcharge": 60false, "waiting_time "group": 0false, "provider_id_1slots": "anton+providersa@vseelab.com"1, "call_start_1": 1633628208, "amount": 0, "callvisible_durationto_1patient": 60true, "wait_time_1 "id": 0,"615cec5b-14c8-4493-b9ce-365764457b11", "patientscurrency": ["USD" }, "cmo+615f28cd70804d8994d62bd564457b11" "medical_profile": { ], "source_id": "v2553ea41ef468747652d11034", "sourceuser_idsid": ["575", "1633628104000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi",family_conditions": { "1633628745000_1633627695040_2cc263f4-3d07-49fa-97b1-b2955ff40dfa__jitsi" data": [ ] { }, "incharge": false, "intakecondition": { "Diabetes", "provider_id": "12456470", "member_idrelations": "17778181",[ "room_code": "vclinicroom", "location":Paternal grandparents"MI", "phone": "5551234415", ] "type": "2", "room": "vclinicroom" }, "modified": 1633627623, { "created": 1633627623, "visit_idcondition": "18407167Ulcer disease", "attachments "relations": "",[ "reason_for_visit": "", "Mother" "consent": "true", "consultation": {] "description": "test", } "duration": 60], "chargemodified": false1467623311, "groupmodifiedBy": false, "Keven Teodoro" "slots": 1}, "amountconditions": 0,{ "visible_to_patientdata": true, [ { "id": "615cec5b-14c8-4493-b9ce-365764457b11", "currencycondition": "USDKidney disease" }, }, "medical_profile": { { "_id": "553ea41ef468747652d11034", "user_idcondition": "575", "family_conditions": {Kidney stones" "data": [ }, { "condition": "DiabetesStroke", } "relations": [ ], "Paternal grandparents" "modified": 1472059195, ] "modifiedBy": "Keven2 Teodoro2" }, "social_history": { "conditiondata": "Ulcer disease"[], "relationsmodified": [1472588123, "modifiedBy": "Keven2 Teodoro2", "Mother" "modified_by": { ] "id": "575", } "type": 200, ], "modifiedsubtype": 1467623311"", "modifiedByfirst_name": "Keven TeodoroKeven2", }, "last_name": "Teodoro2", "conditions": { "photo": "" "data": [ } { }, "conditionhealth_habits": "Kidney{ disease" "data": [], }, "modified": 1470128370, { "modifiedBy": "Keven2 Teodoro2" "condition": "Kidney stones" }, }, "surgeries": { { "data": [ "condition": "Stroke" { } "procedure": "C-section" ], }, "modified": 1472059195, { "modifiedBy": "Keven2 Teodoro2" "procedure": "Heart valve replaced" }, "social_history": { } "data": [], "modified": 14725881231471769856, "modifiedBy": "Keven2 Teodoro2", "modified_by": { }, "idmedications": "575",{ "typedata": 200[], "subtypemodified": ""1471769958, "first_namemodifiedBy": "Keven2 Teodoro2", "lastmodified_nameby": "Teodoro2",{ "photoid": "575" , } "type": "200", }, "subtype": "health_habits":, { "datafirst_name": []"Keven2", "modifiedlast_name": 1470128370,"Teodoro2" "modifiedBy": "Keven2 Teodoro2"} }, "surgeriesallergies": { "data": [], { "modified": 1471986123, "proceduremodifiedBy": "C-section"Keven2 Teodoro2", "modified_by": { }, { "id": "575", "proceduretype": "Heart200", valve replaced" "subtype": "", } ]"first_name": "Keven2", "modifiedlast_name": 1471769856,"Teodoro2" "modifiedBy": "Keven2 Teodoro2"} }, "medicationsmodified": { "datasec": []1472059195, "modifiedusec": 1471769958,806000 "modifiedBy": "Keven2 Teodoro2"}, "modified_bycreated": { "idsec": "575"1430168606, "typeusec": "200", 596000 } "subtype": "", }, "first_nameid": "Keven2",615f2de7-8ab8-48d3-80d8-53f564457b11" }, "lastrelated_namewalkin": "Teodoro2"{ "start": 1633628101, } }, "end": 1633631701, "allergiesstatus": {30, "data": [],"id": "18407370" }, "modifiedpostvisit": 1471986123,{ "modifiedBy"member_id": "Keven2 Teodoro217778181", "modified_by": { class_id": null, "visit_id": "57518407167", "modified": 1633627695, "type": "200", "created": 1633627695, "subtypeid": "",615f2e2f-c240-4088-a28b-594b64457b11" }, "first_namepostvisit": "Keven2", { "lastvisit_nameid": "Teodoro29709", "modified": 1473370072, } "created": 1473368099, }, "member_id": "1290", "modifiedmodifiedBy": {"Second Provider 2", "secdraft": 1472059195false, "usec"attachments": 806000[], }, "physical_exam": "<p>dfvevofivuoiwue<\/p><p>iou<\/p><p>oi<\/p>", "assessment_plan": "created": {<p>oiuoiwfuweoifu<\/p><p>efweiofweiofuweoif<\/p><p><br><\/p>", "reason_for_visit": "Allergic reaction", "sec": 1430168606, "reason_for_visit_other": "", "usecschema": 596000"", "diagnosis": "Allergic reaction,initial } encounter (T78.40XA),Asthma (J45.909)", }, "patient_instructions": "<p>Plan \/ Discharge...<br><\/p>", "iddisposition": "615f2de7-8ab8-48d3-80d8-53f564457b11" Referred to ED", }, "related_walkin"dea": {"", "startnpi": 1633628101"", "endattachments": [ 1633631701, { "status": 30, "_id": "18407370"57e4f034-3a0c-4b1d-bc15-221bac1f0144", }, "name": "postvisit": {"Water_nature_canyon_cliffs_horseshoe_bend_rivers_2560x1600.jpg", "member_idpath": "17778181files/2016/09/23/57e4f034-3a0c-4b1d-bc15-221bac1f0144.jpg", "class_idsize": null1692776, "visit_idext": "18407167jpg", "modifiedtype": 16336276950, "createdcreator_id": 1633627695"1096", "idremark": "615f2e2f-c240-4088-a28b-594b64457b11"null, }, "postvisitusing": {1, "visit_id": "9709", "modified": 1473370072, { "createdsec": 14733680991474621492, "member_idusec": "1290",858000 "modifiedBy": "Second Provider 2"}, "draftcreated": false,{ "attachments": [], "sec": 1474621492, "physical_exam": "<p>dfvevofivuoiwue<\/p><p>iou<\/p><p>oi<\/p>", "assessment_planusec": "<p>oiuoiwfuweoifu<\/p><p>efweiofweiofuweoif<\/p><p><br><\/p>",858000 "reason_for_visit": "Allergic reaction",} "reason_for_visit_other": "",} ] "schema": "", }, "diagnosis": "Allergic reaction,initial encounter (T78.40XA),Asthma (J45.909)", "isEditExpired": false, "patient_instructionsroom": "<p>Plan{ \/ Discharge...<br><\/p>", "dispositionid": "10023087"Referred, to ED", "deacode": "vclinicroom", "npiname": "VClinic UAT", "attachmentsdomain": ["vclinic.vseepreview.com", { "account_code": "vclinic", "_idslug": "57e4f034-3a0c-4b1d-bc15-221bac1f0144",UAT" }, "nameaccount": "Water_nature_canyon_cliffs_horseshoe_bend_rivers_2560x1600.jpg",{ "pathcode": "files/2016/09/23/57e4f034-3a0c-4b1d-bc15-221bac1f0144.jpgvclinic", "sizename": 1692776"VClinic", "extdomain": "jpgvclinic.vseepreview.com", "typevsee_api": { 0, "creator_idmeeting": "1096", { "remarkenabled": nulltrue, "using "guest_invite_enabled": 1true, "modified": { "adhoc_group_call": { "sec": 1474621492, "disabled": true "usec": 858000 }, } "created": { } "sec": 1474621492,} }, "usecprescriptionsBeforeVisit": 858000[ { } "ID": "97316", } ]"DrugID": "69117", }, "NDC": "00122206038", "isEditExpired": false, "roomRxNormCode": {"260654", "idDrug": "10023087One Tab Daily with Iron oral tablet", "codeSupply": "vclinicroom"false, "nameCompound": "VClinic UAT"false, "domainDirections": "vclinic.vseepreview.com1 Milliliter(s) 1 to 2 times a day", "account_codeQty": "vclinic"60, "slugQtyQual": "UATTablet", }, "accountRefills": {0, "codeDaysSupply": "vclinic"0, "nameSubstitutionAllowedFlag": "VClinic"1, "domainSchedule": "vclinic.vseepreview.com"0, "vsee_apiPharmacyNote": { "", "meetingInternalNote": {"", "PrescriberId": "826", "enabled": true, "LocationId": "DEMO-ACCOUNT", "guest_invite_enabledPrescriptionDate": true"2016-01-30T00:00:00", "SignDate": "0001-01-01T00:00:00", "adhoc_group_call": { "Status": "Current", "PharmacyNcpdpId": "0001060", "disabled": true "RouteDetail": "e-Sent:Jan 30 2016 3:41PM Test 000 Pharmacy 10.6MU<br />Sent", } "PartnerMedID": "", } "PrescriberName": "Dr. John Will, M.D." } }, "prescriptionsBeforeVisitprescriptions": [], "root_visit": { "IDid": "9731618407167", "DrugIDgroup_chat_id": "69117"null, "participants": null "NDC": "00122206038", }, "RxNormCodeid": "26065418407167", "Drugsubtype": "One3 Tab Daily with Iron oral tablet", "Supply": false, "Compound": false, "Directions": "1 Milliliter(s) 1 to 2 times a day", "Qty": 60, "QtyQual": "Tablet", "Refills": 0, "DaysSupply": 0,} } |
POST /visits/:id?version=2
Status | ||||
---|---|---|---|---|
|
Update an appointment
Parameters
Parameter | Type | Description |
---|---|---|
|
| (optional) The timestamp of the beginning of the appointment (in UNIX timestamp format) |
|
| (optional) The timestamp of the ending of the appointment (in UNIX timestamp format) |
|
| (optional) The ID of the provider who is being visited |
Add provider into a TDB visit
Please supply new provider_id
Response
Code Block |
---|
curl -X POST \ -H "X-ApiToken: 5a2eb231d652b49f88880fbb78328fb" \ -H "X-AccountCode: vclinic" \ -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" \ -F "provider_id=566" \ "https://api.vseepreview.com/vc/next/api_v3/visits/666?version=2" { "data": { "SubstitutionAllowedFlag"member_id": 1567, "Scheduleprovider_id": 0566, "PharmacyNote"account_code": "vclinic", "InternalNotecode": "615f2e2eabc46ad94e9b6457b11", "PrescriberIdstart": "826", 1631628616, "LocationIdend": "DEMO-ACCOUNT"1631628916, ... "PrescriptionDate": "2016-01-30T00:00:00", "SignDate": "0001-01-01T00:00:00", "Status": "Current", } } |
Remove provider from an appointment
Do the same as above but this time set provider_id
to 0
GET /visits/current
Status | ||||
---|---|---|---|---|
|
Get current visit in progress
Parameters
None
Response
Code Block |
---|
curl -X GET \ -H "X-ApiToken: 6366a7018a39536a1ef4b63626f8e734" \ https://api.vseepreview.com/vc/next/api_v3/visits/current.json { "data": { "PharmacyNcpdpIdid": "00010601504", "RouteDetail"member_id": "e-Sent:Jan 30 2016 3:41PM Test 000 Pharmacy 10.6MU<br />Sent508", "PartnerMedID"provider_id": "509", "PrescriberName"account_code": "Dr. John Will, M.D."fruitstreet", }"code": "56e7b1d2b90c4d68953e3d02ac1f0144", "prescriptionsstart": []"1459973100", "root_visitend": {"1459974000", "id"actual_start": "18407167", null, "groupactual_chat_idend": null, "1458024955", "participantsspecialty_id": null, }"state": null, "idtype": "184071672", "subtypestatus": 3 "40", } } |
GET /visits/current
Get current visit in progress
Parameters
None
Response
Code Block |
---|
curl -X GET \ -H "X-ApiToken: 6366a7018a39536a1ef4b63626f8e734" \ https://api.vsee.me/api_v3/visits/current.json { "completed_by": "508", "datacreated": {1458024914, "idmodified": "1504"1458024914, "memberroom_id": "508"null, "provider_id": "5091504", "account_codepayment": "fruitstreet", { "codeduration": "56e7b1d2b90c4d68953e3d02ac1f0144",15, "startamount": "145997310000.00", "end "description": "1459974000",FruitStreet Config Level One-time charge" "actual_start": null}, "actual_endintake": "1458024955",{ "specialty_idprovider": null"509", "state": null, "type"reason_for_visit": "2Test intake functionalities", "status "reset": "40true", "completed_by "type": "5081", "created": 1458024914, "modified": 1458024914, "room_id "created": null,1458024708, "visit_id": "1504", "payment": { "id": "56e7b104-ded0-4096-979b-395bac1f0144" "duration": 15, }, "amountprovider": "00.00",{ "descriptionid": "FruitStreet Config Level One-time charge"509", }, "intake"first_name": {"Ligeng", "providerlast_name": "509Doctor", "reason_for_visitusername": "Test intake functionalitiesligeng+provider1@vsee.com", "resetvseeid": "truewellikodev+user509", "typeemail": "1ligeng+provider1@vsee.com", "modifiedactive": 1458024914true, "createdtitle": 1458024708"", "visit_idtos": "1504"false, "idphone": "56e7b104-ded0-4096-979b-395bac1f01446506506500" }, "providermember": { "id": "509508", "first_name": "Ligeng", "last_name": "Doctor01", "username": "ligeng+provider1@vsee1@vsee.com", "vseeid": "wellikodev+user509user508", "dob": "2014-09-10", "email": "ligeng+provider1@vsee1@vsee.com", "activegender": true1, "titleactive": ""true, "tos": falsetrue, "phone": "6506506500" }, } } |
Visit export
GET /visits/:id/exports/visit_summary
Status | ||||
---|---|---|---|---|
|
Retrieve PDF visit summary
Code Block | ||
---|---|---|
| ||
curl "member": { --location 'https://api-vclinic.vseepreview.com/vc/stable/api_v3/visits/1000000/exports/visit_summary' \ --header 'X-ApiToken: ******' \ --header 'X-AccountCode: vclinic' OK 200 { "iddata": "508",{ "first_name"url": "Ligeng",https://clinic.vsee.me/visits/exports/d6880792f1fa01****" } "last_name": "01", "username": "ligeng+1@vsee.com", "vseeid": "wellikodev+user508", "dob": "2014-09-10", "email": "ligeng+1@vsee.com", "gender": 1, "active": true, "tos": true, "phone": "6506506500" } } } } |
Understanding Visit object ID
There is a unique Visit.id field for every Visit object.
However some visits may be related to each other, following these rules:
Field | Sample | Meaning |
---|---|---|
|
| Unique visit ID |
|
| When an appointment is started, a new visit object of type |
|
| When an appointment is started, a new visit object of type |
|
| |
|
| When a user is invited into an appointment call, the inviting appointment ID is stored here. |
|
|