Visits

Create a visit to the patient

POST /api/visit

This is an api to create a new patient visit

Headers

Name
Value

Content-Type

application/json

Authorization

<token>

Body

Name
Type
Description

patient_id

UUID

Patient Id

visitor_id

UUID

User Id that visit the patient

patient_mood

Number

Mood of the patient form 1...5

visitor_name

String

Visitor name

activities

String[]

List of activities that were performed

comment

String

Comment for activity

visit_date

Date

Date of the visit

Response

{ 
    message: "visit created", 
    data: {
        account_id: "63487e45-490a-45e6-96c6-57560b7a519e",
        patient_id: "63487e45-490a-4526-96c6-57560b7a519e",
        visitor_id: "63487e45-490a-4516-96c6-57560b7a519e",
        visitor_name: "Jan Tore",
        patient_mood: 5,
        activities: ["music", "walk"],
        comment: "Everything was great and he had a greate mood today",
        visit_date: "2024-05-12T18:30:00.000Z",
   }    
}

Last updated