Update patient
Updates an existing patient in Parchment
Integration Notes
- Partial Updates: Only include fields you want to update. Omitted fields will not be modified.
- Demographic Updates: Changes to
family_name,given_name,date_of_birth, orsexwill trigger demographic verification. - Patient Existence: The API will return an error if the patient doesn’t exist in the organization.
- Request ID: Always log the
requestIdfor debugging support requests. - DVA Validation: If providing
dva_card_color, you must also providedva_file_number.
Request
Update Basic Patient Information
Update Demographics
Update Medicare Details
Update DVA Details
Update Address
Full Update Example
Request Fields
Demographic Fields
| Field | Type | Required | Description |
|---|---|---|---|
family_name | string | No | Patient’s family/last name |
given_name | string | No | Patient’s given/first name |
date_of_birth | string | No | Date of birth in YYYY-MM-DD format |
sex | string | No | Sex (M/F/I/N) |
Basic Fields
| Field | Type | Required | Description |
|---|---|---|---|
title | string | No | Patient’s title (Mr, Mrs, Ms, etc.) |
phone | string | No | Australian phone number |
email | string | No | Email address |
ctg_eligible | boolean | No | Closing the Gap eligibility |
indigenous_type | string | No | Indigenous status |
concession_pension_number | string | No | Concession/pension card number |
entitlement_number | string | No | Entitlement number |
ihi_number | string | No | 16-digit Individual Healthcare Identifier |
racf_id | string | No | Residential Aged Care Facility ID |
is_inpatient | boolean | No | Whether patient is an inpatient |
Medicare Fields
| Field | Type | Required | Description |
|---|---|---|---|
medicare_card_number | string | No | Medicare card number (can be null) |
medicare_irn | string | No | Medicare IRN (numeric only, can be null) |
medicare_valid_to | string | No | Medicare expiry in YYYY-MM-DD (can be null) |
DVA Fields
| Field | Type | Required | Description |
|---|---|---|---|
dva_file_number | string | When dva_card_color provided | DVA file number (can be null) |
dva_card_color | string | No | DVA card color: W/O/G (can be null) |
Address Fields
| Field | Type | Required | Description |
|---|---|---|---|
australian_address | object | No | Australian address object |
| Field | Type | Required | Description |
|---|---|---|---|
street_number | string | Yes | Street number (max 12 chars) |
street_name | string | Yes | Street name (max 100 chars) |
suburb | string | Yes | Suburb name (max 100 chars) |
state | string | Yes | Australian state code |
postcode | string | Yes | 4-digit Australian postcode |
Enum Values
Sex:M- MaleF- FemaleI- IndeterminateN- Not stated
AboriginalTorres Strait IslanderBothNeitherPrefer not to say
W- WhiteO- OrangeG- Gold
VIC,NSW,QLD,WA,SA,TAS,ACT,NT
Response
Success Response (200 OK)
Validation Error (422 Unprocessable Entity)
Unauthorized (401)
Insufficient Permissions (403 Forbidden)
Internal Server Error (500)
Response Fields
Success Response Data
The response returns the updated patient object with all current field values.Common Response Fields
All responses include these standard fields:| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the request was successful |
statusCode | number | HTTP status code |
timestamp | string | ISO 8601 timestamp of the response |
requestId | string | Unique identifier for debugging |
Status Codes
| Code | Status | Description |
|---|---|---|
200 | OK | Patient successfully updated |
400 | Bad Request | Invalid request format or missing required fields |
401 | Unauthorized | Authentication required or token invalid |
403 | Forbidden | Insufficient permissions (missing update:patient scope) |
422 | Unprocessable Entity | Request validation failed |
500 | Internal Server Error | Unexpected server error |
Field Validation Requirements
Phone Number Format
Thephone field accepts Australian phone numbers in the following formats:
Valid Examples:
0412345678- Mobile number (domestic format)0312345678- Landline (domestic format)61412345678- International mobile (without + prefix)+61312345678- International landline (with + prefix)
0123456789- Starts with 1 (invalid area code)04123456789- Too many digits04-1234-5678- Contains formatting characters
String Length Requirements
- Street Number: 1-12 characters
- Street Name: 1-100 characters
- Suburb: 1-100 characters
- Postcode: Exactly 4 digits (e.g., “3000”, “2000”)
Medicare IRN
- Must contain only numeric digits
- Leading/trailing whitespace is automatically trimmed
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Organization secret for authentication - provided by Parchment
Path Parameters
Organization ID
User ID
Patient ID
Body
Patient data to update
Patient update request - all fields are optional
Patient's family/last name
Patient's given/first name
Date of birth in YYYY-MM-DD format
"1985-03-15"
Sex: M (Male), F (Female), I (Indeterminate), N (Not stated)
M, F, I, N Patient's title (Mr, Mrs, Ms, etc.)
Australian phone number
"0412345678"
Email address
Closing the Gap eligibility
Indigenous status
Aboriginal, Torres Strait Islander, Both, Neither, Prefer not to say Concession/pension card number
Entitlement number
16-digit Individual Healthcare Identifier (IHI). Must be exactly 16 numeric digits.
^\d{16}$Residential Aged Care Facility ID
Whether patient is an inpatient
Medicare card number
Medicare IRN (numeric only)
Medicare expiry date in YYYY-MM-DD format
DVA file number
DVA card color: W (White), O (Orange), G (Gold)
W, O, G Australian address
Response
Patient updated successfully
Indicates if the request was successful
true
HTTP status code
200
Human-readable success message
"Patient updated successfully"
Updated patient data
ISO 8601 timestamp of the response
"2024-01-15T10:30:00.000Z"
Unique identifier for request tracing
"req_1705312200000_abc123"
Pagination information for list operations

