Changes between Version 9 and Version 10 of Onyx to PDO


Ignore:
Timestamp:
01/10/12 22:41:28 (12 years ago)
Author:
jeff.lusted
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Onyx to PDO

    v9 v10  
    3232
    3333The '''__observation facts__''' holds one row for every fact (deemed sensible to include) that has been gleaned about a participant from the questionnaire.
     34
     35=== Building Observation Facts ===
     36The strategy in dealing with Onyx variables is to fall back on accommodating them as either discrete variables (true/false) or enumerated variables.
     37In effect, not variables that can be measured by a continuous measure. This is in contrast to pathology tests, where the background is to expect a continuous measure of some sort.
     38
     39The following is the main algorithm for forming observation facts.
     40
     41For each variable relating to a participant...
     42
     43'''__Firstly__''', all of the following are ''''ignored'''':
     44
     451. All variables from !QuestionnaireRun and !QuestionnaireMetric.
     462. All variables from Participant except for:
     47   ethnicity, age, gender and recruitment type.
     483. Other primary diagnoses, other secondary diagnoses and other symptoms are textual note fields which should get folded into the associated
     49   "other" observation_fact. But I don't think they are. What should I do?
     504. Symptoms onset are ignored here and used instead as start date for the associated observation_fact.
     515. Patient email 1 and email 2 from the !EndContactQuestionnaire.
     526. !TubeCode, barcode and prefixCode from !UrineSamplesCollection and !BloodSamplesCollection.
     537. The following Onyx types: DATA, LOCALE and BINARY[[BR]]
     54 
     55'''__Secondly__''', we examine the remainder for BOOLEANS where the answer is TRUE.[[BR]]
     56Some of these are (already) enumerated types (ie: not generated ones, but ones
     57designed into the questionnaire itself), and are definite observation facts,
     58whilst others have an uncertain status. The only way to decide between the two
     59is to see whether we have ontological data within the refined metadata. If that exists,
     60then we are looking at an enumerated type and the value represents an observation fact.
     61These are processed as enumerations. The other BOOLEANS are reported upon.[[BR]][[BR]]
     62               
     63'''__Thirdly__''', non BOOLEANS where ontological data can be found are examined. [[BR]]
     64It has to be said at the outset that each of these could be considered a discrete
     65observation fact, but as emphasized above, the overall strategy (at least as a point
     66of departure) has been to accommodate facts as either true/false statements or as
     67enumerations of values.
     68
     69This is what then happens:[[BR]]
     70
     711. All variables where we have specifically designed for an enumeration are processed.
     72   Currently, these are of type:
     73   
     74   AGE, BEERNUMBER, BICEPS, CIGARETTENUMBER, CIGARNUMBER, DIASTOLICBP, ETHNICITY,
     75   HEARTRATE, HEIGHT, HIPS, PIPENUMBER, RELATIVESNUMBER, SMALLNUMBER, SUBSCAPULAR,
     76   SUPRAILIAC, SYSTOLICBP, TRICEPS, WAIST, WEIGHT, WINESPIRITNUMBER, YEAR, RECENTTIME.
     77   
     78   Note that these are types, and can therefore account for a considerable number of
     79   facts (eg: YEAR covers every question where a year can be returned as an answer).
     80   
     812. For type of DATETIME, if the variable concerns interventions this clinical episode,
     82   then we build a non-generated enumeration using the datetime value as the
     83   observation start date.
     84   The other DATETIME variables are reported upon '''''but no facts built'''''.
     85   
     863. For types DECIMAL, INTEGER and TEXT
     87   variables are reported upon '''''but no facts built'''''.
     88   
     894. For all others, variables are reported upon '''''but no facts built'''''.
     90   
     91'''__Fourthly__''', non BOOLEANS where ontological data cannot be found are examined.[[BR]]
     92The following are special cases within this group where enumerations are built:
     93
     941. Admin.Participant.age of type INTEGER          (generated enumeration)
     952. Admin.Participant.pat_ethnicity of type TEXT   (generated enumeration)
     963. Admin.Participant.gender of type TEXT          (built-in enumeration)
     974. Admin.Participant.recruitmentType of type TEXT (built-in enumeration)
     985. Admin.Participant.vital_status of type TEXT    (generated enumeration)
     99
     100Other variables within this group are reported upon '''''but no facts built'''''.[[BR]]
     101
     102'''__Lastly__''', any other variables are reported upon '''''but no facts built'''''.