transfer_db.yaml 98 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417
  1. ---
  2. table: _subjects
  3. maps: subject_table
  4. cols:
  5. - name: id
  6. dtype: integer
  7. maps: id
  8. - name: subject
  9. primary: yes
  10. dtype: str(6)
  11. maps: subjectID
  12. like: "D[0-9]{4}"
  13. replace:
  14. value: subjectID
  15. to: D_number
  16. file: ""
  17. - name: name
  18. dtype: str
  19. maps: name
  20. hide: yes
  21. - name: phone
  22. dtype: str(10)
  23. maps: phone
  24. like: "[0-9]{10}"
  25. hide: yes
  26. - name: gender
  27. dtype: str(6)
  28. maps: gender
  29. case: lower
  30. like: "(male|female)"
  31. - name: date_of_birth
  32. dtype: date
  33. maps: subjectID
  34. like: "^\\d{4}-\\d{2}-\\d{2}$"
  35. replace:
  36. value: subjectID
  37. to: DOB
  38. file: ""
  39. - name: city
  40. dtype: str
  41. maps: city
  42. case: lower
  43. like: "[a-z A-Z]+"
  44. hide: yes
  45. - name: update_timestamp
  46. dtype: datetime
  47. maps: date
  48. ---
  49. table: _assessments
  50. maps: mainassessment_table
  51. cols:
  52. - name: id
  53. dtype: integer
  54. maps: id
  55. - name: subject
  56. primary: yes
  57. dtype: str(6)
  58. maps: subjectID
  59. like: "D[0-9]{4}"
  60. refs: "_subjects.subject"
  61. replace:
  62. value: subjectID
  63. to: D_number
  64. file: ""
  65. - name: session
  66. primary: yes
  67. dtype: str(3)
  68. maps: assessmentId
  69. extract: "([0-9]{3})[0-9]{6}"
  70. like: "[0-9]{3}"
  71. - name: appointment_date
  72. dtype: datetime
  73. maps: deep_date
  74. - name: update_timestamp
  75. dtype: datetime
  76. maps: Tdate
  77. ---
  78. table: _clinical_global_impression
  79. maps: cgitable
  80. refs:
  81. - cols: [subject, session]
  82. links: [_assessments.subject, _assessments.session]
  83. cols:
  84. - name: id
  85. dtype: integer
  86. maps: id
  87. - name: subject
  88. primary: yes
  89. dtype: str(6)
  90. maps: assessmentId
  91. extract: "[0-9]{3}([0-9]{6})"
  92. like: "D[0-9]{4}"
  93. replace:
  94. value: subjectID
  95. to: D_number
  96. file: ""
  97. - name: session
  98. primary: yes
  99. dtype: str(3)
  100. maps: assessmentId
  101. extract: "([0-9]{3})[0-9]{6}"
  102. like: "[0-9]{3}"
  103. - name: severity_of_illness
  104. dtype: integer
  105. maps: ans1
  106. between: [0,7]
  107. - name: global_improvement
  108. dtype: integer
  109. maps: ans2
  110. between: [0,7]
  111. - name: efficacy_index
  112. dtype: integer
  113. maps: ans3
  114. between: [0,15]
  115. - name: score
  116. dtype: integer
  117. maps: Stotal
  118. between: [0,29]
  119. - name: update_timestamp
  120. dtype: datetime
  121. maps: date_of_last_update
  122. ---
  123. table: _hindi_mental_state_examination
  124. maps: hindi__mental__state__examinationtable
  125. refs:
  126. - cols: [subject, session]
  127. links: [_assessments.subject, _assessments.session]
  128. cols:
  129. - name: id
  130. dtype: integer
  131. maps: id
  132. - name: subject
  133. primary: yes
  134. dtype: str(6)
  135. maps: assessmentId
  136. extract: "[0-9]{3}([0-9]{6})"
  137. like: "D[0-9]{4}"
  138. replace:
  139. value: subjectID
  140. to: D_number
  141. file: ""
  142. - name: session
  143. primary: yes
  144. dtype: str(3)
  145. maps: assessmentId
  146. extract: "([0-9]{3})[0-9]{6}"
  147. like: "[0-9]{3}"
  148. - name: time_of_day
  149. dtype: boolean
  150. maps: ans1
  151. - name: day_of_week
  152. dtype: boolean
  153. maps: ans2
  154. - name: date_of_month
  155. dtype: boolean
  156. maps: ans3
  157. - name: month_of_year
  158. dtype: boolean
  159. maps: ans4
  160. - name: season_of_year
  161. dtype: boolean
  162. maps: ans5
  163. - name: village_post_office
  164. dtype: boolean
  165. maps: ans6
  166. - name: village_district
  167. dtype: boolean
  168. maps: ans7
  169. - name: village_name
  170. dtype: boolean
  171. maps: ans8
  172. - name: area_number
  173. dtype: boolean
  174. maps: ans9
  175. - name: place_name
  176. dtype: boolean
  177. maps: ans10
  178. - name: object_registration
  179. dtype: integer
  180. maps: ans11
  181. betweeen: [0,3]
  182. - name: world_backwards
  183. dtype: integer
  184. maps: ans12
  185. betweeen: [0,5]
  186. - name: object_recall
  187. dtype: integer
  188. maps: ans13_14_15
  189. betweeen: [0,5]
  190. - name: name_watch
  191. dtype: boolean
  192. maps: ans17
  193. - name: name_pen
  194. dtype: boolean
  195. maps: ans18
  196. - name: repeat_phrase
  197. dtype: boolean
  198. maps: ans19
  199. - name: follow_command
  200. dtype: boolean
  201. maps: ans20
  202. - name: three_step_task
  203. dtype: integer
  204. maps: ans21
  205. betweeen: [0,3]
  206. - name: score
  207. dtype: integer
  208. maps: total
  209. - name: attempted
  210. dtype: integer
  211. maps: attended_ques
  212. - name: update_timestamp
  213. dtype: datetime
  214. maps: date_of_last_update
  215. ---
  216. table: _adult_adhd_self_report_scale
  217. maps: adult_adhd_self_report_scaletable
  218. refs:
  219. - cols: [subject, session]
  220. links: [_assessments.subject, _assessments.session]
  221. cols:
  222. - name: id
  223. dtype: integer
  224. maps: id
  225. - name: subject
  226. primary: yes
  227. dtype: str(6)
  228. maps: assessmentId
  229. extract: "[0-9]{3}([0-9]{6})"
  230. like: "D[0-9]{4}"
  231. replace:
  232. value: subjectID
  233. to: D_number
  234. file: ""
  235. - name: session
  236. primary: yes
  237. dtype: str(3)
  238. maps: assessmentId
  239. extract: "([0-9]{3})[0-9]{6}"
  240. like: "[0-9]{3}"
  241. - name: trouble_wrapping_final_details
  242. dtype: str(10)
  243. maps: ans1
  244. in: [Never, Rarely, Sometimes, Often, Very Often]
  245. - name: difficulty_in_organization
  246. dtype: str(10)
  247. maps: ans2
  248. in: [Never, Rarely, Sometimes, Often, Very Often]
  249. - name: problem_remembering_appointments
  250. dtype: str(10)
  251. maps: ans1
  252. in: [Never, Rarely, Sometimes, Often, Very Often]
  253. - name: avoid_challenging_tasks
  254. dtype: str(10)
  255. maps: ans4
  256. in: [Never, Rarely, Sometimes, Often, Very Often]
  257. - name: fidget_while_seated
  258. dtype: str(10)
  259. maps: ans5
  260. in: [Never, Rarely, Sometimes, Often, Very Often]
  261. - name: overly_active
  262. dtype: str(10)
  263. maps: ans6
  264. in: [Never, Rarely, Sometimes, Often, Very Often]
  265. - name: careless_mistakes_on_boring_tasks
  266. dtype: str(10)
  267. maps: ans7
  268. in: [Never, Rarely, Sometimes, Often, Very Often]
  269. - name: difficulty_focusing_on_boring_tasks
  270. dtype: str(10)
  271. maps: ans8
  272. in: [Never, Rarely, Sometimes, Often, Very Often]
  273. - name: difficulty_focusing_on_people_speaking
  274. dtype: str(10)
  275. maps: ans9
  276. in: [Never, Rarely, Sometimes, Often, Very Often]
  277. - name: difficulty_finding_things
  278. dtype: str(10)
  279. maps: ans10
  280. in: [Never, Rarely, Sometimes, Often, Very Often]
  281. - name: easily_distracted_by_noise
  282. dtype: str(10)
  283. maps: ans11
  284. in: [Never, Rarely, Sometimes, Often, Very Often]
  285. - name: difficulty_remaining_seated
  286. dtype: str(10)
  287. maps: ans12
  288. in: [Never, Rarely, Sometimes, Often, Very Often]
  289. - name: feel_restless
  290. dtype: str(10)
  291. maps: ans13
  292. in: [Never, Rarely, Sometimes, Often, Very Often]
  293. - name: difficulty_unwinding_in_seclusion
  294. dtype: str(10)
  295. maps: ans14
  296. in: [Never, Rarely, Sometimes, Often, Very Often]
  297. - name: talkative_in_social_situations
  298. dtype: str(10)
  299. maps: ans15
  300. in: [Never, Rarely, Sometimes, Often, Very Often]
  301. - name: finish_sentences_for_others
  302. dtype: str(10)
  303. maps: ans16
  304. in: [Never, Rarely, Sometimes, Often, Very Often]
  305. - name: difficulty_waiting_for_turn
  306. dtype: str(10)
  307. maps: ans17
  308. in: [Never, Rarely, Sometimes, Often, Very Often]
  309. - name: integererrupt_others_when_busy
  310. dtype: str(10)
  311. maps: ans18
  312. in: [Never, Rarely, Sometimes, Often, Very Often]
  313. - name: age_during_first_occurence_of_problem
  314. dtype: integer
  315. maps: problm
  316. like: "[0-9]+"
  317. between: [1,100]
  318. - name: symptoms_not_consistent_with_adhd
  319. dtype: integer
  320. maps: A_White
  321. between: [0,6]
  322. - name: additional_cues_not_consistent_with_adhd
  323. dtype: integer
  324. maps: B_White
  325. between: [0,12]
  326. - name: symptoms_highly_consistent_with_adhd
  327. dtype: integer
  328. maps: A_Dark
  329. between: [0,6]
  330. - name: additional_cues_consistent_with_adhd
  331. dtype: integer
  332. maps: B_Dark
  333. between: [0,12]
  334. - name: not_consistent_with_adhd_score
  335. dtype: integer
  336. maps: AB_White
  337. between: [0,18]
  338. - name: consistent_with_adhd_score
  339. dtype: integer
  340. maps: AB_Dark
  341. between: [0,18]
  342. - name: update_timestamp
  343. dtype: datetime
  344. maps: date_of_last_update
  345. ---
  346. table: _modified_kuppuswamy_socioeconomic_scale
  347. maps: modified_kuppuswamy_table
  348. refs:
  349. - cols: [subject, session]
  350. links: [_assessments.subject, _assessments.session]
  351. cols:
  352. - name: id
  353. dtype: integer
  354. maps: id
  355. - name: subject
  356. primary: yes
  357. dtype: str(6)
  358. maps: assessmentId
  359. extract: "[0-9]{3}([0-9]{6})"
  360. like: "D[0-9]{4}"
  361. replace:
  362. value: subjectID
  363. to: D_number
  364. file: ""
  365. - name: session
  366. primary: yes
  367. dtype: str(3)
  368. maps: assessmentId
  369. extract: "([0-9]{3})[0-9]{6}"
  370. like: "[0-9]{3}"
  371. - name: education_level
  372. dtype: integer
  373. maps: education
  374. between: [1,7]
  375. - name: occupation_level
  376. dtype: integer
  377. maps: occupation
  378. between: [1,10]
  379. - name: income_level
  380. dtype: integer
  381. maps: Income
  382. between: [1,12]
  383. - name: score
  384. dtype: integer
  385. maps: stotal
  386. between: [1,29]
  387. - name: update_timestamp
  388. dtype: datetime
  389. maps: date_of_last_update
  390. ---
  391. table: _work_and_social_adjustment_scale
  392. maps: workandsocial_table
  393. refs:
  394. - cols: [subject, session]
  395. links: [_assessments.subject, _assessments.session]
  396. cols:
  397. - name: id
  398. dtype: integer
  399. maps: id
  400. - name: subject
  401. primary: yes
  402. dtype: str(6)
  403. maps: assessmentId
  404. extract: "[0-9]{3}([0-9]{6})"
  405. like: "D[0-9]{4}"
  406. replace:
  407. value: subjectID
  408. to: D_number
  409. file: ""
  410. - name: session
  411. primary: yes
  412. dtype: str(3)
  413. maps: assessmentId
  414. extract: "([0-9]{3})[0-9]{6}"
  415. like: "[0-9]{3}"
  416. - name: unrelated_retirement
  417. dtype: boolean
  418. maps: retired
  419. - name: work_ability_impaired
  420. dtype: integer
  421. maps: be
  422. between: [0,8]
  423. - name: home_management_impaired
  424. dtype: integer
  425. maps: bec
  426. between: [0,8]
  427. - name: social_activities_impaired
  428. dtype: integer
  429. maps: beca
  430. between: [0,8]
  431. - name: private_activities_impaired
  432. dtype: integer
  433. maps: becau
  434. between: [0,8]
  435. - name: relationships_impaired
  436. dtype: integer
  437. maps: becaus
  438. between: [0,8]
  439. - name: score
  440. dtype: integer
  441. maps: total
  442. between: [0,40]
  443. - name: update_timestamp
  444. dtype: datetime
  445. maps: date_of_last_update
  446. ---
  447. table: _global_assessment_of_functioning
  448. maps: globalassessmentoffunctioningscale_table
  449. refs:
  450. - cols: [subject, session]
  451. links: [_assessments.subject, _assessments.session]
  452. cols:
  453. - name: id
  454. dtype: integer
  455. maps: id
  456. - name: subject
  457. primary: yes
  458. dtype: str(6)
  459. maps: assessmentId
  460. extract: "[0-9]{3}([0-9]{6})"
  461. like: "D[0-9]{4}"
  462. replace:
  463. value: subjectID
  464. to: D_number
  465. file: ""
  466. - name: session
  467. primary: yes
  468. dtype: str(3)
  469. maps: assessmentId
  470. extract: "([0-9]{3})[0-9]{6}"
  471. like: "[0-9]{3}"
  472. - name: score
  473. dtype: integer
  474. maps: Persistent
  475. like: "[0-9]{1,3}"
  476. betweeen: [0,100]
  477. - name: update_timestamp
  478. dtype: datetime
  479. maps: date_of_last_update
  480. ---
  481. table: _adverse_childhood_experiences
  482. maps: adversechildhoodexperiencesinternational_table
  483. refs:
  484. - cols: [subject, session]
  485. links: [_assessments.subject, _assessments.session]
  486. cols:
  487. - name: id
  488. dtype: integer
  489. maps: id
  490. - name: subject
  491. primary: yes
  492. dtype: str(6)
  493. maps: assessmentId
  494. extract: "[0-9]{3}([0-9]{6})"
  495. like: "D[0-9]{4}"
  496. replace:
  497. value: subjectID
  498. to: D_number
  499. file: ""
  500. - name: session
  501. primary: yes
  502. dtype: str(3)
  503. maps: assessmentId
  504. extract: "([0-9]{3})[0-9]{6}"
  505. like: "[0-9]{3}"
  506. - name: age
  507. dtype: integer
  508. maps: How
  509. like: "[0-9]{1,3}"
  510. between: [1,100]
  511. - name: ethnic_background
  512. dtype: str
  513. maps: Whatis
  514. case: lower
  515. - name: level_of_education
  516. dtype: str
  517. maps: Whatisthe
  518. like: "(No formal schooling|Less than primary school|Primary school completed|Secondary\/High school completed|College\/University completed|Post graduate degree|Refused)"
  519. - name: work_status
  520. dtype: str
  521. maps: Whichof
  522. like: "(Government employee|Non-government employee|Self-employed|Non-paid|Student|Homemaker|Retired|Unemployed but able to work|Unemployed as unable to work|Refused)"
  523. replace:
  524. - value: "Unemploed (able to work)"
  525. to: "Unemployed but able to work"
  526. - value: "Unemployed (unable to work"
  527. to: "Unemployed as unable to work"
  528. - name: civic_status
  529. dtype: str
  530. maps: Whatisyour
  531. like: "(Married|Living as couple|Divorced or separated|Single|Widowed|Other|Refused)"
  532. replace:
  533. - value: "Married (Go to Q.M2)"
  534. to: "Married"
  535. - value: "Widowed (Go to Q.M2)"
  536. to: "Widowed"
  537. - name: been_married
  538. dtype: boolean
  539. maps: Have
  540. replace:
  541. - value: "No (Go to Q.M5)"
  542. to: "No"
  543. - name: age_of_marriage
  544. dtype: integer
  545. maps: Atwhat
  546. like: "[0-9]{1,2}"
  547. between: [1,99]
  548. - name: freedom_of_choice_to_marry
  549. dtype: str
  550. maps: Atthetime
  551. like: "(Yes|No|Not sure|Refused)"
  552. replace:
  553. - value: "Yes (Go to Q.M5)"
  554. to: "Yes"
  555. - value: "Don't know / Not sure"
  556. to: "Not sure"
  557. - name: consent_for_marriage
  558. dtype: str
  559. maps: Atthetimeof
  560. like: "(Yes|No|Refused)"
  561. - name: age_during_first_baby
  562. dtype: str
  563. maps: Ifyouare
  564. like: "(1[5-9]|[2-6][0-9]|Not Applicable|Refused)"
  565. - name: parents_understood_problems
  566. dtype: str
  567. maps: Didyour
  568. like: "(Always|Most of the time|Sometimes|Rarely|Never|Refused)"
  569. - name: parents_knew_hobbies
  570. dtype: str
  571. maps: Didyourparents
  572. like: "(Always|Most of the time|Sometimes|Rarely|Never|Refused)"
  573. - name: parents_starved_subject
  574. dtype: str
  575. maps: Howoften
  576. like: "(Many times|A few times|Once|Never|Refused)"
  577. - name: neglect_due_to_drugs
  578. dtype: str
  579. maps: Wereyour
  580. like: "(Many times|A few times|Once|Never|Refused)"
  581. - name: parents_deprived_education
  582. dtype: str
  583. maps: Howoftendidyour
  584. like: "(Many times|A few times|Once|Never|Refused)"
  585. - name: drug_addict_in_household
  586. dtype: str
  587. maps: Didyoulivewith
  588. like: "(Yes|No|Refused)"
  589. - name: mentally_disturbed_in_household
  590. dtype: str
  591. maps: Didyoulivewitha
  592. like: "(Yes|No|Refused)"
  593. - name: prisoner_in_household
  594. dtype: str
  595. maps: Didyoulivewithahousehold
  596. like: "(Yes|No|Refused)"
  597. - name: parents_separated
  598. dtype: str
  599. maps: Wereyourparentseve
  600. like: "(Yes|No|Not Applicable|Refused)"
  601. - name: parent_died
  602. dtype: str
  603. maps: Didyourmother
  604. like: "(Yes|No|Not sure|Refused)"
  605. replace:
  606. - value: "Don't know / Not sure"
  607. to: "Not sure"
  608. - name: verbal_abuse_in_household
  609. dtype: str
  610. maps: Didyouseeor
  611. like: "(Many times|A few times|Once|Never|Refused)"
  612. - name: mild_physical_abuse_in_household
  613. dtype: str
  614. maps: Didyouseeorhear
  615. like: "(Many times|A few times|Once|Never|Refused)"
  616. - name: severe_physical_abuse_in_household
  617. dtype: str
  618. maps: Didyouseeorhearaparent
  619. like: "(Many times|A few times|Once|Never|Refused)"
  620. - name: verbal_abuse_on_subject
  621. dtype: str
  622. maps: Didaparentguardian
  623. like: "(Many times|A few times|Once|Never|Refused)"
  624. - name: abandon_threat_on_subject
  625. dtype: str
  626. maps: Didaparentguardianor
  627. like: "(Many times|A few times|Once|Never|Refused)"
  628. - name: mild_physical_abuse_on_subject
  629. dtype: str
  630. maps: Didaparentguardianorotherhouseholdmember
  631. like: "(Many times|A few times|Once|Never|Refused)"
  632. - name: severe_physical_abuse_on_subject
  633. dtype: str
  634. maps: Didaparentguardianorotherhouseholdmemberhit
  635. like: "(Many times|A few times|Once|Never|Refused)"
  636. - name: sexual_harassment_on_subject
  637. dtype: str
  638. maps: Didsomeonetouch
  639. like: "(Many times|A few times|Once|Never|Refused)"
  640. - name: subject_forced_into_sexual_activities
  641. dtype: str
  642. maps: Didsomeonemake
  643. like: "(Many times|A few times|Once|Never|Refused)"
  644. - name: forced_sexual_attempt_on_subject
  645. dtype: str
  646. maps: Didsomeoneattemptoral
  647. like: "(Many times|A few times|Once|Never|Refused)"
  648. - name: forced_sex_with_subject
  649. dtype: str
  650. maps: Didsomeoneactuallyhaveoralanal
  651. like: "(Many times|A few times|Once|Never|Refused)"
  652. - name: subject_bullied
  653. dtype: str
  654. maps: Howoftenwereyou
  655. like: "(Many times|A few times|Once|Never|Refused)"
  656. replace:
  657. - value: "Never (Go to Q.V3)"
  658. to: "Never"
  659. - name: bullied_method_or_cause
  660. dtype: str
  661. maps: Howwereyoubulliedmost
  662. like: "(I was hit, kicked, pushed, shoved around, or locked indoors|I was made fun of because of my race, nationality or colour|I was made fun of because of my religion|I was made fun of with sexual jokes, comments, or gestures|I was left out of activities on purpose or completely ignored|I was made fun of because of how my body or face looked|I was bullied in some other way|Refused)"
  663. - name: subject_involved_in_fight
  664. dtype: str
  665. maps: Howoftenwereyouin
  666. like: "(Many times|A few times|Once|Never|Refused)"
  667. - name: witnessed_physical_violence
  668. dtype: str
  669. maps: Didyouseeor1
  670. like: "(Many times|A few times|Once|Never|Refused)"
  671. - name: witnessed_murder
  672. dtype: str
  673. maps: Didyouseeorhear1
  674. like: "(Many times|A few times|Once|Never|Refused)"
  675. - name: witnessed_murder_threat
  676. dtype: str
  677. maps: Didyouseeorhearsomeonebeing
  678. like: "(Many times|A few times|Once|Never|Refused)"
  679. - name: forced_migration
  680. dtype: str
  681. maps: Wereyouforced
  682. like: "(Many times|A few times|Once|Never|Refused)"
  683. - name: home_destroyed_in_violence
  684. dtype: str
  685. maps: Didyouexperience
  686. like: "(Many times|A few times|Once|Never|Refused)"
  687. - name: physical_abuse_by_police
  688. dtype: str
  689. maps: Wereyoubeaten
  690. like: "(Many times|A few times|Once|Never|Refused)"
  691. - name: relative_murdered_or_beaten_by_police
  692. dtype: str
  693. maps: Wasafamily
  694. like: "(Many times|A few times|Once|Never|Refused)"
  695. - name: update_timestamp
  696. dtype: datetime
  697. maps: date_of_last_update
  698. ---
  699. table: _adult_temperament
  700. maps: adulttemperamentquestionnaire_table
  701. refs:
  702. - cols: [subject, session]
  703. links: [_assessments.subject, _assessments.session]
  704. cols:
  705. - name: id
  706. dtype: integer
  707. maps: id
  708. - name: subject
  709. primary: yes
  710. dtype: str(6)
  711. maps: assessmentId
  712. extract: "[0-9]{3}([0-9]{6})"
  713. like: "D[0-9]{4}"
  714. replace:
  715. value: subjectID
  716. to: D_number
  717. file: ""
  718. - name: session
  719. primary: yes
  720. dtype: str(3)
  721. maps: assessmentId
  722. extract: "([0-9]{3})[0-9]{6}"
  723. like: "[0-9]{3}"
  724. - name: frightened_easily
  725. dtype: integer
  726. maps: Ibecome
  727. between: [0,7]
  728. - name: late_for_appointments
  729. dtype: integer
  730. maps: Iam
  731. between: [0,7]
  732. - name: happiness_due_to_mild_events
  733. dtype: integer
  734. maps: Sometimes
  735. between: [0,7]
  736. - name: irritated_by_loud_noises
  737. dtype: integer
  738. maps: Ifindloud
  739. between: [0,7]
  740. - name: hard_to_alternate_between_tasks
  741. dtype: integer
  742. maps: Its
  743. between: [0,7]
  744. - name: not_annoyed_with_slow_lines
  745. dtype: integer
  746. maps: Irarelybecome
  747. between: [0,7]
  748. - name: not_enjoy_loud_music_with_laser
  749. dtype: integer
  750. maps: Iwould
  751. between: [0,7]
  752. - name: not_follow_plans
  753. dtype: integer
  754. maps: Ioften
  755. between: [0,7]
  756. - name: departure_of_relatives_not_saddening
  757. dtype: integer
  758. maps: Irarelyfeel
  759. between: [0,7]
  760. - name: attention_not_captured_by_minor_visuals
  761. dtype: integer
  762. maps: Barely
  763. between: [0,7]
  764. - name: sit_still_even_when_energized
  765. dtype: integer
  766. maps: Even
  767. between: [0,7]
  768. - name: uneasiness_at_high_places
  769. dtype: integer
  770. maps: Looking
  771. between: [0,7]
  772. - name: subtle_tone_aswareness_in_music
  773. dtype: integer
  774. maps: when_1
  775. between: [0,7]
  776. - name: dislike_socalizing_job
  777. dtype: integer
  778. maps: Iwouldnot
  779. between: [0,7]
  780. - name: keep_performing_task_even_if_dont_want
  781. dtype: integer
  782. maps: Ican
  783. between: [0,7]
  784. - name: unable_to_enjoy_joyful_activities
  785. dtype: integer
  786. maps: Isometimes
  787. between: [0,7]
  788. - name: annoyance_when_item_not_in_store
  789. dtype: integer
  790. maps: Ifind
  791. between: [0,7]
  792. - name: notice_emotional_aspects_in_pictures
  793. dtype: integer
  794. maps: Itend
  795. between: [0,7]
  796. - name: like_to_talk_a_lot
  797. dtype: integer
  798. maps: Iusually
  799. between: [0,7]
  800. - name: not_sad_watching_sad_movie
  801. dtype: integer
  802. maps: Iseldombecome
  803. between: [0,7]
  804. - name: aware_of_bird_sounds_in_vicinity
  805. dtype: integer
  806. maps: Im
  807. between: [0,7]
  808. - name: uneasy_in_small_places
  809. dtype: integer
  810. maps: WhenIam
  811. between: [0,7]
  812. - name: listen_to_music_at_high_volume
  813. dtype: integer
  814. maps: Whenlistening
  815. between: [0,7]
  816. - name: understand_things_intuitively
  817. dtype: integer
  818. maps: Isometimesseem
  819. between: [0,7]
  820. - name: sad_due_to_minor_events
  821. dtype: integer
  822. maps: Sometimesminor
  823. between: [0,7]
  824. - name: easy_hold_laugh_when_appropriate
  825. dtype: integer
  826. maps: Itis
  827. between: [0,7]
  828. - name: work_difficult_task_when_not_feel_like_trying
  829. dtype: integer
  830. maps: Icanmake
  831. between: [0,7]
  832. - name: frequently_experience_brief_intense_happiness
  833. dtype: integer
  834. maps: Irarelyever
  835. between: [0,7]
  836. - name: easily_distracted_when_trying_to_focus
  837. dtype: integer
  838. maps: WhenIamtrying
  839. between: [0,7]
  840. - name: enjoy_playing_fast_noisy_game
  841. dtype: integer
  842. maps: Iwouldprobably
  843. between: [0,7]
  844. - name: become_agitated_while_waiting
  845. dtype: integer
  846. maps: Whenever
  847. between: [0,7]
  848. - name: bothered_by_bright_light
  849. dtype: integer
  850. maps: Imoften
  851. between: [0,7]
  852. - name: not_notice_people_eye_color
  853. dtype: integer
  854. maps: Irarely
  855. between: [0,7]
  856. - name: not_sad_on_hearing_sad_event
  857. dtype: integer
  858. maps: Iseldom
  859. between: [0,7]
  860. - name: focus_back_when_interrupted
  861. dtype: integer
  862. maps: Wheninterrupted
  863. between: [0,7]
  864. - name: scratchy_sounds_irritating
  865. dtype: integer
  866. maps: Ifindcertain
  867. between: [0,7]
  868. - name: like_many_people_conversations
  869. dtype: integer
  870. maps: Ilike
  871. between: [0,7]
  872. - name: patient_person
  873. dtype: integer
  874. maps: Iamusually
  875. between: [0,7]
  876. - name: see_visual_images_when_eyes_closed
  877. dtype: integer
  878. maps: WhenIamresting
  879. between: [0,7]
  880. - name: difficult_to_focus_when_distressed
  881. dtype: integer
  882. maps: Itisveryhard
  883. between: [0,7]
  884. - name: mind_has_diverse_thoughts_sometimes
  885. dtype: integer
  886. maps: Sometimesmymind
  887. between: [0,7]
  888. - name: bothered_by_bright_colors
  889. dtype: integer
  890. maps: Very
  891. between: [0,7]
  892. - name: resist_talking_out_of_turn
  893. dtype: integer
  894. maps: Icaneasily
  895. between: [0,7]
  896. - name: not_enjoy_wild_carnival_ride
  897. dtype: integer
  898. maps: Iwouldprobablynot
  899. between: [0,7]
  900. - name: sad_for_more_than_an_hour
  901. dtype: integer
  902. maps: Isometimesfeel
  903. between: [0,7]
  904. - name: rarely_enjoy_socializing
  905. dtype: integer
  906. maps: Irarelyenjoy
  907. between: [0,7]
  908. - name: get_right_to_work_on_things
  909. dtype: integer
  910. maps: IfI
  911. between: [0,7]
  912. - name: easily_frustrated
  913. dtype: integer
  914. maps: Itdoesnttake
  915. between: [0,7]
  916. - name: easily_made_happy
  917. dtype: integer
  918. maps: Itdoesnttakemuch
  919. between: [0,7]
  920. - name: hard_focusing_due_to_upcoming_event
  921. dtype: integer
  922. maps: WhenIamhappy
  923. between: [0,7]
  924. - name: panic_for_no_reason
  925. dtype: integer
  926. maps: SometimesIfeel
  927. between: [0,7]
  928. - name: notice_mild_odours
  929. dtype: integer
  930. maps: Ioftennotice
  931. between: [0,7]
  932. - name: trouble_resisting_cravings
  933. dtype: integer
  934. maps: Ioftenhave
  935. between: [0,7]
  936. - name: bothered_by_flashing_lights
  937. dtype: integer
  938. maps: Colorful
  939. between: [0,7]
  940. - name: finish_things_before_due_date
  941. dtype: integer
  942. maps: Iusuallyfinishdoing
  943. between: [0,7]
  944. - name: often_feel_sad
  945. dtype: integer
  946. maps: Ioftenfeelsad
  947. between: [0,7]
  948. - name: aware_of_color_affecting_mood
  949. dtype: integer
  950. maps: Iamoftenaware
  951. between: [0,7]
  952. - name: remain_calm_when_things_not_smooth
  953. dtype: integer
  954. maps: Iusuallyremain
  955. between: [0,7]
  956. - name: loud_music_unpleasant
  957. dtype: integer
  958. maps: Loud
  959. between: [0,7]
  960. - name: jump_right_in_when_excited
  961. dtype: integer
  962. maps: WhenImexcitedabout
  963. between: [0,7]
  964. - name: scared_by_loud_noises
  965. dtype: integer
  966. maps: Loudnoises
  967. between: [0,7]
  968. - name: have_vivid_dreams
  969. dtype: integer
  970. maps: Isometimesdream
  971. between: [0,7]
  972. - name: hard_resisting_attractive_items
  973. dtype: integer
  974. maps: WhenIsee
  975. between: [0,7]
  976. - name: enjoy_laser_show
  977. dtype: integer
  978. maps: Iwouldenjoywatching
  979. between: [0,7]
  980. - name: sad_on_hearing_sad_event
  981. dtype: integer
  982. maps: WhenIhear
  983. between: [0,7]
  984. - name: do_not_notice_setting_in_movie
  985. dtype: integer
  986. maps: WhenIwatchamovie
  987. between: [0,7]
  988. - name: spend_free_time_with_people
  989. dtype: integer
  990. maps: Iusuallyliketospend
  991. between: [0,7]
  992. - name: not_frightened_by_people_suddenly
  993. dtype: integer
  994. maps: Itdoesnot
  995. between: [0,7]
  996. - name: aware_of_weather_affecting_mood
  997. dtype: integer
  998. maps: Iamoftenconsciously
  999. between: [0,7]
  1000. - name: takes_lot_make_me_happy
  1001. dtype: integer
  1002. maps: Ittakesalot
  1003. between: [0,7]
  1004. - name: rarely_aware_of_texture
  1005. dtype: integer
  1006. maps: Iamrarelyaware
  1007. between: [0,7]
  1008. - name: avoid_dealing_with_unexpected_situations
  1009. dtype: integer
  1010. maps: WhenIamafraidofhow
  1011. between: [0,7]
  1012. - name: enjoy_talk_without_thinking
  1013. dtype: integer
  1014. maps: Iespecially
  1015. between: [0,7]
  1016. - name: creative_ideas_without_effort
  1017. dtype: integer
  1018. maps: Withoutapplying
  1019. between: [0,7]
  1020. - name: not_concerned_about_failing
  1021. dtype: integer
  1022. maps: WhenItry
  1023. between: [0,7]
  1024. - name: easily_inhibit_fun_but_inappropriate_acts
  1025. dtype: integer
  1026. maps: Itiseasy
  1027. between: [0,7]
  1028. - name: not_enjoy_yelling
  1029. dtype: integer
  1030. maps: Iwouldnotenjoy
  1031. between: [0,7]
  1032. - name: score
  1033. dtype: integer
  1034. maps: total_score
  1035. between: [0,539]
  1036. - name: update_timestamp
  1037. dtype: datetime
  1038. maps: date_of_last_update
  1039. ---
  1040. table: _mini_ipip_scale
  1041. maps: theminiipipscale_table
  1042. refs:
  1043. - cols: [subject, session]
  1044. links: [_assessments.subject, _assessments.session]
  1045. cols:
  1046. - name: id
  1047. dtype: integer
  1048. maps: id
  1049. - name: subject
  1050. primary: yes
  1051. dtype: str(6)
  1052. maps: assessmentId
  1053. extract: "[0-9]{3}([0-9]{6})"
  1054. like: "D[0-9]{4}"
  1055. replace:
  1056. value: subjectID
  1057. to: D_number
  1058. file: ""
  1059. - name: session
  1060. primary: yes
  1061. dtype: str(3)
  1062. maps: assessmentId
  1063. extract: "([0-9]{3})[0-9]{6}"
  1064. like: "[0-9]{3}"
  1065. - name: life_of_party
  1066. dtype: boolean
  1067. maps: e1
  1068. - name: sympathize_with_others
  1069. dtype: boolean
  1070. maps: a1
  1071. - name: complete_chores_immediately
  1072. dtype: boolean
  1073. maps: c1
  1074. - name: frequent_mood_swings
  1075. dtype: boolean
  1076. maps: n1
  1077. - name: vivid_imagination
  1078. dtype: boolean
  1079. maps: i1
  1080. - name: talk_less
  1081. dtype: boolean
  1082. maps: e2
  1083. - name: not_interested_in_others_problems
  1084. dtype: boolean
  1085. maps: a2
  1086. - name: forget_to_put_things_back
  1087. dtype: boolean
  1088. maps: c2
  1089. - name: mostly_relaxed
  1090. dtype: boolean
  1091. maps: n2
  1092. - name: not_interested_in_abstract_ideas
  1093. dtype: boolean
  1094. maps: i2
  1095. - name: talk_to_different_people
  1096. dtype: boolean
  1097. maps: e3
  1098. - name: feel_others_emotions
  1099. dtype: boolean
  1100. maps: a3
  1101. - name: like_order
  1102. dtype: boolean
  1103. maps: c3
  1104. - name: easily_upset
  1105. dtype: boolean
  1106. maps: n3
  1107. - name: difficulty_understanding_abstract_ideas
  1108. dtype: boolean
  1109. maps: i3
  1110. - name: keep_in_background
  1111. dtype: boolean
  1112. maps: e4
  1113. - name: not_interested_in_others
  1114. dtype: boolean
  1115. maps: a4
  1116. - name: mess_up_things
  1117. dtype: boolean
  1118. maps: c4
  1119. - name: seldom_feel_blue
  1120. dtype: boolean
  1121. maps: n4
  1122. - name: not_good_imagination
  1123. dtype: boolean
  1124. maps: i4
  1125. - name: extraversion_score
  1126. dtype: integer
  1127. maps: total_e
  1128. between: [0,4]
  1129. - name: agreeableness_score
  1130. dtype: integer
  1131. maps: total_a
  1132. between: [0,4]
  1133. - name: conscientiousness_score
  1134. dtype: integer
  1135. maps: total_c
  1136. between: [0,4]
  1137. - name: neuroticism_score
  1138. dtype: integer
  1139. maps: total_n
  1140. between: [0,4]
  1141. - name: imagination_score
  1142. dtype: integer
  1143. maps: total_i
  1144. between: [0,4]
  1145. - name: update_timestamp
  1146. dtype: datetime
  1147. maps: date_of_last_update
  1148. ---
  1149. table: _hamilton_anxiety_rating
  1150. maps: hamiltonanxietyratingscale_table
  1151. refs:
  1152. - cols: [subject, session]
  1153. links: [_assessments.subject, _assessments.session]
  1154. cols:
  1155. - name: id
  1156. dtype: integer
  1157. maps: id
  1158. - name: subject
  1159. primary: yes
  1160. dtype: str(6)
  1161. maps: assessmentId
  1162. extract: "[0-9]{3}([0-9]{6})"
  1163. like: "D[0-9]{4}"
  1164. replace:
  1165. value: subjectID
  1166. to: D_number
  1167. file: ""
  1168. - name: session
  1169. primary: yes
  1170. dtype: str(3)
  1171. maps: assessmentId
  1172. extract: "([0-9]{3})[0-9]{6}"
  1173. like: "[0-9]{3}"
  1174. - name: anxiety
  1175. dtype: integer
  1176. maps: Anxiousmood
  1177. between: [0,4]
  1178. - name: tension
  1179. dtype: integer
  1180. maps: Tension
  1181. between: [0,4]
  1182. - name: fears
  1183. dtype: integer
  1184. maps: Fears
  1185. between: [0,4]
  1186. - name: insomnia
  1187. dtype: integer
  1188. maps: Insomnia
  1189. between: [0,4]
  1190. - name: intellectuality
  1191. dtype: integer
  1192. maps: Intellectual
  1193. between: [0,4]
  1194. - name: depressed_mood
  1195. dtype: integer
  1196. maps: Depressed
  1197. between: [0,4]
  1198. - name: somatic_muscular
  1199. dtype: integer
  1200. maps: Somatic
  1201. between: [0,4]
  1202. - name: somatic_sensory
  1203. dtype: integer
  1204. maps: Somaticsensory
  1205. between: [0,4]
  1206. - name: cardiovascular_symptoms
  1207. dtype: integer
  1208. maps: Cardiovascular
  1209. between: [0,4]
  1210. - name: respiratory_symptoms
  1211. dtype: integer
  1212. maps: Respiratory
  1213. between: [0,4]
  1214. - name: gastrointestinal_symptoms
  1215. dtype: integer
  1216. maps: Gastrointestinal
  1217. between: [0,4]
  1218. - name: genitourinary_symptoms
  1219. dtype: integer
  1220. maps: Genitourinary
  1221. between: [0,4]
  1222. - name: autonomic_symptoms
  1223. dtype: integer
  1224. maps: Autonomic
  1225. between: [0,4]
  1226. - name: behavior
  1227. dtype: integer
  1228. maps: Behavior
  1229. between: [0,4]
  1230. - name: score
  1231. dtype: integer
  1232. maps: total
  1233. betweeen: [0,56]
  1234. - name: update_timestamp
  1235. dtype: datetime
  1236. maps: date_of_last_update
  1237. ---
  1238. table: _hamilton_depression_rating
  1239. maps: hamiltonratingscalefordepression_table
  1240. refs:
  1241. - cols: [subject, session]
  1242. links: [_assessments.subject, _assessments.session]
  1243. cols:
  1244. - name: id
  1245. dtype: integer
  1246. maps: id
  1247. - name: subject
  1248. primary: yes
  1249. dtype: str(6)
  1250. maps: assessmentId
  1251. extract: "[0-9]{3}([0-9]{6})"
  1252. like: "D[0-9]{4}"
  1253. replace:
  1254. value: subjectID
  1255. to: D_number
  1256. file: ""
  1257. - name: session
  1258. primary: yes
  1259. dtype: str(3)
  1260. maps: assessmentId
  1261. extract: "([0-9]{3})[0-9]{6}"
  1262. like: "[0-9]{3}"
  1263. - name: depression
  1264. dtype: integer
  1265. maps: Depressed
  1266. between: [0,4]
  1267. - name: guilty_feeling
  1268. dtype: integer
  1269. maps: Feelings
  1270. between: [0,4]
  1271. - name: suicidal_feeling
  1272. dtype: integer
  1273. maps: Suicide
  1274. between: [0,4]
  1275. - name: early_insomnia
  1276. dtype: integer
  1277. maps: Insomnia
  1278. between: [0,2]
  1279. - name: middle_insomnia
  1280. dtype: integer
  1281. maps: InsomniaMiddle
  1282. between: [0,2]
  1283. - name: late_insomnia
  1284. dtype: integer
  1285. maps: InsomniaLate
  1286. between: [0,2]
  1287. - name: work_and_activities
  1288. dtype: integer
  1289. maps: Work
  1290. between: [0,4]
  1291. - name: retardation
  1292. dtype: integer
  1293. maps: Retardation
  1294. between: [0,4]
  1295. - name: agitation
  1296. dtype: integer
  1297. maps: Agitation
  1298. between: [0,2]
  1299. - name: psychic_anxiety
  1300. dtype: integer
  1301. maps: Anxiety
  1302. between: [0,4]
  1303. - name: somatic_anxiety
  1304. dtype: integer
  1305. maps: AnxietySomatic
  1306. between: [0,4]
  1307. - name: gastrointestinal_symptoms
  1308. dtype: integer
  1309. maps: Somatic
  1310. between: [0,2]
  1311. - name: general_somatic_symptoms
  1312. dtype: integer
  1313. maps: SomaticSymptoms
  1314. between: [0,2]
  1315. - name: genital_symptoms
  1316. dtype: integer
  1317. maps: Genita
  1318. between: [0,2]
  1319. - name: hypochondriasis
  1320. dtype: integer
  1321. maps: Hypochondriasis
  1322. between: [0,4]
  1323. - name: loss_of_weight_by_history
  1324. dtype: integer
  1325. maps: Loss_a
  1326. between: [0,2]
  1327. - name: loss_of_weight_by_weekly
  1328. dtype: integer
  1329. maps: Loss_b
  1330. between: [0,2]
  1331. - name: insight
  1332. dtype: integer
  1333. maps: Insight
  1334. between: [0,2]
  1335. - name: score
  1336. dtype: integer
  1337. maps: total
  1338. between: [0,52]
  1339. - name: update_timestamp
  1340. dtype: datetime
  1341. maps: date_of_last_update
  1342. ---
  1343. table: _negative_symptoms_assessment
  1344. maps: sans_table
  1345. refs:
  1346. - cols: [subject, session]
  1347. links: [_assessments.subject, _assessments.session]
  1348. cols:
  1349. - name: id
  1350. dtype: integer
  1351. maps: id
  1352. - name: subject
  1353. primary: yes
  1354. dtype: str(6)
  1355. maps: assessmentId
  1356. extract: "[0-9]{3}([0-9]{6})"
  1357. like: "D[0-9]{4}"
  1358. replace:
  1359. value: subjectID
  1360. to: D_number
  1361. file: ""
  1362. - name: session
  1363. primary: yes
  1364. dtype: str(3)
  1365. maps: assessmentId
  1366. extract: "([0-9]{3})[0-9]{6}"
  1367. like: "[0-9]{3}"
  1368. - name: facial_expression_unchanged
  1369. dtype: integer
  1370. maps: Unchanged
  1371. between: [0,5]
  1372. - name: decreased_spontaneous_movements
  1373. dtype: integer
  1374. maps: Decreased
  1375. between: [0,5]
  1376. - name: expressive_gestures_paucity
  1377. dtype: integer
  1378. maps: Paucity
  1379. between: [0,5]
  1380. - name: poor_eye_contact
  1381. dtype: integer
  1382. maps: Poor
  1383. between: [0,5]
  1384. - name: affective_nonresponsiveness
  1385. dtype: integer
  1386. maps: Affective
  1387. between: [0,5]
  1388. - name: inappropriate_effect
  1389. dtype: integer
  1390. maps: Inappropriate
  1391. between: [0,5]
  1392. - name: vocal_inflections_absence
  1393. dtype: integer
  1394. maps: Lack
  1395. between: [0,5]
  1396. - name: affective_flattening_global_response
  1397. dtype: integer
  1398. maps: Global1
  1399. between: [0,5]
  1400. - name: poverty_of_speech
  1401. dtype: integer
  1402. maps: Poverty
  1403. between: [0,5]
  1404. - name: speech_content_poverty
  1405. dtype: integer
  1406. maps: Povertyof
  1407. between: [0,5]
  1408. - name: thoughts_interrupted
  1409. dtype: integer
  1410. maps: Blocking
  1411. between: [0,5]
  1412. - name: response_latency_increase
  1413. dtype: integer
  1414. maps: Increased
  1415. between: [0,5]
  1416. - name: alogia_global_rating
  1417. dtype: integer
  1418. maps: GlobalRating
  1419. between: [0,5]
  1420. - name: grooming_rating
  1421. dtype: integer
  1422. maps: Grooming
  1423. between: [0,5]
  1424. - name: work_impersistence
  1425. dtype: integer
  1426. maps: Impersistence
  1427. between: [0,5]
  1428. - name: physical_anergia
  1429. dtype: integer
  1430. maps: Physical
  1431. between: [0,5]
  1432. - name: avolition_apathy_global_rating
  1433. dtype: integer
  1434. maps: GlobalRatingof
  1435. between: [0,5]
  1436. - name: recreational_interests
  1437. dtype: integer
  1438. maps: Recreational
  1439. between: [0,5]
  1440. - name: sexual_activity
  1441. dtype: integer
  1442. maps: Sexual
  1443. between: [0,5]
  1444. - name: closeness_feel_ability
  1445. dtype: integer
  1446. maps: Ability
  1447. between: [0,5]
  1448. - name: relationship_with_friends
  1449. dtype: integer
  1450. maps: Relationships
  1451. between: [0,5]
  1452. - name: anhedonia_asociality_global_rating
  1453. dtype: integer
  1454. maps: GlobalRatingofAnhedonia
  1455. between: [0,5]
  1456. - name: social_inattentiveness
  1457. dtype: integer
  1458. maps: Social1
  1459. between: [0,5]
  1460. - name: mental_status_testing_inattentiveness
  1461. dtype: integer
  1462. maps: Inattentiveness
  1463. between: [0,5]
  1464. - name: attention_global_rating
  1465. dtype: integer
  1466. maps: GlobalRatingofAttention
  1467. between: [0,5]
  1468. - name: affective_score
  1469. dtype: integer
  1470. maps: affective_total
  1471. between: [0,40]
  1472. - name: alogia_score
  1473. dtype: integer
  1474. maps: alogia_total
  1475. between: [0,25]
  1476. - name: avolition_score
  1477. dtype: integer
  1478. maps: avolition_total
  1479. between: [0,20]
  1480. - name: anhedonia_score
  1481. dtype: integer
  1482. maps: anhedonia_total
  1483. between: [0,25]
  1484. - name: attention_score
  1485. dtype: integer
  1486. maps: attention_total
  1487. between: [0,15]
  1488. - name: score
  1489. dtype: integer
  1490. maps: total
  1491. between: [0,125]
  1492. - name: update_timestamp
  1493. dtype: datetime
  1494. maps: date_of_last_update
  1495. ---
  1496. table: _positive_symptoms_assessment
  1497. maps: saps_table
  1498. refs:
  1499. - cols: [subject, session]
  1500. links: [_assessments.subject, _assessments.session]
  1501. cols:
  1502. - name: id
  1503. dtype: integer
  1504. maps: id
  1505. - name: subject
  1506. primary: yes
  1507. dtype: str(6)
  1508. maps: assessmentId
  1509. extract: "[0-9]{3}([0-9]{6})"
  1510. like: "D[0-9]{4}"
  1511. replace:
  1512. value: subjectID
  1513. to: D_number
  1514. file: ""
  1515. - name: session
  1516. primary: yes
  1517. dtype: str(3)
  1518. maps: assessmentId
  1519. extract: "([0-9]{3})[0-9]{6}"
  1520. like: "[0-9]{3}"
  1521. - name: auditory_hallucinations
  1522. dtype: integer
  1523. maps: Auditory
  1524. between: [0,5]
  1525. - name: voices_commenting
  1526. dtype: integer
  1527. maps: Voices
  1528. between: [0,5]
  1529. - name: voices_conversing
  1530. dtype: integer
  1531. maps: VoicesConversing
  1532. between: [0,5]
  1533. - name: somatic_hallucinations
  1534. dtype: integer
  1535. maps: Somaticor
  1536. between: [0,5]
  1537. - name: olfactory_hallucinations
  1538. dtype: integer
  1539. maps: Olfactory
  1540. between: [0,5]
  1541. - name: visual_hallucinations
  1542. dtype: integer
  1543. maps: Visual
  1544. between: [0,5]
  1545. - name: hallucinations_global_rating
  1546. dtype: integer
  1547. maps: GlobalRatingofHallucinations
  1548. between: [0,5]
  1549. - name: persecutary_delusions
  1550. dtype: integer
  1551. maps: Persecutory
  1552. between: [0,5]
  1553. - name: delusions_of_jealousy
  1554. dtype: integer
  1555. maps: Delusions
  1556. between: [0,5]
  1557. - name: delusions_of_guilt
  1558. dtype: integer
  1559. maps: Delusionsof
  1560. between: [0,5]
  1561. - name: grandiose_delusions
  1562. dtype: integer
  1563. maps: Grandiose
  1564. between: [0,5]
  1565. - name: religious_delusions
  1566. dtype: integer
  1567. maps: Religious
  1568. between: [0,5]
  1569. - name: somatic_delusions
  1570. dtype: integer
  1571. maps: Somatic
  1572. between: [0,5]
  1573. - name: delusions_of_reference
  1574. dtype: integer
  1575. maps: DelusionsofReference
  1576. between: [0,5]
  1577. - name: delusions_of_being_controlled
  1578. dtype: integer
  1579. maps: DelusionsofBeing
  1580. between: [0,5]
  1581. - name: delusion_of_mind_reading
  1582. dtype: integer
  1583. maps: DelusionsofMind
  1584. between: [0,5]
  1585. - name: thought_broadcasting
  1586. dtype: integer
  1587. maps: Thought
  1588. between: [0,5]
  1589. - name: thought_insertion
  1590. dtype: integer
  1591. maps: ThoughtInsertion
  1592. between: [0,5]
  1593. - name: thought_withdrawal
  1594. dtype: integer
  1595. maps: ThoughtWithdrawal
  1596. between: [0,5]
  1597. - name: delusion_global_rating
  1598. dtype: integer
  1599. maps: GlobalRatingofDelusions
  1600. between: [0,5]
  1601. - name: clothing_and_appearance
  1602. dtype: integer
  1603. maps: Clothing
  1604. between: [0,5]
  1605. - name: social_behavior
  1606. dtype: integer
  1607. maps: Social
  1608. between: [0,5]
  1609. - name: aggressive_behavior
  1610. dtype: integer
  1611. maps: Aggressive
  1612. between: [0,5]
  1613. - name: repeptitive_behavior
  1614. dtype: integer
  1615. maps: Repetitiveor
  1616. between: [0,5]
  1617. - name: bizarre_behavior_global_rating
  1618. dtype: integer
  1619. maps: GlobalRatingofBizarre
  1620. between: [0,5]
  1621. - name: derailment
  1622. dtype: integer
  1623. maps: Derailment
  1624. between: [0,5]
  1625. - name: tangentiality
  1626. dtype: integer
  1627. maps: Tangentiality
  1628. between: [0,5]
  1629. - name: incoherance
  1630. dtype: integer
  1631. maps: Incoherence
  1632. between: [0,5]
  1633. - name: illogicality
  1634. dtype: integer
  1635. maps: Illogicality
  1636. between: [0,5]
  1637. - name: circumstantiality
  1638. dtype: integer
  1639. maps: Circumstantiality
  1640. between: [0,5]
  1641. - name: pressure_of_speech
  1642. dtype: integer
  1643. maps: Pressure
  1644. between: [0,5]
  1645. - name: distractable_speech
  1646. dtype: integer
  1647. maps: Distractible
  1648. between: [0,5]
  1649. - name: clanging
  1650. dtype: integer
  1651. maps: Changing
  1652. between: [0,5]
  1653. - name: positive_formal_thought_disorder_global_rating
  1654. dtype: integer
  1655. maps: Global
  1656. between: [0,5]
  1657. - name: hallucinations_rating
  1658. dtype: integer
  1659. maps: hallucinations_total
  1660. betweeen: [0,30]
  1661. - name: delusions_rating
  1662. dtype: integer
  1663. maps: delusions_total
  1664. betweeen: [0,30]
  1665. - name: bizzarre_rating
  1666. dtype: integer
  1667. maps: bizzarre_total
  1668. betweeen: [0,20]
  1669. - name: positive_rating
  1670. dtype: integer
  1671. maps: positive_total
  1672. betweeen: [0,40]
  1673. - name: score
  1674. dtype: integer
  1675. maps: total
  1676. betweeen: [0,120]
  1677. - name: update_timestamp
  1678. dtype: datetime
  1679. maps: date_of_last_update
  1680. ---
  1681. table: _young_mania_rating_scale
  1682. maps: young_mania_table
  1683. refs:
  1684. - cols: [subject, session]
  1685. links: [_assessments.subject, _assessments.session]
  1686. cols:
  1687. - name: id
  1688. dtype: integer
  1689. maps: id
  1690. - name: subject
  1691. primary: yes
  1692. dtype: str(6)
  1693. maps: assessmentId
  1694. extract: "[0-9]{3}([0-9]{6})"
  1695. like: "D[0-9]{4}"
  1696. replace:
  1697. value: subjectID
  1698. to: D_number
  1699. file: ""
  1700. - name: session
  1701. primary: yes
  1702. dtype: str(3)
  1703. maps: assessmentId
  1704. extract: "([0-9]{3})[0-9]{6}"
  1705. like: "[0-9]{3}"
  1706. - name: elevated_mood
  1707. dtype: integer
  1708. maps: Elevated
  1709. between: [0,4]
  1710. - name: increased_motor_activity
  1711. dtype: integer
  1712. maps: Increased
  1713. between: [0,4]
  1714. - name: sexual_interest
  1715. dtype: integer
  1716. maps: Sexual
  1717. between: [0,4]
  1718. - name: sleep
  1719. dtype: integer
  1720. maps: Sleep
  1721. between: [0,4]
  1722. - name: irritability
  1723. dtype: integer
  1724. maps: Irritability
  1725. like: "[02468]"
  1726. between: [0,8]
  1727. - name: speech
  1728. dtype: integer
  1729. maps: Speech1
  1730. like: "[02468]"
  1731. between: [0,8]
  1732. - name: language_disorder
  1733. dtype: integer
  1734. maps: Language
  1735. between: [0,4]
  1736. - name: thought_content
  1737. dtype: integer
  1738. maps: Thought
  1739. like: "[02468]"
  1740. between: [0,8]
  1741. - name: disruptive_behavior
  1742. dtype: integer
  1743. maps: Disruptive
  1744. like: "[02468]"
  1745. between: [0,8]
  1746. - name: appearance
  1747. dtype: integer
  1748. maps: Appearance
  1749. between: [0,4]
  1750. - name: insight
  1751. dtype: integer
  1752. maps: Insight
  1753. between: [0,4]
  1754. - name: score
  1755. dtype: integer
  1756. maps: total
  1757. between: [0,60]
  1758. - name: update_timestamp
  1759. dtype: datetime
  1760. maps: date_of_last_update
  1761. ---
  1762. table: _severity_of_alcohol_dependence
  1763. maps: sadq_table
  1764. refs:
  1765. - cols: [subject, session]
  1766. links: [_assessments.subject, _assessments.session]
  1767. cols:
  1768. - name: id
  1769. dtype: integer
  1770. maps: id
  1771. - name: subject
  1772. primary: yes
  1773. dtype: str(6)
  1774. maps: assessmentId
  1775. extract: "[0-9]{3}([0-9]{6})"
  1776. like: "D[0-9]{4}"
  1777. replace:
  1778. value: subjectID
  1779. to: D_number
  1780. file: ""
  1781. - name: session
  1782. primary: yes
  1783. dtype: str(3)
  1784. maps: assessmentId
  1785. extract: "([0-9]{3})[0-9]{6}"
  1786. like: "[0-9]{3}"
  1787. - name: month_of_heavy_drinking
  1788. dtype: str
  1789. maps: month_year
  1790. extract: "(\\w+) - \\d+"
  1791. like: "(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)"
  1792. case: lower
  1793. - name: year_of_heavy_drinking
  1794. dtype: integer
  1795. maps: month_year
  1796. extract: "\\w+ - (\\d+)"
  1797. between: [2000, 2050]
  1798. - name: next_day_wake_up_feeling_sweaty
  1799. dtype: integer
  1800. maps: ans1
  1801. between: [0,3]
  1802. - name: next_day_shaking_hands_in_morning
  1803. dtype: integer
  1804. maps: ans2
  1805. between: [0,3]
  1806. - name: next_day_body_shakes_violently_in_morning
  1807. dtype: integer
  1808. maps: ans3
  1809. between: [0,3]
  1810. - name: next_day_drenched_in_sweat_in_morning
  1811. dtype: integer
  1812. maps: ans4
  1813. between: [0,3]
  1814. - name: next_day_dread_waking_up
  1815. dtype: integer
  1816. maps: ans5
  1817. between: [0,3]
  1818. - name: next_day_frightened_of_meeting_people
  1819. dtype: integer
  1820. maps: ans6
  1821. between: [0,3]
  1822. - name: next_day_felt_at_edge_of_despair
  1823. dtype: integer
  1824. maps: ans7
  1825. between: [0,3]
  1826. - name: next_day_felt_frightened_in_morning
  1827. dtype: integer
  1828. maps: ans8
  1829. between: [0,3]
  1830. - name: next_day_like_drinking_again_in_morning
  1831. dtype: integer
  1832. maps: ans9
  1833. between: [0,3]
  1834. - name: next_day_gulp_first_few_drinks
  1835. dtype: integer
  1836. maps: ans10
  1837. between: [0,3]
  1838. - name: next_day_drank_alcohol_to_rid_shakes
  1839. dtype: integer
  1840. maps: ans11
  1841. between: [0,3]
  1842. - name: next_day_strong_craving_for_drink_in_morning
  1843. dtype: integer
  1844. maps: ans12
  1845. between: [0,3]
  1846. - name: drank_more_than_quarter_per_day
  1847. dtype: integer
  1848. maps: ans13
  1849. between: [0,3]
  1850. - name: drank_more_than_half_per_day
  1851. dtype: integer
  1852. maps: ans14
  1853. between: [0,3]
  1854. - name: drank_more_than_one_per_day
  1855. dtype: integer
  1856. maps: ans15
  1857. between: [0,3]
  1858. - name: drank_more_than_two_per_day
  1859. dtype: integer
  1860. maps: ans16
  1861. between: [0,3]
  1862. - name: relapse_drinking_morning_sweating
  1863. dtype: integer
  1864. maps: ans17
  1865. between: [0,3]
  1866. - name: relapse_drinking_hands_shaking
  1867. dtype: integer
  1868. maps: ans18
  1869. between: [0,3]
  1870. - name: relapse_drinking_body_shaking
  1871. dtype: integer
  1872. maps: ans19
  1873. between: [0,3]
  1874. - name: relapse_drinking_alcohol_craving
  1875. dtype: integer
  1876. maps: ans20
  1877. between: [0,3]
  1878. - name: physical_withdrawal_score
  1879. dtype: integer
  1880. maps: score_1_4
  1881. like: ^[0-1]?\d$
  1882. between: [0,12]
  1883. - name: affective_withdrawal_score
  1884. dtype: integer
  1885. maps: score_5_8
  1886. between: [0,12]
  1887. - name: withdrawal_relief_drinking_score
  1888. dtype: integer
  1889. maps: score_9_12
  1890. between: [0,12]
  1891. - name: alcohol_consumption_score
  1892. dtype: integer
  1893. maps: score_13_16
  1894. between: [0,12]
  1895. - name: rapidity_of_reinstatement_score
  1896. dtype: integer
  1897. maps: score_17_20
  1898. between: [0,12]
  1899. - name: score
  1900. dtype: integer
  1901. maps: total
  1902. between: [0,60]
  1903. - name: update_timestamp
  1904. dtype: datetime
  1905. maps: date_of_last_update
  1906. ---
  1907. table: _yale_brown_obsessive_compulsive_scale
  1908. maps: ocdybocschecklistandseverityassessments_table
  1909. refs:
  1910. - cols: [subject, session]
  1911. links: [_assessments.subject, _assessments.session]
  1912. cols:
  1913. - name: id
  1914. dtype: integer
  1915. maps: id
  1916. - name: subject
  1917. primary: yes
  1918. dtype: str(6)
  1919. maps: assessmentId
  1920. extract: "[0-9]{3}([0-9]{6})"
  1921. like: "D[0-9]{4}"
  1922. replace:
  1923. value: subjectID
  1924. to: D_number
  1925. file: ""
  1926. - name: session
  1927. primary: yes
  1928. dtype: str(3)
  1929. maps: assessmentId
  1930. extract: "([0-9]{3})[0-9]{6}"
  1931. like: "[0-9]{3}"
  1932. - name: time_spent_on_obsessive_thoughts
  1933. dtype: integer
  1934. maps: How
  1935. between: [0,4]
  1936. - name: interference_by_obsessive_thoughts
  1937. dtype: integer
  1938. maps: Howmuch
  1939. between: [0,4]
  1940. - name: distress_caused_by_obsessive_thoughts
  1941. dtype: integer
  1942. maps: Howmuchdistress
  1943. between: [0,4]
  1944. - name: resistance_against_obsessions
  1945. dtype: integer
  1946. maps: Howmuchofan
  1947. between: [0,4]
  1948. - name: control_over_obsessive_thoughts
  1949. dtype: integer
  1950. maps: Howmuchcontrol
  1951. between: [0,4]
  1952. - name: time_spent_performing_compulsive_behaviors
  1953. dtype: integer
  1954. maps: Howmuchtime
  1955. between: [0,4]
  1956. - name: interference_by_compulsive_behaviors
  1957. dtype: integer
  1958. maps: Howmuchdo
  1959. between: [0,4]
  1960. - name: distress_caused_by_compulsive_behaviors
  1961. dtype: integer
  1962. maps: Howwould
  1963. between: [0,4]
  1964. - name: effort_to_resist_compulsive_behaviors
  1965. dtype: integer
  1966. maps: Howmuchof
  1967. between: [0,4]
  1968. - name: control_over_compulsive_behaviors
  1969. dtype: integer
  1970. maps: Howstrong
  1971. between: [0,4]
  1972. - name: insight_rating
  1973. dtype: integer
  1974. maps: insight_score
  1975. between: [0,4]
  1976. - name: avoidance_rating
  1977. dtype: integer
  1978. maps: avoidance_score
  1979. between: [0,4]
  1980. - name: obsession_score
  1981. dtype: integer
  1982. maps: obsessive_total
  1983. between: [0,25]
  1984. - name: compulsion_score
  1985. dtype: integer
  1986. maps: compulsive_total
  1987. between: [0,25]
  1988. - name: score
  1989. dtype: integer
  1990. maps: ybocs_total
  1991. between: [0,50]
  1992. - name: update_timestamp
  1993. dtype: datetime
  1994. maps: date_of_last_update
  1995. ---
  1996. table: _yale_brown_obsessive_compulsive_symptoms
  1997. maps: ocdybocschecklistandseverityassessments_table
  1998. refs:
  1999. - cols: [subject, session]
  2000. links: [_assessments.subject, _assessments.session]
  2001. cols:
  2002. - name: id
  2003. dtype: integer
  2004. maps: id
  2005. - name: subject
  2006. primary: yes
  2007. dtype: str(6)
  2008. maps: assessmentId
  2009. extract: "[0-9]{3}([0-9]{6})"
  2010. like: "D[0-9]{4}"
  2011. replace:
  2012. value: subjectID
  2013. to: D_number
  2014. file: ""
  2015. - name: session
  2016. primary: yes
  2017. dtype: str(3)
  2018. maps: assessmentId
  2019. extract: "([0-9]{3})[0-9]{6}"
  2020. like: "[0-9]{3}"
  2021. - name: fear_of_self_harm
  2022. dtype: integer
  2023. maps: etFear
  2024. between: [1,3]
  2025. replace:
  2026. - value: "Current"
  2027. to: "1"
  2028. - value: "Current,"
  2029. to: "1"
  2030. - value: ",Past"
  2031. to: "2"
  2032. - value: "Past"
  2033. to: "2"
  2034. - value: "Current,Past"
  2035. to: "3"
  2036. - name: fear_of_harming_others
  2037. dtype: integer
  2038. maps: etFearmight
  2039. between: [1,3]
  2040. replace:
  2041. - value: "Current"
  2042. to: "1"
  2043. - value: "Current,"
  2044. to: "1"
  2045. - value: ",Past"
  2046. to: "2"
  2047. - value: "Past"
  2048. to: "2"
  2049. - value: "Current,Past"
  2050. to: "3"
  2051. - name: violent_images
  2052. dtype: integer
  2053. maps: etViolent
  2054. between: [1,3]
  2055. replace:
  2056. - value: "Current"
  2057. to: "1"
  2058. - value: "Current,"
  2059. to: "1"
  2060. - value: ",Past"
  2061. to: "2"
  2062. - value: "Past"
  2063. to: "2"
  2064. - value: "Current,Past"
  2065. to: "3"
  2066. - name: fear_of_blurting_insults
  2067. dtype: integer
  2068. maps: etFearof
  2069. between: [1,3]
  2070. replace:
  2071. - value: "Current"
  2072. to: "1"
  2073. - value: "Current,"
  2074. to: "1"
  2075. - value: ",Past"
  2076. to: "2"
  2077. - value: "Past"
  2078. to: "2"
  2079. - value: "Current,Past"
  2080. to: "3"
  2081. - name: fear_of_doing_embarrassing_things
  2082. dtype: integer
  2083. maps: etFearofdoing
  2084. between: [1,3]
  2085. replace:
  2086. - value: "Current"
  2087. to: "1"
  2088. - value: "Current,"
  2089. to: "1"
  2090. - value: ",Past"
  2091. to: "2"
  2092. - value: "Past"
  2093. to: "2"
  2094. - value: "Current,Past"
  2095. to: "3"
  2096. - name: fear_of_acting_on_impulses
  2097. dtype: integer
  2098. maps: etFearwillact
  2099. between: [1,3]
  2100. replace:
  2101. - value: "Current"
  2102. to: "1"
  2103. - value: "Current,"
  2104. to: "1"
  2105. - value: ",Past"
  2106. to: "2"
  2107. - value: "Past"
  2108. to: "2"
  2109. - value: "Current,Past"
  2110. to: "3"
  2111. - name: fear_of_stealing
  2112. dtype: integer
  2113. maps: etFearwill
  2114. between: [1,3]
  2115. replace:
  2116. - value: "Current"
  2117. to: "1"
  2118. - value: "Current,"
  2119. to: "1"
  2120. - value: ",Past"
  2121. to: "2"
  2122. - value: "Past"
  2123. to: "2"
  2124. - value: "Current,Past"
  2125. to: "3"
  2126. - name: fear_will_harm_other_if_careless
  2127. dtype: integer
  2128. maps: etFearwillharm
  2129. between: [1,3]
  2130. replace:
  2131. - value: "Current"
  2132. to: "1"
  2133. - value: "Current,"
  2134. to: "1"
  2135. - value: ",Past"
  2136. to: "2"
  2137. - value: "Past"
  2138. to: "2"
  2139. - value: "Current,Past"
  2140. to: "3"
  2141. - name: fear_of_responsibility_for_terrible
  2142. dtype: integer
  2143. maps: etFearwillbe
  2144. between: [1,3]
  2145. replace:
  2146. - value: "Current"
  2147. to: "1"
  2148. - value: "Current,"
  2149. to: "1"
  2150. - value: ",Past"
  2151. to: "2"
  2152. - value: "Past"
  2153. to: "2"
  2154. - value: "Current,Past"
  2155. to: "3"
  2156. - name: disgust_with_bodily_secretions
  2157. dtype: integer
  2158. maps: etConcern
  2159. between: [1,3]
  2160. replace:
  2161. - value: "Current"
  2162. to: "1"
  2163. - value: "Current,"
  2164. to: "1"
  2165. - value: ",Past"
  2166. to: "2"
  2167. - value: "Past"
  2168. to: "2"
  2169. - value: "Current,Past"
  2170. to: "3"
  2171. - name: concern_with_germs
  2172. dtype: integer
  2173. maps: etConcerned
  2174. between: [1,3]
  2175. replace:
  2176. - value: "Current"
  2177. to: "1"
  2178. - value: "Current,"
  2179. to: "1"
  2180. - value: ",Past"
  2181. to: "2"
  2182. - value: "Past"
  2183. to: "2"
  2184. - value: "Current,Past"
  2185. to: "3"
  2186. - name: concern_with_environmental_contaminants
  2187. dtype: integer
  2188. maps: etExcessive
  2189. between: [1,3]
  2190. replace:
  2191. - value: "Current"
  2192. to: "1"
  2193. - value: "Current,"
  2194. to: "1"
  2195. - value: ",Past"
  2196. to: "2"
  2197. - value: "Past"
  2198. to: "2"
  2199. - value: "Current,Past"
  2200. to: "3"
  2201. - name: concern_with_household_items
  2202. dtype: integer
  2203. maps: etExcessiveconcern
  2204. between: [1,3]
  2205. replace:
  2206. - value: "Current"
  2207. to: "1"
  2208. - value: "Current,"
  2209. to: "1"
  2210. - value: ",Past"
  2211. to: "2"
  2212. - value: "Past"
  2213. to: "2"
  2214. - value: "Current,Past"
  2215. to: "3"
  2216. - name: bothered_by_sticky_residues
  2217. dtype: integer
  2218. maps: etExcessivebothered
  2219. between: [1,3]
  2220. replace:
  2221. - value: "Current"
  2222. to: "1"
  2223. - value: "Current,"
  2224. to: "1"
  2225. - value: ",Past"
  2226. to: "2"
  2227. - value: "Past"
  2228. to: "2"
  2229. - value: "Current,Past"
  2230. to: "3"
  2231. - name: concerned_will_get_ill
  2232. dtype: integer
  2233. maps: etConcernedwill
  2234. between: [1,3]
  2235. replace:
  2236. - value: "Current"
  2237. to: "1"
  2238. - value: "Current,"
  2239. to: "1"
  2240. - value: ",Past"
  2241. to: "2"
  2242. - value: "Past"
  2243. to: "2"
  2244. - value: "Current,Past"
  2245. to: "3"
  2246. - name: concerned_will_spread_germs
  2247. dtype: integer
  2248. maps: etConcernedwillget
  2249. between: [1,3]
  2250. replace:
  2251. - value: "Current"
  2252. to: "1"
  2253. - value: "Current,"
  2254. to: "1"
  2255. - value: ",Past"
  2256. to: "2"
  2257. - value: "Past"
  2258. to: "2"
  2259. - value: "Current,Past"
  2260. to: "3"
  2261. - name: not_concerned_with_contamination_consequences
  2262. dtype: integer
  2263. maps: etNoconcern
  2264. between: [1,3]
  2265. replace:
  2266. - value: "Current"
  2267. to: "1"
  2268. - value: "Current,"
  2269. to: "1"
  2270. - value: ",Past"
  2271. to: "2"
  2272. - value: "Past"
  2273. to: "2"
  2274. - value: "Current,Past"
  2275. to: "3"
  2276. - name: other_contamination_obsessions
  2277. dtype: integer
  2278. maps: etOther1
  2279. between: [1,3]
  2280. replace:
  2281. - value: "Current"
  2282. to: "1"
  2283. - value: "Current,"
  2284. to: "1"
  2285. - value: ",Past"
  2286. to: "2"
  2287. - value: "Past"
  2288. to: "2"
  2289. - value: "Current,Past"
  2290. to: "3"
  2291. - name: doubt_performing_activities
  2292. dtype: integer
  2293. maps: etAfter
  2294. between: [1,3]
  2295. replace:
  2296. - value: "Current"
  2297. to: "1"
  2298. - value: "Current,"
  2299. to: "1"
  2300. - value: ",Past"
  2301. to: "2"
  2302. - value: "Past"
  2303. to: "2"
  2304. - value: "Current,Past"
  2305. to: "3"
  2306. - name: unacceptable_sexual_thoughts
  2307. dtype: integer
  2308. maps: etPersonally
  2309. between: [1,3]
  2310. replace:
  2311. - value: "Current"
  2312. to: "1"
  2313. - value: "Current,"
  2314. to: "1"
  2315. - value: ",Past"
  2316. to: "2"
  2317. - value: "Past"
  2318. to: "2"
  2319. - value: "Current,Past"
  2320. to: "3"
  2321. - name: sexual_thoughts_of_children
  2322. dtype: integer
  2323. maps: etContents
  2324. between: [1,3]
  2325. replace:
  2326. - value: "Current"
  2327. to: "1"
  2328. - value: "Current,"
  2329. to: "1"
  2330. - value: ",Past"
  2331. to: "2"
  2332. - value: "Past"
  2333. to: "2"
  2334. - value: "Current,Past"
  2335. to: "3"
  2336. - name: sexual_thoughts_of_homosexuality
  2337. dtype: integer
  2338. maps: etContentinvolves
  2339. between: [1,3]
  2340. replace:
  2341. - value: "Current"
  2342. to: "1"
  2343. - value: "Current,"
  2344. to: "1"
  2345. - value: ",Past"
  2346. to: "2"
  2347. - value: "Past"
  2348. to: "2"
  2349. - value: "Current,Past"
  2350. to: "3"
  2351. - name: aggressive_sexual_behaviors
  2352. dtype: integer
  2353. maps: etSexualbehavior
  2354. between: [1,3]
  2355. replace:
  2356. - value: "Current"
  2357. to: "1"
  2358. - value: "Current,"
  2359. to: "1"
  2360. - value: ",Past"
  2361. to: "2"
  2362. - value: "Past"
  2363. to: "2"
  2364. - value: "Current,Past"
  2365. to: "3"
  2366. - name: other_sexual_obsessions
  2367. dtype: integer
  2368. maps: etOthers2
  2369. between: [1,3]
  2370. replace:
  2371. - value: "Current"
  2372. to: "1"
  2373. - value: "Current,"
  2374. to: "1"
  2375. - value: ",Past"
  2376. to: "2"
  2377. - value: "Past"
  2378. to: "2"
  2379. - value: "Current,Past"
  2380. to: "3"
  2381. - name: collect_useless_items
  2382. dtype: integer
  2383. maps: etCollect
  2384. between: [1,3]
  2385. replace:
  2386. - value: "Current"
  2387. to: "1"
  2388. - value: "Current,"
  2389. to: "1"
  2390. - value: ",Past"
  2391. to: "2"
  2392. - value: "Past"
  2393. to: "2"
  2394. - value: "Current,Past"
  2395. to: "3"
  2396. - name: concerned_with_losing_items
  2397. dtype: integer
  2398. maps: etConcernedwithlosing
  2399. between: [1,3]
  2400. replace:
  2401. - value: "Current"
  2402. to: "1"
  2403. - value: "Current,"
  2404. to: "1"
  2405. - value: ",Past"
  2406. to: "2"
  2407. - value: "Past"
  2408. to: "2"
  2409. - value: "Current,Past"
  2410. to: "3"
  2411. - name: concerned_with_blasphemy
  2412. dtype: integer
  2413. maps: etConcernedwith
  2414. between: [1,3]
  2415. replace:
  2416. - value: "Current"
  2417. to: "1"
  2418. - value: "Current,"
  2419. to: "1"
  2420. - value: ",Past"
  2421. to: "2"
  2422. - value: "Past"
  2423. to: "2"
  2424. - value: "Current,Past"
  2425. to: "3"
  2426. - name: excess_concern_with_morality
  2427. dtype: integer
  2428. maps: etExcess
  2429. between: [1,3]
  2430. replace:
  2431. - value: "Current"
  2432. to: "1"
  2433. - value: "Current,"
  2434. to: "1"
  2435. - value: ",Past"
  2436. to: "2"
  2437. - value: "Past"
  2438. to: "2"
  2439. - value: "Current,Past"
  2440. to: "3"
  2441. - name: bothered_by_order
  2442. dtype: integer
  2443. maps: etBothered
  2444. between: [1,3]
  2445. replace:
  2446. - value: "Current"
  2447. to: "1"
  2448. - value: "Current,"
  2449. to: "1"
  2450. - value: ",Past"
  2451. to: "2"
  2452. - value: "Past"
  2453. to: "2"
  2454. - value: "Current,Past"
  2455. to: "3"
  2456. - name: symmetry_while_grooming
  2457. dtype: integer
  2458. maps: etExactness
  2459. between: [1,3]
  2460. replace:
  2461. - value: "Current"
  2462. to: "1"
  2463. - value: "Current,"
  2464. to: "1"
  2465. - value: ",Past"
  2466. to: "2"
  2467. - value: "Past"
  2468. to: "2"
  2469. - value: "Current,Past"
  2470. to: "3"
  2471. - name: magical_thinking
  2472. dtype: integer
  2473. maps: etAccompanied
  2474. between: [1,3]
  2475. replace:
  2476. - value: "Current"
  2477. to: "1"
  2478. - value: "Current,"
  2479. to: "1"
  2480. - value: ",Past"
  2481. to: "2"
  2482. - value: "Past"
  2483. to: "2"
  2484. - value: "Current,Past"
  2485. to: "3"
  2486. - name: no_magical_thinking
  2487. dtype: integer
  2488. maps: etNot
  2489. between: [1,3]
  2490. replace:
  2491. - value: "Current"
  2492. to: "1"
  2493. - value: "Current,"
  2494. to: "1"
  2495. - value: ",Past"
  2496. to: "2"
  2497. - value: "Past"
  2498. to: "2"
  2499. - value: "Current,Past"
  2500. to: "3"
  2501. - name: need_to_remember
  2502. dtype: integer
  2503. maps: etNeed
  2504. between: [1,3]
  2505. replace:
  2506. - value: "Current"
  2507. to: "1"
  2508. - value: "Current,"
  2509. to: "1"
  2510. - value: ",Past"
  2511. to: "2"
  2512. - value: "Past"
  2513. to: "2"
  2514. - value: "Current,Past"
  2515. to: "3"
  2516. - name: fear_of_saying_things
  2517. dtype: integer
  2518. maps: etFearofsaying
  2519. between: [1,3]
  2520. replace:
  2521. - value: "Current"
  2522. to: "1"
  2523. - value: "Current,"
  2524. to: "1"
  2525. - value: ",Past"
  2526. to: "2"
  2527. - value: "Past"
  2528. to: "2"
  2529. - value: "Current,Past"
  2530. to: "3"
  2531. - name: fear_of_not_saying_right_things
  2532. dtype: integer
  2533. maps: etFearofnotsaying
  2534. between: [1,3]
  2535. replace:
  2536. - value: "Current"
  2537. to: "1"
  2538. - value: "Current,"
  2539. to: "1"
  2540. - value: ",Past"
  2541. to: "2"
  2542. - value: "Past"
  2543. to: "2"
  2544. - value: "Current,Past"
  2545. to: "3"
  2546. - name: fear_of_losing_things
  2547. dtype: integer
  2548. maps: etFearoflosing
  2549. between: [1,3]
  2550. replace:
  2551. - value: "Current"
  2552. to: "1"
  2553. - value: "Current,"
  2554. to: "1"
  2555. - value: ",Past"
  2556. to: "2"
  2557. - value: "Past"
  2558. to: "2"
  2559. - value: "Current,Past"
  2560. to: "3"
  2561. - name: superstitious_fear
  2562. dtype: integer
  2563. maps: etSuperstitious
  2564. between: [1,3]
  2565. replace:
  2566. - value: "Current"
  2567. to: "1"
  2568. - value: "Current,"
  2569. to: "1"
  2570. - value: ",Past"
  2571. to: "2"
  2572. - value: "Past"
  2573. to: "2"
  2574. - value: "Current,Past"
  2575. to: "3"
  2576. - name: intrusive_meaningless_thoughts
  2577. dtype: integer
  2578. maps: etIntrusive
  2579. between: [1,3]
  2580. replace:
  2581. replace:
  2582. - value: "Current"
  2583. to: "1"
  2584. - value: "Current,"
  2585. to: "1"
  2586. - value: ",Past"
  2587. to: "2"
  2588. - value: "Past"
  2589. to: "2"
  2590. - value: "Current,Past"
  2591. to: "3"
  2592. - name: other_miscellaneous_obsessions
  2593. dtype: integer
  2594. maps: etOthers4
  2595. between: [1,3]
  2596. replace:
  2597. - value: "Current"
  2598. to: "1"
  2599. - value: "Current,"
  2600. to: "1"
  2601. - value: ",Past"
  2602. to: "2"
  2603. - value: "Past"
  2604. to: "2"
  2605. - value: "Current,Past"
  2606. to: "3"
  2607. - name: concern_with_illness
  2608. dtype: integer
  2609. maps: etConcernwithillness
  2610. between: [1,3]
  2611. replace:
  2612. - value: "Current"
  2613. to: "1"
  2614. - value: "Current,"
  2615. to: "1"
  2616. - value: ",Past"
  2617. to: "2"
  2618. - value: "Past"
  2619. to: "2"
  2620. - value: "Current,Past"
  2621. to: "3"
  2622. - name: excessive_concern_with_body
  2623. dtype: integer
  2624. maps: etExcessiveconcernwithbody
  2625. between: [1,3]
  2626. replace:
  2627. - value: "Current"
  2628. to: "1"
  2629. - value: "Current,"
  2630. to: "1"
  2631. - value: ",Past"
  2632. to: "2"
  2633. - value: "Past"
  2634. to: "2"
  2635. - value: "Current,Past"
  2636. to: "3"
  2637. - name: other_somatic_obsessions
  2638. dtype: integer
  2639. maps: etOthers
  2640. between: [1,3]
  2641. replace:
  2642. - value: "Current"
  2643. to: "1"
  2644. - value: "Current,"
  2645. to: "1"
  2646. - value: ",Past"
  2647. to: "2"
  2648. - value: "Past"
  2649. to: "2"
  2650. - value: "Current,Past"
  2651. to: "3"
  2652. - name: ritualized_hand_washing
  2653. dtype: integer
  2654. maps: etExcessiveor
  2655. between: [1,3]
  2656. replace:
  2657. - value: "Current"
  2658. to: "1"
  2659. - value: "Current,"
  2660. to: "1"
  2661. - value: ",Past"
  2662. to: "2"
  2663. - value: "Past"
  2664. to: "2"
  2665. - value: "Current,Past"
  2666. to: "3"
  2667. - name: ritualized_grooming
  2668. dtype: integer
  2669. maps: etExcessiveorritualized
  2670. between: [1,3]
  2671. replace:
  2672. - value: "Current"
  2673. to: "1"
  2674. - value: "Current,"
  2675. to: "1"
  2676. - value: ",Past"
  2677. to: "2"
  2678. - value: "Past"
  2679. to: "2"
  2680. - value: "Current,Past"
  2681. to: "3"
  2682. - name: cleaning_household_items
  2683. dtype: integer
  2684. maps: etCleaningof
  2685. between: [1,3]
  2686. replace:
  2687. - value: "Current"
  2688. to: "1"
  2689. - value: "Current,"
  2690. to: "1"
  2691. - value: ",Past"
  2692. to: "2"
  2693. - value: "Past"
  2694. to: "2"
  2695. - value: "Current,Past"
  2696. to: "3"
  2697. - name: preventing_contaminant_contact
  2698. dtype: integer
  2699. maps: etOthermeasures
  2700. between: [1,3]
  2701. replace:
  2702. - value: "Current"
  2703. to: "1"
  2704. - value: "Current,"
  2705. to: "1"
  2706. - value: ",Past"
  2707. to: "2"
  2708. - value: "Past"
  2709. to: "2"
  2710. - value: "Current,Past"
  2711. to: "3"
  2712. - name: avoiding_contaminant_contact
  2713. dtype: integer
  2714. maps: etAvoidance
  2715. between: [1,3]
  2716. replace:
  2717. - value: "Current"
  2718. to: "1"
  2719. - value: "Current,"
  2720. to: "1"
  2721. - value: ",Past"
  2722. to: "2"
  2723. - value: "Past"
  2724. to: "2"
  2725. - value: "Current,Past"
  2726. to: "3"
  2727. - name: checking_for_harm
  2728. dtype: integer
  2729. maps: etCheckingthat
  2730. between: [1,3]
  2731. replace:
  2732. - value: "Current"
  2733. to: "1"
  2734. - value: "Current,"
  2735. to: "1"
  2736. - value: ",Past"
  2737. to: "2"
  2738. - value: "Past"
  2739. to: "2"
  2740. - value: "Current,Past"
  2741. to: "3"
  2742. - name: checkings_locks
  2743. dtype: integer
  2744. maps: etCheckinglocks
  2745. between: [1,3]
  2746. replace:
  2747. - value: "Current"
  2748. to: "1"
  2749. - value: "Current,"
  2750. to: "1"
  2751. - value: ",Past"
  2752. to: "2"
  2753. - value: "Past"
  2754. to: "2"
  2755. - value: "Current,Past"
  2756. to: "3"
  2757. - name: checking_for_mistakes
  2758. dtype: integer
  2759. maps: etCheckingthatdid
  2760. between: [1,3]
  2761. replace:
  2762. - value: "Current"
  2763. to: "1"
  2764. - value: "Current,"
  2765. to: "1"
  2766. - value: ",Past"
  2767. to: "2"
  2768. - value: "Past"
  2769. to: "2"
  2770. - value: "Current,Past"
  2771. to: "3"
  2772. - name: checking_for_terrible_things
  2773. dtype: integer
  2774. maps: etCheckingthatnothing
  2775. between: [1,3]
  2776. replace:
  2777. - value: "Current"
  2778. to: "1"
  2779. - value: "Current,"
  2780. to: "1"
  2781. - value: ",Past"
  2782. to: "2"
  2783. - value: "Past"
  2784. to: "2"
  2785. - value: "Current,Past"
  2786. to: "3"
  2787. - name: checking_tied_to_somatic
  2788. dtype: integer
  2789. maps: etCheckingtied
  2790. between: [1,3]
  2791. replace:
  2792. - value: "Current"
  2793. to: "1"
  2794. - value: "Current,"
  2795. to: "1"
  2796. - value: ",Past"
  2797. to: "2"
  2798. - value: "Past"
  2799. to: "2"
  2800. - value: "Current,Past"
  2801. to: "3"
  2802. - name: checking_personal_appearance
  2803. dtype: integer
  2804. maps: etCheckingforpersonal
  2805. between: [1,3]
  2806. replace:
  2807. - value: "Current"
  2808. to: "1"
  2809. - value: "Current,"
  2810. to: "1"
  2811. - value: ",Past"
  2812. to: "2"
  2813. - value: "Past"
  2814. to: "2"
  2815. - value: "Current,Past"
  2816. to: "3"
  2817. - name: rereading
  2818. dtype: integer
  2819. maps: etRereading
  2820. between: [1,3]
  2821. replace:
  2822. - value: "Current"
  2823. to: "1"
  2824. - value: "Current,"
  2825. to: "1"
  2826. - value: ",Past"
  2827. to: "2"
  2828. - value: "Past"
  2829. to: "2"
  2830. - value: "Current,Past"
  2831. to: "3"
  2832. - name: repeating_questions
  2833. dtype: integer
  2834. maps: etRepeatingsame
  2835. between: [1,3]
  2836. replace:
  2837. - value: "Current"
  2838. to: "1"
  2839. - value: "Current,"
  2840. to: "1"
  2841. - value: ",Past"
  2842. to: "2"
  2843. - value: "Past"
  2844. to: "2"
  2845. - value: "Current,Past"
  2846. to: "3"
  2847. - name: repeat_routine_activities
  2848. dtype: integer
  2849. maps: etNeedto
  2850. between: [1,3]
  2851. replace:
  2852. - value: "Current"
  2853. to: "1"
  2854. - value: "Current,"
  2855. to: "1"
  2856. - value: ",Past"
  2857. to: "2"
  2858. - value: "Past"
  2859. to: "2"
  2860. - value: "Current,Past"
  2861. to: "3"
  2862. - name: crossing_rituals
  2863. dtype: integer
  2864. maps: etRituals
  2865. between: [1,3]
  2866. replace:
  2867. - value: "Current"
  2868. to: "1"
  2869. - value: "Current,"
  2870. to: "1"
  2871. - value: ",Past"
  2872. to: "2"
  2873. - value: "Past"
  2874. to: "2"
  2875. - value: "Current,Past"
  2876. to: "3"
  2877. - name: inspecting_household_trash
  2878. dtype: integer
  2879. maps: etInspecting
  2880. between: [1,3]
  2881. replace:
  2882. - value: "Current"
  2883. to: "1"
  2884. - value: "Current,"
  2885. to: "1"
  2886. - value: ",Past"
  2887. to: "2"
  2888. - value: "Past"
  2889. to: "2"
  2890. - value: "Current,Past"
  2891. to: "3"
  2892. - name: line_up_clothes
  2893. dtype: integer
  2894. maps: etLines
  2895. between: [1,3]
  2896. replace:
  2897. - value: "Current"
  2898. to: "1"
  2899. - value: "Current,"
  2900. to: "1"
  2901. - value: ",Past"
  2902. to: "2"
  2903. - value: "Past"
  2904. to: "2"
  2905. - value: "Current,Past"
  2906. to: "3"
  2907. - name: need_for_symmetry
  2908. dtype: integer
  2909. maps: etNeedfor
  2910. between: [1,3]
  2911. replace:
  2912. - value: "Current"
  2913. to: "1"
  2914. - value: "Current,"
  2915. to: "1"
  2916. - value: ",Past"
  2917. to: "2"
  2918. - value: "Past"
  2919. to: "2"
  2920. - value: "Current,Past"
  2921. to: "3"
  2922. - name: activity_incomplete_till_right
  2923. dtype: integer
  2924. maps: etCant
  2925. between: [1,3]
  2926. replace:
  2927. - value: "Current"
  2928. to: "1"
  2929. - value: "Current,"
  2930. to: "1"
  2931. - value: ",Past"
  2932. to: "2"
  2933. - value: "Past"
  2934. to: "2"
  2935. - value: "Current,Past"
  2936. to: "3"
  2937. - name: accumulating_useless_objects
  2938. dtype: integer
  2939. maps: etInspectinghousehold
  2940. between: [1,3]
  2941. replace:
  2942. - value: "Current"
  2943. to: "1"
  2944. - value: "Current,"
  2945. to: "1"
  2946. - value: ",Past"
  2947. to: "2"
  2948. - value: "Past"
  2949. to: "2"
  2950. - value: "Current,Past"
  2951. to: "3"
  2952. - name: mental_rituals
  2953. dtype: integer
  2954. maps: etMental
  2955. between: [1,3]
  2956. replace:
  2957. - value: "Current"
  2958. to: "1"
  2959. - value: "Current,"
  2960. to: "1"
  2961. - value: ",Past"
  2962. to: "2"
  2963. - value: "Past"
  2964. to: "2"
  2965. - value: "Current,Past"
  2966. to: "3"
  2967. - name: pathological_slowness
  2968. dtype: integer
  2969. maps: etPathologicalslowness
  2970. between: [1,3]
  2971. replace:
  2972. - value: "Current"
  2973. to: "1"
  2974. - value: "Current,"
  2975. to: "1"
  2976. - value: ",Past"
  2977. to: "2"
  2978. - value: "Past"
  2979. to: "2"
  2980. - value: "Current,Past"
  2981. to: "3"
  2982. - name: compulsion_by_proxy
  2983. dtype: integer
  2984. maps: etCompulsion
  2985. between: [1,3]
  2986. replace:
  2987. - value: "Current"
  2988. to: "1"
  2989. - value: "Current,"
  2990. to: "1"
  2991. - value: ",Past"
  2992. to: "2"
  2993. - value: "Past"
  2994. to: "2"
  2995. - value: "Current,Past"
  2996. to: "3"
  2997. - name: need_to_touch
  2998. dtype: integer
  2999. maps: etNeedtotouch
  3000. between: [1,3]
  3001. replace:
  3002. - value: "Current"
  3003. to: "1"
  3004. - value: "Current,"
  3005. to: "1"
  3006. - value: ",Past"
  3007. to: "2"
  3008. - value: "Past"
  3009. to: "2"
  3010. - value: "Current,Past"
  3011. to: "3"
  3012. - name: excessive_list_making
  3013. dtype: integer
  3014. maps: etExcessivelist
  3015. between: [1,3]
  3016. replace:
  3017. - value: "Current"
  3018. to: "1"
  3019. - value: "Current,"
  3020. to: "1"
  3021. - value: ",Past"
  3022. to: "2"
  3023. - value: "Past"
  3024. to: "2"
  3025. - value: "Current,Past"
  3026. to: "3"
  3027. - name: need_to_tell
  3028. dtype: integer
  3029. maps: etNeedtotell
  3030. between: [1,3]
  3031. replace:
  3032. - value: "Current"
  3033. to: "1"
  3034. - value: "Current,"
  3035. to: "1"
  3036. - value: ",Past"
  3037. to: "2"
  3038. - value: "Past"
  3039. to: "2"
  3040. - value: "Current,Past"
  3041. to: "3"
  3042. - name: measures_to_prevent
  3043. dtype: integer
  3044. maps: etMeasures
  3045. between: [1,3]
  3046. replace:
  3047. - value: "Current"
  3048. to: "1"
  3049. - value: "Current,"
  3050. to: "1"
  3051. - value: ",Past"
  3052. to: "2"
  3053. - value: "Past"
  3054. to: "2"
  3055. - value: "Current,Past"
  3056. to: "3"
  3057. - name: ritualized_eating_behaviors
  3058. dtype: integer
  3059. maps: etRitualized
  3060. between: [1,3]
  3061. replace:
  3062. - value: "Current"
  3063. to: "1"
  3064. - value: "Current,"
  3065. to: "1"
  3066. - value: ",Past"
  3067. to: "2"
  3068. - value: "Past"
  3069. to: "2"
  3070. - value: "Current,Past"
  3071. to: "3"
  3072. - name: trichotillomania
  3073. dtype: integer
  3074. maps: etTrichotillomania
  3075. between: [1,3]
  3076. replace:
  3077. - value: "Current"
  3078. to: "1"
  3079. - value: "Current,"
  3080. to: "1"
  3081. - value: ",Past"
  3082. to: "2"
  3083. - value: "Past"
  3084. to: "2"
  3085. - value: "Current,Past"
  3086. to: "3"
  3087. - name: superstitions
  3088. dtype: integer
  3089. maps: etSuperstitions
  3090. between: [1,3]
  3091. replace:
  3092. - value: "Current"
  3093. to: "1"
  3094. - value: "Current,"
  3095. to: "1"
  3096. - value: ",Past"
  3097. to: "2"
  3098. - value: "Past"
  3099. to: "2"
  3100. - value: "Current,Past"
  3101. to: "3"
  3102. - name: repeated_reassurance_required
  3103. dtype: integer
  3104. maps: etAsking
  3105. between: [1,3]
  3106. replace:
  3107. - value: "Current"
  3108. to: "1"
  3109. - value: "Current,"
  3110. to: "1"
  3111. - value: ",Past"
  3112. to: "2"
  3113. - value: "Past"
  3114. to: "2"
  3115. - value: "Current,Past"
  3116. to: "3"
  3117. - name: self_damaging_behavior
  3118. dtype: integer
  3119. maps: etSelf
  3120. between: [1,3]
  3121. replace:
  3122. - value: "Current"
  3123. to: "1"
  3124. - value: "Current,"
  3125. to: "1"
  3126. - value: ",Past"
  3127. to: "2"
  3128. - value: "Past"
  3129. to: "2"
  3130. - value: "Current,Past"
  3131. to: "3"
  3132. - name: blinking_rituals
  3133. dtype: integer
  3134. maps: etRitualsinvolved
  3135. between: [1,3]
  3136. replace:
  3137. - value: "Current"
  3138. to: "1"
  3139. - value: "Current,"
  3140. to: "1"
  3141. - value: ",Past"
  3142. to: "2"
  3143. - value: "Past"
  3144. to: "2"
  3145. - value: "Current,Past"
  3146. to: "3"
  3147. - name: other_miscellaneous_compulsions
  3148. dtype: integer
  3149. maps: etOthers5
  3150. between: [1,3]
  3151. replace:
  3152. - value: "Current"
  3153. to: "1"
  3154. - value: "Current,"
  3155. to: "1"
  3156. - value: ",Past"
  3157. to: "2"
  3158. - value: "Past"
  3159. to: "2"
  3160. - value: "Current,Past"
  3161. to: "3"
  3162. - name: aggressive_obsessions_are_principal
  3163. dtype: boolean
  3164. maps: etC
  3165. - name: contamination_obsessions_are_principal
  3166. dtype: boolean
  3167. maps: etA
  3168. - name: pathological_doubts_are_principal
  3169. dtype: boolean
  3170. maps: etG
  3171. - name: sexual_obsessions_are_principal
  3172. dtype: boolean
  3173. maps: etD
  3174. - name: saving_obsessions_are_principal
  3175. dtype: boolean
  3176. maps: etF
  3177. - name: religious_obsessions_are_principal
  3178. dtype: boolean
  3179. maps: etE
  3180. - name: symmetry_obsessions_are_principal
  3181. dtype: boolean
  3182. maps: etH
  3183. - name: miscellaneous_obsessions_are_principal
  3184. dtype: boolean
  3185. maps: etI
  3186. - name: somatic_obsessions_are_principal
  3187. dtype: boolean
  3188. maps: etB
  3189. - name: cleaning_compulsions_are_principal
  3190. dtype: boolean
  3191. maps: etA1
  3192. - name: checking_compulsions_are_principal
  3193. dtype: boolean
  3194. maps: etB1
  3195. - name: repeating_rituals_are_principal
  3196. dtype: boolean
  3197. maps: etC1
  3198. - name: counting_compulsions_are_principal
  3199. dtype: boolean
  3200. maps: etD1
  3201. - name: arranging_compulsions_are_principal
  3202. dtype: boolean
  3203. maps: etE1
  3204. - name: hoarding_compulsions_are_principal
  3205. dtype: boolean
  3206. maps: etF1
  3207. - name: miscellaneous_compulsions_are_principal
  3208. dtype: boolean
  3209. maps: etG1
  3210. - name: update_timestamp
  3211. dtype: datetime
  3212. maps: date_of_last_update
  3213. ---
  3214. table: _mental_status_assessment
  3215. maps: mseotd_assessmenttable
  3216. refs:
  3217. - cols: [subject, session]
  3218. links: [_assessments.subject, _assessments.session]
  3219. cols:
  3220. - name: id
  3221. dtype: integer
  3222. maps: id
  3223. - name: subject
  3224. primary: yes
  3225. dtype: str(6)
  3226. maps: assessmentId
  3227. extract: "[0-9]{3}([0-9]{6})"
  3228. like: "D[0-9]{4}"
  3229. replace:
  3230. value: subjectID
  3231. to: D_number
  3232. file: ""
  3233. - name: session
  3234. primary: yes
  3235. dtype: str(3)
  3236. maps: assessmentId
  3237. extract: "([0-9]{3})[0-9]{6}"
  3238. like: "[0-9]{3}"
  3239. - name: description
  3240. dtype: str(1000)
  3241. maps: mseotd
  3242. - name: update_timestamp
  3243. dtype: datetime
  3244. maps: date_of_last_update
  3245. ---
  3246. table: _physical_examination
  3247. maps: physicalexamination_table1
  3248. refs:
  3249. - cols: [subject, session]
  3250. links: [_assessments.subject, _assessments.session]
  3251. cols:
  3252. - name: id
  3253. dtype: integer
  3254. maps: id
  3255. - name: subject
  3256. primary: yes
  3257. dtype: str(6)
  3258. maps: assessmentId
  3259. extract: "[0-9]{3}([0-9]{6})"
  3260. like: "D[0-9]{4}"
  3261. replace:
  3262. value: subjectID
  3263. to: D_number
  3264. file: ""
  3265. - name: session
  3266. primary: yes
  3267. dtype: str(3)
  3268. maps: assessmentId
  3269. extract: "([0-9]{3})[0-9]{6}"
  3270. like: "[0-9]{3}"
  3271. - name: weight
  3272. dtype: float
  3273. maps: etWeight_
  3274. between: [20,150]
  3275. - name: standing_height
  3276. dtype: float
  3277. maps: etStandingHeight1_
  3278. betweeen: [50,300]
  3279. - name: sitting_height
  3280. dtype: float
  3281. maps: etSittingHeight1_
  3282. between: [45,270]
  3283. - name: height_ratio
  3284. dtype: float
  3285. maps: HeightRatio
  3286. between: [0,1]
  3287. - name: head_circumference
  3288. dtype: float
  3289. maps: etHead1_
  3290. between: [35,70]
  3291. - name: anemia
  3292. dtype: boolean
  3293. maps: Anemia_
  3294. - name: pedal_edema
  3295. dtype: boolean
  3296. maps: Pedal_
  3297. - name: cyanosis
  3298. dtype: boolean
  3299. maps: Cyanosis_
  3300. - name: clubbing
  3301. dtype: boolean
  3302. maps: Clubbing_
  3303. - name: iceterus
  3304. dtype: boolean
  3305. maps: Icterus_
  3306. - name: lymphadenopathy
  3307. dtype: boolean
  3308. maps: Lymphadenopathy_
  3309. - name: pulse_rate
  3310. dtype: integer
  3311. maps: etPulse_
  3312. between: [0,200]
  3313. - name: systolic_blood_pressure_while_seated
  3314. dtype: integer
  3315. maps: etBloodPressureSitting1_
  3316. between: [60,200]
  3317. - name: diastolic_blood_pressure_while_seated
  3318. dtype: integer
  3319. maps: etBloodPressureSitting2_
  3320. between: [50,100]
  3321. - name: systolic_blood_pressure_while_standing
  3322. dtype: integer
  3323. maps: etBloodPressureStanding1_
  3324. between: [70,200]
  3325. - name: diastolic_blood_pressure_while_standing
  3326. dtype: integer
  3327. maps: etBloodPressureStanding2_
  3328. between: [50,120]
  3329. - name: pupil_bilateral_size
  3330. dtype: str
  3331. maps: Equal_
  3332. like: "(equal|unequal)"
  3333. case: lower
  3334. - name: pupil_reflexes
  3335. dtype: str
  3336. maps: Reactive_
  3337. like: "(reactive|sluggish)"
  3338. case: lower
  3339. - name: electric_hair
  3340. dtype: integer
  3341. maps: Hair_
  3342. like: "[012]"
  3343. - name: hair_whorls
  3344. dtype: integer
  3345. maps: Hair2_
  3346. like: "[01]"
  3347. - name: head_circumference
  3348. dtype: integer
  3349. maps: Hair3_
  3350. like: "[012]"
  3351. - name: epicanthus
  3352. dtype: integer
  3353. maps: Epicanthus_
  3354. like: "[012]"
  3355. - name: hypertelorism
  3356. dtype: integer
  3357. maps: Epicanthus2_
  3358. like: "[012]"
  3359. - name: lowset_ears
  3360. dtype: integer
  3361. maps: Lowset_
  3362. like: "[012]"
  3363. - name: adherent_ear_lobes
  3364. dtype: integer
  3365. maps: Adherent_
  3366. like: "[01]"
  3367. - name: lower_edge_of_ears_extend
  3368. dtype: integer
  3369. maps: LowerEdge_
  3370. like: "[01]"
  3371. - name: malformed_ears
  3372. dtype: integer
  3373. maps: Malformed_
  3374. like: "[01]"
  3375. - name: asymmetrical_ears
  3376. dtype: integer
  3377. maps: Asymmetrical_
  3378. like: "[01]"
  3379. - name: soft_and_pliable_ears
  3380. dtype: integer
  3381. maps: Softandpliable_
  3382. like: "[01]"
  3383. - name: oral_cavity_palate
  3384. dtype: integer
  3385. maps: Palate_
  3386. like: "[012]"
  3387. - name: furrowed_tongue
  3388. dtype: integer
  3389. maps: Tongue_
  3390. like: "[012]"
  3391. - name: tongue_with_smooth_rough_spots
  3392. dtype: integer
  3393. maps: Tongue2_
  3394. like: "[01]"
  3395. - name: curved_fifth_finger
  3396. dtype: integer
  3397. maps: Curved_
  3398. like: "[01]"
  3399. - name: transverse_palmar_crease
  3400. dtype: integer
  3401. maps: Transverse
  3402. like: "[01]"
  3403. - name: third_toe
  3404. dtype: integer
  3405. maps: Third
  3406. like: "[012]"
  3407. - name: syndactylia
  3408. dtype: integer
  3409. maps: Syndactylia
  3410. like: "[01]"
  3411. - name: gap_between_first_second_toe
  3412. dtype: integer
  3413. maps: Gap
  3414. like: "[01]"
  3415. - name: waldrop_scale_comments
  3416. dtype: str
  3417. maps: etComments_
  3418. - name: respiratory_system
  3419. dtype: str
  3420. maps: ChRespiratory_
  3421. like: "WNL"
  3422. - name: cardiovascular_system
  3423. dtype: str
  3424. maps: ChCardiovascular_
  3425. like: "WNL"
  3426. - name: abdominal_system
  3427. dtype: str
  3428. maps: ChAbdomen_
  3429. like: "WNL"
  3430. - name: respiratory_system_comment
  3431. dtype: str
  3432. maps: etRespiratory_
  3433. - name: cardiovascular_system_comment
  3434. dtype: str
  3435. maps: etCardiovascular_
  3436. - name: abdominal_system_comment
  3437. dtype: str
  3438. maps: etPerAbdomen_
  3439. - name: hepatocellular_failure
  3440. dtype: str
  3441. maps: Hepatocellular
  3442. like: "(present|absent)"
  3443. case: lower
  3444. - name: cranial_nerves
  3445. dtype: str
  3446. maps: Cranial
  3447. like: "(normal|abnormal)"
  3448. case: lower
  3449. - name: cranial_nerves_comment
  3450. dtype: str
  3451. maps: etCranial_
  3452. - name: power_in_limbs
  3453. dtype: str
  3454. maps: Power
  3455. like: "(equal|unequal)"
  3456. case: lower
  3457. - name: tone_in_limbs
  3458. dtype: str
  3459. maps: Tone
  3460. like: "(normal|abnormal)"
  3461. case: lower
  3462. - name: tone_condition
  3463. dtype: str
  3464. maps: Abnormal
  3465. like: "(hypertonic|hypotonic)"
  3466. case: lower
  3467. - name: tone_condition_comment
  3468. dtype: str
  3469. maps: etAbnormal_
  3470. - name: deep_tendon_reflexes
  3471. dtype: str
  3472. maps: DeepTendon
  3473. like: "(normal|brisk|absent|others)"
  3474. case: lower
  3475. - name: deep_tendon_reflexes_comment
  3476. dtype: str
  3477. maps: etDeepTendon_
  3478. - name: peripheral_neuropathy
  3479. dtype: str
  3480. maps: Peripheral
  3481. like: "(present|absent)"
  3482. case: lower
  3483. - name: rombergs_sign
  3484. dtype: str
  3485. maps: Rombergs
  3486. like: "(positive|negative)"
  3487. case: lower
  3488. - name: cerebellar_coordination
  3489. dtype: str
  3490. maps: Celebellar
  3491. like: "(intact|lost)"
  3492. case: lower
  3493. - name: cerebellar_coordination_comment
  3494. dtype: str
  3495. maps: etCelebellar_
  3496. - name: gait
  3497. dtype: str
  3498. maps: Gait
  3499. like: "(normal|broad based|antalgic|others)"
  3500. case: lower
  3501. - name: gait_comment
  3502. dtype: str
  3503. maps: etGait_
  3504. - name: plantars
  3505. dtype: str
  3506. maps: Plantars
  3507. like: (normal|abnormal)
  3508. case: lower
  3509. - name: primitive_reflexes
  3510. dtype: str
  3511. maps: Primitive
  3512. like: "(absent|present)"
  3513. case: lower
  3514. - name: primitive_reflexes_comment
  3515. dtype: str
  3516. maps: etPrimitive_
  3517. - name: within_normal
  3518. dtype: boolean
  3519. maps: Remarks
  3520. - name: remarks
  3521. dtype: str
  3522. maps: etCoOrdination_
  3523. - name: update_timestamp
  3524. dtype: datetime
  3525. maps: date_of_last_update
  3526. ---
  3527. table: _post_traumatic_stress_disorder
  3528. maps: posttraumaticstressdisorder_table
  3529. refs:
  3530. - cols: [subject, session]
  3531. links: [_assessments.subject, _assessments.session]
  3532. cols:
  3533. - name: id
  3534. dtype: integer
  3535. maps: id
  3536. - name: subject
  3537. primary: yes
  3538. dtype: str(6)
  3539. maps: assessmentId
  3540. extract: "[0-9]{3}([0-9]{6})"
  3541. like: "D[0-9]{4}"
  3542. replace:
  3543. value: subjectID
  3544. to: D_number
  3545. file: ""
  3546. - name: session
  3547. primary: yes
  3548. dtype: str(3)
  3549. maps: assessmentId
  3550. extract: "([0-9]{3})[0-9]{6}"
  3551. like: "[0-9]{3}"
  3552. - name: experienced_traumatic_event
  3553. dtype: boolean
  3554. maps: ans1
  3555. - name: responded_to_event_with_fear
  3556. dtype: boolean
  3557. maps: ans2
  3558. - name: reexperienced_event
  3559. dtype: boolean
  3560. maps: ans3
  3561. - name: avoided_thinking_about_event
  3562. dtype: boolean
  3563. maps: ans4
  3564. - name: avoided_activities_that_remind
  3565. dtype: boolean
  3566. maps: ans5
  3567. - name: trouble_recalling
  3568. dtype: boolean
  3569. maps: ans6
  3570. - name: become_less_interested_in_hobbies
  3571. dtype: boolean
  3572. maps: ans7
  3573. - name: felt_detached
  3574. dtype: boolean
  3575. maps: ans8
  3576. - name: feelings_are_numbed
  3577. dtype: boolean
  3578. maps: ans9
  3579. - name: felt_life_shortened
  3580. dtype: boolean
  3581. maps: ans10
  3582. - name: difficulty_sleeping
  3583. dtype: boolean
  3584. maps: ans12
  3585. - name: irritable
  3586. dtype: boolean
  3587. maps: ans13
  3588. - name: difficulty_concentrating
  3589. dtype: boolean
  3590. maps: ans14
  3591. - name: nervous
  3592. dtype: boolean
  3593. maps: ans15
  3594. - name: easily_startled
  3595. dtype: boolean
  3596. maps: ans16
  3597. - name: problems_interfered_with_work
  3598. dtype: boolean
  3599. maps: ans18
  3600. - name: update_timestamp
  3601. dtype: datetime
  3602. maps: date_of_last_update
  3603. ---
  3604. table: _socialphobia
  3605. maps: socialphobia_table
  3606. refs:
  3607. - cols: [subject, session]
  3608. links: [_assessments.subject, _assessments.session]
  3609. cols:
  3610. - name: id
  3611. dtype: integer
  3612. maps: id
  3613. - name: subject
  3614. primary: yes
  3615. dtype: str(6)
  3616. maps: assessmentId
  3617. extract: "[0-9]{3}([0-9]{6})"
  3618. like: "D[0-9]{4}"
  3619. replace:
  3620. value: subjectID
  3621. to: D_number
  3622. file: ""
  3623. - name: session
  3624. primary: yes
  3625. dtype: str(3)
  3626. maps: assessmentId
  3627. extract: "([0-9]{3})[0-9]{6}"
  3628. like: "[0-9]{3}"
  3629. - name: fear_of_humiliation
  3630. dtype: boolean
  3631. maps: G1
  3632. - name: unreasonable_fear
  3633. dtype: boolean
  3634. maps: G2
  3635. - name: avoid_social_situations_due_to_fear
  3636. dtype: boolean
  3637. maps: G3
  3638. - name: disrupts_work
  3639. dtype: boolean
  3640. maps: G4
  3641. - name: current
  3642. dtype: boolean
  3643. maps: ans3
  3644. - name: type
  3645. dtype: str
  3646. maps: Generalized
  3647. like: "(generalized|non-generalized)"
  3648. case: lower
  3649. - name: update_timestamp
  3650. dtype: datetime
  3651. maps: date_of_last_update
  3652. ---
  3653. table: _suicidality
  3654. maps: suicidality_table
  3655. refs:
  3656. - cols: [subject, session]
  3657. links: [_assessments.subject, _assessments.session]
  3658. cols:
  3659. - name: id
  3660. dtype: integer
  3661. maps: id
  3662. - name: subject
  3663. primary: yes
  3664. dtype: str(6)
  3665. maps: assessmentId
  3666. extract: "[0-9]{3}([0-9]{6})"
  3667. like: "D[0-9]{4}"
  3668. replace:
  3669. value: subjectID
  3670. to: D_number
  3671. file: ""
  3672. - name: session
  3673. primary: yes
  3674. dtype: str(3)
  3675. maps: assessmentId
  3676. extract: "([0-9]{3})[0-9]{6}"
  3677. like: "[0-9]{3}"
  3678. - name: suffered_accident
  3679. dtype: boolean
  3680. maps: ans1
  3681. - name: planned_to_hurt_self_in_accident
  3682. dtype: boolean
  3683. maps: ans2
  3684. - name: intended_to_die_in_accident
  3685. dtype: boolean
  3686. maps: ans3
  3687. - name: wish_you_were_dead
  3688. dtype: boolean
  3689. maps: ans4
  3690. - name: want_to_harm_self
  3691. dtype: boolean
  3692. maps: ans5
  3693. - name: think_about_suicide
  3694. dtype: boolean
  3695. maps: ans6
  3696. - name: suicidal_thoughts_frequency
  3697. dtype: str
  3698. maps: ans14
  3699. like: "(occasionally|often|very often)"
  3700. case: lower
  3701. - name: suicidal_thoughts_intensity
  3702. dtype: str
  3703. maps: ans15
  3704. like: "(mild|moderate|severe)"
  3705. case: lower
  3706. - name: control_these_impulses
  3707. dtype: boolean
  3708. maps: ans7
  3709. - name: have_suicide_plan
  3710. dtype: boolean
  3711. maps: ans8
  3712. - name: prepared_for_attempt
  3713. dtype: boolean
  3714. maps: ans9
  3715. - name: deliberately_injured_without_planning_death
  3716. dtype: boolean
  3717. maps: ans10
  3718. - name: attempt_possible
  3719. dtype: boolean
  3720. maps: ans11
  3721. - name: expected_outcome
  3722. dtype: str
  3723. maps: AttemptSuicideT
  3724. like: "(survival|death)"
  3725. replace:
  3726. - value: "Hoped to be rescued / survive"
  3727. to: "survival"
  3728. - value: "Expected / intended to die"
  3729. to: "death"
  3730. - name: attempted_suicide_before
  3731. dtype: boolean
  3732. maps: ans12
  3733. - name: at_risk
  3734. dtype: boolean
  3735. maps: ans13
  3736. - name: score
  3737. dtype: integer
  3738. maps: sumtotal
  3739. between: [0,50]
  3740. - name: update_timestamp
  3741. dtype: datetime
  3742. maps: date_of_last_update
  3743. ---
  3744. table: _panic_disorder
  3745. maps: panicdisorder_table
  3746. refs:
  3747. - cols: [subject, session]
  3748. links: [_assessments.subject, _assessments.session]
  3749. cols:
  3750. - name: id
  3751. dtype: integer
  3752. maps: id
  3753. - name: subject
  3754. primary: yes
  3755. dtype: str(6)
  3756. maps: assessmentId
  3757. extract: "[0-9]{3}([0-9]{6})"
  3758. like: "D[0-9]{4}"
  3759. replace:
  3760. value: subjectID
  3761. to: D_number
  3762. file: ""
  3763. - name: session
  3764. primary: yes
  3765. dtype: str(3)
  3766. maps: assessmentId
  3767. extract: "([0-9]{3})[0-9]{6}"
  3768. like: "[0-9]{3}"
  3769. - name: had_spells_of_anxiousness
  3770. dtype: boolean
  3771. maps: ans1
  3772. - name: spells_peaked_within_ten_minutes
  3773. dtype: boolean
  3774. maps: ans2
  3775. - name: unpredictable
  3776. dtype: boolean
  3777. maps: ans3
  3778. - name: significant_change_due_to_attack
  3779. dtype: boolean
  3780. maps: ans4
  3781. - name: pounding_heart
  3782. dtype: boolean
  3783. maps: ans5
  3784. - name: sweating_hand
  3785. dtype: boolean
  3786. maps: ans6
  3787. - name: trembling
  3788. dtype: boolean
  3789. maps: ans7
  3790. - name: shortness_of_breath
  3791. dtype: boolean
  3792. maps: ans8
  3793. - name: choking_sensation
  3794. dtype: boolean
  3795. maps: ans9
  3796. - name: chest_pain
  3797. dtype: boolean
  3798. maps: ans10
  3799. - name: nausea
  3800. dtype: boolean
  3801. maps: ans11
  3802. - name: felt_faint
  3803. dtype: boolean
  3804. maps: ans12
  3805. - name: felt_strange
  3806. dtype: boolean
  3807. maps: ans13
  3808. - name: lost_control
  3809. dtype: boolean
  3810. maps: ans14
  3811. - name: feared_death
  3812. dtype: boolean
  3813. maps: ans15
  3814. - name: numbness
  3815. dtype: boolean
  3816. maps: ans16
  3817. - name: chills
  3818. dtype: boolean
  3819. maps: ans17
  3820. - name: current
  3821. dtype: boolean
  3822. maps: ans20
  3823. replace:
  3824. - value: "Yes (PANIC DISORDER CURRENT)"
  3825. to: "Yes"
  3826. - name: lifetime
  3827. dtype: boolean
  3828. maps: ans18
  3829. replace:
  3830. - value: "Yes (PANIC DISORDER LIFETIME)"
  3831. to: "Yes"
  3832. - name: lifetime_limited_symptoms
  3833. dtype: boolean
  3834. maps: ans19
  3835. replace:
  3836. - value: "Yes (LIMITED SYMPTOM ATTACKS LIFETIME)"
  3837. to: "Yes"
  3838. - name: update_timestamp
  3839. dtype: datetime
  3840. maps: date_of_last_update
  3841. ---
  3842. table: _obsessive_compulsive_disorder
  3843. maps: obsessive_compulsivedisorder_table
  3844. refs:
  3845. - cols: [subject, session]
  3846. links: [_assessments.subject, _assessments.session]
  3847. cols:
  3848. - name: id
  3849. dtype: integer
  3850. maps: id
  3851. - name: subject
  3852. primary: yes
  3853. dtype: str(6)
  3854. maps: assessmentId
  3855. extract: "[0-9]{3}([0-9]{6})"
  3856. like: "D[0-9]{4}"
  3857. replace:
  3858. value: subjectID
  3859. to: D_number
  3860. file: ""
  3861. - name: session
  3862. primary: yes
  3863. dtype: str(3)
  3864. maps: assessmentId
  3865. extract: "([0-9]{3})[0-9]{6}"
  3866. like: "[0-9]{3}"
  3867. - name: bothered_by_recurrent_thoughts
  3868. dtype: boolean
  3869. maps: ans1
  3870. - name: thoughts_keep_coming_back
  3871. dtype: boolean
  3872. maps: ans2
  3873. - name: obsessions_product_of_own_mind
  3874. dtype: boolean
  3875. maps: ans3
  3876. replace:
  3877. - value: "Yes(obsessions)"
  3878. to: "Yes"
  3879. - name: did_something_repeatedly
  3880. dtype: boolean
  3881. maps: ans4
  3882. replace:
  3883. - value: "Yes (compulsions)"
  3884. to: "Yes"
  3885. - name: thoughts_were_unreasonable
  3886. dtype: boolean
  3887. maps: ans6
  3888. - name: current
  3889. dtype: boolean
  3890. maps: ans7
  3891. - name: update_timestamp
  3892. dtype: datetime
  3893. maps: date_of_last_update
  3894. ---
  3895. table: _agoraphobia
  3896. maps: agoraphobia_table
  3897. refs:
  3898. - cols: [subject, session]
  3899. links: [_assessments.subject, _assessments.session]
  3900. cols:
  3901. - name: id
  3902. dtype: integer
  3903. maps: id
  3904. - name: subject
  3905. primary: yes
  3906. dtype: str(6)
  3907. maps: assessmentId
  3908. extract: "[0-9]{3}([0-9]{6})"
  3909. like: "D[0-9]{4}"
  3910. replace:
  3911. value: subjectID
  3912. to: D_number
  3913. file: ""
  3914. - name: session
  3915. primary: yes
  3916. dtype: str(3)
  3917. maps: assessmentId
  3918. extract: "([0-9]{3})[0-9]{6}"
  3919. like: "[0-9]{3}"
  3920. - name: fear_of_places_that_cause_attack
  3921. dtype: boolean
  3922. maps: ans1
  3923. - name: avoidance_due_to_fear
  3924. dtype: boolean
  3925. maps: ans2
  3926. - name: panic_disorder_without_agoraphobia
  3927. dtype: boolean
  3928. maps: ans3
  3929. - name: panic_disorder_with_agoraphobia
  3930. dtype: boolean
  3931. maps: ans4
  3932. - name: agoraphobia_without_panic_disorder_history
  3933. dtype: boolean
  3934. maps: ans5
  3935. - name: update_timestamp
  3936. dtype: datetime
  3937. maps: date_of_last_update
  3938. ---
  3939. table: _alchohol_dependence
  3940. maps: alcoholabuseanddependence_table
  3941. refs:
  3942. - cols: [subject, session]
  3943. links: [_assessments.subject, _assessments.session]
  3944. cols:
  3945. - name: id
  3946. dtype: integer
  3947. maps: id
  3948. - name: subject
  3949. primary: yes
  3950. dtype: str(6)
  3951. maps: assessmentId
  3952. extract: "[0-9]{3}([0-9]{6})"
  3953. like: "D[0-9]{4}"
  3954. replace:
  3955. value: subjectID
  3956. to: D_number
  3957. file: ""
  3958. - name: session
  3959. primary: yes
  3960. dtype: str(3)
  3961. maps: assessmentId
  3962. extract: "([0-9]{3})[0-9]{6}"
  3963. like: "[0-9]{3}"
  3964. - name: history_of_alcohol_dependence
  3965. dtype: boolean
  3966. maps: ans1
  3967. - name: need_more_drink_to_get_same_effect
  3968. dtype: boolean
  3969. maps: ans2
  3970. - name: cutting_down_led_to_shakes
  3971. dtype: boolean
  3972. maps: ans3
  3973. - name: drank_more_than_you_planned
  3974. dtype: boolean
  3975. maps: ans4
  3976. - name: failed_attempt_to_stop
  3977. dtype: boolean
  3978. maps: ans5
  3979. - name: spent_substantial_time_drinking
  3980. dtype: boolean
  3981. maps: ans6
  3982. - name: spent_less_time_working
  3983. dtype: boolean
  3984. maps: ans7
  3985. - name: drinking_despite_knowing_health_problems
  3986. dtype: boolean
  3987. maps: ans8
  3988. - name: current
  3989. dtype: boolean
  3990. maps: ans9
  3991. replace:
  3992. - value: "Yes*"
  3993. to: "Yes"
  3994. - name: update_timestamp
  3995. dtype: datetime
  3996. maps: date_of_last_update
  3997. ---
  3998. table: _alchohol_abuse
  3999. maps: alcoholabuseanddependence_table
  4000. refs:
  4001. - cols: [subject, session]
  4002. links: [_assessments.subject, _assessments.session]
  4003. cols:
  4004. - name: id
  4005. dtype: integer
  4006. maps: id
  4007. - name: subject
  4008. primary: yes
  4009. dtype: str(6)
  4010. maps: assessmentId
  4011. extract: "[0-9]{3}([0-9]{6})"
  4012. like: "D[0-9]{4}"
  4013. replace:
  4014. value: subjectID
  4015. to: D_number
  4016. file: ""
  4017. - name: session
  4018. primary: yes
  4019. dtype: str(3)
  4020. maps: assessmentId
  4021. extract: "([0-9]{3})[0-9]{6}"
  4022. like: "[0-9]{3}"
  4023. - name: intoxication_caused_problems
  4024. dtype: boolean
  4025. maps: ans10
  4026. - name: intoxicated_while_physically_at_risk
  4027. dtype: boolean
  4028. maps: ans11
  4029. - name: legal_problems_due_to_drinking
  4030. dtype: boolean
  4031. maps: ans12
  4032. - name: drinking_despite_problems_with_family
  4033. dtype: boolean
  4034. maps: ans13
  4035. - name: current
  4036. dtype: boolean
  4037. maps: ans14
  4038. - name: update_timestamp
  4039. dtype: datetime
  4040. maps: date_of_last_update
  4041. ---
  4042. table: _anorexia_nervosa
  4043. maps: anorexianervosa_table
  4044. refs:
  4045. - cols: [subject, session]
  4046. links: [_assessments.subject, _assessments.session]
  4047. cols:
  4048. - name: id
  4049. dtype: integer
  4050. maps: id
  4051. - name: subject
  4052. primary: yes
  4053. dtype: str(6)
  4054. maps: assessmentId
  4055. extract: "[0-9]{3}([0-9]{6})"
  4056. like: "D[0-9]{4}"
  4057. replace:
  4058. value: subjectID
  4059. to: D_number
  4060. file: ""
  4061. - name: session
  4062. primary: yes
  4063. dtype: str(3)
  4064. maps: assessmentId
  4065. extract: "([0-9]{3})[0-9]{6}"
  4066. like: "[0-9]{3}"
  4067. - name: height
  4068. dtype: float
  4069. maps: heightInCm
  4070. between: [10, 300]
  4071. - name: lowest_weight_in_past_quarter
  4072. dtype: float
  4073. maps: weightInKg
  4074. between: [10, 200]
  4075. - name: weight_below_threshold
  4076. dtype: boolean
  4077. maps: ans1
  4078. - name: tried_not_to_gain_weight
  4079. dtype: boolean
  4080. maps: ans2
  4081. - name: feared_getting_fat
  4082. dtype: boolean
  4083. maps: ans3
  4084. - name: consider_yourself_fat
  4085. dtype: boolean
  4086. maps: ans4
  4087. - name: body_shape_influenced_self_esteem
  4088. dtype: boolean
  4089. maps: ans5
  4090. - name: think_current_weight_is_excessive
  4091. dtype: boolean
  4092. maps: ans6
  4093. - name: current
  4094. dtype: boolean
  4095. maps: ans9
  4096. - name: update_timestamp
  4097. dtype: datetime
  4098. maps: date_of_last_update
  4099. ---
  4100. table: _anitisocial_personality_disorder
  4101. maps: antisocialpersonalitydisorder_table
  4102. refs:
  4103. - cols: [subject, session]
  4104. links: [_assessments.subject, _assessments.session]
  4105. cols:
  4106. - name: id
  4107. dtype: integer
  4108. maps: id
  4109. - name: subject
  4110. primary: yes
  4111. dtype: str(6)
  4112. maps: assessmentId
  4113. extract: "[0-9]{3}([0-9]{6})"
  4114. like: "D[0-9]{4}"
  4115. replace:
  4116. value: subjectID
  4117. to: D_number
  4118. file: ""
  4119. - name: session
  4120. primary: yes
  4121. dtype: str(3)
  4122. maps: assessmentId
  4123. extract: "([0-9]{3})[0-9]{6}"
  4124. like: "[0-9]{3}"
  4125. - name: ran_away_from_home_or_school_when_young
  4126. dtype: boolean
  4127. maps: ans1
  4128. - name: repeatedly_con_or_steal_when_young
  4129. dtype: boolean
  4130. maps: ans2
  4131. - name: start_fights_or_bully_when_young
  4132. dtype: boolean
  4133. maps: ans3
  4134. - name: deliberately_destroy_things_when_young
  4135. dtype: boolean
  4136. maps: ans4
  4137. - name: deliberately_hurt_animals_when_young
  4138. dtype: boolean
  4139. maps: ans5
  4140. - name: forced_sex_with_others_when_young
  4141. dtype: boolean
  4142. maps: ans6
  4143. - name: behaved_irresponsibly_when_adult
  4144. dtype: boolean
  4145. maps: ans8
  4146. - name: done_illegal_things_when_adult
  4147. dtype: boolean
  4148. maps: ans9
  4149. - name: repeated_physical_fights_when_adult
  4150. dtype: boolean
  4151. maps: ans10
  4152. - name: lied_often_when_adult
  4153. dtype: boolean
  4154. maps: ans11
  4155. - name: exposed_others_to_danger_when_adult
  4156. dtype: boolean
  4157. maps: ans12
  4158. - name: felt_no_guilt_when_adult
  4159. dtype: boolean
  4160. maps: ans13
  4161. - name: lifetime
  4162. dtype: boolean
  4163. maps: ans14
  4164. - name: update_timestamp
  4165. dtype: datetime
  4166. maps: date_of_last_update
  4167. ---
  4168. table: _bulimia_nervosa
  4169. maps: bulimianervosa_table
  4170. refs:
  4171. - cols: [subject, session]
  4172. links: [_assessments.subject, _assessments.session]
  4173. cols:
  4174. - name: id
  4175. dtype: integer
  4176. maps: id
  4177. - name: subject
  4178. primary: yes
  4179. dtype: str(6)
  4180. maps: assessmentId
  4181. extract: "[0-9]{3}([0-9]{6})"
  4182. like: "D[0-9]{4}"
  4183. replace:
  4184. value: subjectID
  4185. to: D_number
  4186. file: ""
  4187. - name: session
  4188. primary: yes
  4189. dtype: str(3)
  4190. maps: assessmentId
  4191. extract: "([0-9]{3})[0-9]{6}"
  4192. like: "[0-9]{3}"
  4193. - name: eating_binges
  4194. dtype: boolean
  4195. maps: ans1
  4196. - name: eating_binges_often
  4197. dtype: boolean
  4198. maps: ans2
  4199. - name: eating_out_of_control
  4200. dtype: boolean
  4201. maps: ans3
  4202. - name: steps_to_prevent_weight_gain
  4203. dtype: boolean
  4204. maps: ans4
  4205. - name: body_shape_influences_self_esteem
  4206. dtype: boolean
  4207. maps: ans5
  4208. - name: anorexia_symptoms
  4209. dtype: boolean
  4210. maps: ans6
  4211. - name: underweight_triggers_binges
  4212. dtype: boolean
  4213. maps: ans7
  4214. - name: threshold_weight
  4215. dtype: float
  4216. maps: usedDrug
  4217. between: [10, 150]
  4218. - name: bulimia
  4219. dtype: boolean
  4220. maps: ans8
  4221. - name: binge_eating_type
  4222. dtype: boolean
  4223. maps: ans9
  4224. - name: update_timestamp
  4225. dtype: datetime
  4226. maps: date_of_last_update
  4227. ---
  4228. table: _recent_life_events
  4229. maps: "cambridge_bereavement_table"
  4230. refs:
  4231. - cols: [subject, session]
  4232. links: [_assessments.subject, _assessments.session]
  4233. cols:
  4234. - name: id
  4235. dtype: integer
  4236. maps: id
  4237. - name: subject
  4238. primary: yes
  4239. dtype: str(6)
  4240. maps: assessmentId
  4241. extract: "[0-9]{3}([0-9]{6})"
  4242. like: "D[0-9]{4}"
  4243. replace:
  4244. value: subjectID
  4245. to: D_number
  4246. file: ""
  4247. - name: session
  4248. primary: yes
  4249. dtype: str(3)
  4250. maps: assessmentId
  4251. extract: "([0-9]{3})[0-9]{6}"
  4252. like: "[0-9]{3}"
  4253. - name: update_timestamp
  4254. dtype: datetime
  4255. maps: date_of_last_update
  4256. attach:
  4257. - name: timing
  4258. primary: yes
  4259. dtype: str
  4260. - name: event
  4261. primary: yes
  4262. dtype: str
  4263. - name: occurence
  4264. dtype: integer
  4265. - name: independence
  4266. dtype: integer
  4267. - name: impact
  4268. dtype: integer
  4269. detach:
  4270. - name: recent-death_of_close_friend-occurence
  4271. dtype: integer
  4272. maps: m_recent_1
  4273. - name: recent-death_of_close_family-occurence
  4274. dtype: integer
  4275. maps: m_recent_2
  4276. - name: recent-death_of_child-occurence
  4277. dtype: integer
  4278. maps: m_recent_3
  4279. - name: recent-death_of_spouse-occurence
  4280. dtype: integer
  4281. maps: m_recent_4
  4282. - name: recent-lost_item_of_personal_value-occurence
  4283. dtype: integer
  4284. maps: m_recent_5
  4285. - name: recent-death_of_close_friend-independence
  4286. dtype: integer
  4287. maps: i_recent_1
  4288. - name: recent-death_of_close_family-independence
  4289. dtype: integer
  4290. maps: i_recent_2
  4291. - name: recent-death_of_child-independence
  4292. dtype: integer
  4293. maps: i_recent_3
  4294. - name: recent-death_of_spouse-independence
  4295. dtype: integer
  4296. maps: i_recent_4
  4297. - name: recent-lost_item_of_personal_value-independence
  4298. dtype: integer
  4299. maps: i_recent_5
  4300. - name: recent-death_of_close_friend-impact
  4301. dtype: integer
  4302. maps: n_recent_1
  4303. - name: recent-death_of_close_family-impact
  4304. dtype: integer
  4305. maps: n_recent_2
  4306. - name: recent-death_of_child-impact
  4307. dtype: integer
  4308. maps: n_recent_3
  4309. - name: recent-death_of_spouse-impact
  4310. dtype: integer
  4311. maps: n_recent_4
  4312. - name: recent-lost_item_of_personal_value-impact
  4313. dtype: integer
  4314. maps: n_recent_5
  4315. - name: onset-death_of_close_friend-occurence
  4316. dtype: integer
  4317. maps: m_onset_1
  4318. - name: onset-death_of_close_family-occurence
  4319. dtype: integer
  4320. maps: m_onset_2
  4321. - name: onset-death_of_child-occurence
  4322. dtype: integer
  4323. maps: m_onset_3
  4324. - name: onset-death_of_spouse-occurence
  4325. dtype: integer
  4326. maps: m_onset_4
  4327. - name: onset-lost_item_of_personal_value-occurence
  4328. dtype: integer
  4329. maps: m_onset_5
  4330. - name: onset-death_of_close_friend-independence
  4331. dtype: integer
  4332. maps: i_onset_1
  4333. - name: onset-death_of_close_family-independence
  4334. dtype: integer
  4335. maps: i_onset_2
  4336. - name: onset-death_of_child-independence
  4337. dtype: integer
  4338. maps: i_onset_3
  4339. - name: onset-death_of_spouse-independence
  4340. dtype: integer
  4341. maps: i_onset_4
  4342. - name: onset-lost_item_of_personal_value-independence
  4343. dtype: integer
  4344. maps: i_onset_5
  4345. - name: onset-death_of_close_friend-impact
  4346. dtype: integer
  4347. maps: n_onset_1
  4348. - name: onset-death_of_close_family-impact
  4349. dtype: integer
  4350. maps: n_onset_2
  4351. - name: onset-death_of_child-impact
  4352. dtype: integer
  4353. maps: n_onset_3
  4354. - name: onset-death_of_spouse-impact
  4355. dtype: integer
  4356. maps: n_onset_4
  4357. - name: onset-lost_item_of_personal_value-impact
  4358. dtype: integer
  4359. maps: n_onset_5
  4360. reshape:
  4361. - add:
  4362. name: category
  4363. value: bereavement
  4364. - melt:
  4365. id_vars: [id, subject, session, category, update_timestamp]
  4366. - split:
  4367. name: variable
  4368. pat: "-"
  4369. rename: [timing, event, variable]
  4370. - pivot:
  4371. columns: variable
  4372. values: value
  4373. index: [subject, session, timing, event]
  4374. ---
  4375. table: _presenting_disorders
  4376. maps: hopi_master
  4377. refs:
  4378. - cols: [subject, session]
  4379. links: [_assessments.subject, _assessments.session]
  4380. cols:
  4381. - name: id
  4382. dtype: integer
  4383. maps: id
  4384. - name: subject
  4385. primary: yes
  4386. dtype: str(6)
  4387. maps: assessmentId
  4388. extract: "[0-9]{3}([0-9]{6})"
  4389. like: "D[0-9]{4}"
  4390. replace:
  4391. value: subjectID
  4392. to: D_number
  4393. file: ""
  4394. - name: session
  4395. primary: yes
  4396. dtype: str(3)
  4397. maps: assessmentId
  4398. extract: "([0-9]{3})[0-9]{6}"
  4399. like: "[0-9]{3}"
  4400. - name: addiction
  4401. dtype: boolean
  4402. maps: Addiction
  4403. - name: bipolar
  4404. dtype: boolean
  4405. maps: Bipolar
  4406. - name: dementia
  4407. dtype: boolean
  4408. maps: Dementia
  4409. - name: ocd
  4410. dtype: boolean
  4411. maps: ocd
  4412. - name: schizophrenia
  4413. dtype: boolean
  4414. maps: Schizophrenia
  4415. - name: update_timestamp
  4416. dtype: datetime
  4417. maps: date_of_last_update