MyHealthRecordFHIRGateway APISpecification v2.0.0
MyHealthRecordFHIRGateway APISpecification v2.0.0
Acknowledgements
Council of Australian Governments
The Australian Digital Health Agency is jointly funded by the Australian Government and all state and territory
governments.
Regenstrief Institute (LOINC)
This material contains content from LOINCTM (http://loinc.org). The LOINC table, LOINC codes, LOINC panels and
forms file, and LOINC linguistic variants file are copyright © 1995-2015, Regenstrief Institute, Inc. and the Logical
Observation Identifiers Names and Codes (LOINC) Committee and available at no cost under the license at
https://loinc.org/terms-of-use/. LOINC is a trademark of Regenstrief Institute, Inc., registered in the United States.
IHTSDO (SNOMED CT)
This material includes SNOMED Clinical TermsTM (SNOMED CT®) which is used by permission of the International
Health Terminology Standards Development Organisation (IHTSDO). All rights reserved. SNOMED CT® was originally
created by The College of American Pathologists. “SNOMED” and “SNOMED CT” are registered trademarks of the
IHTSDO, (http://www.ihtsdo.org/).
HL7 International
This document includes excerpts of HL7TM International standards and other HL7 International material. HL7
International is the publisher and holder of copyright in the excerpts. The publication, reproduction and use of such
excerpts is governed by the HL7 IP Policy (see http://www.hl7.org/legal/ippolicy.cfm) and the HL7 International
License Agreement. HL7 and CDA are trademarks of Health Level Seven International and are registered with the
United States Patent and Trademark Office.
Disclaimer
The Australian Digital Health Agency (“the Agency”) makes the information and other material (“Information”) in this
document available in good faith but without any representation or warranty as to its accuracy or completeness. The
Agency cannot accept any responsibility for the consequences of any use of the Information. As the Information is of
a general nature only, it is up to any person using or relying on the Information to ensure that it is accurate,
complete and suitable for the circumstances of its use.
Document control
This document is maintained in electronic form and is uncontrolled in printed form. It is the responsibility of the user
to verify that this copy is the latest revision.
Copyright © 2019 Australian Digital Health Agency
This document contains information which is protected by copyright. All Rights Reserved. No part of this work may be
reproduced or used in any form or by any means – graphic, electronic, or mechanical, including photocopying,
recording, taping, or information storage and retrieval systems – without the permission of the Australian Digital
Health Agency. All copies of this document must include the copyright and other information contained on this page.
My Health Record FHIR® Gateway
API Specification v2.0.0
Document information
Key information
Owner Executive General Manager, Infrastructure Operations
Table of contents
1 Introduction ....................................................................................................... 6
1.1 Purpose ...................................................................................................... 6
1.2 Intended audience ....................................................................................... 6
1.3 Scope ......................................................................................................... 6
2 REST Model ......................................................................................................... 7
2.1 Key characteristics ....................................................................................... 7
2.2 API Versioning ............................................................................................. 9
3 API Catalogue ................................................................................................... 10
3.1 Authentication services ............................................................................... 10
3.1.1 Individual Initial Authentication (OAuth) ........................................... 10
3.1.2 Get or Refresh Token ..................................................................... 13
3.1.3 Initial Provider Authentication (JWT) ................................................ 15
3.2 Identification service .................................................................................. 17
3.2.1 Get Record List (GET) ..................................................................... 18
3.2.2 Get Patient Details (GET) ................................................................ 21
3.3 Medicare Information ................................................................................. 28
3.3.1 Get PBS Items (GET) ...................................................................... 28
3.3.2 Get MBS Items (GET) ..................................................................... 32
3.4 Generic document services ......................................................................... 35
3.4.1 Get Document (GET) ...................................................................... 35
3.4.2 Search Document List (GET) ........................................................... 37
3.5 Consumer documents ................................................................................. 41
3.5.1 Get Personal Health Summary - Medications (GET) ............................ 41
3.5.2 Update Personal Health Summary - Medications (POST) ..................... 43
3.5.3 Update Personal Health Summary - Medications (PUT)........................ 47
3.5.4 Update Personal Health Summary - Medications (DELETE) .................. 51
3.5.5 Get Personal Health Summary - Allergies (GET) ................................. 54
3.5.6 Update Personal Health Summary – Allergies (POST) ......................... 56
3.5.7 Update Personal Health Summary – Allergies (PUT) ........................... 59
3.5.8 Update Personal Health Summary - Allergies (DELETE) ....................... 64
3.6 Clinical document services .......................................................................... 66
3.6.1 Prescription and Dispense List (GET) ................................................ 66
3.6.2 Get Allergies List (SHS) (GET) ......................................................... 73
Appendix A Common ............................................................................................. 77
Appendix B Referenced Artefacts .......................................................................... 82
Appendix C Personal Health Summary................................................................... 83
Appendix D Patient Search by Provider – Alternative Search Criteria .................... 86
1 Introduction
1.1 Purpose
This document provides an overview of the API specifications required by
developers to connect applications (apps) to the My Health Record system. This
document describes API requests, API responses, OperationOutcome details, and
error conditions that apply to application transactions.
1.3 Scope
This document is limited to discussing the following three sections:
2 REST Model
REST (Representational State Transfer) relies on a stateless, client-server,
cacheable communications protocol and, in virtually all cases, the HTTP protocol is
used.
HTTP Interaction: GET, POST, PUT or DELETE HTTP requests against My Health
Record system resources.
Request Headers vary between API interactions.
Refer to the respective API sections in this document for more details.
Common request headers in use are:
Response Codes: HTTP response codes appropriate for the result of the request.
While the exact meaning of the code varies depending on the API interaction, the
general rules are:
Application ID and Secret Client Access Key: Will be provided during the
registration process by the My Health Record System Operator.
majorVersion.minorVersion.patchVersion
Importantly, the version number of the FHIR API is reflected in the URLs of all API
interactions. To allow for an easy transition to newer versions of the FHIR API,
applications should be developed in ways that allow the setting of the FHIR API
version number at a central location and the utilisation of this setting for all API
requests (i.e. dynamic inclusion of the API version number in the URLs of all API
requests).
1
http://semver.org/spec/v2.0.0.html
3 API Catalogue
This section lists the APIs in the My Health Record system, organised into six logical
groups:
3.1.1.1 Description
This API is used to validate an individual’s identity (username, password and secret
question/answer with myGov – identity provider for government services).
The below figure depicts the successful authentication and authorisation flow for an
application (note, step 3 is an example only).
Request
Parameters/ Search
Support
The My Health Record system returns an HTML page to the application, and end
users get authenticated with their myGov username/password and secret
question/answer.
An authorisation code is generated against the redirect URL. This is depicted below:
[redirect_uri]?code=[authorization_code]
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
Refer to the “Access Token Error Conditions” section under “OAuth2_0” tab of My
Health Record FHIR® Gateway – Error Mapping document to find the applicable
FHIR® API Error details.
3.1.2.1 Description
This API provides the ability to obtain access tokens for subsequent requests for individual
access to the My Health Record system. It also provides the ability to refresh access tokens
upon access token expiry.
To generate a token, the following criteria must be met:
Request Parameters/
Search Support
Request
Parameters/
Search Support
During authentication, for all success and failure cases system redirects the flow to
the “redirect_url” as registered with My Health Record System.
For all other cases where My Gov denies authentication due to incorrect credentials,
the system says on the login page with showing the appropriate error messages.
Refer to the “Refresh Token Error Conditions” section under “OAuth2_0” tab of My
Health Record FHIR® Gateway – Error Mapping document to find the applicable
FHIR® API Error details.
3.1.3.1 Description
This API is used to validate a healthcare provider’s identity to allow the indirect
connection of a mobile application to MHR through an Intermediary Server.
To proceed with Provider Authentication, the following criteria must be met:
The steps below describe the successful authentication and authorisation flow for an
application
1. Healthcare provider accesses the app by entering their HPI-I/LSI and password
on their mobile device.
2. The device passes the login information to the vendor intermediary server to
authenticate the user.
3. Intermediary server fires the Initial Provider Authentication request to the MHR
mobile gateway to authenticate the user with a JSON Web Token (JWT).
5. Based on the validation result, system generates a token and returns back to
the calling system.
Request
Parameters/ Search
Support
The Intermediary Server will trigger the API with the JSON Web Token (JWT) that
has been generated. The JWT contains the following authentication claims in its
body:
iat The time the assertion was issued (iat) 1..1 E.g. "1477025181"
expressed in seconds since the "Epoch"
(1970-01-01T00:00:00Z UTC).
userID Custom JWT claim that captures the user 1..1 E.g.
identifier, the identifier can be one of the "8003611566666701"
following:
• HPI-I
• Local System Identifier (LSI)
The access token is returned in JSON format. The response contains the following
elements:
Refer to "My Health Record FHIR Gateway - Sample Requests and Responses"
further details.
3.2.1.1 Description
This API provides the ability to retrieve the list of records the individual is permitted
to access and returns a bundle containing the RelatedPerson resource for each
accessible record such as:
• Self
• Authorised Representative types:
o Under 18 - Parental Responsibility
o Under 18 - Legal Authority
o Under 18 - Otherwise Appropriate Person
o 18 and Over - Otherwise Appropriate Person
o 18 and Over - Legal Authority
• Nominated Representative
o Full Access Nominated Representative
o Nominated Representative
This API is accessible by consumers only.
• http://hl7.org/fhir/2016May/relatedperson.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’).
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Request
Parameters
(searchParam)
The tables below summarise My Health Record Specific Extension and ValueSet as
applicable to the Get Record List API.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/relationship-type
URL:
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/ValueSet/relationship-type
URL:
Code Definition
RT006 18 and Over - Otherwise Appropriate Person 18 and Over - Otherwise Appropriate
Person
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘RelatedPerson’ resources in either XML or JSON format.
Refer to "My Health Record FHIR Gateway - Sample Requests and Responses"
further details.
Refer to the “GetRecordList” tab in the My Health Record – API Mapping document
in for more details on the response mapping.
The API returns error, warning and information messages that provide detailed
information about the outcome of attempted system interaction. They are provided
as a direct system response, or component of one, where they provide information
about the outcome of the interaction.
HTTP error codes that are applicable to this service will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Get Record List (GET)” section under “FHIR API Error Cases” tab of My
Health Record FHIR® Gateway – Error Mapping document to find the applicable
FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.2.2.1 Description
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
The definition of the OperationDefinition (Conformance.rest.operation.definition)
used for the custom FHIR® operation: $access:
More details on the ‘$access’ can be found in Operations section.
The table below summarises the request message to get the individual’s
demographic detail when accessed by the individual (consumer).
Note: the [id] is the logical identifier of the patient to be retrieved. If [id] is not
passed in the query string, then the Patient API retrieves the demographics of
logged-in user.
Additional validation is performed on the [id] supplied in the URI to check if the
logged-in user is authorized to perform any operation to the user in context.
Refer to the “Action URI List” tab in the My Health Record – API Mapping document
for more details on the possible Action URIs.
Request
Parameters
(searchParam)
My Health Record system enables capability for the providers to check whether a
particular patient exists in the system or not without gaining the access to the
record. This can be achieved by using the “_element” search on patient’s ID. The
system supports only “_element=identifier” and if the patient exists, the system
returns only the ‘id’, ‘identifier’ and ‘active’ element associated with the patient
resource. Please refer to Appendix Item: Access Policy for Providers for more
details.
The table below summarises the request message when a provider (e.g. practitioner) wants to
verify if a particular patient exists in the My Health Record system.
Table 11 - Verify Patient Exists in My Health Record system - Request Message (Provider)
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Either identifier or
coverageId is
mandatory for
searching the patient.
The table below summarises the request message when a provider (e.g.
practitioner) wants to gain access to a patient’s record. Providers are required to
gain access to patient’s record to view relevant details.
‘$access’ is a custom FHIR® operation on the patient resource. More details can be
found at Operations section.
The [id] in the URI is the logical identifier of the patient.
Refer to the “Action URI List” tab in the My Health Record – API Mapping document
for more details on the possible Action URIs.
Request
Parameters
(search
Param)
In the scenario where the provider wants to gain access to the patient’s
demographic details, ‘POST’ request is initiated using patient’s ‘id’ (Logical
identifier) or IHI (business identifier) or demographic detail. This is done by
invoking ‘$access’ custom FHIR operation on the patient resource. Please refer to
Appendix section Provider Access: Status and Types as applicable to the provider to
gain access to the patient details.
The table below summarises My Health Record Specific Extension and ValueSet as
applicable to the Get Patient Details API.
Defining http://hl7.org.au/fhir/StructureDefinition/indigenous-status
URL:
Defining http://meteor.aihw.gov.au/content/index.phtml/itemId/602543#Codes
URL:
Code Definition
1 Aboriginal but not Torres Strait Islander Aboriginal but not Torres Strait Islander origin
origin
2 Torres Strait Islander but not Aboriginal Torres Strait Islander but not Aboriginal origin
origin
3 Both Aboriginal and Torres Strait Islander Both Aboriginal and Torres Strait Islander
origin origin
4 Neither Aboriginal nor Torres Strait Neither Aboriginal nor Torres Strait Islander
Islander origin origin
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ resources in either XML or JSON format if there is no IHI passed in
the URI query string.
When accessed by the consumer, a bundle containing a list of patients for which the
logged in user has authorized the application to access is retrieved. The list will
contain at least one entry. The normal case is that the list will contain the patient
record for the logged-in user ('self' details), but this is not always the case. The
patient may have access to records for other patients, and may exclude their own
record from view.
Refer to "My Health Record FHIR Gateway - Sample Requests and Responses"
further details.
Refer to the “GetPatientDetails” tab in the My Health Record – API Mapping
document for more details on the response mapping.
The API returns error, warning and information messages that provide detailed
information about the outcome of attempted system interactions. They are provided
as a direct system response, or component of one, where they provide information
about the outcome of the operation.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Get Patient Details (GET) & Get Patient Details (POST)” section under
“FHIR API Error Cases” tab of My Health Record FHIR® Gateway – Error Mapping
document to find the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
the All APIs exposed through My Health Record System.
3.3.1.1 Description
This API provides the ability to retrieve PBS details in the form of a bundle of
ExplanationOfBenefit FHIR® resources from the My Health Record system. A
maximum of 99 resources is returned in the response.
• http://hl7.org/fhir/2016May/explanationofbenefit.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medication-generic-
URL: name
This is an extension on the Medication. More information can be found at Appendix E Extension Registry
section.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medication-brand
URL:
This is an extension on the Medication. More information can be found at Appendix E Extension Registry
section.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medication-form-and-
URL: strength
This is an extension on the Medication.product. More information can be found at Extension Registry
section.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/eob-item-service
URL:
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/ValueSet/eob-item-service
URL:
Code Definition
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘ExplanationOfBenefit’ resources in either XML or JSON format.
Refer to "My Health Record FHIR Gateway - Sample Requests and Responses"
further details.
Refer to the “GetPBSItems” tab in the My Health Record – API Mapping document for
more details on the response mapping.
The API returns error, warning and information messages that provide detailed
information about the outcome of attempted system interactions. They are provided
as a direct system response, or component of one, where they provide information
about the outcome of the interaction.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Get PBS Items (GET)” section under “FHIR API Error Cases” tab of My
Health Record FHIR® Gateway – Error Mapping document to find the applicable
FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.3.2.1 Description
This API provides the ability to retrieve MBS details for the individual and returns a
bundle of ExplanationOfBenefit resources from the My Health Record system. A
maximum of 99 resources is returned in the response.
• http://hl7.org/fhir/2016May/explanationofbenefit.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/eob-item-service
URL:
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/ValueSet/eob-item-service
URL:
Code Definition
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘ExplanationOfBenefit ´ resources in either XML or JSON format.
Refer to "My Health Record FHIR Gateway - Sample Requests and Responses"
further details.
Refer to the “GetMBSItems” tab in the My Health Record – API Mapping document for
more details on the response mapping.
The API returns error, warning and information messages that provide detailed
information about the outcome of attempted system interactions. They are provided
as a direct system response, or component of one, where they provide information
about the outcome of the operation.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Get MBS Items (GET)” section under “FHIR API Error Cases” tab of My
Health Record FHIR® Gateway – Error Mapping document to find the applicable
FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
the All APIs exposed through My Health Record System.
3.4.1.1 Description
This API provides the ability to retrieve a specific document for an individual from
the My Health Record system.
The API returns a base64binary of the CDA zip package as per the FHIR®
specification.
This API is accessible by both consumers and providers.
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
Refer to the “Action URI List” tab in the My Health Record – API Mapping document
for more details on the possible Action URIs.
Request
Parameters
(searchParam)
The system will return ‘Binary’. The binary response which is formatted as
Base64Binary has an imposed upper limit of 7340032 Bytes (7 MB). A response
exceeding this size limit will result in an error message being thrown. Refer to
3.4.1.6 OperationOutcome Codes for more information.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses"
for further details.
Refer to the “GetDocument” tab in the My Health Record – API Mapping document for
more details on the response mapping.
The API returns errors, warnings and information messages that provide detailed
information about the outcome of attempted system interactions. They are provided
as a direct system response, or component of one, where they provide information
about the outcome of the operation.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Get Document (GET)” section under “FHIR API Error Cases” tab of My
Health Record FHIR® Gateway – Error Mapping document to find the applicable
FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.4.2.1 Description
This API provides the ability to retrieve a list of document references for an
individual from the My Health Record system. The API returns the document
references for an individual by matching a class code provided as input. A
maximum of 99 DocumentReference resources is returned in the response.
• http://hl7.org/fhir/2016May/documentreference.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Refer to the “Action URI List” tab in the My Health Record – API Mapping document
for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘DocumentReference’ resources in either XML or JSON format.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
The following table lists error, warning and information messages that provide
detailed information about the outcome of attempted system interactions. They are
provided as a direct system response, or component of one, where they provide
information about the outcome of the operation.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Search Document List (GET)” section under “FHIR API Error Cases”
tab of My Health Record FHIR® Gateway – Error Mapping document to find the
applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.5.1.1 Description
This API provides the ability to retrieve Medications from an individual’s personal
health summary document from the My Health Record system.
• http://hl7.org/fhir/2016May/medicationstatement.html
• http://hl7.org/fhir/2016May/operationoutcome.html
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
corresponding to the
logical identifier of the
patient in the URI to
check if the logged in
user is authorized to
perform any operation
to the IHI in context.
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘MedicationStatement’ resources in either XML or JSON format.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
The API retuns error, warning and information messages that provide detailed
information about the outcome of attempted system interactions. They are provided
as a direct system response, or component of one, where they provide information
about the outcome of the operation.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body .
Refer to the “Get Personal Health Summary - Allergies (GET)” section under “FHIR
API Error Cases” tab of My Health Record FHIR® Gateway – Error Mapping
document to find the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.5.2.1 Description
• http://hl7.org/fhir/2016May/medicationstatement.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
The system internally creates a CDA of the Personal Health Summary document
based on the information received in the ‘MedicationStatement’ bundle or as individual
MedicationStatement resource.
The table below summarises the request message when a Bundle containing
MedicationStatement resources is uploaded.
Table 27 – Update Personal Health Summary Medications - Request Message POST (Bundle)
Refer to the “Action URI List” tab in the My Health Record – API Mapping document
for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Note this base URI bundle also supports the upload of AllergyIntolerance resources,
however a single bundle request must not have these two resources together. The
server does not support such a combination of resources in the bundle transaction.
Instead, the request must exclusively be all MedicationStatement resources, or all
AllergyIntolerance resources.
Please refer to Appendix C.1.2 for the processing rules as applicable to the Bundle
POST of the MedicationStatement resource.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
The table below summarises the request message when individual
MedicationStatement resource is uploaded.
Table 28 - Update Personal Health Summary Medications - Request Message POST (Individual)
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘OperationOutcome’ resources in either XML or JSON format.
In case of Bundle POST, the system will return a Bundle resource with HTTP Status
Code 201 - Created if the request is successfully executed.
In case of individual POST, the system will return back the newly created resource
with logical ID populated.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
In case of error, an OperationOutcome resource with details as applicable will be returned.
Refer to the “OperationOutcome” tab in the My Health Record – API Mapping document
for more details on the mapping.
The API returns the HTTP error codes that are applicable to this service and will be
transmitted in the response header along with the OperationOutcome details in the
response body.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.5.3.1 Description
• http://hl7.org/fhir/2016May/medicationstatement.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
The server doesn’t allow the client to create new identities on the server
(Conformance.rest.resource.updateCreate = false).
The system internally updates the existing CDA of the Personal Health Summary
document based on the information received in the ‘MedicationStatement’ bundle or
as individual ‘MedicationStatement’ resource.
The table below summarises the update request message using a Bundle containing
MedicationStatement resources.
Table 29 - Update Personal Health Summary Medications - Request Message PUT (Bundle)
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Note this base URI bundle also supports the upload of AllergyIntolerance resources,
however a single bundle request must not have these two resources together. The
server does not support such a combination of resources in the bundle transaction.
Instead, the request must exclusively be all MedicationStatement resources, or all
AllergyIntolerance resources.
Please refer to Appendix C.1.4 for the processing rules as applicable to the Bundle
PUT of the MedicationStatement resource.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
The table below summarises the update request message using individual
MedicationStatement resource.
Table 30 - Update Personal Health Summary Medications - Request Message PUT (Individual)
Note: [id] is the unique logical-id (entry ID) of the MedicationStatment resource
in the Personal Health Summary CDA document.
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
The request body should contain individual ‘MedicationStatement’ resource with the
resource logical-id (‘id’) in the URI. The ID in the URI and the ID in the resource
should match.
Please refer to Appendix C.1.5 for the processing rules as applicable to the
individual PUT of the MedicationStatement resource.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘OperationOutcome’ resources in either XML or JSON format.
In case of Bundle PUT, based on whether the ‘request.method’ is set as ‘PUT’ or
‘POST’ for each of the resources in the request Bundle entry, the system will return
a Bundle resource with HTTP Status Code 200 - Ok for ‘PUT’ request with the
corresponding resource updated and 201 – Created for ‘POST’ request with the
corresponding resource being created.
In case of individual PUT, the system will return back the updated resource with the
same logical ID as in the request.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
The API returns the HTTP error codes that are applicable to this service and will be
transmitted in the response header along with the OperationOutcome details in the
response body.
Refer to the “Update Personal Health Summary - Medications (PUT)” section under
“FHIR API Error Cases” tab of My Health Record FHIR® Gateway – Error Mapping
document to find the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.5.4.1 Description
• http://hl7.org/fhir/2016May/medicationstatement.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server executes only conditional delete and doesn’t support any other search
parameter than ‘patient’.
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Request
Parameters
(searchParam)
Please refer to Appendix C.1.6 for the processing rules as applicable to the Delete
of the MedicationStatement resource.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘OperationOutcome’ resources in either XML or JSON format.
The system will return HTTP Status Code 204 - No Content as the response upon
successful API call.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
In case of error, an OperationOutcome resource with details as applicable will be
returned.
The API returns error, warning and information messages that provide detailed
information about the outcome of attempted system interactions. They are provided
as a direct system response, or component of one, where they provide information
about the outcome of the operation.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Delete Personal Health Summary - Medication (DELETE)” section
under “FHIR API Error Cases” tab of My Health Record FHIR® Gateway – Error
Mapping document to find the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.5.5.1 Description
This API provides the ability to retrieve allergies and adverse reactions information
from an individual’s Personal Health Summary document from the My Health
Record system.
This API is accessible by both consumers and providers.
• http://hl7.org/fhir/2016May/allergyintolerance.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Refer to the “Action URI List” tab in the My Health Record – API Mapping document
for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘AllergyIntolerance’ resources in either XML or JSON format.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
Refer to the “GetPersonalHealthSummary” tab in the My Health Record – API
Mapping document for more details on the response mapping.
The API returns error, warning and information messages that provide detailed
information about the outcome of attempted system interactions. They are provided
as a direct system response, or component of one, where they provide information
about the outcome of the operation.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Get Personal Health Summary - Allergies (GET)” section under “FHIR
API Error Cases” tab of My Health Record FHIR® Gateway – Error Mapping
document to find the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.5.6.1 Description
This API provides the ability to create an individual’s allergies and adverse reactions
information in the Personal Health Summary document stored in the My Health
Record system. Use this API if there is no Personal Summary Document exits for
the individual, or if the existing document doesn’t have any Allergy section.
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
The server doesn’t support conditional create
(Conformance.rest.resource.conditionalCreate = false).
The system internally creates a CDA of the Personal Health Summary document
based on the information received in the ‘AllergyIntolerance’ bundle or as individual
‘AllergyIntolerance’ resource.
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Note this base URI bundle also supports the upload of MedicationStatement
resources, however a single bundle request must not have these two resources
together. The server does not support such a combination of resources in the
bundle transaction. Instead, the request must exclusively be all
MedicationStatement resources, or all AllergyIntolerance resources.
Please refer to Appendix C.1.2 for the processing rules as applicable to the Bundle
POST of the AllergyIntolerance resource.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
application/json+fhir (to
represent it as JSON).
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘OperationOutcome’ resources in either XML or JSON format.
In case of Bundle POST, the system will return a Bundle resource with HTTP Status
Code 201 - Created if the request is successfully executed.
In case of individual POST, the system will return back the newly created resource
with logical ID populated.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
In case of error, an OperationOutcome resource with details as applicable will be
returned.
Refer to the “OperationOutcome” tab in the My Health Record – API Mapping
document for more details on the response mapping.
The API returns the HTTP error codes that are applicable to this service and will be
transmitted in the response header along with the OperationOutcome details in the
response body.
Refer to the “Update Personal Health Summary – Allergies (POST)” section under
“FHIR API Error Cases” tab of My Health Record FHIR® Gateway – Error Mapping
document to find the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.5.7.1 Description
This API provides the ability to update an individual’s allergies and adverse
reactions information in the Personal Health Summary document stored in the My
Health Record system.
This API is accessible only by the consumer.
• http://hl7.org/fhir/2016May/allergyintolerance.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
The server doesn’t allow the client to create new identities on the server
(Conformance.rest.resource.updateCreate = false)
The system internally updates the existing CDA of the Personal Health Summary
document based on the information received in the ‘AllergyIntolerance’ bundle or as
individual ‘AllergyIntolerance’ resource.
The table below summarises the update request message using a Bundle containing
AllergyIntolerance resources.
Table 35 - Update Personal Health Summary Allergies - Request Message PUT (Bundle)
Request
Parameters
(searchParam)
The request body should contain ‘Bundle’ of ‘AllergyIntolerance’ resources with the
document ID in the URI. The ‘Bundle.type’ in the Bundle resource should be
‘transaction’ and the ‘Bundle.entry’ should contain ‘request’ element with
‘request.method’ value as ‘PUT’ or ‘POST’.
Note this base URI bundle also supports the upload of MedicationStatement
resources, however a single bundle request must not have these two resources
together. The server does not support such a combination of resources in the
bundle transaction. Instead, the request must exclusively be all
MedicationStatement resources, or all AllergyIntolerance resources.
Please refer to Appendix C.1.4 for the processing rules as applicable to the Bundle
PUT of the AllergyIntolerance resource.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
The table below summarises the update request message using individual
AllergyIntolerance resource.
Table 36 -Update Personal Health Summary Allergies - Request Message PUT (Individual)
Request
Parameters
(searchParam)
(to represent it as
JSON).
The request body should contain individual ‘AllergyIntolerance’ resource with the
resource logical-id (‘id’) in the URI. The ID in the URI and the ID in the resource
should match.
Please refer to Appendix C.1.5 for the processing rules as applicable to the
individual PUT of the AllergyIntolerance resource.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘OperationOutcome’ resources in either XML or JSON format.
In case of individual PUT, the system will return back the updated resource with the
same logical ID as in the request.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
The API returns the HTTP error codes that are applicable to this service and will be
transmitted in the response header along with the OperationOutcome details in the
response body.
Refer to the “Update Personal Health Summary – Allergies (PUT)” section under
“FHIR API Error Cases” tab of My Health Record FHIR® Gateway – Error Mapping
document to find the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.5.8.1 Description
This API provides the ability to delete an individual’s allergies and adverse reactions
information in the Personal Health Summary document stored in the My Health
Record system.
• http://hl7.org/fhir/2016May/allergyintolerance.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server executes only conditional delete and doesn’t support any other search
parameter than ‘patient’.
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Note: [id] is the unique logical-id (entry ID) of the AllergyIntolerance resource in
the Personal Health Summary CDA document.
[docId] is the unique Document ID of the Personal Health Summary CDA
document. This can be retrieved from Search Document List API.
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘OperationOutcome’ resources in either XML or JSON format.
The system will return HTTP Status Code 204 – No Content as the response upon
successful API call.
Please refer to Appendix C.1.6 for the processing rules as applicable to the Delete
of the AllergyIntolerance resource.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
In case of error scenarios, an OperationOutcome resource with details as applicable
will be returned.
Refer to the “OperationOutcome” tab in the My Health Record – API Mapping
document for more details on the various error scenarios.
The following table lists error, warning and information messages that provide
detailed information about the outcome of attempted system interactions. They are
provided as a direct system response, or component of one, where they provide
information about the outcome of the operation.
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Delete Personal Health Summary - Allergies (DELETE)” section under
“FHIR API Error Cases” tab of My Health Record FHIR® Gateway – Error Mapping
document to find the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.6.1.1 Description
This API provides the ability to retrieve Prescription and Dispense information for an
individual from the My Health Record system and returns a bundle of
MedicationOrder or MedicationDispense resources. A maximum of 99 resources is
returned in the response.
This API is accessible by both consumer and provider.
• http://hl7.org/fhir/2016May/medicationorder.html
• http://hl7.org/fhir/2016May/medicationdispense.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the application does not accept unknown elements or extensions
when reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
(to represent it as
JSON).
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medicationdispense-quantity-
URL: description
File • StructureDefinition-medicationdispense-quantity-description.xml
Name: • StructureDefinition-medicationdispense-quantity-description.json
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medication-formula
URL:
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medication-additional-
URL: therapeutic-good-detail
This is an extension on the Medication. More information can be found at Appendix E Extension Registry
section.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medication-
URL: therapeutic-good-strength
This is an extension on the Medication. More information can be found at Appendix E Extension Registry
section.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medicationdispense-unique-
URL: prescription-number
File • StructureDefinition-medicationdispense-unique-prescription-number.xml
Name: • StructureDefinition-medicationdispense-unique-prescription-number.json
This is an extension on the MedicationDispense. More information can be found at Appendix E Extension
Registry section.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medicationdispense-
URL: sequence-number
File • StructureDefinition-medicationdispense-sequence-number.xml
Name: • StructureDefinition-medicationdispense-sequence-number.json
This is an extension on the MedicationDispense. More information can be found at Appendix E Extension
Registry section.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medicationorder-
URL: quantity-description
File • StructureDefinition-medicationorder-quantity-description.xml
Name: • StructureDefinition-medicationorder-quantity-description.json
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/medication-generic-
URL: name
This is an extension on the Medication. More information can be found at Appendix E Extension Registry
section.
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘MedicationOrder’ and associated resources in either XML or JSON
format.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
Refer to the “Action URI List” tab in the My Health Record – API Mapping document
for more details on the possible Action URIs.
Request
Parameters
(seachParam)
Please refer to Appendix B.1 API Error for all common error applicable to the Get
Prescription and Dispense List API.
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘MedicationDispense’ and associated resources in either XML or
JSON format.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
The API returns error, warning and information messages that provide detailed
information about the outcome of attempted system interactions. They are provided
HTTP error codes that are applicable to this service and will be transmitted in the
response header along with the OperationOutcome details in the response body.
Refer to the “Prescription and Dispense List (GET)” section under “FHIR API Error
Cases” tab of My Health Record FHIR® Gateway – Error Mapping document to find
the applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
3.6.2.1 Description
This API provides the ability to retrieve an individual’s allergies and adverse
reactions information and returns a bundle of AllergyIntolerance resources from the
most recent Shared Health Summary document stored in the consumer’s My Health
Record. A maximum of 99 resources is returned in the response.
• http://hl7.org/fhir/2016May/allergyintolerance.html
• http://hl7.org/fhir/2016May/operationoutcome.html
This specification is intended to be used to describe an actual running instance of
software (Conformance.kind = ‘instance’)
For API v2.0.0, the server does not accept unknown elements or extensions when
reading resources (Conformance.acceptUnknown = ‘no’).
The server supports both XML and JSON transactions. The value can be
‘application/xml+fhir’ (to represent it as XML) Or ‘application/json+fhir’ (to
represent it as JSON). (Conformance.format = "xml" or "json”).
Refer to the “Action URI List” tab in the My Health Record – API Mapping
document for more details on the possible Action URIs.
Request
Parameters
(searchParam)
Defining http://hl7.org.au/fhir/StructureDefinition/au-allergyintolerance-detailed-type
URL:
This is an extension on the AllergyIntolerance resource. More information can be found at Appendix E
Extension Registry section.
The table below shows how the three elements of AllergyIntolerance resource will
be populated.
Based on the MIME header (Accept) or ‘_format’ request parameter, the system will
return ‘Bundle’ of ‘AllergyIntolerance’ resources in either XML or JSON format.
Refer to the "My Health Record FHIR Gateway - Sample Requests and Responses" for further
details.
Refer to Appendix B.1 API Error for a full list of errors applicable to the Get Allergies
List API.
The API returns the HTTP error codes that are applicable to this service and will be
transmitted in the response header along with the OperationOutcome details in the
response body.
Refer to the “Get Allergies List (SHS) (GET)” section under “FHIR API Error Cases”
tab of My Health Record FHIR® Gateway – Error Mapping document to find the
applicable FHIR® API Error details.
Please refer to Appendix B.1 API Error for a full list of common errors applicable to
all the APIs exposed through My Health Record System.
Appendix A Common
A.1 API List
The following table provides a complete list of the My Health Record Mobility APIs.
self Self-access
Authorised Representative
Under 18 – Parental Responsibility An Authorised Representative is someone who can apply for and
Under 18 – Legal Authority manage a My Health Record on behalf of another person.
Under 18 – Otherwise Appropriate For the purposes of the My Health Record system someone can
Person be an Authorised Representative if they:
18 and Over – Otherwise Appropriate have parental responsibility for a person under 18; or
Person have legal authority to act on behalf of a person who is at least
18 and Over – Legal Authority 18 and who is not capable of making his or her own decisions.
If there is no one with parental responsibility or legal authority,
a person who is otherwise appropriate to act on behalf of the
individual can be an Authorised Representative. An individual
can have more than one Authorised Representative.
Nominated Representative
Full Access Nominated Representative A Full Access Nominated Representative is able to perform all
the functions of an Authorised Representative in respect of an
individual’s My Health Record with the exception of cancelling
the record, viewing the Access history, and viewing or adding
other representatives.
A Full Access Nominated Representative must verify their
identity to the System Operator.
General Access Nom Representative The general access setting allows a Nominated Representative
to access the individual’s My Health Record and view those
documents classified as general access.
Restricted Access Nom Representative The general access setting allows a Nominated Representative
to access the individual’s My Health Record and view those
documents classified as restricted access.
The code and codeSystem values will always match those provided in the source
CDA.
$XDSDocumentEntryPracti XDSDocumentEntry.
'7562-1^^ANZSIC'
ceSettingCode practiceSettingCode
Lower value of
$XDSDocumentEntryServi 2016-05-30T17:20:00Z
XDSDocumentEntry.
ceStartTimeFrom
serviceStartTime
$XDSDocumentEntryHealt XDSDocumentEntry.
'7562^^ANZSIC'
hcareFacilityTypeCode healthcareFacilityTypeCode
$XDSDocumentEntryForm '1.2.36.1.2001.1006.1.16644.6^
XDSDocumentEntry. formatCode
atCode ^PCEHR_FormatCodes'
$XDSDocumentEntryUniqu
XDSDocumentEntry. uniqueId '1.2.13.1.3998.2548746'
eId
Note: The list above may not contain all documents. Any additions to a new Type
Code or Class Code which are not listed above, will be included separately.
‘Australian Childhood Immunisation Register’ has been super superseded by
‘Australian Immunisation Register’
For search error conditions, the server returns a Bundle with including an
OperationOutcome in the search set that contains information and warnings about
the search process. The OperationOutcome is included in the search results as an
entry with search mode = “outcome”. However, the server returns an
OperationOutcome only with error/exception details for search failure occurred due
to system or backend system exception.
Refer to the “Common System Error Applicable to ALL APIs” section in My Health
Record FHIR® Gateway – Error Mapping document to find the applicable FHIR® API
Error details.
Note: The samples provided in the document are only for reference purposes. The
ValueSet and StructureDefinition details as mentioned in the document are not
available in the server as FHIR® resources. The URI used in the StructureDefinition
and ValueSet is temporary and may get changed in future releases.
Identifier Types
The section below describes server implementation and handling of Identifiers for
Personal Health Summary document:
• Logical identifier (‘id’): In personal health summary
MedicationStatement and AllergyIntolerance resources, the logical identifier
is mapped to the entry ID (‘entry/substanceAdministration/id’) of Personal
Health Summary Document.
• Document ID (‘docId’): This is a custom parameter in the system to
represent the Personal Health Summary CDA Document ID. Server expects
that the calling system should use Search Document List API to retrieve the
latest Personal Health Summary document and use the ID for making
respective calls in MedicationStatement or AllergyIntolerance API
(POST/PUT/DELETE interactions).
• Business identifier (‘identifier’): My Health Record system doesn’t
support ‘identifier’ for MedicationStatement or AllergyIntolerance API.
• If any error occurs during processing any of the resources in the Bundle,
entire transaction will be rolled back as failure and an OperationOutcome
resource will be returned back.
• The request body SHALL NOT contain any ‘identifier’. If provided, system
will ignore that value.
• A new CDA will be created based on the content received in the Bundle.
The above list of search parameters is applicable only when the provider is
searching a patient with demographic details. System will ignore them if used in a
consumer Patient API.
Please note, system doesn’t support all the types of Identifiers as mentioned in the
Australian Patient Identifiers portal. System only supports the three Business
Identifiers for the patient resource as shown in the table above.
Access to the patient’s record can be achieved by calling the custom FHIR®
operation “$access” on Patient API.
Defining http://ns.electronichealth.net.au/fhir/v2.0.0/StructureDefinition/patient-access-criteria
URL:
File • StructureDefinition-patient-access-criteria.xml
Name: • StructureDefinition-patient-access-criteria.json
Code Definition
Code Definition
WithCode Access can be obtained by invoking $access operation on Patient API with
providing an ‘accessType’ in the request Parameter.
WithoutCode Access can be obtained by invoking $access operation on Patient API. This
interaction doesn’t require ‘accessType’ Parameter.
AccessGranted Access is granted and can patient details can be obtained without invoking
$access operation on Patient API.
Table 60 - Extensions
Resource Patient
Resource RelatedPerson
relationship- My Health Record 0..1 CodeableCon http://ns.electronichealth.net.au/f
type System extension to cept hir/v2.0.0/StructureDefinition/rela
include relationship tionship-type
type of the patient
and the related
person.
Resource Medication
medication- An item of information 0..1 string http://ns.electronichealth.net.au/f
generic- about a therapeutic hir/v2.0.0/StructureDefinition/med
name good. ication-generic-name
medication- The brand of the 0..1 string http://ns.electronichealth.net.au/f
brand pharmaceutical item hir/v2.0.0/StructureDefinition/med
supplied. ication-brand
Resource MedicationOrder
medicationor Free text description 0..1 string http://ns.electronichealth.net.au/f
der- of the amount which hir/v2.0.0/StructureDefinition/med
quantity- may consist of the icationorder-quantity-description
description quantity and dose
unit.
Resource MedicationDispense
medicationdi Free text description 0..1 string http://ns.electronichealth.net.au/f
spense- of the amount which hir/v2.0.0/StructureDefinition/med
quantity- may consist of the icationdispense-quantity-
description
description quantity and dose
unit.
Resource AllergyIntolernace
au- A set of codes which 0..1 Coding http://ns.electronichealth.net.au/f
allergyintoler specifies the hir/v2.0.0/StructureDefinition/au-
ance- AllergyIntolerance allergyintolerance-detailed-type
detailed-type type for the patient.
Resource ExplanationOfBenefit
eob-item- A set of codes which 1..1 Coding http://ns.electronichealth.net.au/f
service specifies the benefit hir/v2.0.0/StructureDefinition/eob
item accessed by the -item-service
patient.
Resource ExplanationOfBenefit
patient- A set of codes which 1..1 code http://ns.electronichealth.net.au/f
access- specifies the Patient hir/v2.0.0/StructureDefinition/pati
criteria Access Criteria. ent-access-criteria
Appendix F Terminologies
This table contains a list of all the value sets and code systems defined as part of
the My Health Record System FHIR specification.
Table 61 - Terminologies
Appendix G Operations
The table below describes the custom FHIR operation defined by My Health Record System
Table 62 - Operations
Acronyms
Acronym /Term Meaning
[base] The Service Root URL. The Service Root URL is the address where all of the
resources defined by this interface are found. The Service Root URL takes the
form of “http(s)://server{/path}”
References
FHIR® Documentation: http://hl7.org/fhir/2016May/index.html