-
Notifications
You must be signed in to change notification settings - Fork 35
TIG use case harmonization #1725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8dad4b5
use case
SFJohnson24 24e9854
template
SFJohnson24 17ef144
test
SFJohnson24 a5843af
test
SFJohnson24 7131b99
Merge branch 'main' into tig
SFJohnson24 58f0f9c
Merge branch 'main' into tig
RamilCDISC 42e6ce5
Merge branch 'main' into tig
SFJohnson24 cb9d4ac
Merge branch 'tig' of https://github.com/cdisc-org/cdisc-rules-engine…
SFJohnson24 1a5c868
tests, changes
SFJohnson24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,108 @@ | ||
| """ | ||
| Constants for use cases and their allowed domains. | ||
| """ | ||
|
|
||
| SDTM = "SDTM" | ||
| SEND = "SEND" | ||
| ADAM = "ADAM" | ||
| CDASH = "CDASH" | ||
|
|
||
| INDH = "INDH" | ||
| PROD = "PROD" | ||
| NONCLIN = "NONCLIN" | ||
| ANALYSIS = "ANALYSIS" | ||
|
|
||
| # NOTE: this may need to be expanded after the pilot re: custom domains, other applicable domains, etc. | ||
| USE_CASE_DOMAINS = { | ||
| SDTM: { # only prod and individual health are allowed for sdtm | ||
| INDH: [ | ||
| "AE", | ||
| "CO", | ||
| "CM", | ||
| "DM", | ||
| "DI", | ||
| "DU", | ||
| "DO", | ||
| "DS", | ||
| "EG", | ||
| "EX", | ||
| "EC", | ||
| "FA", | ||
| "IE", | ||
| "LB", | ||
| "MH", | ||
| "PC", | ||
| "PP", | ||
| "DA", | ||
| "DV", | ||
| "QS", | ||
| "RELREC", | ||
| "RE", | ||
| "SC", | ||
| "SE", | ||
| "SV", | ||
| "SU", | ||
| "EM", | ||
| "TA", | ||
| "TE", | ||
| "TI", | ||
| "TS", | ||
| "TV", | ||
| "VS", | ||
| ], | ||
| PROD: ["TO", "PD", "PT", "IT", "IN", "IQ", "ES"], | ||
| NONCLIN: [], | ||
| ANALYSIS: [], | ||
| }, | ||
| SEND: { # only nonclin allowed for send | ||
| INDH: [], | ||
| PROD: [], | ||
| NONCLIN: [ | ||
| "BW", | ||
| "CV", | ||
| "CL", | ||
| "CO", | ||
| "DD", | ||
| "DM", | ||
| "DI", | ||
| "DU", | ||
| "DS", | ||
| "EG", | ||
| "EX", | ||
| "FW", | ||
| "GT", | ||
| "LB", | ||
| "MA", | ||
| "MI", | ||
| "OM", | ||
| "PM", | ||
| "PK", | ||
| "PP", | ||
| "POOLDEF", | ||
| "RELREC", | ||
| "RELREF", | ||
| "RE", | ||
| "SC", | ||
| "SE", | ||
| "TA", | ||
| "TE", | ||
| "TF", | ||
| "TX", | ||
| "TS", | ||
| "VS", | ||
| ], | ||
| ANALYSIS: [], | ||
| }, | ||
| ADAM: { # only analysis allowed for adam, ADAM AD-- prefix check is done elsewhere. This is here for completeness. | ||
| INDH: [], | ||
| PROD: [], | ||
| NONCLIN: [], | ||
| ANALYSIS: [], | ||
| }, | ||
| CDASH: { # no conformance rules for CDASH Presently | ||
| INDH: [], | ||
| PROD: [], | ||
| NONCLIN: [], | ||
| ANALYSIS: [], | ||
| }, | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
Binary file not shown.
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The readme says that the use case must be given for TIG custom standard. We can keep this check then here and update the error message. Right now the missing use case is only checked deep in the rule execution which can give users unhandled exceptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use_case is not required--- only substandard--I will adjust readme