Create a new summary template
POST
/fhir2summary/templateCreates a summary template from an example using LLM function calling
RequiresBearerauthentication
Body parameters
namestringrequiredName of the template
descriptionstringoptionalDescription of the template
example_summarystringrequiredExample summary note to generate template from
target_resourcesstring[]requiredList of target FHIR resources
example_fhir_dataobjectoptionalOptional example FHIR data that corresponds to the example summary
modestringrequiredTemplate mode (stored with the template)
Returns
Template created successfully
Response fields
successbooleanoptionalmessagestringoptionaltemplate_idstring (uuid)optionaltemplateobjectoptionalidstring (uuid)optionalnamestringoptionaldescriptionstringoptionaltemplatestringoptionalTemplate with {{resource.field}} placeholders
target_resourcesstring[]optionalList of FHIR resource types/profiles
modestringoptionalTemplate mode (stored value)
metadataobjectoptionalcreated_atstring (date-time)optionalupdated_atstring (date-time)optionalPOSTRequest
200 OKResponse