Scénario de test & Cas d'usage
Creation of concept rules (Drug definitions) and category rules that reference those concepts.
| 1 | |
| 2 | DATA mycas.concept_defs; |
| 3 | LENGTH config $200; |
| 4 | INFILE DATALINES dsd; |
| 5 | INPUT config $; |
| 6 | DATALINES; |
| 7 | "CONCEPT:DrugA,(OR, 'Aspirin', 'Acetylsalicylic')" "CONCEPT:DrugB,(OR, 'Ibuprofen', 'Advil')" ; |
| 8 | |
| 9 | RUN; |
| 10 | |
| 11 | DATA mycas.category_complex_rules; |
| 12 | LENGTH config $200; |
| 13 | INFILE DATALINES dsd; |
| 14 | INPUT config $; |
| 15 | DATALINES; |
| 16 | "CATEGORY:AdverseEvent_A,(AND, C_CONCEPT:DrugA, 'nausea')" "CATEGORY:AdverseEvent_B,(AND, C_CONCEPT:DrugB, 'dizziness')" ; |
| 17 | |
| 18 | RUN; |
| 19 |
| 1 | |
| 2 | PROC CAS; |
| 3 | textRuleDevelop.compileConcept / TABLE={name='concept_defs'} config='config' casOut={name='drug_concepts_li', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
| 1 | |
| 2 | PROC CAS; |
| 3 | textRuleDevelop.compileCategory / TABLE={name='category_complex_rules'} config='config' concept={name='drug_concepts_li'} casOut={name='adverse_event_model', replace=true}; |
| 4 | |
| 5 | RUN; |
| 6 |
The action should successfully link the 'drug_concepts_li' binary model with the text rules. The final 'adverse_event_model' will contain logic that depends on the successful detection of the underlying concepts.