From commits-return-5138-apmail-ctakes-commits-archive=ctakes.apache.org@ctakes.apache.org Wed Oct 31 11:04:16 2018 Return-Path: X-Original-To: apmail-ctakes-commits-archive@www.apache.org Delivered-To: apmail-ctakes-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E1CE18BE8 for ; Wed, 31 Oct 2018 11:04:16 +0000 (UTC) Received: (qmail 66357 invoked by uid 500); 31 Oct 2018 11:04:16 -0000 Delivered-To: apmail-ctakes-commits-archive@ctakes.apache.org Received: (qmail 66309 invoked by uid 500); 31 Oct 2018 11:04:16 -0000 Mailing-List: contact commits-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list commits@ctakes.apache.org Received: (qmail 65303 invoked by uid 99); 31 Oct 2018 11:04:15 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2018 11:04:15 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 601B03A1B0C for ; Wed, 31 Oct 2018 11:04:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1845321 [41/42] - in /ctakes/trunk/ctakes-web-rest: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/ctakes/ src/main/java/org/apache/ctakes/rest/ src/main/java/org/apache/ctakes/rest/f... Date: Wed, 31 Oct 2018 11:04:01 -0000 To: commits@ctakes.apache.org From: gandhirajan@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20181031110414.601B03A1B0C@svn01-us-west.apache.org> Added: ctakes/trunk/ctakes-web-rest/src/main/resources/org/mitre/medfacts/uima/section_regex.xml URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/org/mitre/medfacts/uima/section_regex.xml?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/org/mitre/medfacts/uima/section_regex.xml (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/org/mitre/medfacts/uima/section_regex.xml Wed Oct 31 11:03:43 2018 @@ -0,0 +1,924 @@ + + + + + + admit + (?:admit(?:ting)?|admission) + + + be + (\s+(?:am|is|are|was|were)) + + + left-time-mods + ((?:(?:pre-)?|current|discharge|follow[\s+\-]?up|home|interim|initial|postpartum|(?:pre|post)op(?:erative)?|transfer)\s+) + + + left-descr-mods + ((?:brief(?:\s+resume\s+of)?|overall|other|additional|pertinent|relevant|(?:list\s+of\s+)?other|plan\s+for|standardized|summary\s+of|doctor(?:\s+\')?s)\s+) + + + include + (\s+(?:include[ds]?)) + + + right-time-mods + (\s+(?:(?:(?:UP)?ON|AS|AT|\@|OF|FOR|(?:PRIOR\s+TO)|(?:DURING))\s+(?:(?:(?:THE|THAT|THIS)\s+)?(?:TIME|DAY)\s+OF\s+)?(?:ADMISSION|ADMIT|DEATH|DISCHARGE|TRANSFER|COMPLICATIONS?|HOME|HOSPITALIZATION|OUTPATIENT))) + + + right-descr-mods + (\s+(?:(?:by\s+(?:problems?|(?:organ\s+)?systems?|issues?|report))|(?:\s+of\s+note))) + + + right-location-mods + (\s+in\s+the\s+emergency\s+department) + + + + + allergies1 + (?:allergies|allergy|adverse\s+drug\s+reactions?) + + + allergies2 + (allergy(\s*\/\s*reaction)?\s+profile) + + + famhistory + (?:family\s+(?:(?:medical|social)\s+)?history|fhx?|fam\s+hx) + + + sochistory + (social\s+history|social\s+hx|\bshx?|soc\s*hx|habits) + + + + medication1 + (medications?|medication\s*\(\s*s\s*\)|regimen|treatment\s+cycle) + + + medication2 + (meds?) + + + + physicalexam1 + ((physical|surgical)(\s+exam(ination)?|\s+findings)?|\bpe|\*pe|on\s+exam(ination)?|examination\s+data) + + + physicalexam2 + ((daily|patient)\s+status) + + + + subsection-left + (\d+\.\s+|\*(\*)?|-(-)?|\#(\#)?) + + + system + (\s+sys(\.|tem)?) + + + conj + (\s*,\s*|\s*\&\s*|\s*\/\s*|(\s*,)?\s+and\s+) + + + sub + (\s*\/\s*|\s*--?\s*|\s+) + + + cardio + (cvs?|cards?|cardiac|heart|cardio(vascular(ly)?)?) + + + rhythm + ((rate\s*(\&|\sand\s))?\s*rhythm\s*((\&|\sand\s)\s*rate)?) + + + pulmonary + (pulmo?|pulmonary|lungs|chest|respiratory|resps?) + + + heme + (heme|hematolog(y|ic(ally)?)) + + + lymph + (lymph(atic(s|ally)?)?) + + + + + + + + + + + +
+ ((addendum)\s*\:) + +
+ +
+ (?:(?:(?:admission\s+date)|(date\s+of\s+admission))\s*\:) + +
+ +
+ age\s*\: + +
+ +
+ (?:(?:|)\s*\:) + +
+ +
+ ((()|())?(appointments?(?:\(?:\s+s\s+\))?)\s*(?:\(\s+s\s+\))?\s*\:) + +
+ +
+ ((|)?(assessment)()?\s*\:) + +
+ +
+ ((()|)?((?:assessment\s*(?:and|\&|\/)\s*plan)|(?:a\s*(?:\&|\/)\s*p))()?\s*\:) + +
+ +
+ (?:attend(?:ing)?(?:\s+physician)?\s*\:) + +
+
+ ([A-Z]{2,2}\d{3,3}\/\d{4,4}\s+[A-Z]+\s+([A-Z]\.\s+)?[A-Z]+\s+\,(?:\s+(?:jr|iii)\s*\,\s*)?\s+M\.D\.)\s*\: + +
+ +
+ (?:(?:chief\s+complaint)|(?:patient\s+states\s+complaint)\s*\:) + +
+ +
+ ((clinical\s+findings?)\s*\:) + +
+ +
+ (?:((code(?:\s+status)?)\s*\:)) + +
+ +
+ (((?:additional\s+)comments)\s*\:) + +
+ +
+ (?:((complications?)\s*\:)) + +
+ +
+ (()?(condition)()?\s*\:) + +
+ +
+ ((consultants?)\s*\:) + +
+ +
+ ((consults)\s*\:) + +
+ +
+ date\s+of\s+birth\s*\: + +
+ +
+ date\s+of\s+expiration\s*\: + +
+ +
+ (((?:principal\s+discharge\s+diagnosis\s*;\s*responsible\s+after\s+study\s+for\s+causing\s+admission\s*\)\s?))\s?) + +
+
+ ((?:other\s+diagnosis\s*;\s*conditions\s*\,\s*infections\s*,\s*complications\s*,\s*affecting\s+treatment\s*\/?\s*stay)\s?) + +
+
+ (((?:cause\s+of\s+death\s+and\s+)?((?:final|principal|principle|primary|associated|secondary|additional|other)\s+)?(((?:pre-)?admission|admit(?:ting)?|discharge|(?:pre)?operative)\s+)?(?:problems\s+and\s+)?diagnos[ei]s(?:\s*\(\s*es\s*\))?)()?\s*\:) + +
+ +
+ ((?:(?:(?:entered|dictated)\s+by\b)|dictator)\s*\:) + +
+
+ ((?:(?:[A-Z]+\.?)\s+)*[A-Z]+\s*\,\s+M\.D\.\s+DICTATING\s+FOR\s*\:) + +
+
+ (This\s+report\s+was\s+created\s+by\s+[A-Z]) + +
+ +
+ (()?(diet)\s*\:) + +
+ +
+ (((?:discharge\s+)?activity)\s*\:) + +
+
+ (^((?:discharge\s+)?activity)\s*)(\n) + +
+ +
+ ((discharge\s+date)|(date\s+of\s+discharge))\s*\: + +
+ +
+ ((discharge\s+patient\s+on)\s*\:) + +
+ +
+ (((?:doctor\'?s\s+)?discharge\s+orders)\s*\:) + +
+ +
+ (ed\s+discharge\s+notification\s*\/\s*summary)(\s+) + +
+ +
+ (()?(disposition)()?\s*\:) + +
+ +
+ (()?((?:ed\s+course)|(?:emergency\s+department\s+course)|(?:in\s+(?:the\s+)?ed|\bed))?(\s*\:|\*+)) + +
+ +
+ evaluation\s+date\s*\: + +
+ +
+ ((events)\s*\:) + +
+ +
+ (?:(?:)\s*\:) + +
+
+ (?:(?:FAMILY\s+HISTORY\s+[a-z]+)) + +
+ +
+ ((discharged?\s+wound\s+care)\s*\:) + +
+
+ (((?:discharged?\s+follow[\s\-]?up(?:\s+care)?)|((?:standardized\s+)?discharge\s+orders\s+\(\s+medications\s+instructions\s+to\s+patient\s+\,\s+follow-up\s+care\s+\))|(disposition\s*\,\s+follow[\s+\-]up\s+and\s+instructions\s+to\s+patient)|(?:follow[\s\-]?up))\s*\:) + +
+
+ ((((?:discharged?\s+follow[\s\-]?up(?:\s+care)?))|((?:standardized\s+)?discharge\s+orders\s+\(\s+medications\s+instructions\s+to\s+patient\s+\,\s+follow-up\s+care\s+\))|(disposition\s*\,\s+follow[\s+\-]up\s+and\s+instructions\s+to\s+patient)|(?:follow[\s\-]?up))\s*)(\n) + +
+ +
+ sex\s*\: + +
+ +
+ ^(health\s+status)\s*(\n) + +
+ +
+ (()?(?:history\s+(?:of\s+(?:the\s+)?)?(?:present|physical)\s+illness|hpi)\s+and\s+(?:(?:history\s+and\s+)?reasons?\s+(?:for\s+)?(?:hospitalization|admission|admit))\s*\:) + +
+
+ ((?:(?:history\s+and\s+)?reasons?\s+(?:for\s+)?(?:hospitalization|admission|admit))\s*\:) + +
+
+ (()?(((history\s+(of\s+(the\s+)?)?)?(present|physical)\s+illness)|hpi)\s*\:) + +
+
+ (((?:history\s+(?:of\s+(?:the\s+)?)?(?:present|physical)\s+illness)|hpi)\s*)\n + +
+
+ (^()?((?:clinical\s+)?history)\s*\:) + +
+ +
+ (()?(?:hosp(?:ital)?\s+course(?:\s+and\s+treatment)?)|(?:summary\s+of\s+hospitalization)?(\s*\:|\*+|\-+)) + +
+
+ (()?(?:hosp(?:ital)?\s+course(?:\s+and\s+treatment)?)|(?:summary\s+of\s+hospitalization)?)(\s*\n) + +
+
+ (\*+(hosp(?:ital)?\s+course(?:\s+and\s+treatment)?)|(?:summary\s+of\s+hospitalization)) + +
+
+ ((hosp(?:ital)?\s+course(\s+and\s+treatment)?)|(summary\s+of\s+hospitalization)\s+([a-z]+|\()) + +
+ +
+ ((impressions?|imp)()?\s*\:) + +
+ +
+ ((?:impression\s+and\s+plan)\s*\:) + +
+ +
+ ((?:impression\s+and\s+plan)\s*)(\n) + +
+ +
+ ((()|())+(instructions?)()?\s*\:) + +
+
+ (^(instructions?)()?\s*)(\n) + +
+ +
+ ((?:()|())?((?:summary\s+of\s+)?(?:(?:diagnostic\s+)?(?:laboratory|labs?|laboratories|diagnostic|radiologic)(?:(?:\s+and\s+)|(?:\/))?\s*(?:radiologic\s+)?(?:studies|data|results|exams?(?:inations?)?|evaluation|values|findings|tests?|x\-rays?)?)|(?:tests\/procedures|(?:studies\/(?:procedures|tests))|(?:proc(?:edures)?\/tests)|tests))()?\s*\:) + +
+
+ (((?:new|discrete|(?:today\s+\'s))\s+results(?:\s+only)?)\s*\:) + +
+
+ (((?:new|discrete|(?:today\s+\'s))\s+results(?:\s+only)?)\s*)\n + +
+
+ (()\s*data()?\s*\:) + +
+
+ ((?:\-+|\*+|\_+)\s*)(data()?\s*\:) + +
+ +
+ ()?()()?(|)?\s*\: + +
+
+ ^()?()()?(|)?\s*\n + +
+
+ ()()()?(|?\s*\:) + +
+
+ ^()()?(|?\s*\:) + +
+
+ (()?()\s+on\s+transfer\s+from(\s+[A-Z]+)+(|)?\s*\:) + +
+
+ (MEDICATIONS()?)(\s+[a-z]+) + +
+ +
+ (((?:(?:past\s+)?ob\-gyn\s+history))\s*\:) + +
+
+ (((?:past\s+obstetric\s+history))\s*\:) + +
+
+ ^(((?:past\s+gyn(?:ocologic(?:al)?)?\s+history))\s*\:) + +
+ +
+ (?:objective\s*\:?\n) + +
+
+ (?:^o\s*\:\n) + +
+ +
+ (((?:((?:principal|principle|primary|special)\s+)?(?:operations?\s+(?:and|or)\s+)?procedures?(\s+(?:and|or)\s+operations?)?(?:\s+performed)?)|(operations\s*\/\s*procedures)|(?:operations?))\s*\:) + +
+
+ ((((?:associated|secondary|additional|other)\s+)(?:operations?\s+(?:and|or)\s+)?procedures?(\s+(?:and|or)\s+operations?)?)\s*\:) + +
+
+ ((procedure\s+note)\s*\:) + +
+
+ ((postpartum\s+diagnostic\s+procedures)\s*\:) + +
+
+ ((postpartum\s+therapeutic\s+procedures)\s*\:) + +
+
+ ((other\s+postpartum\s+therapies)\s*\:) + +
+ +
+ ((past\s+cardiac\s+history)\s*\:) + +
+ +
+ (past\s+(medical\s+)?history|medical\s+history|pmhx?|pmedhx)\s*\: + +
+
+ ((past\s+(?:medical\s+)?history|medical\s+history|pmhx?|pmedhx)\/()\s*\:) + +
+ +
+ (past\s+surgical\s+history|pshx?)\s*\: + +
+ +
+ (\*+\s+(FINAL\s+)?DISCHARGE\s+ORDERS\s+\*+) + +
+ +
+ (()?()?(|)()??(?:\s*\:|\-[^a-z])) + +
+
+ (()?()?(|)()?()?)((\s+vss?)(?:\s*\:|\-[^a-z])) + +
+
+ ((?:\-+|\*+|\_+|())\s*(?:exam(?:ination)?(?:\s+data)?()\s*\:)) + +
+
+ ^(()(?:exam(?:ination)?)(?:\s*\:)) + +
+
+ ^(()?()?(|))(\n) + +
+ +
+ (?:^(()?(\bplans?)(\s*\:[^\d]|\s*\*))) + +
+
+ (?:^(()?(\bplans?))(\s*\n)) + +
+ +
+ (((?:disposition\s*(?:and|\&|\/)\s*plan)|(?:disposition\s*(?:\&|\/)plan))()?\s*\:) + +
+ +
+ (((?:to\s+do\s*\/\s*plans?))\s*\:) + +
+ +
+ (($pch)\s*\:)(\s+) + +
+ +
+ ((preoperative\s+(?:cardiac\s+)?status)\s*\:) + +
+ +
+ ((previous\s+cardiovascular\s+interventions?)\s*\:) + +
+ +
+ (?:pcp\s+name\s*\:) + +
+ +
+ (((?:(?:patient\s+)?problem\s+list)|(?:significant\s+problems)|(?:(?:(?:his|her)\s+)?problems\s+and\s+management\s+are\s+as\s+follows) )?\s*[\:;\*+]) + +
+ +
+ (?:(?:radiology(?:\s+(?:studies|data|results))?)\s*\:) + +
+ +
+ (?:reason\s+(?:for\s+)?consultation\s*\:) + +
+ +
+ ((report\s+status)\s*\:) + +
+ +
+ (?:(review\s+(?:of\s+)?systems|ros)\s*\:) + +
+
+ (?:(REVIEW\s+OF\s+SYSTEMS)(\s+[a-z]+)) + +
+ +
+ (?:service\s*\:) + +
+ +
+ (?:^()\s*\:) + +
+
+ (?:((SOCIAL\s+HISTORY|HABITS))(\s+[a-z]+)) + +
+ +
+ (?:subjective\s*\:?\n) + +
+
+ (?:^s\s*\:\n) + +
+ +
+ (((?:escription\s+document)|batch)\s*\:) + +
+ +
+ (((?:treatment\s+rendered))\s*\:?) + +
+
+ ((((?:other\s+treatments?\s*\/\s*procedures\s+\(\s+not\s+in\s+o\.r\.\s+\)))|(other\s+treatments?\s+and\s+procedures))\s*\:?) + +
+ +
+ (?:unit\s+number\s*\:) + +
+ +
+ ((return\s+to\s+work)\s*\:) + +
+
+ + + (()?General(ly)?\s*\:) + physical examination,review of systems + + + + (()?Head\s*\:) + physical examination,review of systems + + + + (()?Eyes\s*\:) + physical examination,review of systems + + + + (()?Ears\s*\:) + physical examination,review of systems + + + + (()?Nose(Sinuses)?\s*\:) + physical examination,review of systems + + + + (()?Throat\s*\:) + physical examination,review of systems + + + + (()?\b(HE)?ENT\s*\:) + physical examination,review of systems + + + + (()?Neck\s*\:) + physical examination,review of systems + + + + (()?ThroatMouthNeck\s*\:) + physical examination,review of systems + + + + (()?Neuro(logical(ly|)?)?\s*\:) + physical examination,review of systems + + + + (()?Nervous()?\s*\:) + physical examination,review of systems + + + + (()Psych(iatric)?\s*\:) + physical examination,review of systems + + + + (()?Abd(\.|omen)?\s*\:) + physical examination,review of systems + + + + (()?Breasts\s*\:) + physical examination,review of systems + + + + + (()?()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?CV\-R\s*\:) + physical examination,review of systems,hospital course + + + + (()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?()?pump\s*\:) + physical examination,review of systems,hospital course + + + + (()?()?COR\s*\:) + physical examination,review of systems,hospital course + + + + (()?CV\-P\s*\:) + physical examination,review of systems,hospital course + + + + (()?Coronary\s*\:) + physical examination,review of systems + + + + (()?()?ischemia\s*\:) + physical examination,review of systems,hospital course + + + + (()?CV\-I\s*\:) + physical examination,review of systems,hospital course + + + + (()?(GI|Gastro(intestinal)?)()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?(GU|(genito)?urinary)()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?Genital(s|())?\s*\:) + physical examination,review of systems,hospital course + + + + (()?\bRenal()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?(\bVasc(ular(ly|)?)?)\s*\:) + physical examination,review of systems,hospital course + + + + (()?(Musculo)?skeletal()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?(ID|Infectious\s+Disease)\s*\:) + physical examination,review of systems,hospital course + + + + (()?Endo(crine?|crinology)?\s*\:) + physical examination,review of systems,hospital course + + + + + (()?Hyperthyroid\s*\:) + physical examination,review of systems,hospital course + + + + (()?Hypothyroid\s*\:) + physical examination,review of systems,hospital course + + + + (()?Diabetes\s*\:) + physical examination,review of systems,hospital course + + + + (()?Adrenal\s*\:) + physical examination,review of systems,hospital course + + + + + (()?(Ext(\.|remities)?)\s*\:) + physical examination,review of systems,hospital course + + + + + (()??\s*\:) + physical examination,review of systems,hospital course + + + + (()?(|)()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?(s?)?\s*\:) + physical examination,review of systems,hospital course + + + + (()?(All(ergic)?|Immun(olog(y|ic(ally)?))?)()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?All(ergic)?Immun(olog(y|ic(ally)?))?(s?)?\s*\:) + physical examination,review of systems,hospital course + + + + (()?Constitutional(ly)?()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?Integumentar(il)?y()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?Derma(tolog(ic(ally)?|y))?()?\s*\:) + physical examination,review of systems,hospital course + + + + (()?tubeslinesdrains\s*\:) + physical examination,review of systems,hospital course + + + + (()?(tubes)?(dialysis\s+)?access\s*\:) + physical examination,review of systems,hospital course + + + + (()?(fluidselectrolytes)?(mal)?nutrition\s*\:) + physical examination,review of systems,hospital course + + + (()?FEN\s*\:) + physical examination,review of systems,hospital course + + + + + + (()?CC\s*\:) + hospital course + + + + (()?Disp(o(sition)?)?\s*\:) + hospital course + + + + (()?Proph(y(laxis)?)?\s*\:) + hospital course + + + + + + + +
+ Added: ctakes/trunk/ctakes-web-rest/src/main/resources/org/mitre/medfacts/uima/section_regex.xml.bak2 URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/org/mitre/medfacts/uima/section_regex.xml.bak2?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/org/mitre/medfacts/uima/section_regex.xml.bak2 (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/org/mitre/medfacts/uima/section_regex.xml.bak2 Wed Oct 31 11:03:43 2018 @@ -0,0 +1,646 @@ + + + + + + admit + (?:admit(?:ting)?|admission) + + + be + (\s+(?:am|is|are|was|were)) + + + left-time-mods + ((?:(?:pre-)?|current|discharge|follow[\s+\-]?up|home|interim|initial|postpartum|(?:pre|post)op(?:erative)?|transfer)\s+) + + + left-descr-mods + ((?:brief(?:\s+resume\s+of)?|overall|other|additional|pertinent|relevant|(?:list\s+of\s+)?other|plan\s+for|standardized|summary\s+of|doctor(?:\s+\')?s)\s+) + + + include + (\s+(?:include[ds]?)) + + + right-time-mods + (\s+(?:(?:(?:UP)?ON|AS|AT|\@|OF|FOR|(?:PRIOR\s+TO)|(?:DURING))\s+(?:(?:(?:THE|THAT|THIS)\s+)?(?:TIME|DAY)\s+OF\s+)?(?:ADMISSION|ADMIT|DEATH|DISCHARGE|TRANSFER|COMPLICATIONS?|HOME|HOSPITALIZATION|OUTPATIENT))) + + + right-descr-mods + (\s+(?:(?:by\s+(?:problems?|(?:organ\s+)?systems?|issues?|report))|(?:\s+of\s+note))) + + + right-location-mods + (\s+in\s+the\s+emergency\s+department) + + + + + allergies1 + (?:allergies|allergy|adverse\s+drug\s+reactions?) + + + allergies2 + (allergy(\s*\/\s*reaction)?\s+profile) + + + famhistory + (?:family\s+(?:(?:medical|social)\s+)?history|fhx?|fam\s+hx) + + + sochistory + (social\s+history|social\s+hx|\bshx?|soc\s*hx|habits) + + + + medication1 + (medications?|medication\s*\(\s*s\s*\)|regimen|treatment\s+cycle) + + + medication2 + (meds?) + + + + physicalexam1 + ((physical|surgical)(\s+exam(ination)?|\s+findings)?|\bpe|\*pe|on\s+exam(ination)?|examination\s+data) + + + physicalexam2 + ((daily|patient)\s+status) + + + + + + + + time + (\d?\d\:\d\d[aApP][mM]) + + + mayodate + (([0123])?\d(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)(\d\d)?\d\d\s+) + + + mayodate2 + ([01]?\d/\d?\d/(\d\d)?\d\d\s+) + + + + + + +
+ ((addendum)\s*\:) + +
+ +
+ (?:(?:(?:admission\s+date)|(date\s+of\s+admission))\s*\:) + +
+ +
+ age\s*\: + +
+ +
+ (?:(?:|)\s*\:) + +
+ +
+ ((()|())?(appointments?(?:\(?:\s+s\s+\))?)\s*(?:\(\s+s\s+\))?\s*\:) + +
+ +
+ ((|)?(assessment)()?\s*\:) + +
+ +
+ ((()|)?((?:assessment\s*(?:and|\&|\/)\s*plan)|(?:a\s*(?:\&|\/)\s*p))()?\s*\:) + +
+ +
+ (?:attend(?:ing)?(?:\s+physician)?\s*\:) + +
+
+ ([A-Z]{2,2}\d{3,3}\/\d{4,4}\s+[A-Z]+\s+([A-Z]\.\s+)?[A-Z]+\s+\,(?:\s+(?:jr|iii)\s*\,\s*)?\s+M\.D\.)\s*\: + +
+ +
+ (?:(?:chief\s+complaint)|(?:patient\s+states\s+complaint)\s*\:) + +
+ +
+ ((clinical\s+findings?)\s*\:) + +
+ +
+ (?:((code(?:\s+status)?)\s*\:)) + +
+ +
+ (((?:additional\s+)comments)\s*\:) + +
+ +
+ (?:((complications?)\s*\:)) + +
+ +
+ (()?(condition)()?\s*\:) + +
+ +
+ ((consultants?)\s*\:) + +
+ +
+ ((consults)\s*\:) + +
+ +
+ date\s+of\s+birth\s*\: + +
+ +
+ date\s+of\s+expiration\s*\: + +
+ +
+ (((?:principal\s+discharge\s+diagnosis\s*;\s*responsible\s+after\s+study\s+for\s+causing\s+admission\s*\)\s?))\s?) + +
+
+ ((?:other\s+diagnosis\s*;\s*conditions\s*\,\s*infections\s*,\s*complications\s*,\s*affecting\s+treatment\s*\/?\s*stay)\s?) + +
+
+ (((?:cause\s+of\s+death\s+and\s+)?((?:final|principal|principle|primary|associated|secondary|additional|other)\s+)?(((?:pre-)?admission|admit(?:ting)?|discharge|(?:pre|post)?operative)\s+)?(?:problems\s+and\s+)?diagnos[ei]s(?:\s*\(\s*es\s*\))?)()?\s*\:) + +
+ +
+ ((?:(?:(?:entered|dictated)\s+by\b)|dictator)\s*\:) + +
+
+ ((?:(?:[A-Z]+\.?)\s+)*[A-Z]+\s*\,\s+M\.D\.\s+DICTATING\s+FOR\s*\:) + +
+
+ (This\s+report\s+was\s+created\s+by\s+[A-Z]) + +
+ +
+ (()?(diet)\s*\:) + +
+ +
+ (((?:discharge\s+)?activity)\s*\:) + +
+
+ (^((?:discharge\s+)?activity)\s*)(\n) + +
+ +
+ ((discharge\s+date)|(date\s+of\s+discharge))\s*\: + +
+ +
+ ((discharge\s+patient\s+on)\s*\:) + +
+ +
+ (((?:doctor\'?s\s+)?discharge\s+orders)\s*\:) + +
+ +
+ (ed\s+discharge\s+notification\s*\/\s*summary)(\s+) + +
+ +
+ (()?(disposition)()?\s*\:) + +
+ +
+ (()?((?:ed\s+course)|(?:emergency\s+department\s+course)|(?:in\s+(?:the\s+)?ed|\bed))?(\s*\:|\*+)) + +
+ +
+ evaluation\s+date\s*\: + +
+ +
+ ((events)\s*\:) + +
+ +
+ (?:(?:)\s*\:) + +
+
+ (?:(?:FAMILY\s+HISTORY\s+[a-z]+)) + +
+ +
+ ((discharged?\s+wound\s+care)\s*\:) + +
+
+ (((?:discharged?\s+follow[\s\-]?up(?:\s+care)?)|((?:standardized\s+)?discharge\s+orders\s+\(\s+medications\s+instructions\s+to\s+patient\s+\,\s+follow-up\s+care\s+\))|(disposition\s*\,\s+follow[\s+\-]up\s+and\s+instructions\s+to\s+patient)|(?:follow[\s\-]?up))\s*\:) + +
+
+ ((((?:discharged?\s+follow[\s\-]?up(?:\s+care)?))|((?:standardized\s+)?discharge\s+orders\s+\(\s+medications\s+instructions\s+to\s+patient\s+\,\s+follow-up\s+care\s+\))|(disposition\s*\,\s+follow[\s+\-]up\s+and\s+instructions\s+to\s+patient)|(?:follow[\s\-]?up))\s*)(\n) + +
+ +
+ sex\s*\: + +
+ +
+ ^(health\s+status)\s*(\n) + +
+ +
+ (()?(?:history\s+(?:of\s+(?:the\s+)?)?(?:present|physical)\s+illness|hpi)\s+and\s+(?:(?:history\s+and\s+)?reasons?\s+(?:for\s+)?(?:hospitalization|admission|admit))\s*\:) + +
+
+ (?:(?:reason|indications)\s+for\s+(?:operation|procedure|hospitalization)\s*\:) + +
+
+ ((?:(?:history\s+and\s+)?reasons?\s+(?:for\s+)?(?:hospitalization|admission|admit))\s*\:) + +
+
+ (()?(((history\s+(of\s+(the\s+)?)?)?(present|physical)\s+illness)|hpi)\s*\:) + +
+
+ (((?:history\s+(?:of\s+(?:the\s+)?)?(?:present|physical)\s+illness)|hpi)\s*)\n + +
+
+ (^()?((?:clinical\s+)?history)\s*\:) + +
+ +
+ (()?(?:hosp(?:ital)?\s+course(?:\s+and\s+treatment)?)|(?:summary\s+of\s+hospitalization)?(\s*\:|\*+|\-+)) + +
+
+ (()?(?:hosp(?:ital)?\s+course(?:\s+and\s+treatment)?)|(?:summary\s+of\s+hospitalization)?)(\s*\n) + +
+
+ (\*+(hosp(?:ital)?\s+course(?:\s+and\s+treatment)?)|(?:summary\s+of\s+hospitalization)) + +
+
+ ((hosp(?:ital)?\s+course(\s+and\s+treatment)?)|(summary\s+of\s+hospitalization)\s+([a-z]+|\()) + +
+ +
+ ((impressions?|imp)()?\s*\:) + +
+ +
+ ((?:impression\s+and\s+plan)\s*\:) + +
+ +
+ ((?:impression\s+and\s+plan)\s*)(\n) + +
+ +
+ ((()|())+(instructions?)()?\s*\:) + +
+
+ (^(instructions?)()?\s*)(\n) + +
+ +
+ ((?:()|())?((?:summary\s+of\s+)?(?:(?:diagnostic\s+)?(?:laboratory|labs?|laboratories|diagnostic|radiologic)(?:(?:\s+and\s+)|(?:\/))?\s*(?:radiologic\s+)?(?:studies|data|results|exams?(?:inations?)?|evaluation|values|findings|tests?|x\-rays?)?)|(?:tests\/procedures|(?:studies\/(?:procedures|tests))|(?:proc(?:edures)?\/tests)|tests))()?\s*\:) + +
+
+ (((?:new|discrete|(?:today\s+\'s))\s+results(?:\s+only)?)\s*\:) + +
+
+ (((?:new|discrete|(?:today\s+\'s))\s+results(?:\s+only)?)\s*)\n + +
+
+ (()\s*data()?\s*\:) + +
+
+ ((?:\-+|\*+|\_+)\s*)(data()?\s*\:) + +
+ +
+ ()?()()?(|)?\s*\: + +
+
+ ^()?()()?(|)?\s*\n + +
+
+ ()()()?(|?\s*\:) + +
+
+ ^()()?(|?\s*\:) + +
+
+ (()?()\s+on\s+transfer\s+from(\s+[A-Z]+)+(|)?\s*\:) + +
+
+ (MEDICATIONS()?)(\s+[a-z]+) + +
+ +
+ (((?:(?:past\s+)?ob\-gyn\s+history))\s*\:) + +
+
+ (((?:past\s+obstetric\s+history))\s*\:) + +
+
+ ^(((?:past\s+gyn(?:ocologic(?:al)?)?\s+history))\s*\:) + +
+ +
+ (?:objective\s*\:?\n) + +
+
+ (?:^o\s*\:\n) + +
+ +
+ (((?:((?:principal|principle|primary|special)\s+)?(?:operations?\s+(?:and|or)\s+)?procedures?(\s+(?:and|or)\s+operations?)?(?:\s+performed)?)|(operations\s*\/\s*procedures)|(?:operations?))\s*\:) + +
+
+ ((((?:associated|secondary|additional|other)\s+)(?:operations?\s+(?:and|or)\s+)?procedures?(\s+(?:and|or)\s+operations?)?)\s*\:) + +
+
+ ((procedure\s+note)\s*\:) + +
+
+ ((procedure\s+in\s+detail)\s*\:) + +
+
+ ((postpartum\s+diagnostic\s+procedures)\s*\:) + +
+
+ ((postpartum\s+therapeutic\s+procedures)\s*\:) + +
+
+ ((other\s+postpartum\s+therapies)\s*\:) + +
+ +
+ ((past\s+cardiac\s+history)\s*\:) + +
+ +
+ (past\s+(medical\s+)?history|medical\s+history|pmhx?|pmedhx)\s*\: + +
+
+ ((past\s+(?:medical\s+)?history|medical\s+history|pmhx?|pmedhx)\/()\s*\:) + +
+ +
+ (past\s+surgical\s+history)\s*\: + +
+ +
+ (\*+\s+(FINAL\s+)?DISCHARGE\s+ORDERS\s+\*+) + +
+ +
+ (()?()?(|)()??(?:\s*\:|\-[^a-z])) + +
+
+ (()?()?(|)()?()?)((\s+vss?)(?:\s*\:|\-[^a-z])) + +
+
+ ((?:\-+|\*+|\_+|())\s*(?:exam(?:ination)?(?:\s+data)?()\s*\:)) + +
+
+ ^(()(?:exam(?:ination)?)(?:\s*\:)) + +
+
+ ^(()?()?(|))(\n) + +
+ +
+ (?:^(()?(\bplans?)(\s*\:[^\d]|\s*\*))) + +
+
+ (?:^(()?(\bplans?))(\s*\n)) + +
+ +
+ (((?:disposition\s*(?:and|\&|\/)\s*plan)|(?:disposition\s*(?:\&|\/)plan))()?\s*\:) + +
+ +
+ (((?:to\s+do\s*\/\s*plans?))\s*\:) + +
+ +
+ (($pch)\s*\:)(\s+) + +
+ +
+ ((preoperative\s+(?:cardiac\s+)?status)\s*\:) + +
+ +
+ ((previous\s+cardiovascular\s+interventions?)\s*\:) + +
+ +
+ (?:pcp\s+name\s*\:) + +
+ +
+ (((?:(?:patient\s+)?problem\s+list)|(?:significant\s+problems)|(?:(?:(?:his|her)\s+)?problems\s+and\s+management\s+are\s+as\s+follows) )?\s*[\:;\*+]) + +
+ +
+ (?:(?:radiology(?:\s+(?:studies|data|results))?)\s*\:) + +
+ +
+ (?:reason\s+(?:for\s+)?consultation\s*\:) + +
+ +
+ ((report\s+status)\s*\:) + +
+ +
+ (?:(review\s+(?:of\s+)?systems|ros)\s*\:) + +
+
+ (?:(REVIEW\s+OF\s+SYSTEMS)(\s+[a-z]+)) + +
+ +
+ (?:service\s*\:) + +
+ +
+ (?:^()\s*\:) + +
+
+ (?:((SOCIAL\s+HISTORY|HABITS))(\s+[a-z]+)) + +
+ +
+ (?:subjective\s*\:?\n) + +
+
+ (?:^s\s*\:\n) + +
+ +
+ (((?:escription\s+document)|batch)\s*\:) + +
+ +
+ (((?:treatment\s+rendered))\s*\:?) + +
+
+ ((((?:other\s+treatments?\s*\/\s*procedures\s+\(\s+not\s+in\s+o\.r\.\s+\)))|(other\s+treatments?\s+and\s+procedures))\s*\:?) + +
+ +
+ (?:unit\s+number\s*\:) + +
+ +
+ ((return\s+to\s+work)\s*\:) + +
+ +
+ (?:\s+Exam\:) + +
+ +
+ (?:ORIGINAL REPORT) + +
+
+ (?:\s+\*+\s+Final\s+\*+) +
+
+ (?:Indications\:) + +
+
+ (?:SURGICAL PROCEDURE) + +
+
+
+ Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/AdvancedTokenizerPipeline.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/AdvancedTokenizerPipeline.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/AdvancedTokenizerPipeline.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/AdvancedTokenizerPipeline.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,24 @@ +// Commands and parameters to create a token processing pipeline with sections, paragraphs and lists + +// Annotate sections by known regex +add BsvRegexSectionizer + +// The sentence detector needs our custom model path, otherwise default values are used. +addLogged SentenceDetectorAnnotatorBIO classifierJarPath=/org/apache/ctakes/core/sentdetect/model.jar + +// The SentenceDetectorAnnotatorBIO is a "lumper" that works well for notes in which end of line does not indicate a sentence. +// If that is not your case, then you may get better results using the more standard SentenceDetector +// add SentenceDetector + +// By default, paragraphs are parsed using empty lines as separators and Part #: +add ParagraphAnnotator +// Fix sentences so that no sentence spans across two or more paragraphs. +add ParagraphSentenceFixer + +// Use regular expressions created for the Pitt notes to discover formatted lists and tables. +add ListAnnotator +// Fix sentences so that no sentence spans across two or more list entries. +add ListSentenceFixer + +// Now we can finally tokenize, tag parts of speech and chunk using adjusted sentences. +add TokenizerAnnotatorPTB Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/AttributeCleartkSubPipe.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/AttributeCleartkSubPipe.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/AttributeCleartkSubPipe.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/AttributeCleartkSubPipe.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,19 @@ +// Commands and parameters to create a default entity attributes processing sub-pipeline. This is not a full pipeline. + +// Add the Dependency parser for use by cleartk +addDescription ClearNLPDependencyParserAE +// Add the Semantic Role Labeler parser for use by cleartk +addLogged ClearNLPSemanticRoleLabelerAE + +// Add the cleartk package for cleartk class lookups +package org.apache.ctakes.assertion.medfacts.cleartk + +// Add the cleartk attribute engines, logging for them as a block +add StartFinishLogger LOGGER_NAME=CleartkAnalysisEngine LOGGER_TASK="Assigning Attributes" IS_START=true +addDescription PolarityCleartkAnalysisEngine +addDescription UncertaintyCleartkAnalysisEngine +addDescription HistoryCleartkAnalysisEngine +addDescription ConditionalCleartkAnalysisEngine +addDescription GenericCleartkAnalysisEngine +addDescription SubjectCleartkAnalysisEngine +add StartFinishLogger LOGGER_NAME=CleartkAnalysisEngine LOGGER_TASK="Assigning Attributes" Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/ChunkerSubPipe.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/ChunkerSubPipe.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/ChunkerSubPipe.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/ChunkerSubPipe.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,5 @@ +// Commands and parameters to create a default chunker processing sub-pipeline. This is not a full pipeline. + +add Chunker +addDescription adjuster.ChunkAdjuster NP,NP 1 +addDescription adjuster.ChunkAdjuster NP,PP,NP 2 Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/CorefSubPipe.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/CorefSubPipe.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/CorefSubPipe.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/CorefSubPipe.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,10 @@ +// Commands and parameters to create a default coreference processing sub-pipeline. This is not a full pipeline. + +// A Dependency Parser is necessary, but is usually added for assertion so don't add one here + +// Constituency Parser adds Terminal Treebank Nodes, needed to create Markables +add ConstituencyParser + +add DeterministicMarkableAnnotator +addDescription MarkableSalienceAnnotator /org/apache/ctakes/temporal/ae/salience/model.jar +addDescription MentionClusterCoreferenceAnnotator /org/apache/ctakes/coreference/models/mention-cluster/model.jar Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/Default.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/Default.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/Default.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/Default.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,20 @@ +// Commands and parameters to create a default plaintext document processing pipeline with UMLS lookup + +// set the thread count +threads 3 + +// Load a simple token processing pipeline from another pipeline file +load pipers/TsDefaultTokenizerPipeline + +// Add non-core annotators +add ContextDependentTokenizerAnnotator +addDescription POSTagger + +// Add Chunkers +load pipers/TsChunkerSubPipe + +// Default fast dictionary lookup +load pipers/TsDictionarySubPipe + +// Add Cleartk Entity Attribute annotators +load pipers/TsAttributeCleartkSubPipe Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/DictionarySubPipe.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/DictionarySubPipe.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/DictionarySubPipe.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/DictionarySubPipe.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,10 @@ +// Commands and parameters to create a default dictionary lookup sub-pipeline. This is not a full pipeline. + +// path to the xml file containing information for dictionary lookup configuration. +cli LookupXml=org/apache/ctakes/dictionary/lookup/fast/customDictionary.xml +// umls credentials +cli umlsUser=user +cli umlsPass=pass + +// Default fast dictionary lookup +add DefaultJCasTermAnnotator LookupXml=org/apache/ctakes/dictionary/lookup/fast/customDictionary.xml Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/Full.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/Full.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/Full.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/Full.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,17 @@ +// Advanced Tokenization: Regex sectionization, BIO Sentence Detector(lumper), Paragraphs,Lists +load pipers/AdvancedTokenizerPipeline.piper +add ContextDependentTokenizerAnnotator +add POSTagger +// Chunkers +load pipers/ChunkerSubPipe.piper +// Default fast dictionary lookup +load pipers/DictionarySubPipe.piper +add org.apache.ctakes.drugner.ae.DrugMentionAnnotator +// Cleartk Entity Attributes +load pipers/AttributeCleartkSubPipe.piper +// Temporal +load pipers/TemporalSubPipe.piper +// Coreferences +load pipers/CorefSubPipe.piper +add ContextAnnotator +add LabValueFinder \ No newline at end of file Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TemporalSubPipe.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TemporalSubPipe.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TemporalSubPipe.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TemporalSubPipe.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,19 @@ +// Commands and parameters to create a default temporal processing sub-pipeline. This is not a full pipeline. + +// 'Generic' Events. Use addDescription and let the EventAnnotator set itself up with defaults. +addDescription EventAnnotator + +// Times. Use addLogged to log start and finish of processing. There aren't default models, so set specifically +addLogged BackwardsTimeAnnotator classifierJarPath=/org/apache/ctakes/temporal/ae/timeannotator/model.jar + +// DocTimeRel: the relation bin for Events to the Document Creation Time. +addLogged DocTimeRelAnnotator classifierJarPath=/org/apache/ctakes/temporal/ae/doctimerel/model.jar + +// Event - Time binary relations. +addLogged EventTimeRelationAnnotator classifierJarPath=/org/apache/ctakes/temporal/ae/eventtime/model.jar + +// Event - Event binary relations. +addLogged EventEventRelationAnnotator classifierJarPath=/org/apache/ctakes/temporal/ae/eventevent/model.jar + +// Need to improve. Generic Events (head words) should be replaced by overlapping subclasses with relations adjusted. +//add FullTemporalExtractionPipeline.CopyPropertiesToTemporalEventAnnotator Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsAttributeCleartkSubPipe.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsAttributeCleartkSubPipe.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsAttributeCleartkSubPipe.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsAttributeCleartkSubPipe.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,19 @@ +// Commands and parameters to create a default entity attributes processing sub-pipeline. This is not a full pipeline. + +// Add the Dependency parser for use by cleartk +addDescription concurrent.ThreadSafeClearNlpDepParser +// Add the Semantic Role Labeler parser for use by cleartk +addDescription concurrent.ThreadSafeClearNlpSemRoleLabeler + +// Add the cleartk package for cleartk class lookups +package org.apache.ctakes.assertion.medfacts.cleartk + +// Add the cleartk attribute engines, logging for them as a block +add StartFinishLogger LOGGER_NAME=CleartkAnalysisEngine LOGGER_TASK="Assigning Attributes" IS_START=true +addDescription PolarityCleartkAnalysisEngine +addDescription UncertaintyCleartkAnalysisEngine +addDescription HistoryCleartkAnalysisEngine +addDescription ConditionalCleartkAnalysisEngine +addDescription GenericCleartkAnalysisEngine +addDescription SubjectCleartkAnalysisEngine +add StartFinishLogger LOGGER_NAME=CleartkAnalysisEngine LOGGER_TASK="Assigning Attributes" Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsChunkerSubPipe.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsChunkerSubPipe.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsChunkerSubPipe.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsChunkerSubPipe.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,5 @@ +// Commands and parameters to create a default chunker processing sub-pipeline. This is not a full pipeline. + +add concurrent.ThreadSafeChunker +addDescription adjuster.ChunkAdjuster NP,NP 1 +addDescription adjuster.ChunkAdjuster NP,PP,NP 2 Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsDefaultTokenizerPipeline.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsDefaultTokenizerPipeline.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsDefaultTokenizerPipeline.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsDefaultTokenizerPipeline.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,5 @@ +// Commands and parameters to create a default token processing pipeline + +add SimpleSegmentAnnotator +add concurrent.ThreadSafeSentenceDetector +add TokenizerAnnotatorPTB Added: ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsDictionarySubPipe.piper URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsDictionarySubPipe.piper?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsDictionarySubPipe.piper (added) +++ ctakes/trunk/ctakes-web-rest/src/main/resources/pipers/TsDictionarySubPipe.piper Wed Oct 31 11:03:43 2018 @@ -0,0 +1,10 @@ +// Commands and parameters to create a default dictionary lookup sub-pipeline. This is not a full pipeline. + +// path to the xml file containing information for dictionary lookup configuration. +cli LookupXml=l +// umls credentials +cli umlsUser=user +cli umlsPass=pass + +// Default fast dictionary lookup +add concurrent.ThreadSafeFastLookup LookupXml=org/apache/ctakes/dictionary/lookup/fast/customDictionary.xml Added: ctakes/trunk/ctakes-web-rest/src/main/webapp/META-INF/MANIFEST.MF URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/webapp/META-INF/MANIFEST.MF?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/webapp/META-INF/MANIFEST.MF (added) +++ ctakes/trunk/ctakes-web-rest/src/main/webapp/META-INF/MANIFEST.MF Wed Oct 31 11:03:43 2018 @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + Added: ctakes/trunk/ctakes-web-rest/src/main/webapp/WEB-INF/ctakes-rest-service-servlet.xml URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/webapp/WEB-INF/ctakes-rest-service-servlet.xml?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/webapp/WEB-INF/ctakes-rest-service-servlet.xml (added) +++ ctakes/trunk/ctakes-web-rest/src/main/webapp/WEB-INF/ctakes-rest-service-servlet.xml Wed Oct 31 11:03:43 2018 @@ -0,0 +1,16 @@ + + + + + + + + Added: ctakes/trunk/ctakes-web-rest/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/webapp/WEB-INF/web.xml?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/webapp/WEB-INF/web.xml (added) +++ ctakes/trunk/ctakes-web-rest/src/main/webapp/WEB-INF/web.xml Wed Oct 31 11:03:43 2018 @@ -0,0 +1,24 @@ + + + + ctakes-rest-service + + ctakes-rest-service + org.springframework.web.servlet.DispatcherServlet + 0 + + + ctakes-rest-service + /service/* + + + CORS + org.apache.ctakes.rest.filter.CORSFilter + + + CORS + /service/* + + Added: ctakes/trunk/ctakes-web-rest/src/main/webapp/index.jsp URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/webapp/index.jsp?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/webapp/index.jsp (added) +++ ctakes/trunk/ctakes-web-rest/src/main/webapp/index.jsp Wed Oct 31 11:03:43 2018 @@ -0,0 +1,19 @@ + + + + + + Ctakes Rest Service Test + + + + + + +
Version: 4.0.1
+
+

cTAKES REST SERVICE TESTING

+
+ + + Added: ctakes/trunk/ctakes-web-rest/src/main/webapp/js/app.js URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-web-rest/src/main/webapp/js/app.js?rev=1845321&view=auto ============================================================================== --- ctakes/trunk/ctakes-web-rest/src/main/webapp/js/app.js (added) +++ ctakes/trunk/ctakes-web-rest/src/main/webapp/js/app.js Wed Oct 31 11:03:43 2018 @@ -0,0 +1,23 @@ +$(document).ready(function() { + $('#fire').click(function() { + try { + $.ajax({ + url: myContextPath + "/service/analyze?pipeline=Default", + type: "POST", + crossDomain: true, + cache: false, + async: true, + data: document.getElementById("analysisText").value, + error: function(xhr, statusText, error) { + alert("Error processing REST call"); + }, + success: function(response, statusText, xhr) { + alert("Text analyzed successfully !!! Response JSON - " + JSON.stringify(response)); + } + }) + } catch (err) { + alert("Error invoking REST call - " + err.message); + } + + }); +});