Create patient
Creates a new patient in Parchment
Response Examples
Success Response (201 Created)
Conflict Detected (202 Accepted)
Validation Error (422 Unprocessable Entity)
Partner Patient ID Conflict (409 Conflict)
Unauthorized (401)
Insufficient Permissions (403 Forbidden)
Response Fields
Success Response Data
| Field | Type | Description |
|---|---|---|
external_patient_id | string | Your system’s patient identifier (as provided in request) |
parchment_patient_id | string | Parchment’s unique patient identifier |
url | string | Direct link to patient in Parchment portal |
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 |
|---|---|---|
201 | Created | Patient successfully created |
202 | Accepted | Patient creation accepted (demographic conflicts found) |
400 | Bad Request | Invalid request format or missing required fields |
401 | Unauthorized | Authentication required or token invalid |
403 | Forbidden | Insufficient permissions (missing CREATE_PATIENT scope) |
409 | Conflict | Partner patient ID already exists |
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- Melbourne landline (domestic format)0212345678- Sydney landline (domestic format)0712345678- Brisbane landline (domestic format)0812345678- Adelaide landline (domestic format)61412345678- International mobile (without + prefix)+61312345678- International landline (with + prefix)
0123456789- Starts with 1 (invalid area code)04123456789- Too many digits041234567- Too few digits04-1234-5678- Contains formatting characters+1234567890- Non-Australian number
IHI Number
Theihi_number field is an optional 16-digit Individual Healthcare Identifier.
- If provided, it must be exactly 16 numeric digits (e.g.,
"8003608500035100"). - If omitted, Parchment will attempt to fetch the IHI automatically from the HI Service using the patient’s demographics and Medicare/DVA details.
String Length Requirements
- Family Name: 1-255 characters, cannot be empty
- Given Name: 1-255 characters, cannot be empty
- Partner Patient ID: 1-150 characters, must be unique
- Street Number: 1-12 characters
- Street Name: 1-100 characters
- Suburb: 1-100 characters
- Postcode: Exactly 4 digits (e.g., “3000”, “2000”)
Integration Notes
- Store Request ID: Always log the
requestIdfor debugging support requests - Handle 202 Status: A 202 response indicates demographic conflicts were found but a matching patient was returned
- Validation Errors: Use the
error.validationarray to display field-specific error messages - Partner Patient ID: Must be unique across your organization; use the format returned in
external_patient_id - URL Access: The returned
urlprovides direct access to the patient in the Parchment portal - Phone Validation: Phone numbers must follow Australian format - see validation requirements above
- IHI Lookup: Omit
ihi_numberto have Parchment resolve it via the HI Service; provide it explicitly only when you already hold a verified 16-digit IHI
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
Body
Patient data to add to Parchment
Patient information to be created
Patient's given name
Patient's family name
Patient's date of birth in YYYY-MM-DD format
Patient's sex
M, F, N, I Partner's unique identifier for the patient
DVA file number
16-digit Individual Healthcare Identifier (IHI). If omitted, Parchment will attempt to fetch it from the HI Service.
Medicare card number
Medicare IRN
Patient's email address (optional)
Patient's Australian phone number (optional). Must be a valid Australian number with digits only. Supports mobile (04xxxxxxxx) and landline (0[2378]xxxxxxxx) formats. International format with +61 or 61 prefix is also accepted.
Medicare card expiry date
Concession or pension number
Entitlement number
DVA card color
gold, white, orange RACF identifier
Closing the Gap eligibility
Patient's indigenous status
aboriginal, torres_strait_islander, both, neither, not_stated Partner's unique identifier for the organization
Response
Patient created successfully
Indicates if the request was successful
true
HTTP status code
201
Human-readable success message
"Patient created successfully"
Patient creation response 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

