Skip to main content

Create Encounter

Encounter or appointment is the instance of the care flow that is identified by its Service Type.

Create an Encounter

curl --location 'https://encounters.play.medeintegra.dev/encounters/create' \
--header 'Authorization: Bearer <<JWT_TOKEN>>' \
--header 'Content-Type: application/json' \
--data-raw '{
"patientInfo": {
"appUserId": "<<UNIQUE_ID_FOR_USER>>",
"appUserDisplayId": "<<UNIQUE_DISPLAY_ID_FOR_USER>>",
"firstName": "Rahul Vinod",
"lastName": "Upputuri",
"fullName": "Rahul Vinod Upputuri",
"dobInEpoch": 696105000,
"gender": "Male",
"email": "tacticurv@gmail.com",
"mobileNumber": "8884888978",
"dp": "https://blob.play.medeintegra.dev/blob/mede_blob_d8ab8897-c305-4928-aa3a-6287c49c35fb.jpeg"
},
"facilityInfo": {
"facilityId": "hng-dev-facility",
"facilityName": "HNG Dev"
},
"serviceType": "URLIFE_OHC"
}'

API Fields Description

Patient Info

FieldDescriptionTypeRequired
appUserIdUnique ID for the user as identified in your systemStringYes
appUserDisplayIdUnique Display ID for the user as identified in your system. This is used for display in UI and print in reports as unique ID for the patientStringYes
firstNameFirst Name of the patientStringYes
lastNameLast Name of the patientStringYes
fullNameFull Name of the patientStringYes
dobInEpochDate of birth in Epoch Format in secondsNumberYes
gender'Male' or 'Female' or 'Others'StringYes
emailEmailId of the patientStringYes
mobileNumberMobile Number of the patient in 10 digits Indian Phone NumberStringYes
dpURL with blob. Recommend to keep small sizeStringNo

Facility Info

FieldDescriptionTypeRequired
facilityIdUnique ID for the facility. Should be same as available in Admin.StringYes
facilityNameName of the facility. Should be same as available in Admin.StringYes

Service Type

FieldDescriptionTypeRequired
serviceTypeService Type of the encounter. Unique Identifier for the Care Flow.StringYes