HIP EHRbase (2.0.0)
Download OpenAPI specification:Download
HIP EHRbase Enterprise operations that are not part of the OSS, but are part of enterprise feature. Requires authorization with a tenant user upfront.
Get All Event Triggers
Get All Event Triggers
Authorizations:
bearerAuth
query Parameters
active | string Default: "false" |
Responses
Response samples
- 200
Content type
application/json
[- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "id": "string",
- "language": {
- "original_language": "string"
}, - "state": "active",
- "author": {
- "date": "2019-08-24T14:15:22Z",
- "name": "string",
- "email": "string",
- "organisation": "string"
}, - "definition": {
- "rules": [
- {
- "name": "string",
- "when": {
- "type": "string",
- "expression": "string"
}, - "then": [
- {
- "name": "string",
- "type": "SPEL",
- "arguments": {
- "property1": "string",
- "property2": "string"
}
}
]
}
], - "data_type": "EHR_STATUS",
- "event_type": [
- "CREATE"
], - "pre_condition": [
- "string"
]
}
}
]
Create Event Trigger
Create Event Trigger
Authorizations:
bearerAuth
Request Body schema: application/jsonrequired
uuid | string <uuid> |
id | string |
object (Languange) | |
state | string Enum: "active" "inactive" |
object (Author) | |
object (Definition) |
Responses
Request samples
- Payload
Content type
application/json
{- "id": "composition_trigger_v1",
- "language": {
- "original_language": "ISO_639-1::en"
}, - "state": "active",
- "author": {
- "date": "2021-11-02T00:00:00.000+00:00",
- "name": "Me",
- "email": "info@vitagroup.ag",
- "organisation": "VitaGroup AG"
}, - "definition": {
- "mode": "AFTER",
- "data_type": "COMPOSITION",
- "event_type": [
- "CREATE",
- "UPDATE",
- "DELETE"
], - "rules": [
- {
- "high diastolic": {
- "when": {
- "aql": "select c/uid/value as diastolic from EHR e contains COMPOSITION c"
}, - "then": [
- {
- "notify": {
- "command": "publish",
- "channel": "amqp",
- "exchange": "ex",
- "routing-key": "ex"
}
}, - {
- "log": {
- "command": "notify",
- "channel": "logger"
}
}
]
}
}
], - "pre_condition": [ ]
}
}
Get Event Trigger By Trigger-Id Or Trigger-UUID
Get Event Trigger By Trigger-Id Or Trigger-UUID
Authorizations:
bearerAuth
path Parameters
id required | string |
Responses
Response samples
- 200
Content type
application/json
[- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "id": "string",
- "language": {
- "original_language": "string"
}, - "state": "active",
- "author": {
- "date": "2019-08-24T14:15:22Z",
- "name": "string",
- "email": "string",
- "organisation": "string"
}, - "definition": {
- "rules": [
- {
- "name": "string",
- "when": {
- "type": "string",
- "expression": "string"
}, - "then": [
- {
- "name": "string",
- "type": "SPEL",
- "arguments": {
- "property1": "string",
- "property2": "string"
}
}
]
}
], - "data_type": "EHR_STATUS",
- "event_type": [
- "CREATE"
], - "pre_condition": [
- "string"
]
}
}
]
Store tenant
Store tenant
Authorizations:
bearerAuth
Request Body schema: application/json
tenantId | string |
tenantName | string |
object |
Responses
Request samples
- Payload
Content type
application/json
{- "tenantId": "{{$guid}}",
- "tenantName": "cdr-core-sanity-check",
- "tenantProperties": {
- "client-id": "HIP-CDR-EHRbase-Service",
- "host": "{{keycloakUrl}}",
- "realm": "cdr-core-sanity-check"
}
}