I what to create a custom SQL where some parameters can be set at the Characterisation.
I have created a custom SQL Feature Analysis.
Here a working Characterisation test using it:
http://atlas-demo.ohdsi.org/#/cc/characterizations/428
I would like to change be able to edit some of the variables from the “Feature analyses parameters” option in the “Characterisation”.
Here is the example:
http://atlas-demo.ohdsi.org/#/cc/characterizations/429
However, I get the following error when executing
org.ohdsi.webapi.exception.AtlasException: org.json.JSONException: JSONObject["days_before_index"] is not a Boolean.
at org.ohdsi.webapi.common.generation.TransactionalTasklet.execute(TransactionalTasklet.java:42)
at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)
at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:272)
at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)
at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)
at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)
at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)
at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)
at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)
at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)
at org.springframework.batch.core.job.AbstractJob.handleStep(AbstractJob.java:392)
at org.springframework.batch.core.job.SimpleJob.doExecute(SimpleJob.java:135)
at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:306)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:135)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.json.JSONException: JSONObject["days_before_index"] is not a Boolean.
at org.json.JSONObject.getBoolean(JSONObject.java:523)
at org.ohdsi.featureExtraction.FeatureExtraction.convertSettingsPrespecToDetails(FeatureExtraction.java:344)
at org.ohdsi.featureExtraction.FeatureExtraction.createSql(FeatureExtraction.java:505)
at org.ohdsi.featureExtraction.FeatureExtraction.createSql(FeatureExtraction.java:465)
at org.ohdsi.cohortcharacterization.CCQueryBuilder.createFeJsonObject(CCQueryBuilder.java:507)
at org.ohdsi.cohortcharacterization.C