Generates structured SOAP notes from FHIR encounter data including chief complaint, vitals, labs, medications, conditions, and procedures. Use when user asks to "write a SOAP note", "generate encounter note", "document this visit", "create a clinic note", mentions "SOAP", "visit note", or needs structured clinical documentation for a completed or in-progress encounter. Do NOT use for inpatient progress notes, H&P documents, discharge summaries, or procedure notes.
Generate structured SOAP (Subjective, Objective, Assessment, Plan) notes from FHIR encounter data. Pull chief complaint, history of present illness context, vital signs, laboratory results, active medications, active conditions, and procedures performed during the encounter. Support specialty-specific formatting for primary care, emergency department, and inpatient encounters. Optionally create a DocumentReference resource to persist the generated note.
| Resource | Purpose | Key Fields |
|---|---|---|
| Encounter | Visit context, chief complaint, type | status, class, type, reasonCode, period, participant |
| Condition | Active problems, encounter diagnoses | code, clinicalStatus, verificationStatus, encounter |
| Observation | Vitals, labs, clinical findings | code, value[x], effectiveDateTime, category |
| MedicationRequest | Current medications, new prescriptions |
| medicationCodeableConcept, status, authoredOn, dosageInstruction |
| Procedure | Procedures performed during encounter | code, status, performedDateTime, outcome |
| AllergyIntolerance | Allergy list for note context | code, clinicalStatus, reaction |
| Patient | Demographics for note header | name, birthDate, gender, identifier |
| DocumentReference | Persist the generated note | type, content, context, date |
Tool: fhir_read
resourceType: "Encounter"