Skip to main content

Create integrated template

POST 

/integrated-templates/

Create integrated template

Request

Body

required
    medical_specialty MedicalSpecialty (string)

    Possible values: [ALLERGY, ANESTHESIOLOGY, CARDIOLOGY, DERMATOLOGY, ENDOCRINOLOGY, GASTROENTEROLOGY, GERIATRICS, GYNECOLOGY, HEMATOLOGY, INFECTIOUS_DISEASE, INTERNAL_MEDICINE, NEPHROLOGY, NEUROLOGY, OBSTETRICS, ONCOLOGY, OPHTHALMOLOGY, ORTHOPEDICS, OTOLARYNGOLOGY, PATHOLOGY, PEDIATRICS, PSYCHIATRY, PULMONOLOGY, RADIOLOGY, RHEUMATOLOGY, SURGERY, UROLOGY, SPORTS_MEDICINE, MAXILLOFACIAL, VASCULAR, EMERGENCY, NURSING, GENERAL]

    Default value: GENERAL

    report_metadata_idobject

    anyOf

    integer
    generate_report_template Generate Report Template (boolean)

    Default value: true

    Generate report template from the facility template.

    include_ui_layout Include Ui Layout (boolean)

    Define UI report section layout.

    internal_id Internal Id (string)required
    title Title (string)required
    custom_jsonobject

    anyOf

    object
    fieldsobject

    All desired fields correctly defined.

    anyOf

  • Array [

  • internal_id Internal Id (string)required
    name Name (string)required
    description Description (string)required
    type FieldType (string)

    Possible values: [TRANSCRIPT, DATETIME, STRING, NUMBER, BOOLEAN, LIST, CONCEPT, CONCEPT_LIST]

    Default value: STRING

    choice_set_idobject

    anyOf

    integer

    defaultobject

    anyOf

    string

    required Required (boolean)
    mappingobject

    JMESPath to field location in custom JSON

    anyOf

    string

    optionsobject

    anyOf

    object

    choicesobject

    anyOf

  • Array [

  • fhirCodes

    object

    anyOf

    object

    internalCode

    object

    anyOf

    string

    conceptSetId

    object

    anyOf

    integer

    display

    object

    anyOf

    string

    displayTranslations

    object

    anyOf

    property name* string
  • ]

  • ]

Responses

Successful Response
Schema
    payload_specobjectrequired
    internal_id Internal Id (string)required
    title Title (string)required

    custom_json

    object

    anyOf

    object

    id Id (integer)required
    fieldsobject[]required
  • Array [

  • internal_id Internal Id (string)required
    name Name (string)required
    description Description (string)required
    type FieldType (string)

    Possible values: [TRANSCRIPT, DATETIME, STRING, NUMBER, BOOLEAN, LIST, CONCEPT, CONCEPT_LIST]

    Default value: STRING

    choice_set_id

    object

    anyOf

    integer

    default

    object

    anyOf

    string

    required Required (boolean)

    mapping

    object

    JMESPath to field location in custom JSON

    anyOf

    string

    options

    object

    anyOf

    object

    id Id (integer)required

    choice_set

    object

    anyOf

    name Name (string)required

    description

    object

    anyOf

    string

    facility_id

    object

    anyOf

    integer

    id Id (integer)required

    concepts

    object[]

    required

  • Array [

  • fhirCodes

    object

    anyOf

    object

    internalCode

    object

    anyOf

    string

    conceptSetId

    object

    anyOf

    integer

    display Display (string)required
  • ]

  • ]

  • facility_id Facility Id (integer)required

    report_template

    object

    anyOf

    questions

    object[]

    required

  • Array [

  • type QuestionType (string)required

    Possible values: [STRING, NUMBER, BOOLEAN, LIST, CONCEPT, CONCEPT_LIST, SUBQUESTIONS]

    A hint to feed the LLM so that it knows what it's looking for. Also used in the frontend to choose which widget to show (input, select, etc).

    widget Widget (string)

    Possible values: [TEXTAREA, TEXT, SELECT, LIST, GROUP, MULTISELECT, MULTIWIDGET, SUBQUESTIONS]

    Default value: TEXTAREA

    resourceType ResourceType (string)

    Possible values: [OBSERVATION, CONDITION, MEDICATION_REQUEST, SERVICE_REQUEST, ALLERGY_INTOLERANCE, CARE_PLAN]

    Default value: OBSERVATION

    coding

    object

    anyOf

    object

    choiceSetId

    object

    The id of the choice set.

    anyOf

    integer

    facilityId

    object

    anyOf

    integer

    payloadFieldId

    object

    The id of the facility field the question is based on.

    anyOf

    integer

    parentQuestionId

    object

    The id of the parent question.

    anyOf

    integer

    title Title (string)required

    The short description of the question. This is seen by the doctor as a label to the question

    prompt

    object

    The question prompt that is fed to the LLM.

    anyOf

    string

    betaPrompt

    object

    anyOf

    string

    description

    object

    anyOf

    string

    id Id (integer)required

    choices

    object

    The choices for a question, must be one of our 'Concepts'

    anyOf

  • Array [

  • id Id (integer)required
    display Display (string)required

    internal_code

    object

    anyOf

    string

  • ]

  • method Method (string)

    Possible values: [extractive, generative, manual, action]

    Default value: extractive

  • ]

  • structure

    object

    required

    A report template structure dictates a report's sections, distribution, and entries' definitions by their question and targeting field.

    sections

    object[]

    required

  • Array [

  • children

    object

    anyOf

  • Array [

  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
  • ]

  • entries

    object

    anyOf

  • Array [

  • question_id Question Id (integer)required

    target_field_id

    object

    Target field pk id of the linked facility map.

    anyOf

    integer

  • ]

  • title

    object

    anyOf

    string

    title_translations

    object

    anyOf

    property name* string
  • ]

  • payload_spec_id

    object

    Facility map ID.

    anyOf

    integer

    report_metadata_id Report Metadata Id (integer)required

    Id of the linked report metadata.

Loading...