Comments (2)
No, having a negative date shouldn't be a 'fatal' data problem that
prevents completion of the query.
Here's the TSQL query for analysis 606:
select 606 as analysis_id,
procedure_concept_id as stratum_1,
gender_concept_id as stratum_2,
count(count_value) as count_value,
min(count_value) as min_value,
max(count_value) as max_value,
avg(1.0_count_value) as avg_value,
stdev(count_value) as stdev_value,
max(case when p1<=0.50 then count_value else -9999 end) as median_value,
max(case when p1<=0.10 then count_value else -9999 end) as p10_value,
max(case when p1<=0.25 then count_value else -9999 end) as p25_value,
max(case when p1<=0.75 then count_value else -9999 end) as p75_value,
max(case when p1<=0.90 then count_value else -9999 end) as p90_value
from
(
select po1.procedure_concept_id,
p1.gender_concept_id,
po1.procedure_start_year - p1.year_of_birth as count_value,
1.0_(row_number() over (partition by po1.procedure_concept_id,
p1.gender_concept_id order by po1.procedure_start_year -
p1.year_of_birth))/(count(po1.procedure_start_year - p1.year_of_birth) over
(partition by po1.procedure_concept_id, p1.gender_concept_id)+1) as p1
from person p1
inner join
(select person_id, procedure_concept_id, min(year(procedure_date)) as
procedure_start_year
from procedure_occurrence
group by person_id, procedure_concept_id
) po1
on p1.person_id = po1.person_id
) t1
group by procedure_concept_id, gender_concept_id
;
Is it possible you have NULL procedure dates? that still shouldn't cause a
failure of the query but may do some other wonky things...
On Sun, Jun 15, 2014 at 4:30 PM, jduke99 [email protected] wrote:
I have run Analysis 606 several times and it does not make it to the
Results table. But I do get this ERROR in Achilles HEEL:ERROR: Distribution of age by procedure_concept_id; min should not be
negativeIs this a "fatal" data problem then that prevents completion of the query?
I want to sleuth out the cause (assuming something to do with birthdates).
But wondering if ACHILLES could still complete output even with this error.—
Reply to this email directly or view it on GitHub
#9.
from achilles.
Hi Jon,
Are you still having this problem? I'm unable to reproduce it. You can check whether the results are produced using the fetchAchillesAnalysisResults function:
fetchAchillesAnalysisResults(connectionDetails, "<your_results_schema>", 606)
Cheers,
Martijn
from achilles.
Related Issues (20)
- exportToAres connection handling
- Question: Why use "subject_id" to refer to a concept_id in OHDSI-SQL? HOT 2
- Add table to Achilles processing to facilitate WebAPI call
- NULL units should be included into the analysis 1815 "Distribution of numeric values, by measurement_concept_id and unit_concept_id"
- ACHILLES_RESULTS table: ERROR: no runtime found in log file HOT 4
- Achilles DatabaseConnector Error on exit HOT 1
- Please add the dbSummary function back to Achilles HOT 1
- Error in exportToAres() with duckdb output format HOT 1
- Unexpected result for analysis 110: not covering all months with observation period
- Out of temp space for analysis 1824
- Error in performTemporalCharacterization
- achilles execution date capture
- Achilles Generating Incorrect Column Name in SQL Scripts - vo.discharge_to_concept_id HOT 1
- Case Sensitive Table Names
- Analysis 1900 results insert fails on Snowflake (w. excess length source values)
- Imposible execution of 117 in Spark
- define analyses relevant for data in note_nlp table HOT 1
- Column name case sensitivity error in duckdb HOT 3
- Add parameter to exportToAres function
- Minor bug running inst/sql/sql_server/analyses/2004.sql HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from achilles.