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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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.
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
WorkItemGroupSorterEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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.
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
WorkItemGroupSorterEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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) or Placeholder (null) (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) or Comment (null) (Comment) |
{- "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": "string",
- "connectorMessages": {
- "property1": {
- "chainId": 0,
- "orderId": 0,
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "string",
- "status": "string",
- "receivedDate": "string",
- "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": "string",
- "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": "string",
- "connectorMessages": {
- "property1": {
- "chainId": 0,
- "orderId": 0,
- "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",
- "channelId": "string",
- "status": "string",
- "receivedDate": "string",
- "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": "string",
- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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) |
NameSchema (object) or null | |
Birthtime (string) or Birthtime (null) (Birthtime) | |
Gender (string) or Gender (null) (Gender) | |
AddressSchema (object) or null |
{- "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) |
Array of Service Id (strings) or Service Id (null) (Service Id) Default: [] | |
Array of Order Id (strings) or Order Id (null) (Order Id) Default: [] | |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
ResultItemEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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) |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
DocumentEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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 (string) or Resource (null) (Resource) | |
AuditOperation (string) or Operation (null) (Operation) | |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
AuditEventAccessEventEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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) or Since (null) (Since) | |
Until (string) or Until (null) (Until) | |
Array of Status (strings) or Status (null) (Status) | |
Array of Channel (strings) or Channel (null) (Channel) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
MessageEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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) or Hash (null) (Hash) Hash of the record to delete |
{- "hash": "string"
}nullRetreive a specific patient's medications
| pid required | string (Pid) |
MedicationEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
[- {
- "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) |
TreatmentEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
[- {
- "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) |
TransplantEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
[- {
- "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) |
SurveyEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
[- {
- "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) |
Array of Code (strings) or Code (null) (Code) Default: [] | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
ObservationEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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) |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
DialysisSessionEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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) |
NameSchema (object) or null | |
Birthtime (string) or Birthtime (null) (Birthtime) | |
Gender (string) or Gender (null) (Gender) | |
AddressSchema (object) or null |
{- "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) |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) |
{- "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) |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) |
{- "all": {
- "incidentKrt": {
- "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
]
}
}, - "prevalentKrt": {
- "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
]
}
}, - "incentreTimeDialysed": {
- "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
]
}
}, - "prevalentMostRecentAccess": {
- "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": {
- "incidentKrt": {
- "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
]
}
}, - "prevalentKrt": {
- "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
]
}
}, - "incentreTimeDialysed": {
- "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
]
}
}, - "prevalentMostRecentAccess": {
- "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": {
- "incidentKrt": {
- "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
]
}
}, - "prevalentKrt": {
- "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
]
}
}, - "incentreTimeDialysed": {
- "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
]
}
}, - "prevalentMostRecentAccess": {
- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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
}Radar missing: returns the membership records of patients known to radar but not the ukrdc
| code required | string (Code) |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) > 0 Default: 20 Page size |
{- "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 |
FacilitySorterEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
[- {
- "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) |
Array of Channel (strings) or Channel (null) (Channel) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
MessageEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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) or Since (null) (Since) | |
Until (string) or Until (null) (Until) |
[- {
- "time": "2019-08-24",
- "count": 0
}
]Retreive demographic statistics for a given facility
| code required | string (Code) |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) |
{- "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) |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) |
{- "all": {
- "incidentKrt": {
- "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
]
}
}, - "prevalentKrt": {
- "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
]
}
}, - "incentreTimeDialysed": {
- "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
]
}
}, - "prevalentMostRecentAccess": {
- "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": {
- "incidentKrt": {
- "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
]
}
}, - "prevalentKrt": {
- "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
]
}
}, - "incentreTimeDialysed": {
- "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
]
}
}, - "prevalentMostRecentAccess": {
- "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": {
- "incidentKrt": {
- "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
]
}
}, - "prevalentKrt": {
- "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
]
}
}, - "incentreTimeDialysed": {
- "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
]
}
}, - "prevalentMostRecentAccess": {
- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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
}Radar missing: returns the membership records of patients known to radar but not the ukrdc
| code required | string (Code) |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) > 0 Default: 20 Page size |
{- "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
Array of Coding Standard (strings) or Coding Standard (null) (Coding Standard) | |
Search (string) or Search (null) (Search) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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
Array of Source Coding Standard (strings) or Source Coding Standard (null) (Source Coding Standard) | |
Array of Destination Coding Standard (strings) or Destination Coding Standard (null) (Destination Coding Standard) | |
Source Code (string) or Source Code (null) (Source Code) | |
Destination Code (string) or Destination Code (null) (Destination Code) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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
Array of Coding Standard (strings) or Coding Standard (null) (Coding Standard) | |
Array of Code (strings) or Code (null) (Code) | |
Array of System (strings) or System (null) (System) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "items": [
- {
- "codingStandard": "string",
- "code": "string",
- "system": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}Export a CSV of a list of internal codes
Array of Coding Standard (strings) or Coding Standard (null) (Coding Standard) | |
Search (string) or Search (null) (Search) |
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string",
- "input": null,
- "ctx": { }
}
]
}Export a CSV of a list of internal codes
Array of Source Coding Standard (strings) or Source Coding Standard (null) (Source Coding Standard) | |
Array of Destination Coding Standard (strings) or Destination Coding Standard (null) (Destination Coding Standard) | |
Source Code (string) or Source Code (null) (Source Code) | |
Destination Code (string) or Destination Code (null) (Destination Code) |
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string",
- "input": null,
- "ctx": { }
}
]
}Export a CSV of a list of internal codes
Array of Coding Standard (strings) or Coding Standard (null) (Coding Standard) | |
Array of Code (strings) or Code (null) (Code) | |
Array of System (strings) or System (null) (System) |
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string",
- "input": null,
- "ctx": { }
}
]
}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) or Status (null) (Status) | |
Comment (string) or Comment (null) (Comment) |
{- "status": 0,
- "comment": "string"
}{- "status": "string",
- "message": "string"
}Update and close a particular work item
| workitem_id required | integer (Workitem Id) |
Comment (string) or Comment (null) (Comment) |
{- "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) or Facility (null) (Facility) | |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) | |
Array of Status (strings) or Status (null) (Status) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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) or Since (null) (Since) | |
Until (string) or Until (null) (Until) | |
Array of Status (integers) or Status (null) (Status) Default: [1] | |
Facility (string) or Facility (null) (Facility) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
WorkItemEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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) or Facility (null) (Facility) | |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) | |
Array of Status (strings) or Status (null) (Status) | |
Array of Channel (strings) or Channel (null) (Channel) | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
MessageEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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) |
Array of Status (integers) or Status (null) (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) or Facility (null) (Facility) | |
Since (string) or Since (null) (Since) | |
Until (string) or Until (null) (Until) | |
Array of Status (strings) or Status (null) (Status) | |
Array of Channel (strings) or Channel (null) (Channel) | |
Array of Ni (strings) or Ni (null) (Ni) Default: [] | |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
MessageEnum (string) or Sort By (null) (Sort By) | |
OrderBy (string) or Order By (null) (Order By) |
{- "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 Page number |
| size | integer (Size) ( 0 .. 50 ] Default: 20 Page size |
{- "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"
}