post
https://{instanceUrl}/fhir2summary/create
Creates a summary from FHIR resources using one of three modes:
- narrative: Uses a template to substitute FHIR data into placeholders (requires template_id)
- flatten: Flattens FHIR resources into a searchable format for RAG/search (no template needed)
- ips: Generates an International Patient Summary (IPS) narrative per ISO 27269/HL7 FHIR IPS IG. Requires a Bundle with exactly one Patient resource (returns 400 error if no Patient or multiple Patients are present). Automatically filters resources to those referencing the patient and generates sections for allergies, medications, problems, immunizations, procedures, and vital signs.
401Unauthorized
403Access denied - template belongs to another user
404Template not found (narrative mode with invalid template_id)
500Internal server error
