v1

latestOpenAPI 3.0.32026-07-26229361630.0 KB
Patient

Update EMR user profile

Updates an EMR user profile with validated and normalized data.

Authorization Rules:

  • Users can update their own profile.
  • Admins can update any profile within their workspace.

Name Handling:

  • If fln is provided, it will be split into fn, mn, ln.
  • If updating name, ensure either fn or fln is provided.
patch/profiles/v1/emr-user/{oid}

Path parameters

oidstring required

Headers

client-idstring required
Example:EC_1431

Request body

mobilestring

Mobile number in E.164 format

emailstring email
gen'M' | 'F' | 'O'

Gender

dobstring date
fnstring

First name

mnstring

Middle name

lnstring

Last name

flnstring

Full name

bg'A+' | 'A-' | 'B+' | 'B-' | 'AB+' | 'AB-' | 'O+' | 'O-'

Blood group

sstring

Salutation

extrasobject

Additional arbitrary data as JSON

Example request

{
  "mobile": "+919876543210",
  "email": "testuser@eka.care",
  "gen": "M",
  "dob": "2000-01-02",
  "fn": "eka",
  "mn": "kumar",
  "ln": "user",
  "fln": "eka user",
  "bg": "B+",
  "s": "Mr",
  "extras": {
    "preferred_language": "en",
    "city": "Bangalore"
  }
}

Response

Profile updated successfully

messagestring

Example response

{
  "message": "Profile updated successfully"
}