Raw schema
{
"type": "object",
"properties": {
"firstname": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "First name."
},
"lastname": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Last name."
},
"middleName": {
"type": "string",
"maxLength": 100
},
"preferredName": {
"type": "string",
"maxLength": 100
},
"title": {
"description": "e.g. Mr., Ms., Dr.",
"type": "string",
"maxLength": 30
},
"email": {
"type": "string",
"maxLength": 320,
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"sex": {
"type": "string",
"maxLength": 50
},
"genderIdentity": {
"type": "string",
"maxLength": 100
},
"pronouns": {
"type": "string",
"maxLength": 50
},
"birthdate": {
"description": "Birth date, yyyy-mm-dd.",
"type": "string"
},
"timezone": {
"description": "IANA timezone, e.g. Australia/Adelaide.",
"type": "string",
"maxLength": 64
},
"phoneNumbers": {
"maxItems": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Mobile",
"Home",
"Work",
"Fax",
"Other"
]
},
"code": {
"description": "Country code, e.g. +61.",
"type": "string",
"maxLength": 8
},
"phoneNumber": {
"type": "string",
"minLength": 3,
"maxLength": 32,
"description": "Number without the country code."
}
},
"required": [
"phoneNumber"
],
"additionalProperties": false
}
},
"addressL1": {
"type": "string",
"maxLength": 200
},
"addressL2": {
"type": "string",
"maxLength": 200
},
"city": {
"type": "string",
"maxLength": 100
},
"state": {
"type": "string",
"maxLength": 50
},
"postalCode": {
"type": "string",
"maxLength": 20
},
"country": {
"type": "string",
"maxLength": 100
},
"ndisNumber": {
"description": "NDIS participant number.",
"type": "string",
"maxLength": 20
},
"medicareNum": {
"type": "string",
"maxLength": 20
},
"irn": {
"description": "Medicare reference number.",
"type": "string",
"maxLength": 5
},
"emergencyContactName": {
"type": "string",
"maxLength": 200
},
"emergencyContactNumber": {
"type": "string",
"maxLength": 32
},
"emergencyContactRelationship": {
"type": "string",
"maxLength": 100
},
"alert": {
"description": "Alert message shown on the patient record.",
"type": "string",
"maxLength": 5000
},
"extraInfo": {
"type": "string",
"maxLength": 5000
},
"invoiceRecipientId": {
"description": "Contact id that receives the invoices.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"communicationPreference": {
"description": "Defaults to the organisation's preference.",
"type": "string",
"enum": [
"NONE",
"SMS",
"SMS_EMAIL",
"EMAIL"
]
}
},
"required": [
"firstname",
"lastname"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}