Download OpenAPI specification:Download
Early test version of an updated, simpler UKRDC API
Retreive list of patients with multiple UKRDC IDs
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "groupId": 0,
- "records": [
- {
- "lastUpdated": "2019-08-24T14:15:22Z",
- "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
]
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of all master records with open work items, and the number of work items on each. Most useful when sorted by descending work item count, to identify records most in need of work item resolution.
sort_by | any (WorkItemGroupSorterEnum) Enum: "work_item_count" "master_record.id" "master_record.last_updated" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}, - "workItemCount": 0
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive list of patients with multiple UKRDC IDs
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "groupId": 0,
- "records": [
- {
- "lastUpdated": "2019-08-24T14:15:22Z",
- "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
]
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of all master records with open work items, and the number of work items on each. Most useful when sorted by descending work item count, to identify records most in need of work item resolution.
sort_by | any (WorkItemGroupSorterEnum) Enum: "work_item_count" "master_record.id" "master_record.last_updated" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}, - "workItemCount": 0
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Update user preferences
placeholder | boolean (Placeholder) Placeholder preference, does not do anything |
{- "placeholder": true
}
{- "placeholder": false
}
Merge a pair of MasterRecords
superseding required | integer (Superseding master-record ID) |
superseded required | integer (Superseded master-record ID) |
{- "superseding": 0,
- "superseded": 0
}
{- "status": "string",
- "message": "string"
}
Unlink a Person from a specified MasterRecord
personId required | integer (ID of the person-record to be unlinked) |
masterId required | integer (ID of the master-record to unlink from) |
comment | string (Comment) <= 100 characters |
{- "personId": 0,
- "masterId": 0,
- "comment": "string"
}
{- "id": 0,
- "person": {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}, - "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
Retrieve a basic channel ID-name map, available to all user permission levels. Used for things like message filtering.
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "revision": "string"
}
]
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "revision": "string",
- "statistics": {
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "received": 0,
- "sent": 0,
- "error": 0,
- "filtered": 0,
- "queued": 0
}
}
]
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "revision": "string",
- "channels": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "revision": "string",
- "statistics": {
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "received": 0,
- "sent": 0,
- "error": 0,
- "filtered": 0,
- "queued": 0
}
}
]
}
]
Get details and statistics about a specific Mirth channel
channel_id required | string (Channel Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "revision": "string",
- "statistics": {
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "received": 0,
- "sent": 0,
- "error": 0,
- "filtered": 0,
- "queued": 0
}
}
Retreive a list a messages from a specific Mirth channel
channel_id required | string (Channel Id) |
page | integer (Page) Default: 0 |
size | integer (Size) Default: 20 |
{- "page": 0,
- "size": 0,
- "items": [
- {
- "messageId": 0,
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "processed": true,
- "receivedDate": "2019-08-24T14:15:22Z",
- "connectorMessages": {
- "property1": {
- "chainId": 0,
- "orderId": 0,
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "string",
- "status": "string",
- "receivedDate": "2019-08-24T14:15:22Z",
- "channelName": "string",
- "connectorName": "string",
- "messageId": "string",
- "errorCode": 0,
- "sendAttempts": 0,
- "raw": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "encoded": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "sent": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "response": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "metaDataId": 0,
- "metaDataMap": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "chainId": 0,
- "orderId": 0,
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "string",
- "status": "string",
- "receivedDate": "2019-08-24T14:15:22Z",
- "channelName": "string",
- "connectorName": "string",
- "messageId": "string",
- "errorCode": 0,
- "sendAttempts": 0,
- "raw": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "encoded": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "sent": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "response": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "metaDataId": 0,
- "metaDataMap": {
- "property1": "string",
- "property2": "string"
}
}
}
}
]
}
Retreive a specific message from a specific Mirth channel
channel_id required | string (Channel Id) |
message_id required | string (Message Id) |
{- "messageId": 0,
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "processed": true,
- "receivedDate": "2019-08-24T14:15:22Z",
- "connectorMessages": {
- "property1": {
- "chainId": 0,
- "orderId": 0,
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "string",
- "status": "string",
- "receivedDate": "2019-08-24T14:15:22Z",
- "channelName": "string",
- "connectorName": "string",
- "messageId": "string",
- "errorCode": 0,
- "sendAttempts": 0,
- "raw": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "encoded": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "sent": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "response": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "metaDataId": 0,
- "metaDataMap": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "chainId": 0,
- "orderId": 0,
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "string",
- "status": "string",
- "receivedDate": "2019-08-24T14:15:22Z",
- "channelName": "string",
- "connectorName": "string",
- "messageId": "string",
- "errorCode": 0,
- "sendAttempts": 0,
- "raw": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "encoded": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "sent": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "response": {
- "channelId": "5f6d08bc-455a-4532-98b8-19e2cee51160",
- "content": "string",
- "contentType": "string",
- "dataType": "string",
- "encrypted": true,
- "messageId": "string",
- "messageDataId": "string"
}, - "metaDataId": 0,
- "metaDataMap": {
- "property1": "string",
- "property2": "string"
}
}
}
}
Search the EMPI for a particular master record
pid | Array of strings (Pid) Default: [] Patient PID |
mrn_number | Array of strings (Mrn Number) Default: [] Patient MRN number, e.g. NHS, CHI or HSC number |
ukrdc_number | Array of strings (Ukrdc Number) Default: [] UKRDC record number |
full_name | Array of strings (Full Name) Default: [] Patient full name |
dob | Array of strings (Dob) Default: [] Patient date of birth |
facility | Array of strings (Facility) Default: [] Facility code |
search | Array of strings (Search) Default: [] Free-text search query |
number_type | Array of strings (Number Type) Default: [] Number types to return, e.g. UKRDC, NHS, CHI, HSC |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Search the UKRDC for a particular patient record
pid | Array of strings (Pid) Default: [] Patient PID |
mrn_number | Array of strings (Mrn Number) Default: [] Patient MRN number, e.g. NHS, CHI or HSC number |
ukrdc_number | Array of strings (Ukrdc Number) Default: [] UKRDC record number |
full_name | Array of strings (Full Name) Default: [] Patient full name |
dob | Array of strings (Dob) Default: [] Patient date of birth |
facility | Array of strings (Facility) Default: [] Facility code |
extract | Array of strings (Extract) Default: [] Extract code |
search | Array of strings (Search) Default: [] Free-text search query |
include_migrated | boolean (Include Migrated) Default: false Include migrated records in search results |
include_memberships | boolean (Include Memberships) Default: false Include membership-only records in search results |
include_informational | boolean (Include Informational) Default: false Include informational-only records in search results |
include_survey | boolean (Include Survey) Default: false Include survey-only records in search results |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Update the demographic data of a given patient record
Args: demographics (DemographicUpdateSchema): [description] patient_record (PatientRecord, optional): [description]. Defaults to Depends(_get_patientrecord). mirth (MirthAPI, optional): [description]. Defaults to Depends(get_mirth). redis (Redis, optional): [description]. Defaults to Depends(get_redis). audit (Auditer, optional): [description]. Defaults to Depends(get_auditer).
Returns: [type]: [description]
pid required | string (Pid) |
object (NameSchema) Patient name | |
birthTime | string <date-time> (Birthtime) |
gender | string (Gender) Enum: "1" "2" "9" |
object (AddressSchema) Patient address |
{- "name": {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "address": {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
}
{- "status": "string",
- "message": "string"
}
Retreive a specific patient's lab orders
pid required | string (Pid) |
service_id | Array of strings (Service Id) Default: [] |
order_id | Array of strings (Order Id) Default: [] |
since | string <date-time> (Since) |
until | string <date-time> (Until) |
sort_by | any (ResultItemEnum) Enum: "observation_time" "entered_on" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": "string",
- "pid": "string",
- "orderId": "string",
- "serviceId": "string",
- "serviceIdDescription": "string",
- "value": "string",
- "valueUnits": "string",
- "resultType": "string",
- "prePost": "string",
- "observationTime": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a particular lab result
resultitem_id required | string (Resultitem Id) |
pid required | string (Pid) |
{- "id": "string",
- "pid": "string",
- "orderId": "string",
- "serviceId": "string",
- "serviceIdDescription": "string",
- "value": "string",
- "valueUnits": "string",
- "resultType": "string",
- "prePost": "string",
- "observationTime": "2019-08-24T14:15:22Z"
}
Retreive a specific patient's lab orders
pid required | string (Pid) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": "string",
- "pid": "string",
- "enteredAtDescription": "string",
- "enteredAt": "string",
- "specimenCollectedTime": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a particular lab order
order_id required | string (Order Id) |
pid required | string (Pid) |
{- "id": "string",
- "pid": "string",
- "enteredAtDescription": "string",
- "enteredAt": "string",
- "specimenCollectedTime": "2019-08-24T14:15:22Z",
- "resultItems": [
- {
- "id": "string",
- "pid": "string",
- "orderId": "string",
- "serviceId": "string",
- "serviceIdDescription": "string",
- "value": "string",
- "valueUnits": "string",
- "resultType": "string",
- "prePost": "string",
- "observationTime": "2019-08-24T14:15:22Z"
}
]
}
Retreive a specific patient's documents
pid required | string (Pid) |
sort_by | any (DocumentEnum) Enum: "documenttime" "updatedon" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": "string",
- "pid": "string",
- "documenttime": "2019-08-24T14:15:22Z",
- "documentname": "string",
- "filetype": "string",
- "filename": "string",
- "enteredbydesc": "string",
- "enteredatcode": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a specific patient's document information
document_id required | string (Document Id) |
pid required | string (Pid) |
{- "id": "string",
- "pid": "string",
- "documenttime": "2019-08-24T14:15:22Z",
- "documentname": "string",
- "filetype": "string",
- "filename": "string",
- "enteredbydesc": "string",
- "enteredatcode": "string",
- "idx": 0,
- "notetext": "string",
- "documenttypecode": "string",
- "documenttypecodestd": "string",
- "documenttypedesc": "string",
- "cliniciancode": "string",
- "cliniciancodestd": "string",
- "cliniciandesc": "string",
- "statuscode": "string",
- "statuscodestd": "string",
- "statusdesc": "string",
- "enteredbycode": "string",
- "enteredbycodestd": "string",
- "enteredatcodestd": "string",
- "enteredatdesc": "string",
- "documenturl": "string",
- "updatedon": "2019-08-24T14:15:22Z",
- "actioncode": "string",
- "externalid": "string",
- "updateDate": "2019-08-24T14:15:22Z",
- "creationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
Retreive a specific patient's diagnoses
pid required | string (Pid) |
[- {
- "pid": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "enteredon": "2019-08-24T14:15:22Z",
- "updatedon": "2019-08-24T14:15:22Z",
- "diagnosistype": "string",
- "diagnosisCode": "string",
- "diagnosisCodeStd": "string",
- "diagnosisDesc": "string",
- "comments": "string",
- "id": "string",
- "identificationTime": "2019-08-24T14:15:22Z",
- "onsetTime": "2019-08-24T14:15:22Z",
- "description": "string"
}
]
Retreive a specific patient's renal diagnoses
pid required | string (Pid) |
[- {
- "pid": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "enteredon": "2019-08-24T14:15:22Z",
- "updatedon": "2019-08-24T14:15:22Z",
- "diagnosistype": "string",
- "diagnosisCode": "string",
- "diagnosisCodeStd": "string",
- "diagnosisDesc": "string",
- "comments": "string",
- "identificationTime": "2019-08-24T14:15:22Z",
- "onsetTime": "2019-08-24T14:15:22Z",
- "description": "string"
}
]
Retreive a specific patient's cause of death
pid required | string (Pid) |
[- {
- "pid": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "enteredon": "2019-08-24T14:15:22Z",
- "updatedon": "2019-08-24T14:15:22Z",
- "diagnosistype": "string",
- "diagnosisCode": "string",
- "diagnosisCodeStd": "string",
- "diagnosisDesc": "string",
- "comments": "string",
- "description": "string"
}
]
Retreive a specific patient record
pid required | string (Pid) |
{- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z",
- "masterId": 0
}
Retreive a page of audit events related to a particular master record.
pid required | string (Pid) |
resource | any (Resource) Enum: "PATIENT_RECORD" "UKRDCID" "MEDICATIONS" "TREATMENTS" "SURVEYS" "DOCUMENTS" "DOCUMENT" "OBSERVATIONS" "DIALYSISSESSIONS" "LABORDERS" "LABORDER" "RESULTITEMS" "RESULTITEM" "TRANSPLANTS" "DIAGNOSES" "RENALDIAGNOSES" "CAUSEOFDEATH" "MASTER_RECORD" "MESSAGES" "STATISTICS" "MEMBERSHIP" "PERSON" "MESSAGE" "WORKITEM" "FACILITY" An enumeration. |
operation | any (AuditOperation) Enum: "CREATE" "UPDATE" "DELETE" "READ" "EXPORT_PV" "EXPORT_PV_TESTS" "EXPORT_PV_DOCS" "EXPORT_RADAR" "EXPORT_PKB" "EXPORT_MRC" "READ_SOURCE" An enumeration. |
since | string <date-time> (Since) |
until | string <date-time> (Until) |
sort_by | any (AccessEventAuditEventEnum) Enum: "id" "time" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": 0,
- "accessEvent": {
- "event": 0,
- "time": "2019-08-24T14:15:22Z",
- "userId": "string",
- "clientId": "string",
- "userEmail": "string",
- "path": "string",
- "method": "string",
- "body": "string"
}, - "resource": "string",
- "resourceId": "string",
- "operation": "string",
- "children": [ ],
- "identifiers": [ ]
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of messages related to a particular patient record. By default returns message created within the last 365 days.
pid required | string (Pid) |
since | string <date-time> (Since) |
until | string <date-time> (Until) |
status | Array of strings (Status) |
channel | Array of strings (Channel) |
sort_by | any (MessageEnum) Enum: "id" "received" "ni" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": 0,
- "received": "2019-08-24T14:15:22Z",
- "msgStatus": "string",
- "ni": "string",
- "filename": "string",
- "facility": "string",
- "error": "string",
- "status": "string",
- "mirthMessageId": "string",
- "mirthChannelId": "string",
- "mirthChannel": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a minimal representation of the latest file received for the patient, if received within the last year.
pid required | string (Pid) |
{- "id": 0,
- "received": "2019-08-24T14:15:22Z",
- "msgStatus": "string",
- "ni": "string",
- "filename": "string",
- "facility": "string"
}
Delete a specific patient record and all its associated data
pid required | string (Pid) |
hash | string (Hash) Hash of the record to delete |
{- "hash": "string"
}
null
Retreive a specific patient's medications
pid required | string (Pid) |
sort_by | any (MedicationEnum) Enum: "fromtime" "totime" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
[- {
- "fromTime": "2019-08-24T14:15:22Z",
- "toTime": "2019-08-24T14:15:22Z",
- "drugProductGeneric": "string",
- "dosequantity": "string",
- "doseuomcode": "string",
- "doseuomcodestd": "string",
- "doseuomdesc": "string",
- "frequency": "string",
- "routecode": "string",
- "routecodestd": "string",
- "routedesc": "string",
- "comment": "string",
- "enteringOrganizationCode": "string",
- "enteringOrganizationDescription": "string"
}
]
Retreive a specific patient's treatments
pid required | string (Pid) |
sort_by | any (TreatmentEnum) Enum: "fromtime" "totime" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
[- {
- "id": "string",
- "pid": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "externalid": "string",
- "fromtime": "2019-08-24",
- "totime": "2019-08-24",
- "encounternumber": "string",
- "encountertype": "string",
- "admittingcliniciancode": "string",
- "admittingcliniciancodestd": "string",
- "admittingcliniciandesc": "string",
- "admitreasoncode": "string",
- "admitreasoncodestd": "string",
- "admitreasondesc": "string",
- "admissionsourcecode": "string",
- "admissionsourcecodestd": "string",
- "admissionsourcedesc": "string",
- "dischargereasoncode": "string",
- "dischargereasoncodestd": "string",
- "dischargereasondesc": "string",
- "dischargelocationcode": "string",
- "dischargelocationcodestd": "string",
- "dischargelocationdesc": "string",
- "healthcarefacilitycode": "string",
- "healthcarefacilitycodestd": "string",
- "healthcarefacilitydesc": "string",
- "enteredatcode": "string",
- "enteredatcodestd": "string",
- "enteredatdesc": "string",
- "visitdescription": "string",
- "hdp01": "string",
- "hdp02": "string",
- "hdp03": "string",
- "hdp04": "string",
- "qbl05": "string",
- "qbl06": "string",
- "qbl07": "string",
- "erf61": "string",
- "pat35": "string"
}
]
Retreive a specific patient's transplant procedures
pid required | string (Pid) |
sort_by | any (TransplantEnum) Enum: "proceduretime" "creation_date" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
[- {
- "id": "string",
- "pid": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "externalid": "string",
- "proceduretime": "2019-08-24T14:15:22Z",
- "proceduretypecode": "string",
- "proceduretypecodestd": "string",
- "proceduretypedesc": "string",
- "cliniciancode": "string",
- "cliniciancodestd": "string",
- "cliniciandesc": "string",
- "enteredbycode": "string",
- "enteredbycodestd": "string",
- "enteredbydesc": "string",
- "enteredatcode": "string",
- "enteredatcodestd": "string",
- "enteredatdesc": "string",
- "tra64": "2019-08-24T14:15:22Z",
- "tra65": "string",
- "tra66": "string",
- "tra69": "2019-08-24T14:15:22Z",
- "tra76": "string",
- "tra77": "string",
- "tra78": "string",
- "tra79": "string",
- "tra80": "string",
- "tra8a": "string",
- "tra81": "string",
- "tra82": "string",
- "tra83": "string",
- "tra84": "string",
- "tra85": "string",
- "tra86": "string",
- "tra87": "string",
- "tra88": "string",
- "tra89": "string",
- "tra90": "string",
- "tra91": "string",
- "tra92": "string",
- "tra93": "string",
- "tra94": "string",
- "tra95": "string",
- "tra96": "string",
- "tra97": "string",
- "tra98": "string"
}
]
Retreive a specific patient's surveys
pid required | string (Pid) |
sort_by | any (SurveyEnum) Enum: "surveytime" "updatedon" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
[- {
- "questions": [
- {
- "id": "string",
- "questiontypecode": "string",
- "response": "string",
- "questionGroup": "string",
- "questionType": "string",
- "responseText": "string"
}
], - "scores": [
- {
- "id": "string",
- "value": "string",
- "scoretypecode": "string"
}
], - "levels": [
- {
- "id": "string",
- "value": "string",
- "leveltypecode": "string"
}
], - "id": "string",
- "pid": "string",
- "surveytime": "2019-08-24T14:15:22Z",
- "surveytypecode": "string",
- "enteredbycode": "string",
- "enteredatcode": "string"
}
]
Retreive a specific patient's lab orders
pid required | string (Pid) |
code | Array of strings (Code) Default: [] |
sort_by | any (ObservationEnum) Enum: "observation_time" "updated_on" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "observationCode": "string",
- "observationCodeStd": "string",
- "observationTime": "2019-08-24T14:15:22Z",
- "observationDesc": "string",
- "observationValue": "string",
- "observationUnits": "string",
- "prePost": "string",
- "enteredAt": "string",
- "enteredAtDescription": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a specific patient's lab orders
pid required | string (Pid) |
sort_by | any (DialysisSessionEnum) Enum: "proceduretime" "creation_date" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": "string",
- "pid": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "externalid": "string",
- "proceduretime": "2019-08-24T14:15:22Z",
- "proceduretypecode": "string",
- "proceduretypecodestd": "string",
- "proceduretypedesc": "string",
- "cliniciancode": "string",
- "cliniciancodestd": "string",
- "cliniciandesc": "string",
- "enteredbycode": "string",
- "enteredbycodestd": "string",
- "enteredbydesc": "string",
- "enteredatcode": "string",
- "enteredatcodestd": "string",
- "enteredatdesc": "string",
- "qhd19": "string",
- "qhd20": "string",
- "qhd21": "string",
- "qhd22": "string",
- "qhd30": "string",
- "qhd31": "string",
- "qhd32": "string",
- "qhd33": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Update the demographic data of a given patient record
Args: demographics (DemographicUpdateSchema): [description] patient_record (PatientRecord, optional): [description]. Defaults to Depends(_get_patientrecord). mirth (MirthAPI, optional): [description]. Defaults to Depends(get_mirth). redis (Redis, optional): [description]. Defaults to Depends(get_redis). audit (Auditer, optional): [description]. Defaults to Depends(get_auditer).
Returns: [type]: [description]
pid required | string (Pid) |
object (NameSchema) Patient name | |
birthTime | string <date-time> (Birthtime) |
gender | string (Gender) Enum: "1" "2" "9" |
object (AddressSchema) Patient address |
{- "name": {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "address": {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
}
{- "status": "string",
- "message": "string"
}
Retreive patient records related to a specific patient record
ukrdcid required | string (Ukrdcid) |
[- {
- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
]
Retreive demographic statistics for a given facility
code required | string (Code) |
{- "gender": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "ethnicGroup": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "age": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "metadata": {
- "population": 0
}
}
Retreive KRT statistics for a given facility
code required | string (Code) |
{- "all": {
- "allPatientsHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "prevalentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incentreDialysisFrequency": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentInitialAccess": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "metadata": {
- "population": 0,
- "fromTime": "2019-08-24T14:15:22Z",
- "toTime": "2019-08-24T14:15:22Z"
}
}, - "units": {
- "property1": {
- "allPatientsHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "prevalentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incentreDialysisFrequency": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentInitialAccess": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "metadata": {
- "population": 0,
- "fromTime": "2019-08-24T14:15:22Z",
- "toTime": "2019-08-24T14:15:22Z"
}
}, - "property2": {
- "allPatientsHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "prevalentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incentreDialysisFrequency": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentInitialAccess": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "metadata": {
- "population": 0,
- "fromTime": "2019-08-24T14:15:22Z",
- "toTime": "2019-08-24T14:15:22Z"
}
}
}
}
Custom Cohort Report 001: No treatment or programme membership to explain presence of record in the UKRDC. Excludes patients with a known date of death prior to 5 years ago from the time of query.
code required | string (Code) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Program Membership Report 001: Patients with no active PKB membership record
code required | string (Code) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of on-record facilities
include_inactive | boolean (Include Inactive) Default: false |
include_empty | boolean (Include Empty) Default: false |
sort_by | any (FacilitySorterEnum) Enum: "id" "statistics.total_patients" "statistics.patients_receiving_message_error" "data_flow.pkb_out" "last_message_received_at" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
[- {
- "id": "string",
- "description": "string",
- "lastMessageReceivedAt": "2019-08-24T14:15:22Z",
- "statistics": {
- "totalPatients": 0,
- "patientsReceivingMessages": 0,
- "patientsReceivingMessageSuccess": 0,
- "patientsReceivingMessageError": 0
}, - "dataFlow": {
- "pkbIn": true,
- "pkbOut": true,
- "pkbMessageExclusions": [
- "string"
]
}
}
]
Retreive information and current status of a particular facility
code required | string (Code) |
{- "id": "string",
- "description": "string",
- "lastMessageReceivedAt": "2019-08-24T14:15:22Z",
- "statistics": {
- "totalPatients": 0,
- "patientsReceivingMessages": 0,
- "patientsReceivingMessageSuccess": 0,
- "patientsReceivingMessageError": 0
}, - "dataFlow": {
- "pkbIn": true,
- "pkbOut": true,
- "pkbMessageExclusions": [
- "string"
]
}
}
Retreive time-series new error counts for the last year for a particular facility
code required | string (Code) |
channel | Array of strings (Channel) |
sort_by | any (MessageEnum) Enum: "id" "received" "ni" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": 0,
- "received": "2019-08-24T14:15:22Z",
- "msgStatus": "string",
- "ni": "string",
- "filename": "string",
- "facility": "string",
- "error": "string",
- "status": "string",
- "mirthMessageId": "string",
- "mirthChannelId": "string",
- "mirthChannel": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive time-series new error counts for the last year for a particular facility
code required | string (Code) |
since | string <date> (Since) |
until | string <date> (Until) |
[- {
- "time": "2019-08-24",
- "count": 0
}
]
Retreive demographic statistics for a given facility
code required | string (Code) |
{- "gender": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "ethnicGroup": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "age": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "metadata": {
- "population": 0
}
}
Retreive KRT statistics for a given facility
code required | string (Code) |
{- "all": {
- "allPatientsHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "prevalentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incentreDialysisFrequency": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentInitialAccess": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "metadata": {
- "population": 0,
- "fromTime": "2019-08-24T14:15:22Z",
- "toTime": "2019-08-24T14:15:22Z"
}
}, - "units": {
- "property1": {
- "allPatientsHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "prevalentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incentreDialysisFrequency": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentInitialAccess": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "metadata": {
- "population": 0,
- "fromTime": "2019-08-24T14:15:22Z",
- "toTime": "2019-08-24T14:15:22Z"
}
}, - "property2": {
- "allPatientsHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "prevalentHomeTherapies": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incentreDialysisFrequency": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "incidentInitialAccess": {
- "metadata": {
- "title": "string",
- "summary": "string",
- "description": "string",
- "axisTitles": {
- "x": "string",
- "y": "string"
}, - "populationSize": 0,
- "codingStandardX": "string",
- "unitsY": "string"
}, - "data": {
- "x": [
- "string"
], - "y": [
- 0
], - "errorY": [
- 0
]
}
}, - "metadata": {
- "population": 0,
- "fromTime": "2019-08-24T14:15:22Z",
- "toTime": "2019-08-24T14:15:22Z"
}
}
}
}
Custom Cohort Report 001: No treatment or programme membership to explain presence of record in the UKRDC. Excludes patients with a known date of death prior to 5 years ago from the time of query.
code required | string (Code) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Program Membership Report 001: Patients with no active PKB membership record
code required | string (Code) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of internal codes
coding_standard | Array of strings (Coding Standard) |
search | string (Search) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "codingStandard": "string",
- "code": "string",
- "description": "string",
- "objectType": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "units": "string",
- "pkbReferenceRange": "string",
- "pkbComment": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of internal codes
coding_standard required | string (Coding Standard) |
code required | string (Code) |
{- "codingStandard": "string",
- "code": "string",
- "description": "string",
- "objectType": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "units": "string",
- "pkbReferenceRange": "string",
- "pkbComment": "string",
- "mapsTo": [
- {
- "sourceCodingStandard": "string",
- "sourceCode": "string",
- "destinationCodingStandard": "string",
- "destinationCode": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z"
}
], - "mappedBy": [
- {
- "sourceCodingStandard": "string",
- "sourceCode": "string",
- "destinationCodingStandard": "string",
- "destinationCode": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z"
}
]
}
Retreive a list of internal code maps
source_coding_standard | Array of strings (Source Coding Standard) |
destination_coding_standard | Array of strings (Destination Coding Standard) |
source_code | string (Source Code) |
destination_code | string (Destination Code) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "sourceCodingStandard": "string",
- "sourceCode": "string",
- "destinationCodingStandard": "string",
- "destinationCode": "string",
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of internal code maps
coding_standard | Array of strings (Coding Standard) |
code | Array of strings (Code) |
system | Array of strings (System) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "codingStandard": "string",
- "code": "string",
- "system": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Export a CSV of a list of internal codes
source_coding_standard | Array of strings (Source Coding Standard) |
destination_coding_standard | Array of strings (Destination Coding Standard) |
source_code | string (Source Code) |
destination_code | string (Destination Code) |
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Export a CSV of a list of internal codes
coding_standard | Array of strings (Coding Standard) |
code | Array of strings (Code) |
system | Array of strings (System) |
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string"
}
]
}
Retreive a particular work item from the EMPI
workitem_id required | integer (Workitem Id) |
{- "id": 0,
- "type": 0,
- "description": "string",
- "status": 0,
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "attributes": {
- "sendingExtract": "string",
- "sendingFacility": "string",
- "localid": "string",
- "dateOfBirth": "string",
- "dateOfDeath": "string",
- "gender": "string",
- "givenname": "string",
- "surname": "string"
}, - "updateDescription": "string",
- "person": {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}, - "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}, - "incoming": {
- "person": {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}, - "masterRecords": [
- {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
]
}, - "destination": {
- "persons": [
- {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}
], - "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
}
Update a particular work item in the EMPI
workitem_id required | integer (Workitem Id) |
status | integer (Status) |
comment | string (Comment) <= 100 characters |
{- "status": 0,
- "comment": "string"
}
{- "status": "string",
- "message": "string"
}
Update and close a particular work item
workitem_id required | integer (Workitem Id) |
comment | string (Comment) <= 100 characters |
{- "comment": "string"
}
{- "status": "string",
- "message": "string"
}
Retreive a list of other work items related to a particular work item
workitem_id required | integer (Workitem Id) |
[- {
- "id": 0,
- "type": 0,
- "description": "string",
- "status": 0,
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "attributes": {
- "sendingExtract": "string",
- "sendingFacility": "string",
- "localid": "string",
- "dateOfBirth": "string",
- "dateOfDeath": "string",
- "gender": "string",
- "givenname": "string",
- "surname": "string"
}, - "updateDescription": "string",
- "person": {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}, - "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
]
Retreive a list of other work items related to a particular work item
workitem_id required | integer (Workitem Id) |
facility | string (Facility) |
since | string <date-time> (Since) |
until | string <date-time> (Until) |
status | Array of strings (Status) |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": 0,
- "received": "2019-08-24T14:15:22Z",
- "msgStatus": "string",
- "ni": "string",
- "filename": "string",
- "facility": "string",
- "error": "string",
- "status": "string",
- "mirthMessageId": "string",
- "mirthChannelId": "string",
- "mirthChannel": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of open work items from the EMPI
since | string <date-time> (Since) |
until | string <date-time> (Until) |
status | Array of integers (Status) Default: [1] |
facility | string (Facility) |
sort_by | any (WorkItemEnum) Enum: "id" "last_updated" "master_id" "person_id" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": 0,
- "type": 0,
- "description": "string",
- "status": 0,
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "attributes": {
- "sendingExtract": "string",
- "sendingFacility": "string",
- "localid": "string",
- "dateOfBirth": "string",
- "dateOfDeath": "string",
- "gender": "string",
- "givenname": "string",
- "surname": "string"
}, - "updateDescription": "string",
- "person": {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}, - "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a particular master record from the EMPI
record_id required | integer (Record Id) |
{- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
Retreive a minimal representation of the latest file received for the patient, if received within the last year.
record_id required | integer (Record Id) |
{- "id": 0,
- "received": "2019-08-24T14:15:22Z",
- "msgStatus": "string",
- "ni": "string",
- "filename": "string",
- "facility": "string"
}
Retreive a list of link records related to a particular master record
record_id required | integer (Record Id) |
[- {
- "id": 0,
- "person": {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}, - "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
]
Retreive a list of errors related to a particular master record. By default returns message created within the last 365 days.
record_id required | integer (Record Id) |
facility | string (Facility) |
since | string <date-time> (Since) |
until | string <date-time> (Until) |
status | Array of strings (Status) |
channel | Array of strings (Channel) |
sort_by | any (MessageEnum) Enum: "id" "received" "ni" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": 0,
- "received": "2019-08-24T14:15:22Z",
- "msgStatus": "string",
- "ni": "string",
- "filename": "string",
- "facility": "string",
- "error": "string",
- "status": "string",
- "mirthMessageId": "string",
- "mirthChannelId": "string",
- "mirthChannel": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive a list of work items related to a particular master record.
record_id required | integer (Record Id) |
status | Array of integers (Status) Default: [1] |
[- {
- "id": 0,
- "type": 0,
- "description": "string",
- "status": 0,
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "attributes": {
- "sendingExtract": "string",
- "sendingFacility": "string",
- "localid": "string",
- "dateOfBirth": "string",
- "dateOfDeath": "string",
- "gender": "string",
- "givenname": "string",
- "surname": "string"
}, - "updateDescription": "string",
- "person": {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}, - "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
]
Retreive a list of person records related to a particular master record.
record_id required | integer (Record Id) |
[- {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}
]
Retreive a list of patient records related to a particular master record.
record_id required | integer (Record Id) |
[- {
- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
]
Retreive a list of error messages, optionally filtered by NI, facility, or date. By default returns message created within the last 365 days.
facility | string (Facility) |
since | string <date-time> (Since) |
until | string <date-time> (Until) |
status | Array of strings (Status) |
channel | Array of strings (Channel) |
ni | Array of strings (Ni) Default: [] |
sort_by | any (MessageEnum) Enum: "id" "received" "ni" An enumeration. |
order_by | string (OrderBy) Enum: "asc" "desc" An enumeration. |
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": 0,
- "received": "2019-08-24T14:15:22Z",
- "msgStatus": "string",
- "ni": "string",
- "filename": "string",
- "facility": "string",
- "error": "string",
- "status": "string",
- "mirthMessageId": "string",
- "mirthChannelId": "string",
- "mirthChannel": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Retreive detailed information about a specific error message
message_id required | integer (Message Id) |
{- "id": 0,
- "received": "2019-08-24T14:15:22Z",
- "msgStatus": "string",
- "ni": "string",
- "filename": "string",
- "facility": "string",
- "error": "string",
- "status": "string",
- "mirthMessageId": "string",
- "mirthChannelId": "string",
- "mirthChannel": "string"
}
Retreive WorkItems associated with a specific error message
message_id required | integer (Message Id) |
[- {
- "id": 0,
- "type": 0,
- "description": "string",
- "status": 0,
- "creationDate": "2019-08-24T14:15:22Z",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "updatedBy": "string",
- "attributes": {
- "sendingExtract": "string",
- "sendingFacility": "string",
- "localid": "string",
- "dateOfBirth": "string",
- "dateOfDeath": "string",
- "gender": "string",
- "givenname": "string",
- "surname": "string"
}, - "updateDescription": "string",
- "person": {
- "id": 0,
- "originator": "string",
- "localid": "string",
- "localidType": "string",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "dateOfDeath": "2019-08-24",
- "givenname": "string",
- "surname": "string",
- "xrefEntries": [
- {
- "id": 0,
- "pid": "string",
- "sendingFacility": "string",
- "sendingExtract": "string",
- "localid": "string"
}
]
}, - "masterRecord": {
- "id": 0,
- "nationalid": "string",
- "nationalidType": "string",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "dateOfBirth": "2019-08-24",
- "gender": "string",
- "givenname": "string",
- "surname": "string",
- "status": 0,
- "effectiveDate": "2019-08-24T14:15:22Z"
}
}
]
Retreive patient records associated with a specific error message
message_id required | integer (Message Id) |
[- {
- "pid": "string",
- "sendingfacility": "string",
- "sendingextract": "PV",
- "localpatientid": "string",
- "ukrdcid": "string",
- "pvdata": {
- "creationDate": "2019-08-24T14:15:22Z",
- "updateDate": "2019-08-24T14:15:22Z",
- "rrtstatus": "string",
- "rrtstatusDesc": "string",
- "tpstatus": "string",
- "tpstatusDesc": "string",
- "bloodgroup": "string",
- "diagnosisdate": "2019-08-24T14:15:22Z"
}, - "programMemberships": [ ],
- "patient": {
- "names": [
- {
- "given": "string",
- "family": "string",
- "nameuse": "string"
}
], - "numbers": [
- {
- "patientid": "string",
- "organization": "string",
- "numbertype": "string"
}
], - "addresses": [
- {
- "fromTime": "2019-08-24",
- "toTime": "2019-08-24",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countryCode": "string",
- "countryCodeStd": "string",
- "countryDescription": "string",
- "addressuse": "string"
}
], - "contactDetails": [
- {
- "use": "string",
- "value": "string",
- "commenttext": "string"
}
], - "familydoctor": {
- "id": "string",
- "gpname": "string",
- "gpid": "string",
- "gpInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "gppracticeid": "string",
- "gpPracticeInfo": {
- "code": "string",
- "gpname": "string",
- "street": "string",
- "postcode": "string",
- "contactvalue": "string",
- "type": "string"
}, - "addressuse": "string",
- "fromtime": "2019-08-24T14:15:22Z",
- "totime": "2019-08-24T14:15:22Z",
- "street": "string",
- "town": "string",
- "county": "string",
- "postcode": "string",
- "countrycode": "string",
- "countrycodestd": "string",
- "countrydesc": "string",
- "contactuse": "string",
- "contactvalue": "string",
- "email": "string",
- "commenttext": "string"
}, - "birthTime": "2019-08-24T14:15:22Z",
- "deathTime": "2019-08-24T14:15:22Z",
- "gender": "1",
- "ethnicGroupCode": "string",
- "ethnicGroupDescription": "string"
}, - "repositoryCreationDate": "2019-08-24T14:15:22Z",
- "repositoryUpdateDate": "2019-08-24T14:15:22Z"
}
]
Return a list of all non-expired background tasks
page | integer (Page) >= 1 Default: 1 |
size | integer (Size) ( 0 .. 50 ] Default: 20 |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "visibility": "public",
- "owner": "string",
- "status": "pending",
- "error": "string",
- "created": "2019-08-24T14:15:22Z",
- "started": "2019-08-24T14:15:22Z",
- "finished": "2019-08-24T14:15:22Z"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
Return a specific background task
task_id required | string <uuid> (Task Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "visibility": "public",
- "owner": "string",
- "status": "pending",
- "error": "string",
- "created": "2019-08-24T14:15:22Z",
- "started": "2019-08-24T14:15:22Z",
- "finished": "2019-08-24T14:15:22Z"
}