package edu.emory.cci.aiw.cvrg.eureka.etl.dest;

/*
 * #%L
 * Eureka Protempa ETL
 * %%
 * Copyright (C) 2012 - 2015 Emory University
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import edu.emory.cci.aiw.cvrg.eureka.common.entity.Neo4jDestinationEntity;
import edu.emory.cci.aiw.neo4jetl.config.Configuration;

/**
 *
 * @author Andrew Post
 */
public class EurekaNeo4jConfiguration implements Configuration {
	private final Neo4jDestinationEntity destination;

	EurekaNeo4jConfiguration(Neo4jDestinationEntity destination) {
		this.destination = destination;
	}
	
	@Override
	public String[] getPropositionIds() {
		return new String[]{"Patient", "PatientDetails", "Encounter", "LAB:LabTest", "ICD9:Diagnoses", "ICD9:Procedures", "MED:medications", "CPTCode", "VitalSign"};
	}

	@Override
	public String getNeo4jHome() {
		return this.destination.getDbHome();
	}

}

@@ -702,17 +702,16 @@
 #L%25%0A */%0A
-%0A
 import e
@@ -933,16 +933,17 @@
 ation %7B%0A
+%0A
 %09private
@@ -1091,10 +1091,9 @@
 %0A%09%7D%0A
-%09
 %0A
+
 %09@Ov
@@ -1341,24 +1341,24 @@
 o4jHome() %7B%0A
-
 %09%09return thi
@@ -1388,10 +1388,479 @@
 ();%0A%09%7D%0A%0A
+%09/**%0A%09 * Gets the value to set null properties. Must be one of the following %0A%09 * types: %0A%09 * %3Cul%3E%0A%09 * %3Cli%3Eboolean or boolean%5B%5D byte or byte%5B%5D %0A%09 * %3Cli%3Eshort or short%5B%5D %0A%09 * %3Cli%3Eint or int%5B%5D %0A%09 * %3Cli%3Elong or long%5B%5D %0A%09 * %3Cli%3Efloat or float%5B%5D%0A%09 * %3Cli%3Edouble or double%5B%5D %0A%09 * %3Cli%3Echar or char%5B%5D %0A%09 * %3Cli%3Ejava.lang.String or String%5B%5D%0A%09 * %3C/ul%3E%0A%09 *%0A%09 * @return an instance of one of the valid types above.%0A%09 */%0A%09@Override%0A%09public Object getNullValue() %7B%0A%09%09return %22N/A%22;%0A%09%7D%0A%0A
 %7D%0A

Support a default null value for data file loading.