eSAM can integrate into applications through:
- the type-ahead address input field integrated into a webpage using HTML and JavaScript — this uses a REST protocol, where the request is passed to the web service via HTTP GET, and results returned as JSON
- using five address input fields passed to FindAddress using SOAP, over the HTTP POST protocol. An example of this would be a five-line search form displayed on a webpage.
Who can use this API
Authorised health provider organisations and users can use eSAM.
Onboarding
To use the eSAM services, download and complete the eSAM Address Web Services Request Form from the 'Downloads' section on this Ministry of Health page.
Addressing and geocoding information for health providers(external link)
When the form is complete, email your application to onlinehelpdesk@health.govt.nz.
Once your application has been processed, you will be authorised and advised of your ‘HPI Organisation ID’ and unique application identifier, which will be used as identification you when you use the services.
Once integration of eSAM within a local application is complete, a compliance test will be done before live production access is approved.
Technical
There is no authentication required to use eSAM but the end users HPI Organisation ID must be provided in the message header. The APIs can be used over Connected Health or over public internet.
Integrating eSAM into your application is dependent upon language and development environment. Integrated Development Environments (IDE) will typically provide plugins or have features that allow for the integration of SOAP and REST Web Service calls.
Find specifications, the User Guide, and Integration Guide on the Ministry of Health website.
Addressing and geocoding information for health IT developers(external link)
Learn more
Addressing and geocoding — Ministry of Health(external link)
Addressing and geocoding information for health providers — Ministry of Health(external link)
Addressing and geocoding information for health IT developers — Ministry of Health(external link)
Connected Health network — Ministry of Health(external link)
eSAM demo(external link)