Scénario de test & Cas d'usage
Creation of a CAS table containing specific rules for drug names and adverse symptoms.
| 1 | DATA casuser.pharma_rules; LENGTH rule_id $32 rule_def $200; INFILE DATALINES delimiter='|'; INPUT rule_id $ rule_def $; DATALINES; |
| 2 | DRUG_A|CONCEPT_RULE:(C_CONCEPT){Panadol} |
| 3 | SYMPTOM_1|CONCEPT:headache |
| 4 | SYMPTOM_2|CONCEPT:nausea |
| 5 | CONTEXT_1|PREDICATE_RULE:(patient, took, medicine) |
| 6 | ; |
| 7 | RUN; |
| 1 | PROC CAS; |
| 2 | textRuleDevelop.compileConcept / |
| 3 | TABLE={caslib="casuser", name="pharma_rules"}, |
| 4 | ruleId="rule_id", |
| 5 | config="rule_def", |
| 6 | enablePredefined=TRUE, |
| 7 | language="ENGLISH", |
| 8 | casOut={caslib="casuser", name="pharma_model_bin", replace=TRUE}; |
| 9 | RUN; |
The action should successfully create the 'pharma_model_bin' table. The log should indicate that the model includes both the custom concepts (Panadol, headache) and standard English entities, ready for use in `tpParse`.