This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/ClarityNLP/ClarityNLP in…
…to develop
- Loading branch information
Showing
7 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,7 +153,8 @@ unaryOperator: | |
|
||
logicalOperator: | ||
AND | | ||
OR | ||
OR | | ||
NOT | ||
; | ||
|
||
comparisonOperator: | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
limit 100; | ||
phenotype "Test Setdiff" version "1"; | ||
include ClarityCore version "1.0" called Clarity; | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Documents | ||
// | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// documentset Docs: | ||
// Clarity.createDocumentSet({ | ||
// "report_types":[ | ||
// "Physician", | ||
// "Nurse", | ||
// "Note", | ||
// "Discharge Summary" | ||
// ], | ||
// "source":"MIMIC" | ||
// }); | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Termsets | ||
// | ||
/////////////////////////////////////////////////////////////////////////////// | ||
termset RigorsTerms: [ | ||
"Rigors", | ||
"Rigoring", | ||
"Shivers", | ||
"Shivering" | ||
]; | ||
termset DyspneaTerms: [ | ||
"Labored respiration", | ||
"Shortness of breath", | ||
"Short of breath", | ||
"SOB", | ||
"Respiration labored", | ||
"Labored breathing", | ||
"Dyspnea", | ||
"Difficulty breathing" | ||
]; | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Provider Assertions | ||
// | ||
/////////////////////////////////////////////////////////////////////////////// | ||
define hasRigors: | ||
Clarity.ProviderAssertion({ | ||
termset: [RigorsTerms] | ||
}); | ||
define hasDyspnea: | ||
Clarity.ProviderAssertion({ | ||
termset: [DyspneaTerms] | ||
}); | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Context | ||
// | ||
/////////////////////////////////////////////////////////////////////////////// | ||
context Patient; | ||
/////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Expressions | ||
// | ||
/////////////////////////////////////////////////////////////////////////////// | ||
define RigorsOrDyspnea: | ||
where hasRigors OR hasDyspnea; | ||
define RigorsAndDyspnea: | ||
where hasRigors AND hasDyspnea; | ||
define hasRigorsOrDyspneaButNotBoth: | ||
where (hasRigors OR hasDyspnea) NOT (hasRigors AND hasDyspnea); | ||
define complexNotLogic: | ||
where (hasTachycardia OR hasShock OR hasRigors) NOT ( (hasTachycardia AND hasShock) OR (hasTachycardia AND hasRigors) OR (hasShock AND hasRigors) ); | ||
define LogicAndMath1: | ||
where (hasRigors OR hasDyspnea OR hasTachycardia) NOT ( (Temperature.value >= 100.4) AND (Temperature.value <= 102) ); | ||
define LogicAndMath2: | ||
where (Lesion.dimension_X > 10 AND Lesion.dimension_X < 30) NOT (hasRigors OR hasTachycardia OR hasDyspnea); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters