interoperability_key_create ()
Function prototype | interoperability_key_create (session, key_data) |
---|---|
API Version | 2.7.29 and higher |
SOAP, REST |
Description
Creates a new interoperability key
Considerations about the properties of the new key:
The CODE assigned to the key must be unique. Once created this value cannot be changed
The APP_ID and PRIVATE_KEY properties of the new key cannot be defined manually. They are generated automatically by the API.
Required permissions: The active user must be a super-administrator
Input parameters: |
|
Output parameters: |
|
Request example
interoperability_key_create ( “LCAAAAAAAAAAAA”, " {
"name": "Hospital Clinic",
"code": "CLINIC",
"comments": "Interoperability key used by the HIS of the Hospital Clinic of Barcelona",
"language": "EN"
}")
Response
The response format is XML when the function has been invoked via the SOAP API, and JSON when it has been invoked via the REST API
Return Error codes
ERROR CODE |
|
---|---|
INVALID_TOKEN | The session token provided is not valid |
INSUFFICIENT_PRIVILEGES | The session user does not have the necessary privileges to execute this function |
INTEROPERABILITY.KEY.CODE_EMPTY | The code for the new interoperability key has not been provided |
INTEROPERABILITY.KEY.CODE_EXISTS | The code provided for the new interoperability key already exists |