You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the FHIR Implementation Guide (IG) source files above, provide a structured analysis addressing the following questions:
123
+
124
+
1. What is this IG trying to achieve, in what context, and for whom? Explain its objectives in simple terms.
125
+
2. How does this IG improve upon previous approaches? (Use only information from the input files; avoid speculation.)
126
+
3. What are the key features and technical approaches of this IG?
127
+
4. How does this IG relate to broader healthcare standards and regulations?
128
+
5. Who are the primary users or beneficiaries of this IG, including patients if applicable?
129
+
130
+
Provide concise, factual responses to each question based on the content of the IG. Aim for clarity and precision in your analysis. Begin with "# $igName: Analysis" and do not output anything other than the analysis.`;
131
+
132
+
constrequest={
133
+
systemInstruction: "You are a health information technology expert.",
1. Explain the IG's purpose, country of use (if applicable), and context of use / use cases, and key features / how it works. Avoid explaining what standards are in general.
157
+
2. Write ~200 words in short paragraphs for a general audience.
158
+
3. Use clear, jargon-free language.
159
+
4. Write in third-person perspective.
160
+
5. Maintain an objective, informative tone.
161
+
6. Present information factually.
162
+
7. Highlight any key stakeholder benefits.
163
+
8. Mention how the IG relates to other standards or regulations, if this is direct and relevant. Otherwise omit this.
164
+
9. Avoid promotional language or unverified claims.
165
+
`
166
+
constrevisionGuidelines=`
167
+
Please revise this summary to adhere to the following revision guideline:
168
+
- Rather than referring to an "IG" or "Implementation Guide", just call it a "standard".
169
+
- Remove any explanation that healthcare standards are like a common language or that they help computers talk to each other. That's common knowledge.
170
+
- Remove any explanation of what FHIR is; do not expand the acronym FHIR; just call it FHIR.
171
+
- Remove any explanation of what an API is; do not expand the acronym API; just call it an API.
172
+
- Remove any explanation of what an EHR is; do not expand the acronym EHR; just call it an EHR.
173
+
- Eliminate any speculative or indirect information about benefits.
174
+
- Remove any redundancy in the summary.
175
+
- Remove any mention of things you don't know or aren't sure about this IG
176
+
- Remove any mention that this IG builds on FHIR; that is common knowledge.
177
+
`
178
+
179
+
// Refinement stage
180
+
constrefinementPrompt=`
181
+
Here is the analysis of a FHIR Implementation Guide:
182
+
183
+
${analysis}
184
+
185
+
Use the analysis to create a plain language summary of the guide that adheres to these guidelines:
186
+
187
+
${basicGuidelines}
188
+
189
+
${revisionGuidelines}
190
+
191
+
Provide only the refined summary as your response, without additional explanations or comments.`;
192
+
193
+
constmsg=awaitanthropic.messages.create({
194
+
model: "claude-3-5-sonnet-20240620",
195
+
max_tokens: 1182,
196
+
temperature: 0.6,
197
+
system: "You are a skilled communicator with expertise in health information technology and a knack for clear, concise writing.",
198
+
messages: [
199
+
{
200
+
"role": "user",
201
+
"content": [
202
+
{
203
+
"type": "text",
204
+
"text": `${refinementPrompt}\n\n`
205
+
}
206
+
]
207
+
},
208
+
{
209
+
"role": "assistant",
210
+
"content": [
211
+
{
212
+
"type": "text",
213
+
"text": "This standard"
214
+
}
215
+
]
216
+
}
217
+
]
218
+
});
219
+
220
+
// const refinementRequest = {
221
+
// systemInstruction: "You are a skilled communicator with expertise in health information technology and a knack for clear, concise writing.",
0 commit comments