Scénario de test & Cas d'usage
Erstellung einer Tabelle mit simulierten klinischen Notizen.
| 1 | |
| 2 | DATA casuser.clinical_notes; |
| 3 | LENGTH text $300; |
| 4 | INFILE DATALINES delimiter='|'; |
| 5 | INPUT id text$; |
| 6 | DATALINES; |
| 7 | 1|Patient erhält 50mg Aspirin täglich.|2|Blutdruck normal. Keine weitere Medikation.|3|Verschreibung von Ibuprofen 400mg bei Bedarf.|; |
| 8 | |
| 9 | RUN; |
| 10 |
| 1 | |
| 2 | PROC CAS; |
| 3 | conditionalRandomFields.crfScore TABLE={name='clinical_notes', caslib='casuser'} model={name='med_crf_model'} casOut={name='clinical_tagged', caslib='casuser', replace=true} target='entity_tag'; |
| 4 | |
| 5 | RUN; |
| 6 | |
| 7 | QUIT; |
| 8 |
| 1 | |
| 2 | PROC CAS; |
| 3 | TABLE.fetch TABLE={name='clinical_tagged', caslib='casuser'} to=5; |
| 4 | |
| 5 | RUN; |
| 6 | |
| 7 | QUIT; |
| 8 |
Die Tabelle 'clinical_tagged' wird erfolgreich erstellt. Sie enthält die ursprüngliche 'text'-Spalte sowie die neue Spalte 'entity_tag', in der Sequenzen wie '50mg Aspirin' korrekt mit Labels (z.B. DOSAGE, DRUG) gemäß dem trainierten Modell markiert sind.