-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSIIM.log
More file actions
177 lines (155 loc) · 5.29 KB
/
SIIM.log
File metadata and controls
177 lines (155 loc) · 5.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
RadPrompter Version: 1.1.9
Model: llama3
Prompt TOML: /Users/bje/repos/SIIMPrompter/SIIM.toml
Prompt Version: 0.1
Prompt Hash: 8566c0c1dcf4f70be7f33f31eb5c1ffb
Concurrency Factor: 1
Start Time: 2024-05-31 16:10:34
End Time: 2024-05-31 17:48:55
Duration: 5901.0
Number of Items: 670
Average Processing Time: 8.807462686567165
-------------------- *** - Prompt Content - *** --------------------
[METADATA]
version = 0.1
description = "A sample prompt for RadPrompter"
[PROMPTS]
system_prompt = "You are a helpful assistant that has 20 years of experience in reading radiology reports and extracting data elements."
user_prompt_intro = "{{intro_prompt}}\n"
user_prompt_no_cot = """
I want you to extract the following data element from the report:
{{hint}}
Provide a single answer:
"""
[CONSTRUCTOR]
system = "rdp(system_prompt)"
user = [
"rdp(user_prompt_intro + user_prompt_no_cot)"
]
stop_tags = [
" "
]
[SCHEMAS]
[SCHEMAS.PulmonaryEmbolism]
variable_name = "Pulmonary Embolism"
intro_prompt = """
Carefully review the provided chest CT report (in the <report> tag). Ensure that each data element is accurately captured.
Here is the report:
<report>
{{report}}
</report>
Please pay attention to the following details:
- Your attention to detail is crucial for maintaining the integrity of the medical records.
- You should not confabulate information, and if something is not mentioned, you should assume that it is `Absent` unless otherwise stated.
- The report may contain additional information that is not relevant to the requested data elements. Please ignore that information.
- We are interested at findings at the time of scan, not the previous ones, so only consider the impression and findings sections of the report.
- Do not print anything else other than the provided output format.
"""
type = "select"
options = ["Present", "Absent"]
show_options_in_hint = true
hint = """
Indicate `Present` if the report explicitly mentions the patient has definitely, probably, or likely has the finding of interest.
Indicate `Absent` if it is specifically mentioned to not be present, but also if considered unlikely.
"""
[SCHEMAS.Pneumonia]
variable_name = "Pneumonia"
intro_prompt = ""
type = "select"
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report indicates the patient mostly likely has pneumonia.
Indicate `No` if the report indicates the patient mostly likely does not have pneumonia or if pneumonia is not mentioned.
"""
[SCHEMAS.LiverMets]
variable_name = "LiverMets"
type = "select"
intro_prompt = ""
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report explicitly mentions the patient has at least 1 metastasis involving their liver. Do not consider other organs.
Indicate `No` if the report explicitly mentions the patient has no metastasis involving their liver. Do not consider other organs.
"""
[SCHEMAS.C1]
variable_name = "C1FX"
type = "select"
intro_prompt = ""
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report explicitly mentions the patient has a fracture of C1.
Indicate `No` if the report doesn't mention a fracture of C1.
"""
[SCHEMAS.C2]
variable_name = "C2FX"
type = "select"
intro_prompt = ""
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report explicitly mentions the patient has a fracture of C2.
Indicate `No` if the report doesn't mention a fracture of C2.
"""
[SCHEMAS.C3]
variable_name = "C3FX"
type = "select"
intro_prompt = ""
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report explicitly mentions the patient has a fracture of C3.
Indicate `No` if the report doesn't mention a fracture of C3.
"""
[SCHEMAS.C4]
variable_name = "C4FX"
type = "select"
intro_prompt = ""
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report explicitly mentions the patient has a fracture of C4.
Indicate `No` if the report doesn't mention a fracture of C4.
"""
[SCHEMAS.C5]
variable_name = "C5FX"
type = "select"
intro_prompt = ""
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report explicitly mentions the patient has a fracture of C5.
Indicate `No` if the report doesn't mention a fracture of C5.
"""
[SCHEMAS.C6]
variable_name = "C6FX"
type = "select"
intro_prompt = ""
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report explicitly mentions the patient has a fracture of C6.
Indicate `No` if the report doesn't mention a fracture of C6.
"""
[SCHEMAS.C7]
variable_name = "C7FX"
type = "select"
intro_prompt = ""
options = ["Yes", "No"]
show_options_in_hint = true
hint = """
Indicate `Yes` if the report explicitly mentions the patient has a fracture of C7.
Indicate `No` if the report doesn't mention a fracture of C7.
"""
[SCHEMAS.GliomaStatus]
variable_name = "GliomaStatus"
type = "select"
intro_prompt = ""
options = ["Progression", "Regression", "Stable"]
show_options_in_hint = true
hint = """
Indicate `Progression` if the report indicates that the glioma is most likely progressing / getting worse.
Indicate `Regression` if the report indicates that the glioma is most likely improving / responding to treatment.
Indicate `Stable` if the report indicates that the glioma is most likely not changed from the prior.
"""