- attachment.download(string,int) -> string
Returns a base64 encoded string representing the download file - batch.addVials(string,string,array) -> nil
Adds vials to a data entry batch - batch.commit(string,string) -> nil
Commits a data entry batch - batch.create(string,string,struct) -> string
Creates and saves a data entry batch on the server - batch.delete(string,string) -> nil
Deletes a data entry batch - batch.get(string,string) -> struct
Returns a batch, including properties and vials - batch.getBatchProperties(string) -> array
Returns a list of batch properties in table.field form - batch.getHeaders(string,array,int) -> array
Returns a list of batches excluding the vial data, based on the criteria - batch.getSpecimenData(string,string,array,array,array,boolean) -> struct
Runs a search on the vial/sample unique ID fields and returns result containing row data for display and unique ID fields - Internal method for BSI Hub only - batch.getVialProperties(string) -> array
Returns a list of vial properties in table.field form - batch.performL1Checks(string,string) -> array
Performs level 1 checks and returns a list of errors - batch.performL2Checks(string,string) -> array
Performs level 2 checks and returns a list of errors - batch.removeVials(string,string,array) -> nil
Removes vials from a data entry batch - batch.reserveAvailableBsiIds(string,string,string,int) -> array
Reserves a number of available BSI IDs to a batch starting with the specified Sample ID. - batch.update(string,string,struct) -> nil
Updates batch properties - batch.updateVials(string,string,array,array) -> nil
Updates vials in a data entry batch - billing.run(string,string,string,string,boolean,boolean) -> nil
Executes a billing report - codelist.getCodeList(string,string,string) -> struct
Internal method that takes a code list name and returns a code list - codelist.synchCodeList(string,string,base64) -> nil
Takes a code list name and a CSV file and updates the code list - common.changePassword(string,string,string,string,string,boolean) -> string
common.changePassword(string,string,string,string,string) -> string
- common.changeWSPassword(string,string,string,string,string) -> nil
- common.checkPermission(string,string) -> boolean
Checks to see if the current user has the specified permission - common.getSystemPreferences(string,string) -> struct
Internal method to get the system preferences of a database. - common.logoff(string) -> nil
Logs off the specified session - common.logon(string,string,string) -> string
Takes username, password, and database, returns a session ID - common.ping(string) -> int
Pings the transaction server, returns ping time in milliseconds - common.serverBounce(string,string,boolean) -> string
Initiates a stealth bounce on the BSI transaction server - common.setForgottenPassword(string,string,string) -> string
Internal password reset for use by BSI Engage only - common.webLogon(string,string,string,string) -> string
Internal logon for use by BSI Engage only - consent.deleteActivePatientConsent(string,string,string,string) -> nil
Deletes the specified patient consent with a status of Active - consent.deletePatientConsent(string,string,string,int) -> nil
Deletes the patient consent with the specified patient_consent._patient_consent_id. - consent.getActivePatientConsent(string,string,string,string) -> struct
Retrieves a map representing the specified patient consent form with a status of Active - consent.getAttachmentsForActivePatientConsent(string,string,string,string) -> array
Returns an array representing the attachment information for the specified consent form with a status of Active - consent.getConsentFormProperties(string,string,string) -> array
Returns a list of consent form properties in table.field form - consent.getNonActivePatientConsent(string,string,string,string) -> array
Returns an array of Maps containing the consent form data for all forms that do not have a status of Active - consent.performL1Checks(string,struct,string,string,string) -> array
Returns the L1 errors found for a patient consent - consent.performL2Checks(string,struct,string,string,string) -> array
Returns the L2 errors found for a patient consent - consent.saveNewPatientConsent(string,struct,string,string,string) -> struct
Saves a new patient consent and returns the form data that was saved - consent.savePatientConsent(string,struct) -> struct
Updates the data for an existing patient consent and returns the updated form data - database.getFields(string,string) -> array
database.getFields(string,string,string) -> array
Returns a list of field information for the specified BSI table - database.getTables(string,string) -> array
database.getTables(string) -> array
An internal call that returns a list of table information in the BSI database. An external call that takes a session ID is also available. - database.lockObjects(string,array) -> nil
Creates locks for the given system objects - database.normalizeValues(string,array,array) -> array
database.normalizeValues(string,string,array) -> array
Returns a list of field and values, normalizing them when possible - database.unlockObjects(string,array) -> nil
Removes locks for the given system objects - esignatures.checkWebObjectAuthorization(string,string) -> boolean
Checks the Web Object Authorization - esignatures.registerAuthorizedWebObject(string,string) -> struct
Registers the Authorized Web Object with the Server - kit.updateStatus(string,array,int) -> nil
Returns an array representing the attachment data associated with the specified study - location.assignLocations(string,struct) -> array
Assigns and reserves locations, returning the assigned locations - location.copy(string,string,string) -> nil
Copies the specified container - location.create(string,struct) -> string
Creates a container from the location data, returning the Location ID - location.delete(string,string) -> nil
Deletes the specified container - location.get(string,string) -> struct
Returns a map representing the specified container - location.getAllowedSubcontainers(string,string) -> array
Returns allowed subcontainers for the container - location.getLocationLayout(string,string) -> array
Returns box layout data for the given location - location.move(string,string,string) -> nil
Moves the specified container - location.update(string,string,struct) -> nil
Updates the specified container with the data from the map - location.verifyLocationCreationData(string,struct) -> array
Verifies the data for a location creation. L1 Checks only. Returns a BatchError array - location.verifyLocationUpdateData(string,string,struct) -> array
Verifies the data for a location update. L1 Checks only. Returns a BatchError array - report.count(string,array,array) -> int
report.count(string,struct) -> int
Runs a count for the specified report - report.execute(string,array,array,array,int,int) -> struct
report.execute(string,struct) -> struct
report.execute(string,string) -> struct
Runs the specified report and returns row data - requisition.addBoxReturnToInventoryTask(string,string,struct) -> int
Adds a Box Return to Inventory task to the specified requisition. Returns the task ID for the new task. - requisition.addBoxTransferTask(string,string,struct) -> int
Adds a Box Transfer task to the specified requisition. Returns the task ID for the new task. - requisition.addDestroyTask(string,string,struct) -> int
Adds a Destroy task to the specified requisition. Returns the task ID for the new task. - requisition.addEmptyTask(string,string,struct) -> int
Adds an Empty task to the specified requisition. Returns the task ID for the new task. - requisition.addGenericTask(string,string,struct) -> int
Adds a generic task to the specified requisition. Returns the task ID for the new task. - requisition.addModifyTask(string,string,struct) -> int
Adds a Modify task to the specified requisition. Returns the task ID for the new task. - requisition.addPoolTask(string,string,struct) -> int
Adds a Pool task to the specified requisition. Returns the task ID for the new task. - requisition.addPullTask(string,string,struct) -> int
Adds a Pull task to the specified requisition. Returns the task ID for the new task. - requisition.addReturnToInventoryTask(string,string,struct) -> int
Adds a Return to Inventory task to the specified requisition. Returns the task ID for the new task. - requisition.addShipTask(string,string,struct) -> int
Adds a Ship task to the specified requisition. Returns the task ID for the new task. - requisition.addThawTask(string,string,struct) -> int
Adds a Thaw task to the specified requisition. Returns the task ID for the new task. - requisition.addTransferOutTask(string,string,struct) -> int
Adds a Transfer Out task to the specified requisition. Returns the task ID for the new task. - requisition.addVials(string,string,array) -> nil
requisition.addVials(string,string,array,array) -> nil
- requisition.applyBoxReturnToInventoryTask(string,string,int,array) -> boolean
Applies a Box Return to Inventory task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyBoxTransferTask(string,string,int,array) -> boolean
Applies a Box Transfer task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyDestroyTask(string,string,int,array) -> boolean
Applies a Destroy task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyEmptyTask(string,string,int,array) -> boolean
Applies an Empty task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyGenericTask(string,string,int,array) -> boolean
Applies a generic task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyModifyTask(string,string,int,array) -> boolean
Applies a Modify task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyPoolTask(string,string,int,array) -> boolean
Applies a Pool task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyPullTask(string,string,int,array) -> boolean
Applies a Pull task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyReturnToInventoryTask(string,string,int,array) -> boolean
Applies a Transfer Out task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyShipTask(string,string,int,array) -> boolean
Applies a Ship task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyThawTask(string,string,int,array) -> boolean
Applies a Thaw task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.applyTransferOutTask(string,string,int,array) -> boolean
Applies a Transfer Out task to the specified requisition, task and BSI IDs. Returns True if the task is successfully applied. - requisition.beginPoolTask(string,string,int,array,array,int,int,boolean,boolean,struct) -> boolean
Begins a Pool task on the specified requisition, task and BSI IDs. - requisition.beginPullTask(string,string,int,array) -> boolean
Begins a Pull task on the specified requisition, task and BSI IDs. - requisition.beginReturnToInventoryTask(string,string,int,array) -> boolean
Begins a Return to Inventory task on the specified requisition, task and BSI IDs. - requisition.beginShipTask(string,string,int,array) -> boolean
Begins a Ship task on the specified requisition, task and BSI IDs. - requisition.beginTransferOutTask(string,string,int,array) -> boolean
Begins a Transfer Out task on the specified requisition, task and BSI IDs. - requisition.changeRequisitionVialApprovalStatus(string,array,string,string,string,string,string) -> nil
requisition.changeRequisitionVialApprovalStatus(string,array,string,string,struct,string,string) -> nil
requisition.changeRequisitionVialApprovalStatus(string,array,string,string,string) -> nil
requisition.changeRequisitionVialApprovalStatus(string,array,string,string,struct) -> nil
Updates the vial approval status of the specified BSI IDs for the specified requisition - requisition.checkAuthorization(string,string) -> boolean
Returns true if the current user is allowed to access the specified requisition. - requisition.checkErrors(string,struct) -> array
Checks for errors in the specified properties, returns array that contains the errors and warnings - requisition.checkTaskErrors(string,struct) -> array
Checks for errors in the specified task properties, returns array that contains the errors and warnings - requisition.completeBoxReturnToInventoryTask(string,string,int,array,struct) -> boolean
Completes a Box Return to Inventory task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completeBoxTransferTask(string,string,int,array) -> boolean
Completes a Box Transfer task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completeDestroyTask(string,string,int,array) -> boolean
Completes a Destroy task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completeEmptyTask(string,string,int,array,boolean) -> boolean
requisition.completeEmptyTask(string,string,int,array) -> boolean
Completes an Empty task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completeGenericTask(string,string,int,array) -> boolean
Completes a generic task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completeModifyTask(string,string,int,array) -> boolean
Completes a Modify task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completePoolTask(string,string,int,array,struct,struct) -> boolean
Completes a Pool task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completePullTask(string,string,int,array) -> boolean
Completes a Pull task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completeReturnToInventoryTask(string,string,int,array) -> boolean
Completes a Return to Inventory task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completeShipTask(string,string,int,array) -> boolean
Completes a Ship task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. - requisition.completeTask(string,string,int,struct) -> boolean
Completes a task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed. Completion data struct can contain- bsiIds - a string array of the BSI IDs of the vials to complete the child task on
- vials - an array of maps containing data to update the vials with. vial.bsi_id must be set in each Map
- taskCompletionProperties - a map containing any special values to use during completion of the task
- childTaskCompletionData - a ChildTaskCompletionData struct containing:
- parentBsiIds - a string array of the BSI IDs of the parent vials to complete the task on
- childData - optional map of table.field to values to be applied to child vials
- specificData - optional map of BSI IDs to a map of table.field to values to be applied to the specific vial. Can be used for child or parent vials.
Only the required properties for each task should be filled out.
For tasks that require BSI IDs, bsiIds may be set or vials can be used. If vials is used, any non-BSI ID data in the maps will be ignored.
An error may be given if data is provided that is not used by the task.
The following lists the tasks available for completion and the data expected for each task:- BOX_RTI ('BR') - vials must be set. taskCompletionProperties must be set including a box_location_id_to_new_parent_location_id key with a map value
- BOX_TRANSFER ('BT') - bsiIds must be set
- DESTROY ('D') - bsiIds must be set
- EMPTY ('E') - bsiIds must be set. On some databases only taskCompletionProperties may be set with a zero_out_volume_on_completion key and true value to change volume to zero on completion of an Empty task. On databases where this is not supported, zero_out_volume_on_completion will be ignored.
- Generic Tasks - bsiIds must be set
- MODIFY ('5') - vials must be set
- POOL ('PO') - childTaskCompletionData must be set. parentBsiIds is the only required property within childTaskCompletionData.
- RETURN_TO_INVENTORY ('F') - vials must be set
- SHIP ('S') - bsiIds must be set
- THAW ('Th') - bsiIds must be set
- TRANSFEROUT ('X') - bsiIds must be set
- WITHDRAW ('2') - bsiIds must be set
requisition.completeThawTask(string,string,int,array) -> boolean
Completes a Thaw task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed.requisition.completeTransferOutTask(string,string,int,array) -> boolean
Completes a Transfer Out task in the specified requisition for the task ID and BSI IDs. Returns True if the task is successfully completed.requisition.deleteAttachment(string,string,string,int) -> nil
Deletes an attachment from a requisition field.requisition.deleteManifest(string,string) -> nil
requisition.downloadManifest(string,string) -> string
Downloads manifest data associated with a requisitionrequisition.duplicate(string,string,struct,array) -> struct
Creates a new requisition duplicating the vials and tasks of the original requisition.requisition.duplicateTasks(string,string,struct,array,array) -> struct
Creates a new requisition duplicating the tasks of the original requisition.requisition.duplicateVials(string,string,struct,array) -> struct
Creates a new requisition duplicating the vials of the original requisition.requisition.get(string,string) -> struct
Gets a requisition.requisition.getAppliedReqVials(string,string,int) -> array
Returns an array containing the vial task information for the requisition task.requisition.getAttachments(string,string) -> array
Returns an array representing the attachment data associated with the specified requisitionrequisition.getAvailableTaskPropertyFields(string,string) -> array
Returns the task properties that may be set for the given task type, database, and userrequisition.getBsiIdsRequiringApproval(string,string) -> array
Returns an array representing the BSI IDs of vials in the requisition that still require approval from the current user.requisition.getProperties(string,string) -> array
requisition.getProperties(string) -> array
Returns an array of requisition properties in table.field formrequisition.getPropertyDefaults(string,string) -> struct
requisition.getPropertyDefaults(string) -> struct
Returns default requisition properties for a template as a Map in the form requisition.getReqDiscrepancies(string,string) -> array
Gets discrepancies for a requisition.requisition.getRequisitionTaskProperties(string,string,int) -> struct
requisition.getRequisitionTaskProperties(string,string,int,boolean) -> struct
Returns a map of properties to values for the requisition task.requisition.getTaskVialOrder(string,string,int,string) -> struct
Gets the task vial order for a specific task.requisition.getTasks(string,string) -> array
Returns an array containing the task information for the requisition.requisition.performL1TaskCompletionChecks(string,string,int,struct) -> array
Performs l1 task completion checks on the task in the specified requisition for the task ID. Returns True if the task is successfully completed. Completion data struct can contain- bsiIds - a string array of the BSI IDs of the vials to complete the child task on
- vials - an array of maps containing data to update the vials with. vial.bsi_id must be set in each Map
- taskCompletionProperties - a map containing any special values to use during completion of the task
- childTaskCompletionData - a ChildTaskCompletionData struct containing:
parentBsiIds - a string array of the BSI IDs of the parent vials to complete the task onchildData - optional map of table.field to values to be applied to child vialsspecificData - optional map of BSI IDs to a map of table.field to values to be applied to the specific vial. Can be used for child or parent vials.
Only the required properties for each task should be filled out.
For tasks that require BSI IDs, bsiIds may be set or vials can be used. If vials is used, any non-BSI ID data in the maps will be ignored.
An error may be given if data is provided that is not used by the task.
The following lists the tasks available for completion and the data expected for each task:- BOX_RTI ('BR') - vials must be set. taskCompletionProperties must be set including a box_location_id_to_new_parent_location_id key with a map value
- BOX_TRANSFER ('BT') - bsiIds must be set
- DESTROY ('D') - bsiIds must be set
- EMPTY ('E') - bsiIds must be set. On some databases only taskCompletionProperties may be set with a zero_out_volume_on_completion key and true value to change volume to zero on completion of an Empty task. On databases where this is not supported, zero_out_volume_on_completion will be ignored.
- Generic Tasks - bsiIds must be set
- MODIFY ('5') - vials must be set
- POOL ('PO') - childTaskCompletionData must be set. parentBsiIds is the only required property within childTaskCompletionData.
- RETURN_TO_INVENTORY ('F') - vials must be set
- SHIP ('S') - bsiIds must be set
- THAW ('Th') - bsiIds must be set
- TRANSFEROUT ('X') - bsiIds must be set
- WITHDRAW ('2') - bsiIds must be set
requisition.performL2TaskCompletionChecks(string,string,int,struct) -> array
Performs l2 task completion checks on the task in the specified requisition for the task ID. Returns True if the task is successfully completed. Completion data struct can contain- bsiIds - a string array of the BSI IDs of the vials to complete the child task on
- vials - an array of maps containing data to update the vials with. vial.bsi_id must be set in each Map
- taskCompletionProperties - a map containing any special values to use during completion of the task
- childTaskCompletionData - a ChildTaskCompletionData struct containing:
parentBsiIds - a string array of the BSI IDs of the parent vials to complete the task onchildData - optional map of table.field to values to be applied to child vialsspecificData - optional map of BSI IDs to a map of table.field to values to be applied to the specific vial. Can be used for child or parent vials.
Only the required properties for each task should be filled out.
For tasks that require BSI IDs, bsiIds may be set or vials can be used. If vials is used, any non-BSI ID data in the maps will be ignored.
An error may be given if data is provided that is not used by the task.
The following lists the tasks available for completion and the data expected for each task:- BOX_RTI ('BR') - vials must be set. taskCompletionProperties must be set including a box_location_id_to_new_parent_location_id key with a map value
- BOX_TRANSFER ('BT') - bsiIds must be set
- DESTROY ('D') - bsiIds must be set
- EMPTY ('E') - bsiIds must be set. On some databases only taskCompletionProperties may be set with a zero_out_volume_on_completion key and true value to change volume to zero on completion of an Empty task. On databases where this is not supported, zero_out_volume_on_completion will be ignored.
- Generic Tasks - bsiIds must be set
- MODIFY ('5') - vials must be set
- POOL ('PO') - childTaskCompletionData must be set. parentBsiIds is the only required property within childTaskCompletionData.
- RETURN_TO_INVENTORY ('F') - vials must be set
- SHIP ('S') - bsiIds must be set
- THAW ('Th') - bsiIds must be set
- TRANSFEROUT ('X') - bsiIds must be set
- WITHDRAW ('2') - bsiIds must be set
requisition.removeVials(string,string,array) -> nil
requisition.requestVials(string,string,array) -> nil
requisition.requestVials(string,string,array,array,string) -> nil
requisition.requestVials(string,string,array,string) -> nil
requisition.requestVials(string,string,array,array) -> nil
requisition.save(string,struct) -> string
Saves a requisition with the specified properties, returns the requisition IDrequisition.setShipBoxData(string,string,int,string,struct) -> boolean
Sets the Ship Box Data for one or more vials within a single ship task.requisition.setTaskVialOrder(string,string,int,struct) -> struct
Sets the task vial order for a specific task.requisition.submit(string,struct) -> string
requisition.submit(string,struct,array,array,array) -> struct
Submits a requisition with the specified properties, returns the requisition IDrequisition.submitSavedRequisition(string,string) -> struct
Submits a previously saved requisitionrequisition.update(string,string,struct) -> nil
Updates a requisition with the specified propertiesrequisition.updateDiscrepancyResolutionSuggestions(string,struct) -> nil
Appends a discrepancy resolution suggestion to existing suggested resolution.requisition.updatePriorities(string,struct) -> array
Updates requisition priorities.requisition.updateRequisitionTaskProperties(string,string,int,struct) -> struct
Updates the requisition task properties using a map of properties.requisition.updateVials(string,string,array) -> nil
requisition.uploadAttachment(string,string,string,base64) -> int
Uploads the attachment to the requisition and returns the integer id generated for the uploaded attachmentrequisition.uploadManifest(string,string,base64,string) -> nil
Uploads manifest data and attaches it to a requisitionresults.createResultsBatch(string,string,string,struct) -> string
results.createResultsBatch(string,string,string,struct,string,base64) -> string
Create a results batchresults.getProcedureDescription(string,string,string) -> struct
Retrives the procedure descriptionresults.getResultsRunData(string,string,string,string) -> array
Retrives results run dataresults.saveResultsRunData(string,string,string,string,base64) -> nil
Saves results run dataservermetrics.getActiveDatabaseNames(string,string) -> string
Returns the current session count per databaseservermetrics.getApplicationServerLoadAverage(string,string) -> string
Returns the current server load average for the application serverservermetrics.getApplicationServerThreadCount(string,string) -> string
Returns the current thread count for the application serverservermetrics.getApplicationServerThreadNamesAndCpuTimes(string,string) -> struct
Returns the current thread names and cpu timesservermetrics.getAvailableApplicationServerJvmMemory(string,string) -> string
Returns the available JVM memory for the application serverservermetrics.getAvailableJvmMemory(string,string) -> string
Returns the available JVM memoryservermetrics.getCurrentServerId(string,string) -> string
Returns the server IDservermetrics.getCurrentSessionCount(string,string) -> string
Returns the number of current sessions/usersservermetrics.getCurrentSessionCountPerDatabase(string,string) -> struct
Returns the current session count per databaseservermetrics.getCurrentThreadCount(string,string) -> string
Returns the current thread countservermetrics.getCurrentThreadNamesAndCpuTimes(string,string) -> struct
Returns the current thread names and cpu timesservermetrics.getServerLoadAverage(string,string) -> string
Returns the current server load averageservermetrics.getServerStartTime(string,string) -> string
Returns the start time of the current serverservermetrics.getServerVersion(string,string) -> string
Returns the BSI version of the current serverservermetrics.getTotalApplicationServerJvmMemory(string,string) -> string
Returns the total JVM memory for the application serverservermetrics.getTotalJvmMemory(string,string) -> string
Returns the total JVM memorysession.createBsiHubRequestKey(string,string,string) -> string
Internal method for creating a request key for BSI Hub - BSI-Hub onlysession.createBsiHubSession(string,string,string,string) -> string
session.createBsiHubSession(string,string,string) -> string
Internal method for creating a session to submit data from BSI Hub as user who submitted file - BSI-Hub onlysession.createFromSSO(string,string,string,string,int) -> string
session.createFromSSO(string,string,string,string,int,string) -> string
Internal method for creating session id for an authenticated sso user - BSI Engage onlysession.expireBsiHubRequestKey(string,string) -> nil
Internal method for expiring a request key for BSI Hub - BSI-Hub onlysession.hubWebsiteLogon(string,string,string,string) -> string
Internal logon for use by BSI-Hub onlysession.reactivateBsiHubSession(string,string,string) -> nil
Internal method for reactivating a BSI Hub session - BSI-Hub onlysession.reactivateFromSSO(string,string,string,string,string,int) -> string
Internal method for reactivating a session for an authenticated sso user - BSI Engage onlyshipment.addVials(string,string,array) -> int
shipment.checkAuthorization(string,string) -> boolean
Returns true if the current user is allowed to access the specified shipment. Returns false if the user is not allowed to access the shipment or the shipment could not be found.shipment.checkErrors(string,struct) -> array
Checks for errors in the specified properties, returns array that contains the errors and warningsshipment.deleteManifest(string,string) -> nil
shipment.getAttachments(string,string) -> array
Returns an array representing the attachment data associated with the specified shipment.shipment.getDiscrepancies(string,string) -> array
Gets discrepancies for a shipment.shipment.getProperties(string) -> array
Returns an array of shipment properties in table.field formshipment.getShipment(string,string) -> struct
Returns a shipment, including properties and vialsshipment.getTemplates(string) -> array
Returns an array of template paths inside the user's institution.shipment.receive(string,string,struct,boolean) -> nil
Updates the received properties of the shipment and sets the shipment status as received. If markVialsAsReceived is true, then all vials in the shipment batch will be marked as received.shipment.submit(string,struct,array) -> string
shipment.submit(string,struct) -> string
Submits a shipment with the specified properties, returns the shipment IDshipment.transferShipmentToBatch(string,string,string) -> string
Transfers all 'Received' and 'In Batch' vials in the shipment to a data entry batch.shipment.update(string,string,struct) -> nil
Updates a shipment with the specified propertiesshipment.updateDiscrepancyResolutionSuggestions(string,string,struct) -> int
Appends a discrepancy resolution suggestion to existing suggested resolution.shipment.uploadAttachment(string,string,string,string,base64) -> int
shipment.uploadAttachment(string,string,string,base64) -> int
Uploads the attachment to the shipment and returns the integer id generated for the uploaded attachmentshipment.uploadManifest(string,string,base64,string) -> nil
Uploads manifest data and attaches it to a shipmentstudy.checkErrors(string,struct) -> array
Checks for errors in the specified properties, returns array that contains the errors and warningsstudy.create(string,struct) -> string
Creates a study from the study data, returning the Study IDstudy.get(string,string) -> struct
Returns a map representing the specified studystudy.getAttachments(string,string) -> array
Returns an array representing the attachment data associated with the specified studystudy.getAuthorizedStudies(string,string) -> array
study.getAuthorizedStudies(string) -> array
Returns an array of study IDs the current user has authorization for and the study permissionstudy.getProperties(string) -> array
study.getProperties(string,string) -> array
Returns a string array representing the study propertiesstudy.getPropertyDefaults(string) -> struct
study.getPropertyDefaults(string,string) -> struct
Returns default study properties as a Map in the form study.update(string,string,struct) -> string
study.update(string,string,struct,int) -> string
Updates the specified study with the data from the mapstudy.uploadAttachment(string,string,string,base64) -> int
Uploads the attachment to the study and returns the integer id generated for the uploaded attachmentsubject.deleteSubject(string,string,string) -> nil
Deletes a subjectsubject.deleteUniversalSubject(string,string) -> nil
Deletes a universal subjectsubject.getAttachments(string,string,string) -> array
Returns an array representing the attachment information for a subjectsubject.getSubject(string,string,string) -> struct
Retrieves a map representing the specified subjectsubject.getSubjectProperties(string,string) -> array
Returns a list of subject properties in table.field formsubject.getSubjectsForMRN(string,string,string) -> struct
Database specific. Returns a report of the subjects that exist for the given MRN and Study ID.subject.getUniversalSubject(string,string) -> struct
Retrieves a map representing the specified universal subjectsubject.getUniversalSubjectsForMRN(string,string) -> struct
Database specific. Returns a report of universal subject IDs that exist for the given MRN.subject.performL1Checks(string,struct,string,string) -> array
subject.performL1Checks(string,array,string) -> array
Returns the L1 errors found for a subjectsubject.performL2Checks(string,struct,string,string) -> array
subject.performL2Checks(string,array,string) -> array
Returns the L2 errors found for a subjectsubject.performUniversalL1Checks(string,struct,string) -> array
Returns the L1 errors found for a universal subjectsubject.performUniversalL2Checks(string,struct,string) -> array
Returns the L2 errors found for a universal subjectsubject.saveNewSubject(string,struct,string,string) -> struct
Saves a new subject and returns the subject that was savedsubject.saveNewSubjects(string,array,string) -> array
Saves a set of new subject and returns the subject that was savedsubject.saveNewUniversalSubject(string,struct,string) -> struct
Saves a new universal subject and returns the universal subject that was savedsubject.saveSubject(string,struct) -> struct
Updates the data for an existing subject and returns the updated subjectsubject.saveSubjects(string,array,string) -> array
Updates the data for an existing set of subjects and returns the updated subject setsubject.saveUniversalSubject(string,struct) -> struct
Updates the data for an existing universal subject and returns the updated universal subjecttemplate.getTemplates(string) -> array
Returns an array of template paths inside the user's institution.test.add(int,int) -> int
Returns the sum of the two input numberstest.echo(string) -> string
Sends back the input stringuser.authorize(string,int,array) -> nil
Authorizes the specified user ID to have the given rolesuser.create(string,struct) -> int
Creates a new user with the specified properties, returns the new user IDuser.getCurrentUserInfo(string) -> struct
Gets user information for the current useruser.getInfo(string,int) -> struct
Gets user information for the specified user IDuser.getUserModuleAccess(string,string) -> array
Returns the accessible modules for the given useruser.update(string,int,struct) -> nil
Updates the specified user ID to have the given propertiesuser.updateCurrentUsersRepository(string,string) -> nil
Updates the current user's repositoryuser.verifyUsernameAndPassword(string,string,string) -> boolean
Verifies the current user's username and password