Skip to main content
POST
cURL

Overview

Creates a patient in the organization. Parchment searches the HI Service for the IHI. A supplied ihi_number is searched first. A repeat partner_patient_id is idempotent. No new patient is created and the existing patient is returned with 200. Requires the create:patient scope.

Request Example

Response Examples

Created (201)

Already Exists (200)

Conflicts Found (202)

Validation Error (422)

Conflict (409)

Response Fields

Status Codes

Validation

Notes

  • Use external_patient_id from the response as the stored ID; a prefixed value is not double-prefixed.
  • Send australian_street_address or australian_address; both are accepted.
  • A 201 can return an existing patient: same name, date of birth and sex is re-linked to your partner_patient_id.

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

Body

application/json

Patient data to add to Parchment

Patient information to be created

given_name
string
required

Patient's given name

family_name
string
required

Patient's family name

date_of_birth
string<date>
required

Patient's date of birth in YYYY-MM-DD format

sex
enum<string>
required

Patient's sex

Available options:
M,
F,
N,
I
partner_patient_id
string
required

Partner's unique identifier for the patient

partner_id
string
required

Your Parchment-assigned partner identifier (lowercase slug, e.g. 'tacklit'). Parchment registers this value during partner onboarding — requests with an unregistered value are rejected with a 422 validation error. Contact Parchment before go-live to have your identifier registered.

Example:

"demo"

dva_file_number
string

DVA file number

ihi_number
string

16-digit Individual Healthcare Identifier (IHI). If omitted, Parchment will attempt to fetch it from the HI Service.

medicare_card_number
string

Medicare card number

medicare_irn
string

Medicare IRN

email
string<email>

Patient's email address (optional)

phone
string

Patient's Australian mobile number (optional). Must be a valid Australian mobile (04xxxxxxxx or 05xxxxxxxx), digits only. International format with +61 or 61 prefix is also accepted. Landlines are rejected. A mobile number can be used for IHI lookup against the Healthcare Identifiers Service.

australian_street_address
object
australian_address
object

Alias of australian_street_address. Send one, not both.

medicare_valid_to
string<date>

Medicare card expiry date

concession_pension_number
string

Concession or pension number

entitlement_number
string

Entitlement number

dva_card_color
enum<string>

DVA card color

Available options:
gold,
white,
orange
racf_id
string

RACF identifier

ctg_eligible
boolean

Closing the Gap eligibility

indigenous_type
enum<string>

Patient's indigenous status

Available options:
aboriginal,
torres_strait_islander,
both,
neither,
not_stated

Response

Patient already exists. A repeat partner_patient_id returns the existing patient.

success
boolean
required

Always true

Example:

true

statusCode
enum<integer>
required

201 created, 200 already exists, 202 conflicts found.

Available options:
200,
201,
202
Example:

201

message
string
required

Outcome summary.

Example:

"Patient created successfully"

code
enum<string>
required

Operation code.

Available options:
SUCCESS,
PATIENT_CREATED_CONFLICTS_FOUND
Example:

"SUCCESS"

data
object
required

Patient creation response 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"