Phenoml Logo

Generate a summary from FHIR resources

Summary/create
POST/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.

Generate a clinical narrative from FHIR resources using a template

Input
mode: narrativetemplate id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
Result
success
Success
summary

Patient John Doe is a 45-year-old male diagnosed with Type 2 Diabetes Mellitus on January 15, 2024. Current treatment plan includes lifestyle modifications and medication management.

warnings[]
Terms of Service|Privacy Policy