Skip to main content
FHIR Extraction uses a language model to read the note. Like any reader, it can misread. Three habits keep those errors out of your data:
  1. Send what you already know about the patient and the encounter.
  2. Skip data you already have in structured form, such as lab results from your lab system.
  3. Review the results before they reach the patient record.

Send what you already know

Your EHR or scheduling system already holds the patient’s ID, date of birth, and gender, and the visit’s ID, setting, and dates. A note only mentions some of these, and sometimes in a way that is easy to misread. When you send a value in patient or encounter, the endpoint uses your value and ignores what it reads in the note. Each field you send is one less field the model has to read, and one less chance to get it wrong. Here are mistakes you avoid that way: Send every value you have, even when the note also states it. The patient object has 4 fields and the encounter object has 8. A request with every field looks like this:
Where the values come from in a typical EHR: Request and response lists the allowed values for each field. Patient & Encounter shows the resources this request returns.

Skip data you already have in structured form

Many clinical systems already hold part of the record as structured data, straight from the source. Use that source, and turn off the matching resource groups and categories with resourceGroups: The structured source is the truth. A note only repeats it, and extracting the value again can only make it worse:
  • The model can misread. Every extracted value carries a small risk of error that the structured source does not have.
  • The note may be wrong already. A clinician types “HbA1c 7.2” when the lab reported 7.4, or copies last month’s “K 3.1” forward when today’s potassium is normal.
  • The note leaves out details. A lab result in a note rarely carries its unit, reference range, specimen, collection time, or the exact test the lab ran. A blood pressure in a note rarely says when, where on the body, or with which device.
If you want to keep an extracted group that overlaps your structured data, such as allergies, use the extracted resources only to suggest additions for a clinician to review. The “Skip lab results and vital signs” example in Choose which resources to produce shows the request.

Review the results before they reach the record

Wherever you can, show the extracted resources to a clinician before they reach the patient record. Review matters most when the result changes care, such as a new problem-list entry or a new allergy. The response gives a reviewer what they need:
  • Mentions point to the words in the note behind each field. Highlight them next to the value, so the reviewer can check it at a glance.
  • Alternatives list other codes that could fit. Offer them as one-click corrections.
  • Status and value fields need the closest look, because they change the meaning of a code. A Condition with verificationStatus: refuted means the patient does not have it. See Codes are positive.

Next steps

Filter FHIR resources

Turn off the resource groups and categories you already have.

How FHIR Extraction works

Learn how mentions, alternatives, and status fields work.