public class I2B2CellFR extends WrapperAPI
| Modifier and Type | Class and Description |
|---|---|
static class |
I2B2CellFR.UploadI2B2Response
Class to capture the responses from I2B2
|
static class |
I2B2CellFR.XmlPdoTag
The enum class for the xml pdo set tags
|
| Constructor and Description |
|---|
I2B2CellFR() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
calcFileHash(java.lang.String fileData)
Computes the MD5 hash of the file
|
static java.lang.String |
calcFileSize(java.lang.String fileData)
Computes the size of the file
|
static java.lang.String |
generateFileSendRequest(java.lang.String date,
java.lang.String i2b2Domain,
java.lang.String i2b2User,
java.lang.String i2b2Pass,
java.lang.String projectId,
java.lang.String fileSize,
java.lang.String fileName,
java.lang.String fileHash)
Generates the pdo xml message to I2B2 FR to send a file
|
java.lang.String |
generateURLSend()
Generates the URL to connect to the I2B2 FR cell
|
java.lang.String |
generateURLUpload()
Generates the URL where to connect to the I2B2 CRC cell
|
I2B2CellFR.UploadI2B2Response |
pushPDOXML(java.lang.String pdoxml)
Send a pdoxml file to i2b2 and uploads its content to the CRC cell
|
getHttpRequest, getSoapRequest, log, setHttpRequest, setSoapRequestpublic I2B2CellFR.UploadI2B2Response pushPDOXML(java.lang.String pdoxml) throws FHIRI2B2Exception, java.io.IOException
pdoxml - The pdo xmlFHIRI2B2Exceptionjava.io.IOExceptionpublic java.lang.String generateURLSend()
throws FHIRI2B2Exception
FHIRI2B2Exception - In case there are missing properties that prevent to construct the URLpublic java.lang.String generateURLUpload()
throws FHIRI2B2Exception
FHIRI2B2Exception - In case there are missing properties that prevent to construct the URLpublic static java.lang.String generateFileSendRequest(java.lang.String date,
java.lang.String i2b2Domain,
java.lang.String i2b2User,
java.lang.String i2b2Pass,
java.lang.String projectId,
java.lang.String fileSize,
java.lang.String fileName,
java.lang.String fileHash)
date - The datei2b2Domain - The I2B2 domaini2b2User - The authorized I2B2 user to upload the filei2b2Pass - The passwordprojectId - The I2B2 project idfileSize - The file size calculated with calcFileSize(String)fileName - The filenamefileHash - The hash of the file calculated with calcFileHash(String)public static java.lang.String calcFileHash(java.lang.String fileData)
fileData - The file contentpublic static java.lang.String calcFileSize(java.lang.String fileData)
fileData - The file content