CheckWare partner API reference guide

Webservice operations

OverviewDatatypesWebservice operationsChangelog

Webservice operations

assessmentPort

NOTE: If enterprise is used, all web service operations must include enterprise headers: ENTERPRISE-ID and ENTERPRISE-SECRET.

OperationDescription
addAdministratorGroupAdd new clinician group
addAssessmentInstanceThis operation will add an instance of an assessment for a given respondent. The assessment instances can be tagged with custom attributes if required
addAssessmentInstanceDataUse this operation to save answers, flags, calculation for assessment instance. It is
possible to create assessment instance if it does not exist, in this case object assessmentInstanceData
should contain assessmentInstance object to create assessment instance. If assessment instance already exists
in system id should be sent as second parameter.
If data is not in proper form, exception will be thrown with list of errors.
Calculations must be done on client side in accordance with the rules for the given assessment type
NOTE: This operation can ONLY be used with assessments where the calculation algorithm is known by the client!
addAssessmentPlanInstanceAdd a new plan instance. Only plans with flag manual and enabled set to true can be used. Only plans which the API can access can be used. When access restrictions on plans are used, make sure the API user can access these plans.
addMessageUse this operation to send message to repondent or clinician. This can only be usen in the communication module.
addOrUpdateRoleSetHasRoleAdding or updating relation between roles and role sets.
addRespondentAdd a new respondent to the system. If no treatment is defined, the treatment type defined as default will be used and automatically added. Specific treatment types can be added, included roles and attributes. If default treatment contains mandatory attributes or roles, the client must ensure that these are always populated in the request.
addRespondentAttributeMetaUse this operation to define and add additional attributes for respondent.
addRespondentGroupAdd new respondent group
addRoleAdd a clinician or respondent role definition to the system.
addRoleSetAdd role set to the system. Optionally also the included roles to the role set.
addRoleSetToTreatmentTypeAdd role set to treatment type.
addTreatmentInstanceUse this operation to add treatment instance to respondent. Add treatment attributes and roles to the treatment. Mandatory roles and attributes must be set.
addTreatmentTypeUse this operation to add treatment type. Add treatment type with optional treatment attributes, role sets, clinician group access.
addUserAdd a new clinician to the system with optional clinician attributes, access role (only one) and clinician groups (multiple groups OK).
addUserAttributeMetaUse this operation to define and add additional attribute for clinician.
changeRespondentIDDEPRECATED
connectRespondentGroupWithUserGroupThis operation creates connection between respondent group and clinician group.
deleteAssessmentInstanceThis will delete a given assessment instance permanently.
deleteAssessmentPlanInstanceDelete assessment plan instance and corresponding assessment instances, information packages and other plan content permanently. Cannot be reversed.
deleteRespondentDelete a respondent permanently from the system.
This will delete the respondent from the system. Concider using disableRespondent instead to
keep data in system. Log record of respondent creation and deletion are retained, all other log events are deleted.
deleteRespondentAttributeMetaUse this operation will delete respondent attribute definitions for respondent. NOTE: This will delete all collected data on this attribute for all respondents.
deleteRoleDelete an existing role. You cannot dele a role that is connected to a role set.
deleteRoleSetDelete an existing role set. NOTE: This will delete ALL connected data if the role set has been put in production.
deleteRoleSetHasRoleDeleting relations between roles and role set.
deleteTreatmentInstanceUse this operation to delete single treatment. NOTE: This deletes ALL connected data to the treatment.
deleteTreatmentTypeUse this operation to delete treatment type. NOTE: This will delete ALL connected treatment instances and ALL connected treatment data.
deleteUserDelete a given clinician. You might consider using the disableUser operation instead. This
will give you the possibility to enable the clinician later on.
By deleting a clinician the clinician will be removed from the system.
NOTE: You cannot delete a clinician that has performed an action in the system, for example added a respondet, created plan etc.
deleteUserAttributeMetaUse this operation to delete attribute defined for clinician. NOTE: This deletes ALL collected data for all clinicians on this attribute.
disableAssessmentInstancePortalThis removes the access instance token to the assessment portal for the specific assessment.
disableRespondentDisables a respondent' possibility to log in based on respondentID.
A disabled respondent can be enabled for login later, as opposed
to a deleted respondent which is removed from the system.
NOTE: Disabling a respondent does not mean that plans are stopped. Plans and notifications must be stopped separately.
disableUserDisable login to the system for a given clinician. This removes the possibility for a clinician to log in to the system. It does not stop any notification from plans.
You cannot add a disabled clinician to a role in a treatment or as an assigned clinician. Already assigned clinicians that are deactivated will still receive any notification..
See also enableUser.
editMessageUse this operation to change the status on a message to answered by clinician.
enableAssessmentInstancePortalThis operation will retrieve an access code for access to a specific assessment in the Assessment Portal.
enableRespondentEnable login to the system for a specific respondent based on respondentID.
This changes a previously disabled respondent back to enabled status.
enableUserEnables login to the system for a given clinician. See also disableUser.
executeDataExportTemplateOperation runs data export based on data export template. It possible to send set of
filters to customize data export result. NOTE: The returned ID of the data export instance must be kept so that the export instance can be fetched later. This method only initiates the generation of the export. It does not retrieve the actual data.
exportAssessmentInstanceDataUse this operation to export data from assessments
exportAssessmentInstanceStatusDataUse this operation to export information about assessment instance statuses. This also contains links to parent workflow for assessment instance, where this exists.
exportAssessmentPlanDataUse this operation to export information about plans instances.
exportLoginSessionDataUse this operation for get informatioon about login of respondents and clinicians to portals.
exportRespondentDataUse this operation to export data about respondents.
exportRespondentGroupDataUse this operation to export data about respondent groups
exportTreatmentInstanceDataUse this operation to export treatments.
exportUserDataUse this operation to export data about clinicians.
exportUserGroupDataUse this operation to export data about clinician groups.
exportUserGroupRespondentGroupMappingDataUse this operation to export data about connections between respondent groups and
clinician groups.
findAssessmentInstanceDetailedThis will return a list of assessment instances based on the requested parameters. This includes all metadata, like role, treatment type etc.
findAssessmentInstancesThis will return a list of assessment instances based on the requested parameters. This does not include metadata about the assessment instance.
findAssessmentPlanInstanceGet all plans templates
getAssessmentInstanceThis will retrieve basic set of information about a given assessmentInstance.
Use the getAssessmentInstanceReport to retrieve the actual report
getAssessmentInstanceAvailableReportsThis method will retreive a list of available reports for a given assessment instance.
Use the getAssessmentInstanceReportFile to retreive the actual report.
getAssessmentInstanceAvailableReportsFilterGet assessment instance reports based on assessment instance type.
getAssessmentInstanceContextsOperation returns all available contexts in the system.
getAssessmentInstanceDataGet assessment instance with answers, calculations and flags.
getAssessmentInstanceReportFileThis method will retrieve a given report for a given assessment instance report ID. This include code collections that are pushed to the API (respondent ID and mapping data collection).

Use the getAssessmentInstanceAvailableReports operation to see available report for a given assessment instance.
getAssessmentInstanceReportFileHL7v3Get report file in HL7v3 message format. NOTE: For configuration of HL7v3, this must be configurered server side prior to use.
getAssessmentInstanceReportFileKITHGet report file in KITH message format. NOTE: For configuration of KITH, this must be configurered server side prior to use.
getAssessmentPlanInstanceHasAssessmentInstanceOperation returns collection of assessment plan instances with assessment instances
assigned by plan
getAssessmentPlansGet all plan templates. You may filter by clinician group, treatment type, enabled, allowed manual. You will also get information about for example role set, as well as treatment attributes.
getAvailableAssessments
This operation returns a list of all available assessments in the system. NOTE: Only the latest enabled versions of the assessments are shown. This means that you will not get disabled previous versions of the assessment. Historical assessment instances may refer to these previous versions.
getAvailableLanguagesOperation returns collection of available languages defined in the system
getAvailableRespondentGroupsGet a collection of all respondent groups.
getAvailableUserGroupsOperation returns collection all clinician groups
getAvailableUserRolesUse this operation to get a list of available clinician roles.

To be able to add a clinician, a clincian role must be assigned to the clinician.
getDataExportAvailableTemplatesOperation returns collection of available data export templates. It includes both public and private data export template and all visible GUI options.
getDataExportInstanceGet the export instance files based on data export templates with the corresponding data
getMessageOperation returns message sent to or by respondent
getNewReportInstancesGet all assessment report instances which have not been marked as archived/exported. NOTE: It is possible to limit the number of retries for fetching a report.
Reports that have exceeded the given limit for fetching the report, are no longer shown in the list.
getNewReportInstancesDetailedGet a collection of detailed assessment report instances that are not already exported from the system.
Recommended method for integration purposes where additional data are needed to import properly. NOTE: It is possible to limit the number of retries for fetching a report.
Reports that have exceeded the given limit for fetching the report, are no longer shown in the list.
getRespondentGet data for a given respondent by respondent ID. NOTE: This will show all information on the respondent.
getRespondentAttributesMetaUse this operation to get all available attributes for respondent.
getRespondentByLoginNameGet a respondent record using the loginName as the key.
See also getRespondent
getRespondentGroupUserGroupMappingOperation returns collection of connections between respondent and clinician groups
getRoleGet a specific role defined by ID.
getRolesUse this operation to get a list of roles which can be used in treatments.
getRoleSetGet an existing role set defined by role set ID.
getRoleSetsUse this operation to get a list of role-sets which can be used to define pack of treatment roles.
getTreatmentInstanceUse this operation to get one treatment by treatment instance ID
getTreatmentInstancesUse this operation to get list of treatments. Respondent ID, treatment type and treatment status can be used as filters.
getTreatmentTypeUse this operation to get particular treatment type
getTreatmentTypesUse this operation to get list of treatment types
getUserGet data for a given clinician.
getUserAttributesMetaUse this operation to get list of all attributes defined for clinician.
removeRoleSetFromTreatmentTypeRemove role set from treatment type. NOTE: This will remove role sets from all running treatments of the given type. This will affect exising and future content in the treatment.
resolveDuplicatesMerge two respondents into one. The merged respondent is removed and related
assessment/workflow instances are moved to the other respondent.
setReportInstanceArchivedSet assessment instance report as archived/exported. This means that the report is marked as transferred. This cannot be undone.
terminateAssessmentPlanInstanceTerminate plan instance. NOTE: This only affect assessments in the plan instance. The operation will delete all unsubmitted assessments. Submitted assessments will be kept.
updateAssessmentInstanceUpdate information for an existing assessment instance.
Example usage: reschedule an assessment.
NOTE: Must NOT be used on an assessment instance in a plan.
updateRespondentUpdate data for a respondent. Password is not mandatory in update and should normally not be updated.
updateRespondentAttributeMetaUse this operation to change additional attributes for respondent.
updateRoleModify existing role. If setting a previously option role to mandatory, ensure that existing treatments are updated accordingly.
updateRoleSetUpdate an existing role set. If adding new mandatory roles, make sure that treatments and plans using this role set are updated.
updateTreatmentInstanceUse this operation to update property of treatment. You can update e.g. roles, attributes, end date, completed flag.
updateTreatmentTypeUse this operation to change properties of treatment type. NOTE: Removal of treatment type attributes will affect all treatment instances of this treatment type.
updateUserUpdate data for a given clinician.
updateUserAttributeMetaUse this operation to update additional attribute defined for clinician.