Skip to content

Commit 8699448

Browse files
authored
Merge pull request #163 from X-DataInitiative/CNAM-352-Release-1.1
Cnam 352: Release 1.1
2 parents f102203 + b5a3821 commit 8699448

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name := "SNIIRAM-featuring"
22

3-
version := "1.0"
3+
version := "1.1"
44

55
scalaVersion := "2.11.12"
66
val sparkVersion = "2.3.0"

src/main/scala/fr/polytechnique/cmap/cnam/study/fall/FallMain.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ object FallMain extends Main with FractureCodes {
3333

3434
logger.info("Reading sources")
3535
import implicits.SourceReader
36-
val sources = Sources.sanitizeDates(
37-
Sources.sanitize(sqlContext.readSources(fallConfig.input)),
38-
fallConfig.base.studyStart, fallConfig.base.studyEnd
39-
)
36+
val sources = Sources.sanitize(sqlContext.readSources(fallConfig.input))
4037
val dcir = sources.dcir.get.repartition(4000).persist()
4138
val mco = sources.mco.get.repartition(4000).persist()
4239

src/main/scala/fr/polytechnique/cmap/cnam/study/fall/config/FallConfig.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ object FallConfig extends FallConfigLoader with FractureCodes {
3131

3232
/** Base fixed parameters for this study. */
3333
final object BaseConfig extends BaseConfig(
34-
ageReferenceDate = LocalDate.of(2015, 1, 1),
35-
studyStart = LocalDate.of(2015, 1, 1),
36-
studyEnd = LocalDate.of(2016, 1, 1)
34+
ageReferenceDate = LocalDate.of(2014, 1, 1),
35+
studyStart = LocalDate.of(2014, 1, 1),
36+
studyEnd = LocalDate.of(2017, 1, 1)
3737
)
3838

3939
/** Fixed parameters needed for the Patients extractors. */

src/main/scala/fr/polytechnique/cmap/cnam/study/pioglitazone/PioglitazoneMain.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ object PioglitazoneMain extends Main {
4646
val config = PioglitazoneConfig.load(argsMap("conf"), argsMap("env"))
4747

4848
import implicits.SourceReader
49-
val sources = Sources.sanitizeDates(
50-
Sources.sanitize(sqlContext.readSources(config.input)),
51-
config.base.studyStart, config.base.studyEnd
52-
)
49+
val sources = Sources.sanitize(sqlContext.readSources(config.input))
5350

5451
val patients: Dataset[Patient] = new Patients(config.patients).extract(sources).cache()
5552
operationsMetadata += {

src/main/scala/fr/polytechnique/cmap/cnam/study/rosiglitazone/RosiglitazoneMain.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ object RosiglitazoneMain extends Main {
4040

4141
logger.info("Reading sources")
4242
import implicits.SourceReader
43-
val sources = Sources.sanitizeDates(
44-
Sources.sanitize(sqlContext.readSources(config.input)),
45-
config.base.studyStart, config.base.studyEnd
46-
)
43+
val sources = Sources.sanitize(sqlContext.readSources(config.input))
4744

4845
//Extracting Patients
4946
val patients: Dataset[Patient] = new Patients(config.patients).extract(sources).cache()

0 commit comments

Comments
 (0)