Skip to main content

Generate a note asynchronously

POST 

/digest_async

Digests a list of transcript items and produces a structured clinical note.

Request

Body

required
    output_objects digest_output_object[]required

    Possible values: [note]

    Specifies which items you want us to send you back. In other words, which feature(s) you want to use, for now only note generation is available.

    language copilot_languagerequired

    Possible values: [fr, en, en-US, en-GB, fr-FR, es-ES, es-MX]

    Language of the given transcript and the desired note ('fr' and 'en' are deprecated, and correspond to 'fr-FR' and 'en-US' respectively. Generating a note in 'es-ES' and 'es-MX' is not supported and will be soon removed).

    transcript_items object[]required

    The transcript from which to generate the note.

    You don't need to specify each item's start or end time, but make sure they are sorted. In fact, due to its asynchronous nature, our real-time transcription API does not guarantee the order. Thus, before calling this note-generation API please filter-out non-final items and sort them by start_offset_ms.

  • Array [
  • text stringrequired

    The transcribed text.

    speaker copilot_speakerrequired

    Possible values: [doctor, patient, unspecified]

    Who said the text in this transcript item.

  • ]
  • note_generation_mode copilot_note_generation_mode

    Possible values: [highest_quality, fastest]

    Choose a generation mode:

    highest_quality: generates very high quality notes, might take up to one minute;

    fastest: quicker note generation (few seconds), but might not give the best possible output.

    Default is highest_quality.

    section_style copilot_section_style

    Possible values: [auto, paragraphs, bullet_points]

    Choose a desired style for note sections:

    paragraphs: Prioritizes generating paragraphs;

    bullet_points: Prioritizes structuring content using bullet points.

    auto: Automatically picks the most natural formatting option.

    Default is auto.

    split_by_problem boolean

    Default value: false

    Flag to structure the content of the note sections according to distinct clinical problems or topics addressed during the consultation.

    When this flag is enabled, the text within some sections of the clinical note is organized into subsections, each corresponding to a specific problem or topic. This format aims to enhance the clarity and organization of the clinical note, making it easier to read and understand the different issues discussed during the consultation.

    Important: Currently, the application of this flag is limited to the HISTORY_OF_PRESENT_ILLNESS and SOAP_SUBJECTIVE sections and is only effective when the language is set to English (US or GB).

    note_template copilot_note_template

    Possible values: [GENERAL_MEDICINE, GENERAL_MEDICINE_AP_MERGED, CARDIOLOGY, PSYCHIATRY, DIET, PSYCHOLOGY, SOAP, GENERAL_MEDICINE_WCC, SOAP_WCC, GENERAL_MEDICINE_EMERGENCY, SOAP_EMERGENCY]

    The desired template of the generated note.

    Some templates are only available in specific languages. Check Note template for details.

    note object

    Optional initial Note to be enhanced using the new transcript_items. This is useful if you generate notes gradually to avoid accumulating a very long transcript items list. Typically, this will be the last note Nabla generated for you along with the new transcript_items that did not serve for its generation. Important: This is expected to be a recent (up to few-hours old) Nabla-generated note. If the note is too old or altered, you will get an error.

    sections object[]required

    Sections of the note.

  • Array [
  • key stringrequired

    A key identifying a section of a note. The set of possible keys depend on the template that is used. Check Note template for possible values.

    title stringrequired

    The section title.

    text string

    Content of the note section (required).

  • ]
  • patient_context string

    Possible values: <= 700 characters

    Some contextual information that will be used to generate the note (for example name, gender, age, pronouns, medical history) [BETA].

    callback_url stringrequired

    Once we are done processing the input and generating the note, we will call you back with a 'POST' on this URL and a Json body respecting exactly the same schema as the response of the synchronous equivalent endpoint (i.e. /copilot/digest).

    client_request_id copilot_client_request_id

    Possible values: <= 128 characters

    An optional unique client-made id for this request. When specified, this id is included in the Json payload that will be sent asynchronously. This can help clients both guarantee idempotency and correlate asynchronous responses with their requests. Note: this id must be different for every request. It is recommended to use a randomly generated UUID.

Responses

Request received and processing started.

Schema
    request_id uuidrequired

    The id of the request you just created.

    client_request_id string

    The provided client_request_id.

Loading...