Skip to main content
PUT
cURL

Integration Notes

  1. Partial Updates: Only include fields you want to update. Omitted fields will not be modified.
  2. Demographic Updates: Changes to family_name, given_name, date_of_birth, or sex will trigger demographic verification.
  3. Patient Existence: The API will return an error if the patient doesn’t exist in the organization.
  4. Request ID: Always log the requestId for debugging support requests.
  5. DVA Validation: If providing dva_card_color, you must also provide dva_file_number.

Request

Update Basic Patient Information

Update Demographics

Update Medicare Details

Update DVA Details

Update Address

Full Update Example

Request Fields

Demographic Fields

Basic Fields

Medicare Fields

DVA Fields

Address Fields

Australian Address Object:

Enum Values

Sex:
  • M - Male
  • F - Female
  • I - Indeterminate
  • N - Not stated
Indigenous Type:
  • Aboriginal
  • Torres Strait Islander
  • Both
  • Neither
  • Prefer not to say
DVA Card Color:
  • W - White
  • O - Orange
  • G - Gold
Australian States:
  • 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:

Status Codes

Field Validation Requirements

Phone Number Format

The phone 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)
Invalid Examples:
  • 0123456789 - Starts with 1 (invalid area code)
  • 04123456789 - Too many digits
  • 04-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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-organization-secret
string
required

Organization secret for authentication - provided by Parchment

Path Parameters

organization_id
string<uuid>
required

Organization ID

user_id
string<uuid>
required

User ID

patient_id
string<uuid>
required

Patient ID

Body

application/json

Patient data to update

Patient update request - all fields are optional

family_name
string

Patient's family/last name

given_name
string

Patient's given/first name

date_of_birth
string<date>

Date of birth in YYYY-MM-DD format

Example:

"1985-03-15"

sex
enum<string>

Sex: M (Male), F (Female), I (Indeterminate), N (Not stated)

Available options:
M,
F,
I,
N
title
string

Patient's title (Mr, Mrs, Ms, etc.)

phone
string

Australian phone number

Example:

"0412345678"

email
string<email>

Email address

ctg_eligible
boolean

Closing the Gap eligibility

indigenous_type
enum<string>

Indigenous status

Available options:
Aboriginal,
Torres Strait Islander,
Both,
Neither,
Prefer not to say
concession_pension_number
string

Concession/pension card number

entitlement_number
string

Entitlement number

ihi_number
string | null

16-digit Individual Healthcare Identifier (IHI). Must be exactly 16 numeric digits.

Pattern: ^\d{16}$
racf_id
string

Residential Aged Care Facility ID

is_inpatient
boolean

Whether patient is an inpatient

medicare_card_number
string | null

Medicare card number

medicare_irn
string | null

Medicare IRN (numeric only)

medicare_valid_to
string<date> | null

Medicare expiry date in YYYY-MM-DD format

dva_file_number
string | null

DVA file number

dva_card_color
enum<string> | null

DVA card color: W (White), O (Orange), G (Gold)

Available options:
W,
O,
G
australian_address
object

Australian address

Response

Patient updated successfully

success
boolean
required

Indicates if the request was successful

Example:

true

statusCode
integer
required

HTTP status code

Example:

200

message
string
required

Human-readable success message

Example:

"Patient updated successfully"

data
object
required

Updated patient data

timestamp
string<date-time>
required

ISO 8601 timestamp of the response

Example:

"2024-01-15T10:30:00.000Z"

requestId
string
required

Unique identifier for request tracing

Example:

"req_1705312200000_abc123"

code
string

Machine-readable operation code

Example:

"SUCCESS"

pagination
object

Pagination information for list operations