public class AppConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTIES_FILE |
static java.lang.String |
CREDENTIALS_FILE_I2B2 |
static java.lang.String |
EP_I2B2_CRC_PDOREQUEST |
static java.lang.String |
EP_I2B2_CRC_UPLOAD |
static java.lang.String |
EP_I2B2_FR_SEND |
static java.lang.String |
FIELNAME_SOAP_TEMP_I2B2_FR_SEND |
static java.lang.String |
FIELNAME_SOAP_TEMP_I2B2_FR_UPLOAD |
static java.lang.String |
FILENAME_REST_TEMP_I2B2_CRC_QUERYPDO |
static java.lang.String |
FORMAT_DATE_I2B2 |
static java.lang.String |
HOST_I2B2_CRC |
static java.lang.String |
HOST_I2B2_FR |
static int |
HTTP_TRANSPORT_BUFFER_SIZE |
static java.lang.String |
I2B2_DATASOURCE |
static java.lang.String |
I2B2_DOMAIN |
static java.lang.String |
I2B2_FR_FILE_LOCATION |
static java.lang.String |
I2B2_PDO_SOURCE_BCH |
static java.lang.String |
I2B2_PROJECT_ID |
static java.lang.String |
NET_PROTOCOL_I2B2_CRC |
static java.lang.String |
NET_PROTOCOL_I2B2_FR |
static java.lang.String |
PORT_I2B2_CRC |
static java.lang.String |
PORT_I2B2_FR |
static java.lang.String |
REST_CONTENT_TYPE_I2B2_CRC_QUERY |
static java.lang.String |
REST_CONTENT_TYPE_I2B2_CRC_UPLOAD |
static java.lang.String |
SOAP_ACTION_I2B2_FR_SEND |
Constructor and Description |
---|
AppConfig() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getAuthCredentials(java.lang.String key)
Returns the content of the the credential file whsoe path is encoded in the value of the key parameter
|
static java.util.Map<java.lang.String,java.lang.String> |
getConceptCodesTypeMap()
Get the mapping types for QuestionnaireResponse fhir resources.
|
static java.lang.String |
getProp(java.lang.String key)
Get the value of the property described in conf.properties file
|
static java.util.Map<java.lang.String,java.lang.String> |
getRealConceptCodesMap()
Get the i2b2 mappings for QuestionnaireResponse fhir resources.
|
static java.util.Map<java.lang.String,java.lang.String> |
getRealConceptCodesObsMap()
Get the i2b2 mappings for Observation fhir resources.
|
static java.util.Map<java.lang.String,java.lang.String> |
getRealConceptCodesTypeObsMap()
Get the mapping types for Observation fhir resources.
|
public static java.lang.String EP_I2B2_FR_SEND
public static java.lang.String EP_I2B2_CRC_UPLOAD
public static java.lang.String EP_I2B2_CRC_PDOREQUEST
public static java.lang.String HOST_I2B2_FR
public static java.lang.String HOST_I2B2_CRC
public static java.lang.String PORT_I2B2_FR
public static java.lang.String PORT_I2B2_CRC
public static java.lang.String NET_PROTOCOL_I2B2_FR
public static java.lang.String NET_PROTOCOL_I2B2_CRC
public static java.lang.String CREDENTIALS_FILE_I2B2
public static java.lang.String FIELNAME_SOAP_TEMP_I2B2_FR_SEND
public static java.lang.String FIELNAME_SOAP_TEMP_I2B2_FR_UPLOAD
public static java.lang.String FILENAME_REST_TEMP_I2B2_CRC_QUERYPDO
public static java.lang.String SOAP_ACTION_I2B2_FR_SEND
public static java.lang.String FORMAT_DATE_I2B2
public static java.lang.String I2B2_PROJECT_ID
public static java.lang.String I2B2_DOMAIN
public static java.lang.String I2B2_FR_FILE_LOCATION
public static java.lang.String REST_CONTENT_TYPE_I2B2_CRC_UPLOAD
public static java.lang.String REST_CONTENT_TYPE_I2B2_CRC_QUERY
public static java.lang.String I2B2_PDO_SOURCE_BCH
public static final java.lang.String I2B2_DATASOURCE
public static int HTTP_TRANSPORT_BUFFER_SIZE
public static java.lang.String CONFIG_PROPERTIES_FILE
public static java.util.Map<java.lang.String,java.lang.String> getRealConceptCodesObsMap()
public static java.util.Map<java.lang.String,java.lang.String> getRealConceptCodesTypeObsMap()
public static java.util.Map<java.lang.String,java.lang.String> getRealConceptCodesMap()
public static java.util.Map<java.lang.String,java.lang.String> getConceptCodesTypeMap()
public static java.lang.String getProp(java.lang.String key) throws FHIRI2B2Exception
key
- The key of the propertyFHIRI2B2Exception
- If the property key does not exist.public static java.lang.String getAuthCredentials(java.lang.String key) throws java.io.IOException, FHIRI2B2Exception
key
- The key of the property in config.properties that contains the path of the filejava.io.IOException
- If there is a problem reading the fileFHIRI2B2Exception
- In case the parameter is not well-formed