curl --request GET \
--url https://api.splose.com/v1/patients/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.splose.com/v1/patients/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.splose.com/v1/patients/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.splose.com/v1/patients/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.splose.com/v1/patients/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.splose.com/v1/patients/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.splose.com/v1/patients/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"firstname": "Harry",
"lastname": "Potter",
"id": 1,
"deletedAt": "2023-07-30T09:00:00.000Z",
"middleName": "James",
"preferredName": "Harry",
"title": "Mr.",
"email": "harry@hogwarts.edu",
"sex": "Male",
"genderIdentity": "Man",
"pronouns": "They/them",
"alert": "He knows magic",
"invoiceRecipientId": 1,
"birthdate": "1996-07-30T00:00:00.000Z",
"timezone": "Australia/Adelaide",
"extraInfo": "Some extra info",
"extraBillingInfo": "Some extra billing info",
"addressL1": "123 King William Street",
"addressL2": "",
"addressL3": "",
"city": "Adelaide",
"state": "SA",
"postalCode": "5000",
"country": "Australia",
"phoneNumbers": [
{
"phoneNumber": "401234567",
"type": "Mobile",
"code": "+61"
}
],
"privacyPolicy": "Accepted",
"ndisNumber": "430123456",
"ndisInfo": {
"diagnosis": "Foot Injury",
"nomineeEmail": "nominee@email.com",
"fundManagement": "Plan-managed",
"nomineeLastName": "Clark",
"nomineeFirstName": "Chris",
"nomineeMobileCode": "+61",
"nomineeMobileNumber": "433555111",
"startDate": "2024-02-09T00:00:00.000Z",
"endDate": "2024-02-18T00:00:00.000Z"
},
"medicareNum": "4444444444",
"irn": "1",
"veteransFileNumber": "",
"emergencyContactNumber": "0412345678",
"emergencyContactName": "Quentin Neely",
"emergencyContactRelationship": "Brother",
"communicationPreference": "SMS",
"archived": false,
"patientTags": [
"Self-managed"
],
"customFields": [
{
"name": "<string>",
"value": "<string>"
}
],
"healthFund": {
"name": "AHM",
"membershipNumber": "12345678",
"patientNumber": "1",
"cardIssueNumber": "01"
},
"createdAt": "2023-07-30T09:00:00.000Z",
"updatedAt": "2023-07-30T09:00:00.000Z"
}Get a single patient
Get patient data by id
curl --request GET \
--url https://api.splose.com/v1/patients/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.splose.com/v1/patients/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.splose.com/v1/patients/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.splose.com/v1/patients/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.splose.com/v1/patients/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.splose.com/v1/patients/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.splose.com/v1/patients/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"firstname": "Harry",
"lastname": "Potter",
"id": 1,
"deletedAt": "2023-07-30T09:00:00.000Z",
"middleName": "James",
"preferredName": "Harry",
"title": "Mr.",
"email": "harry@hogwarts.edu",
"sex": "Male",
"genderIdentity": "Man",
"pronouns": "They/them",
"alert": "He knows magic",
"invoiceRecipientId": 1,
"birthdate": "1996-07-30T00:00:00.000Z",
"timezone": "Australia/Adelaide",
"extraInfo": "Some extra info",
"extraBillingInfo": "Some extra billing info",
"addressL1": "123 King William Street",
"addressL2": "",
"addressL3": "",
"city": "Adelaide",
"state": "SA",
"postalCode": "5000",
"country": "Australia",
"phoneNumbers": [
{
"phoneNumber": "401234567",
"type": "Mobile",
"code": "+61"
}
],
"privacyPolicy": "Accepted",
"ndisNumber": "430123456",
"ndisInfo": {
"diagnosis": "Foot Injury",
"nomineeEmail": "nominee@email.com",
"fundManagement": "Plan-managed",
"nomineeLastName": "Clark",
"nomineeFirstName": "Chris",
"nomineeMobileCode": "+61",
"nomineeMobileNumber": "433555111",
"startDate": "2024-02-09T00:00:00.000Z",
"endDate": "2024-02-18T00:00:00.000Z"
},
"medicareNum": "4444444444",
"irn": "1",
"veteransFileNumber": "",
"emergencyContactNumber": "0412345678",
"emergencyContactName": "Quentin Neely",
"emergencyContactRelationship": "Brother",
"communicationPreference": "SMS",
"archived": false,
"patientTags": [
"Self-managed"
],
"customFields": [
{
"name": "<string>",
"value": "<string>"
}
],
"healthFund": {
"name": "AHM",
"membershipNumber": "12345678",
"patientNumber": "1",
"cardIssueNumber": "01"
},
"createdAt": "2023-07-30T09:00:00.000Z",
"updatedAt": "2023-07-30T09:00:00.000Z"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
x > 01
Response
Object with patient data.
Patient first name
"Harry"
Patient last name
"Potter"
Patient Id
x > 01
Object archived date time
"2023-07-30T09:00:00.000Z"
Patient middle name
"James"
Patient preferred name
"Harry"
Patient title
"Mr."
Patient email
"harry@hogwarts.edu"
Patient sex
"Male"
Patient gender identity
"Man"
Patient pronouns
"They/them"
Patient alert messages
"He knows magic"
The invoice receipient (contact) id of this patient
x > 01
Patient birthdate in YYYY-MM-DD format
"1996-07-30T00:00:00.000Z"
Patient timezone
"Australia/Adelaide"
Patient extra info
"Some extra info"
Patient extra billing info
"Some extra billing info"
Patient address line 1
"123 King William Street"
Patient address line 2
""
Patient address line 3
""
Patient city
"Adelaide"
Patient state
"SA"
Patient post code
"5000"
Patient country
"Australia"
Show child attributes
Show child attributes
Patient privacy policy status
No response, Accepted, Rejected, "Accepted"
Patient NDIS number
"430123456"
Show child attributes
Show child attributes
Patient Medicare number
"4444444444"
Patient Medicare reference number
"1"
Patient veterans information
""
Patient emergency contact number
"0412345678"
Patient emergency contact name
"Quentin Neely"
Patient emergency contact relationship
"Brother"
Patient communication preference (defaults to organisation's communication preference if not set)
NONE, SMS, SMS_EMAIL, EMAIL "SMS"
Whether the patient has been archived
Patient tags
["Self-managed"]
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Object creation date time
"2023-07-30T09:00:00.000Z"
Object update date time
"2023-07-30T09:00:00.000Z"