Fetch a PDF report #
You can also request a report of the individual’s immunisation details as a PDF. Note the header should have an accept PDF
POST
- Fetch immunisation details as a PDF
#
The same rules apply for identifying an individual:
- Medicare Card and IRN is sufficient if you have it
- First name, last name, date of birth and postcode will also work.
The response to this request is a PDF which you will need to save and present to the end user.
{{base_url}}/{{version}}/air/individual/pdf?location={{location_id}}
Headers
Header | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer {{oauth_token}} |
Accept | application/pdf |
Params
Param | value |
---|---|
location | {{location_id}} |
Body
{
"_TestCase": "Fetch immunisation details as a PDF",
"provider": {
"information": "2433411Y"
},
"patient": {
"dateOfBirth": "2012-04-17",
"name": {
"family": "Edwards"
},
"medicare": {
"number": "2953701051",
"ref": 2
}
}
}
Example Request:
curl --location -g 'https://sandbox.claiming.com.au/v2/air/individual/pdf?auth_group={{auth_group}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ' \
--header 'Accept: application/pdf' \
--data '{
"_TestCase": "Fetch immunisation details as a PDF",
"provider": {
"information": "2433411Y"
},
"patient": {
"dateOfBirth": "2012-04-17",
"name": {
"family": "Edwards"
},
"medicare": {
"number": "2953701051",
"ref": 2
}
}
}'
Example Response:
Body:
PDF doc
Headers:
Header | Value |
---|---|
Server | nginx/1.19.3 |
Date | Tue, 08 Jun 2021 04:49:28 GMT |
Content-Type | application/pdf |
Content-Length | 142540 |
Connection | keep-alive |
Content-Disposition | attachment; filename=“2433411Y_Edwards_27022021035957.pdf” |
Access-Control-Allow-Origin | * |
Access-Control-Allow-Methods | GET, POST, OPTIONS |