Documents
Documents - Document Summary
Documents are based on CDTs - we have one common system CDT (formation) with name “_document_summary” and all document types will be created with a “link” to this summary. So relation between Document Summary Record and Document Type Record is one-to-one.
“_document_summary” can’t be edited.
“_document_summary” has such fields set by default: - type - it’s the “link” between summary and document types - each created document type will be shown in this list like option. By default, we have 3 document types: Assessment (name - doc-type-assessment), Docusign (name - doc-type-docusign) and Others (name - doc-type-others). - files - for storing document files. Currently, users can upload only jpg, jpeg, png and pdf files.
Document Summary Record folder
Contains requests for creating a document record and uploading files to it
Document Records folder
Contains requests to populate custom fields that can be created in the Designer for document types
HTTP Method: GET
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summaryHTTP Response Codes: 200
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
Used for filtering by source id
Paginated document summary records
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/patients/{patientId}/document-summary HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"data": {
"content": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"cdtId": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"cdtName": "text",
"jsonBody": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"pageable": {
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
},
"pageSize": 1,
"pageNumber": 1,
"offset": 1,
"unpaged": true,
"paged": true
},
"totalElements": 1,
"totalPages": 1,
"last": true,
"first": true,
"number": 1,
"size": 1,
"numberOfElements": 1,
"empty": true,
"sort": {
"sorted": true,
"unsorted": true,
"empty": true
}
}
}Request to create a Document Summary Record. The type is the type of the document we are adding to the patient (the name can be taken from the Designer). In the request response you will need to get the id to create a record in this Document Summary
HTTP Method: POST
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summary/HTTP Response Codes: 201
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
Fields as defined by the _document_summary CDT. type links the summary to a document type.
Default document types are always present; tenants may add custom ones.
Document summary record created
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
POST /{tenantName}/{instanceName}/patients/{patientId}/document-summary HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 193
{
"type": "doc-type-docusign",
"files": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"originalName": "text",
"size": 1,
"contentType": "text",
"storageKey": "text"
}
],
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"cdtId": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"cdtName": "text",
"jsonBody": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}HTTP Method: GET
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summary/4a59584c-af30-49c4-8601-b43b4fbeb741HTTP Response Codes: 200
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
id path parameter
othersDocument summary record. Pass ?signedUrls=true to get signed file URLs.
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"type": "others"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"cdtId": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"cdtName": "text",
"jsonBody": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}A request to delete files added to the Document Summary Record.
The id should be the id of the Document Summary from the Create Document Summary Record request.
The body contains information about the type of document that was specified at creation, as well as a list of files to be saved for this record. Other files (which are not passed in the body of the request) will be deleted.
Information about files in the record can be obtained from the Get Document Summary Record By ID or Get all Documents Summary Records requests.
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summary/4a59584c-af30-49c4-8601-b43b4fbeb741HTTP Response Codes: 200
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
id path parameter
Fields as defined by the _document_summary CDT.
Updated document summary record
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
PUT /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"cdtId": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"cdtName": "text",
"jsonBody": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Request to delete a Document Summary Record.
HTTP Method: DELETE
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summary/4a59584c-af30-49c4-8601-b43b4fbeb741HTTP Response Codes: 200
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
id path parameter
othersDocument summary record deleted
No content
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
DELETE /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"type": "others"
}No content
HTTP Method: GET
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summary/4a59584c-af30-49c4-8601-b43b4fbeb741/files/bcade721-fa3d-46fe-9013-d07033212c6aHTTP Response Codes: 200
Content-Type is taken from file (e.g. image/png, image/jpeg)
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
id path parameter
UUID of the uploaded file
Binary file content (supports HTTP Range requests).
No content
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id}/files/{fileId} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
UUID of the document summary record
docType path parameter
x-ray Feb 4 202110Document type record
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
GET /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id}/{docType} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"name": "x-ray Feb 4 2021",
"int": 10
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"cdtId": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"cdtName": "text",
"jsonBody": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}A request to add custom fields to a Document Record. The request body contains the names of fields that are created in the Designer for this document type.
The id should be the id of the Document Summary from the Create Document Summary Record request
HTTP Method: POST
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summary/4a59584c-af30-49c4-8601-b43b4fbeb741/doc-type-docusignHTTP Response Codes: 201
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
UUID of the document summary record
Document type name (e.g. doc-type-others, doc-type-assessment)
Fields as defined by the target document type's CDT. One document record per summary record (1:1).
Document type record created
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
POST /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id}/{docType} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"cdtId": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"cdtName": "text",
"jsonBody": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}A request to edit custom fields in a Document Record. To edit a record, Document Record must first be created.
The request body contains the names of fields that are created in the Designer for this document type.
The id should be the id of the Document Summary from the Create Document Summary Record request
HTTP Method: PUT
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summary/4a59584c-af30-49c4-8601-b43b4fbeb741/doc-type-docusignHTTP Response Codes: 200
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
UUID of the document summary record
Document type name (e.g. doc-type-others, doc-type-assessment)
Fields as defined by the target document type's CDT.
Updated document type record
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
PUT /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id}/{docType} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"patientId": "123e4567-e89b-12d3-a456-426614174000",
"cdtId": "123e4567-e89b-12d3-a456-426614174000",
"version": 1,
"cdtName": "text",
"jsonBody": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}HTTP Method: DELETE
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/formations/current/document-types/doc-type-assessmentHTTP Response Code: 200
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
id path parameter
docType path parameter
x-ray Feb 4 202110Document type record deleted
No content
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
DELETE /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id}/{docType} HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"name": "x-ray Feb 4 2021",
"int": 10
}No content
Request to add a document to the Document Summary Record. The id should be the id of the Document Summary from the Create Document Summary Record request
HTTP Method: POST
HTTP URL:
https://api.live.welkincloud.io/welkonnect/commcenter/patients/ee66e8e8-6ce1-40d3-b6cb-e5727c5347c8/document-summary/4a59584c-af30-49c4-8601-b43b4fbeb741/filesHTTP Response Codes: 201
Content-Type: multipart/form-data;
Files should be with key “files” (few files allowed)
Allowed extensions: jpg, jpeg, png, pdf, doc, docx, xls, xlsx, csv, mp4. Max 10 files per request, 200MB total; per-file limit 25MB (200MB for pdf/mp4).
Bearer token obtained from POST /{tenantName}/admin/api_clients/{clientName}. Valid for 60 minutes.
Your organization (tenant) name, e.g. acme-health
acme-healthYour environment name: live, sandbox, or a custom name
liveUUID of the patient record
UUID of the document summary record
Uploaded files
Bytes
Bad request — the request could not be understood or was missing required parameters.
Unauthorized — the Bearer token is missing, expired, or invalid.
Forbidden — the API client role does not have permission for this resource. Check the role and security policy in Admin.
Not found — the requested resource does not exist.
Too many requests — rate limit exceeded. Implement exponential backoff.
Internal server error.
POST /{tenantName}/{instanceName}/patients/{patientId}/document-summary/{id}/files HTTP/1.1
Host: api.live.welkincloud.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 18
{
"files": "binary"
}[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"originalName": "text",
"size": 1,
"contentType": "text",
"storageKey": "text"
}
]Last updated
Was this helpful?