{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-elation-note-update-schema.json",
  "title": "ElationNoteUpdate",
  "description": "Request body for updating a sections-based note.\n\nWhen ``content_map`` is sent on a base note update, ``snapshot_id`` is required\n(from create or GET /notes/{id}/edit) for collaborative conflict detection.\n\nField order: content-update fields (`content_map`, `snapshot_id`) first, then\nmutable fields in the same order as ``ElationNoteCreate`` (``provider`` through\n``metadata``; create-only ``layout_name``, ``practice``, ``patient`` omitted),\nthen ``confidential``.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-notes-v2-api-openapi.yml#/components/schemas/ElationNoteUpdate",
  "properties": {
    "bill": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "The ID of the bill associated with the note.",
      "title": "Bill"
    },
    "category": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Practice-created identifier for note category (Visit Note Type).",
      "title": "Category"
    },
    "confidential": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Confidential"
    },
    "content_map": {
      "anyOf": [
        {
          "$ref": "#/$defs/ContentMap-Input"
        },
        {
          "type": "null"
        }
      ]
    },
    "exam_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exam Reason"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata"
    },
    "provider": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "The ID of the assigned provider.",
      "title": "Provider"
    },
    "serviced_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Serviced At"
    },
    "snapshot_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Snapshot Id"
    }
  },
  "type": "object",
  "$defs": {
    "AttrsWithRefId": {
      "description": "Base attrs for any node that carries a stable change-tracking ref_id.",
      "properties": {
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "title": "AttrsWithRefId",
      "type": "object"
    },
    "CardiacOrderBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/CardiacOrderBlockAttrs-Input"
        },
        "type": {
          "const": "cardiacOrder",
          "default": "cardiacOrder",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "CardiacOrderBlock",
      "type": "object"
    },
    "CardiacOrderBlockAttrs-Input": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "order": {
          "$ref": "#/$defs/CardiacOrderSummary"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "order"
      ],
      "title": "CardiacOrderBlockAttrs",
      "type": "object"
    },
    "CardiacOrderSummary": {
      "properties": {
        "clinical_reason": {
          "title": "Clinical Reason",
          "type": "string"
        },
        "confidential": {
          "title": "Confidential",
          "type": "boolean"
        },
        "created_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created Date"
        },
        "date_for_test": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date For Test"
        },
        "deleted_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "icd10_codes": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Icd10 Codes",
          "type": "array"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "medications": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Medications"
        },
        "signed_by": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed By"
        },
        "signed_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Date"
        },
        "tests": {
          "default": [],
          "items": {
            "$ref": "#/$defs/CardiacOrderTest"
          },
          "title": "Tests",
          "type": "array"
        }
      },
      "required": [
        "id",
        "clinical_reason",
        "confidential"
      ],
      "title": "CardiacOrderSummary",
      "type": "object"
    },
    "CardiacOrderTest": {
      "properties": {
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "name": {
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "title": "CardiacOrderTest",
      "type": "object"
    },
    "ContentMap-Input": {
      "description": "Typed map from section type to its content. All sections are optional.\n\nKeys match section ``type`` wire values (``NodeType``): lowercase single words\n(e.g. ``narrative``, ``vitals``) or camelCase for multi-word nodes (e.g. ``followUp``).",
      "properties": {
        "followUp": {
          "anyOf": [
            {
              "$ref": "#/$defs/FollowupSection-Input"
            },
            {
              "type": "null"
            }
          ]
        },
        "instructions": {
          "anyOf": [
            {
              "$ref": "#/$defs/InstructionsSection-Input"
            },
            {
              "type": "null"
            }
          ]
        },
        "narrative": {
          "anyOf": [
            {
              "$ref": "#/$defs/NarrativeSection-Input"
            },
            {
              "type": "null"
            }
          ]
        },
        "orders": {
          "anyOf": [
            {
              "$ref": "#/$defs/OrdersSection-Input"
            },
            {
              "type": "null"
            }
          ]
        },
        "procedures": {
          "anyOf": [
            {
              "$ref": "#/$defs/ProcedureSection-Input"
            },
            {
              "type": "null"
            }
          ]
        },
        "referencedDocuments": {
          "anyOf": [
            {
              "$ref": "#/$defs/ReferencedDocumentsSection-Input"
            },
            {
              "type": "null"
            }
          ]
        },
        "vitals": {
          "anyOf": [
            {
              "$ref": "#/$defs/VitalsSection-Input"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "title": "ContentMap",
      "type": "object"
    },
    "CptCode": {
      "properties": {
        "code": {
          "title": "Code",
          "type": "string"
        },
        "description": {
          "title": "Description",
          "type": "string"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        }
      },
      "required": [
        "id",
        "code",
        "description"
      ],
      "title": "CptCode",
      "type": "object"
    },
    "FollowupListItem-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "description": "List-item children, capped at two: a single child must be a paragraph, and a second child (if present) must be a nested ordered or unordered list. Shape is [paragraph] or [paragraph, nested list].",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/FollowupParagraph-Input"
              },
              {
                "$ref": "#/$defs/FollowupUnorderedList-Input"
              },
              {
                "$ref": "#/$defs/FollowupOrderedList-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "followUpListItem",
          "default": "followUpListItem",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "FollowupListItem",
      "type": "object"
    },
    "FollowupOrderedList-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "items": {
            "$ref": "#/$defs/FollowupListItem-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "followUpOrderedList",
          "default": "followUpOrderedList",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "FollowupOrderedList",
      "type": "object"
    },
    "FollowupParagraph-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/FollowupParagraphAttrs"
        },
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/TextInline-Input"
              },
              {
                "$ref": "#/$defs/LineBreakInline"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "followUpParagraph",
          "default": "followUpParagraph",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "FollowupParagraph",
      "type": "object"
    },
    "FollowupParagraphAttrs": {
      "properties": {
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "title": "FollowupParagraphAttrs",
      "type": "object"
    },
    "FollowupSection-Input": {
      "properties": {
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/FollowupParagraph-Input"
              },
              {
                "$ref": "#/$defs/FollowupUnorderedList-Input"
              },
              {
                "$ref": "#/$defs/FollowupOrderedList-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "followUp",
          "default": "followUp",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "FollowupSection",
      "type": "object"
    },
    "FollowupUnorderedList-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "items": {
            "$ref": "#/$defs/FollowupListItem-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "followUpUnorderedList",
          "default": "followUpUnorderedList",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "FollowupUnorderedList",
      "type": "object"
    },
    "Handout": {
      "properties": {
        "content_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content Type"
        },
        "created_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created Date"
        },
        "deleted_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "original_filename": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Original Filename"
        },
        "type_name": {
          "$ref": "#/$defs/HandoutTypeName"
        },
        "vis_barcode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vis Barcode"
        }
      },
      "required": [
        "id",
        "name",
        "type_name"
      ],
      "title": "Handout",
      "type": "object"
    },
    "HandoutBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/HandoutBlockAttrs-Input"
        },
        "type": {
          "const": "handout",
          "default": "handout",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "HandoutBlock",
      "type": "object"
    },
    "HandoutBlockAttrs-Input": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "handout": {
          "$ref": "#/$defs/Handout"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "handout"
      ],
      "title": "HandoutBlockAttrs",
      "type": "object"
    },
    "HandoutTypeName": {
      "description": "Handout kind. Hippo reconciles this into its integer ``type`` if needed.",
      "enum": [
        "Patient Resource",
        "VIS"
      ],
      "title": "HandoutTypeName",
      "type": "string"
    },
    "ImagingOrderBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/ImagingOrderBlockAttrs-Input"
        },
        "type": {
          "const": "imagingOrder",
          "default": "imagingOrder",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "ImagingOrderBlock",
      "type": "object"
    },
    "ImagingOrderBlockAttrs-Input": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "order": {
          "$ref": "#/$defs/ImagingOrderSummary"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "order"
      ],
      "title": "ImagingOrderBlockAttrs",
      "type": "object"
    },
    "ImagingOrderSummary": {
      "properties": {
        "clinical_reason": {
          "title": "Clinical Reason",
          "type": "string"
        },
        "confidential": {
          "title": "Confidential",
          "type": "boolean"
        },
        "created_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created Date"
        },
        "date_for_test": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date For Test"
        },
        "deleted_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "icd10_codes": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Icd10 Codes",
          "type": "array"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "signed_by": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed By"
        },
        "signed_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Date"
        },
        "tests": {
          "default": [],
          "items": {
            "$ref": "#/$defs/ImagingOrderTest"
          },
          "title": "Tests",
          "type": "array"
        }
      },
      "required": [
        "id",
        "clinical_reason",
        "confidential"
      ],
      "title": "ImagingOrderSummary",
      "type": "object"
    },
    "ImagingOrderTest": {
      "properties": {
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "name": {
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "title": "ImagingOrderTest",
      "type": "object"
    },
    "Immunization": {
      "properties": {
        "administered_date": {
          "title": "Administered Date",
          "type": "string"
        },
        "administering_physician": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Administering Physician"
        },
        "created_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created Date"
        },
        "deleted_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "dose_in_series": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dose In Series"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "lot_number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lot Number"
        },
        "method": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Method"
        },
        "ordering_physician": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ordering Physician"
        },
        "patient_id": {
          "title": "Patient Id",
          "type": "integer"
        },
        "qty": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Qty"
        },
        "qty_units": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Qty Units"
        },
        "site": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Site"
        },
        "vaccine": {
          "$ref": "#/$defs/ImmunizationVaccine"
        }
      },
      "required": [
        "administered_date",
        "id",
        "patient_id"
      ],
      "title": "Immunization",
      "type": "object"
    },
    "ImmunizationVaccine": {
      "properties": {
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        }
      },
      "title": "ImmunizationVaccine",
      "type": "object"
    },
    "Injection": {
      "properties": {
        "deleted_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "dose": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dose"
        },
        "dose_unit": {
          "anyOf": [
            {
              "$ref": "#/$defs/InjectionDoseUnit"
            },
            {
              "type": "null"
            }
          ]
        },
        "given_by_user_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Given By User Id"
        },
        "given_date": {
          "title": "Given Date",
          "type": "string"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "is_confidential": {
          "default": false,
          "title": "Is Confidential",
          "type": "boolean"
        },
        "is_new": {
          "default": false,
          "title": "Is New",
          "type": "boolean"
        },
        "method": {
          "anyOf": [
            {
              "$ref": "#/$defs/InjectionMethod"
            },
            {
              "type": "null"
            }
          ]
        },
        "patient_id": {
          "title": "Patient Id",
          "type": "integer"
        },
        "practice_id": {
          "title": "Practice Id",
          "type": "integer"
        },
        "reference_medication_id": {
          "title": "Reference Medication Id",
          "type": "integer"
        },
        "signed_by": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed By"
        },
        "signed_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Date"
        }
      },
      "required": [
        "given_date",
        "id",
        "patient_id",
        "practice_id",
        "reference_medication_id"
      ],
      "title": "Injection",
      "type": "object"
    },
    "InjectionBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/InjectionBlockAttrs-Input"
        },
        "type": {
          "const": "injection",
          "default": "injection",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "InjectionBlock",
      "type": "object"
    },
    "InjectionBlockAttrs-Input": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "injection": {
          "$ref": "#/$defs/Injection"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "injection"
      ],
      "title": "InjectionBlockAttrs",
      "type": "object"
    },
    "InjectionDoseUnit": {
      "enum": [
        "dL",
        "g",
        "kg",
        "kL",
        "L",
        "mCi",
        "mg",
        "mL",
        "ug",
        "uL",
        "tab"
      ],
      "title": "InjectionDoseUnit",
      "type": "string"
    },
    "InjectionMethod": {
      "enum": [
        "Intravenous",
        "Intramuscular",
        "Subcutaneous",
        "Intradermal",
        "Other"
      ],
      "title": "InjectionMethod",
      "type": "string"
    },
    "InstructionParagraphAttrs": {
      "properties": {
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "title": "InstructionParagraphAttrs",
      "type": "object"
    },
    "InstructionsListItem-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "description": "List-item children, capped at two: a single child must be a paragraph, and a second child (if present) must be a nested ordered or unordered list. Shape is [paragraph] or [paragraph, nested list].",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/InstructionsParagraph-Input"
              },
              {
                "$ref": "#/$defs/InstructionsUnorderedList-Input"
              },
              {
                "$ref": "#/$defs/InstructionsOrderedList-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "instructionsListItem",
          "default": "instructionsListItem",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "InstructionsListItem",
      "type": "object"
    },
    "InstructionsOrderedList-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "items": {
            "$ref": "#/$defs/InstructionsListItem-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "instructionsOrderedList",
          "default": "instructionsOrderedList",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "InstructionsOrderedList",
      "type": "object"
    },
    "InstructionsParagraph-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/InstructionParagraphAttrs"
        },
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/TextInline-Input"
              },
              {
                "$ref": "#/$defs/LineBreakInline"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "instructionsParagraph",
          "default": "instructionsParagraph",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "InstructionsParagraph",
      "type": "object"
    },
    "InstructionsSection-Input": {
      "properties": {
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/InstructionsParagraph-Input"
              },
              {
                "$ref": "#/$defs/InstructionsUnorderedList-Input"
              },
              {
                "$ref": "#/$defs/InstructionsOrderedList-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "instructions",
          "default": "instructions",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "InstructionsSection",
      "type": "object"
    },
    "InstructionsUnorderedList-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "items": {
            "$ref": "#/$defs/InstructionsListItem-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "instructionsUnorderedList",
          "default": "instructionsUnorderedList",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "InstructionsUnorderedList",
      "type": "object"
    },
    "LabOrderBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/LabOrderBlockAttrs-Input"
        },
        "type": {
          "const": "labOrder",
          "default": "labOrder",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "LabOrderBlock",
      "type": "object"
    },
    "LabOrderBlockAttrs-Input": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "order": {
          "$ref": "#/$defs/LabOrderSummary"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "order"
      ],
      "title": "LabOrderBlockAttrs",
      "type": "object"
    },
    "LabOrderFastingMethod": {
      "enum": [
        "fasting_12_hour",
        "fasting_8_hours",
        "fasting_2_hours",
        "fasting_none",
        "fasting_random"
      ],
      "title": "LabOrderFastingMethod",
      "type": "string"
    },
    "LabOrderSummary": {
      "properties": {
        "confidential": {
          "title": "Confidential",
          "type": "boolean"
        },
        "created_date": {
          "format": "date-time",
          "title": "Created Date",
          "type": "string"
        },
        "deleted_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "fasting_method": {
          "$ref": "#/$defs/LabOrderFastingMethod"
        },
        "icd10_codes": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Icd10 Codes",
          "type": "array"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "signed_by": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed By"
        },
        "signed_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Date"
        },
        "tests": {
          "default": [],
          "items": {
            "$ref": "#/$defs/LabOrderTest"
          },
          "title": "Tests",
          "type": "array"
        },
        "vendor_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vendor Id"
        }
      },
      "required": [
        "id",
        "confidential",
        "fasting_method",
        "created_date"
      ],
      "title": "LabOrderSummary",
      "type": "object"
    },
    "LabOrderTest": {
      "properties": {
        "code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Code"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "name": {
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "title": "LabOrderTest",
      "type": "object"
    },
    "LineBreakInline": {
      "description": "Hard line break. No attrs, no content.",
      "properties": {
        "type": {
          "const": "lineBreak",
          "default": "lineBreak",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "LineBreakInline",
      "type": "object"
    },
    "NarrativeListItem-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "description": "List-item children, capped at two: a single child must be a paragraph, and a second child (if present) must be a nested ordered or unordered list. Shape is [paragraph] or [paragraph, nested list].",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/NarrativeParagraph-Input"
              },
              {
                "$ref": "#/$defs/NarrativeUnorderedList-Input"
              },
              {
                "$ref": "#/$defs/NarrativeOrderedList-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "narrativeListItem",
          "default": "narrativeListItem",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "NarrativeListItem",
      "type": "object"
    },
    "NarrativeOrderedList-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "items": {
            "$ref": "#/$defs/NarrativeListItem-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "narrativeOrderedList",
          "default": "narrativeOrderedList",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "NarrativeOrderedList",
      "type": "object"
    },
    "NarrativeParagraph-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/NarrativeParagraphAttrs"
        },
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/TextInline-Input"
              },
              {
                "$ref": "#/$defs/LineBreakInline"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "narrativeParagraph",
          "default": "narrativeParagraph",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "NarrativeParagraph",
      "type": "object"
    },
    "NarrativeParagraphAttrs": {
      "properties": {
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "title": "NarrativeParagraphAttrs",
      "type": "object"
    },
    "NarrativeSection-Input": {
      "properties": {
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/NarrativeParagraph-Input"
              },
              {
                "$ref": "#/$defs/NarrativeUnorderedList-Input"
              },
              {
                "$ref": "#/$defs/NarrativeOrderedList-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "narrative",
          "default": "narrative",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "NarrativeSection",
      "type": "object"
    },
    "NarrativeUnorderedList-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "items": {
            "$ref": "#/$defs/NarrativeListItem-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "narrativeUnorderedList",
          "default": "narrativeUnorderedList",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "NarrativeUnorderedList",
      "type": "object"
    },
    "OrdersSection-Input": {
      "properties": {
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/PrescriptionBlock-Input"
              },
              {
                "$ref": "#/$defs/LabOrderBlock-Input"
              },
              {
                "$ref": "#/$defs/ImagingOrderBlock-Input"
              },
              {
                "$ref": "#/$defs/ReferralBlock-Input"
              },
              {
                "$ref": "#/$defs/CardiacOrderBlock-Input"
              },
              {
                "$ref": "#/$defs/PulmonaryOrderBlock-Input"
              },
              {
                "$ref": "#/$defs/SleepOrderBlock-Input"
              },
              {
                "$ref": "#/$defs/PatientImmunizationBlock-Input"
              },
              {
                "$ref": "#/$defs/InjectionBlock-Input"
              },
              {
                "$ref": "#/$defs/HandoutBlock-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "orders",
          "default": "orders",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "OrdersSection",
      "type": "object"
    },
    "PatientImmunizationAttrs-Input": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "immunization": {
          "$ref": "#/$defs/Immunization"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "immunization"
      ],
      "title": "PatientImmunizationAttrs",
      "type": "object"
    },
    "PatientImmunizationBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/PatientImmunizationAttrs-Input"
        },
        "type": {
          "const": "patientImmunization",
          "default": "patientImmunization",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "PatientImmunizationBlock",
      "type": "object"
    },
    "PrescriptionBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/PrescriptionBlockAttrs"
        },
        "type": {
          "const": "prescription",
          "default": "prescription",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "PrescriptionBlock",
      "type": "object"
    },
    "PrescriptionBlockAttrs": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "prescription": {
          "$ref": "#/$defs/PrescriptionSummary"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "prescription"
      ],
      "title": "PrescriptionBlockAttrs",
      "type": "object"
    },
    "PrescriptionSummary": {
      "properties": {
        "created_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created Date"
        },
        "days_supply": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Days Supply"
        },
        "directions": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Directions"
        },
        "icd10_codes": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Icd10 Codes",
          "type": "array"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "instructions_to_pharmacy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Instructions To Pharmacy"
        },
        "is_document_med": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": false,
          "title": "Is Document Med"
        },
        "medication_display_name": {
          "title": "Medication Display Name",
          "type": "string"
        },
        "medication_id": {
          "title": "Medication Id",
          "type": "integer"
        },
        "medication_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Medication Type"
        },
        "num_samples": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Num Samples"
        },
        "quantity": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quantity"
        },
        "quantity_units": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quantity Units"
        },
        "refills": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Refills"
        },
        "signed_by": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed By"
        },
        "signed_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Date"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        }
      },
      "required": [
        "id",
        "medication_display_name",
        "medication_id"
      ],
      "title": "PrescriptionSummary",
      "type": "object"
    },
    "Procedure-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/ProcedureAttrs"
        },
        "type": {
          "const": "procedure",
          "default": "procedure",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "Procedure",
      "type": "object"
    },
    "ProcedureAttrs": {
      "properties": {
        "cpt_code": {
          "$ref": "#/$defs/CptCode"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "cpt_code"
      ],
      "title": "ProcedureAttrs",
      "type": "object"
    },
    "ProcedureListItem-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "description": "List-item children, capped at two: a single child must be a paragraph, and a second child (if present) must be a nested ordered or unordered list. Shape is [paragraph] or [paragraph, nested list].",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/ProcedureParagraph-Input"
              },
              {
                "$ref": "#/$defs/ProcedureUnorderedList-Input"
              },
              {
                "$ref": "#/$defs/ProcedureOrderedList-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "proceduresListItem",
          "default": "proceduresListItem",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "ProcedureListItem",
      "type": "object"
    },
    "ProcedureOrderedList-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "items": {
            "$ref": "#/$defs/ProcedureListItem-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "proceduresOrderedList",
          "default": "proceduresOrderedList",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "ProcedureOrderedList",
      "type": "object"
    },
    "ProcedureParagraph-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/ProcedureParagraphAttrs"
        },
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/TextInline-Input"
              },
              {
                "$ref": "#/$defs/LineBreakInline"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "proceduresParagraph",
          "default": "proceduresParagraph",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "ProcedureParagraph",
      "type": "object"
    },
    "ProcedureParagraphAttrs": {
      "properties": {
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "title": "ProcedureParagraphAttrs",
      "type": "object"
    },
    "ProcedureSection-Input": {
      "properties": {
        "content": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/Procedure-Input"
              },
              {
                "$ref": "#/$defs/ProcedureParagraph-Input"
              },
              {
                "$ref": "#/$defs/ProcedureUnorderedList-Input"
              },
              {
                "$ref": "#/$defs/ProcedureOrderedList-Input"
              }
            ]
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "procedures",
          "default": "procedures",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "ProcedureSection",
      "type": "object"
    },
    "ProcedureUnorderedList-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/AttrsWithRefId"
        },
        "content": {
          "items": {
            "$ref": "#/$defs/ProcedureListItem-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "proceduresUnorderedList",
          "default": "proceduresUnorderedList",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "ProcedureUnorderedList",
      "type": "object"
    },
    "PulmonaryOrderBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/PulmonaryOrderBlockAttrs-Input"
        },
        "type": {
          "const": "pulmonaryOrder",
          "default": "pulmonaryOrder",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "PulmonaryOrderBlock",
      "type": "object"
    },
    "PulmonaryOrderBlockAttrs-Input": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "order": {
          "$ref": "#/$defs/PulmonaryOrderSummary"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "order"
      ],
      "title": "PulmonaryOrderBlockAttrs",
      "type": "object"
    },
    "PulmonaryOrderSummary": {
      "properties": {
        "allergies": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Allergies"
        },
        "clinical_reason": {
          "title": "Clinical Reason",
          "type": "string"
        },
        "confidential": {
          "title": "Confidential",
          "type": "boolean"
        },
        "created_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created Date"
        },
        "date_for_test": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date For Test"
        },
        "deleted_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "icd10_codes": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Icd10 Codes",
          "type": "array"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "signed_by": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed By"
        },
        "signed_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Date"
        },
        "tests": {
          "default": [],
          "items": {
            "$ref": "#/$defs/PulmonaryOrderTest"
          },
          "title": "Tests",
          "type": "array"
        }
      },
      "required": [
        "id",
        "clinical_reason",
        "confidential"
      ],
      "title": "PulmonaryOrderSummary",
      "type": "object"
    },
    "PulmonaryOrderTest": {
      "properties": {
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "name": {
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "title": "PulmonaryOrderTest",
      "type": "object"
    },
    "ReferencedDocument-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/ReferencedDocumentAttrs"
        },
        "type": {
          "const": "referencedDocument",
          "default": "referencedDocument",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "ReferencedDocument",
      "type": "object"
    },
    "ReferencedDocumentAttrs": {
      "properties": {
        "document": {
          "$ref": "#/$defs/ReferencedDocumentData"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "document"
      ],
      "title": "ReferencedDocumentAttrs",
      "type": "object"
    },
    "ReferencedDocumentData": {
      "description": "Structured reference to a hippo document (e.g. a lab/imaging report).\n\nMirrors the VN1 reference-bullet payload: ``id`` is the report/document id,\n``lab_result_id`` identifies an individual lab result within a lab report,\n``summary`` is the link text shown in the UI, and ``summary_formatting``\ncarries optional VN1-style decoration offsets (kept for backport parity).",
      "properties": {
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "lab_result_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Lab Result Id"
        },
        "summary": {
          "default": "",
          "title": "Summary",
          "type": "string"
        },
        "summary_formatting": {
          "items": {},
          "title": "Summary Formatting",
          "type": "array"
        }
      },
      "required": [
        "id"
      ],
      "title": "ReferencedDocumentData",
      "type": "object"
    },
    "ReferencedDocumentsSection-Input": {
      "properties": {
        "content": {
          "items": {
            "$ref": "#/$defs/ReferencedDocument-Input"
          },
          "title": "Content",
          "type": "array"
        },
        "type": {
          "const": "referencedDocuments",
          "default": "referencedDocuments",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "ReferencedDocumentsSection",
      "type": "object"
    },
    "ReferralBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/ReferralBlockAttrs"
        },
        "type": {
          "const": "referral",
          "default": "referral",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "ReferralBlock",
      "type": "object"
    },
    "ReferralBlockAttrs": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        },
        "referral": {
          "$ref": "#/$defs/el8_note_models__note__sections__shared__ReferralSummary"
        }
      },
      "required": [
        "entity_id",
        "referral"
      ],
      "title": "ReferralBlockAttrs",
      "type": "object"
    },
    "SleepOrderBlock-Input": {
      "properties": {
        "attrs": {
          "$ref": "#/$defs/SleepOrderBlockAttrs-Input"
        },
        "type": {
          "const": "sleepOrder",
          "default": "sleepOrder",
          "title": "Type",
          "type": "string"
        }
      },
      "required": [
        "attrs"
      ],
      "title": "SleepOrderBlock",
      "type": "object"
    },
    "SleepOrderBlockAttrs-Input": {
      "properties": {
        "entity_id": {
          "title": "Entity Id",
          "type": "integer"
        },
        "order": {
          "$ref": "#/$defs/SleepOrderSummary"
        },
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        }
      },
      "required": [
        "entity_id",
        "order"
      ],
      "title": "SleepOrderBlockAttrs",
      "type": "object"
    },
    "SleepOrderSummary": {
      "properties": {
        "clinical_reason": {
          "title": "Clinical Reason",
          "type": "string"
        },
        "confidential": {
          "title": "Confidential",
          "type": "boolean"
        },
        "created_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created Date"
        },
        "date_for_test": {
          "anyOf": [
            {
              "format": "date",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date For Test"
        },
        "deleted_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "icd10_codes": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Icd10 Codes",
          "type": "array"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "signed_by": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed By"
        },
        "signed_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Date"
        },
        "tests": {
          "default": [],
          "items": {
            "$ref": "#/$defs/SleepOrderTest"
          },
          "title": "Tests",
          "type": "array"
        }
      },
      "required": [
        "id",
        "clinical_reason",
        "confidential"
      ],
      "title": "SleepOrderSummary",
      "type": "object"
    },
    "SleepOrderTest": {
      "properties": {
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "name": {
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "title": "SleepOrderTest",
      "type": "object"
    },
    "TextInline-Input": {
      "description": "Plain text run.\n\nThis node has NO ``attrs``: both ``text`` and ``marks`` are top-level keys.\nThis is the one deliberate exception to the type/attrs/content rule\ndocumented at the top of this module — it mirrors the VN2 TextNode wire\nshape verbatim (and ProseMirror's text node, where ``text`` and ``marks``\nsit beside ``type`` with no ``attrs``), keeping the two schema-compatible.",
      "properties": {
        "marks": {
          "default": [],
          "items": {
            "$ref": "#/$defs/TextInlineMark"
          },
          "title": "Marks",
          "type": "array"
        },
        "text": {
          "default": "",
          "title": "Text",
          "type": "string"
        },
        "type": {
          "const": "text",
          "default": "text",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "TextInline",
      "type": "object"
    },
    "TextInlineMark": {
      "description": "A single formatting mark applied to a TextInline run.",
      "properties": {
        "type": {
          "$ref": "#/$defs/el8_note_models__note__sections__shared__TextBlockMarkTypes"
        }
      },
      "required": [
        "type"
      ],
      "title": "TextInlineMark",
      "type": "object"
    },
    "VitalBMI": {
      "properties": {
        "bmi": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bmi"
        },
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        }
      },
      "title": "VitalBMI",
      "type": "object"
    },
    "VitalBP": {
      "properties": {
        "bp_d": {
          "default": "",
          "title": "Bp D",
          "type": "string"
        },
        "bp_s": {
          "default": "",
          "title": "Bp S",
          "type": "string"
        },
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        }
      },
      "title": "VitalBP",
      "type": "object"
    },
    "VitalFiO2": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "percent": {
          "default": "",
          "title": "Percent",
          "type": "string"
        }
      },
      "title": "VitalFiO2",
      "type": "object"
    },
    "VitalHC": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "hc": {
          "default": "",
          "title": "Hc",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        }
      },
      "title": "VitalHC",
      "type": "object"
    },
    "VitalHR": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "hr": {
          "default": "",
          "title": "Hr",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        }
      },
      "title": "VitalHR",
      "type": "object"
    },
    "VitalHeight": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "height": {
          "default": "",
          "title": "Height",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        }
      },
      "title": "VitalHeight",
      "type": "object"
    },
    "VitalOxygen": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "percent": {
          "default": "",
          "title": "Percent",
          "type": "string"
        }
      },
      "title": "VitalOxygen",
      "type": "object"
    },
    "VitalPain": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "pain": {
          "default": "",
          "title": "Pain",
          "type": "string"
        }
      },
      "title": "VitalPain",
      "type": "object"
    },
    "VitalRR": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "rr": {
          "default": "",
          "title": "Rr",
          "type": "string"
        }
      },
      "title": "VitalRR",
      "type": "object"
    },
    "VitalTemperature": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "temperature": {
          "default": "",
          "title": "Temperature",
          "type": "string"
        }
      },
      "title": "VitalTemperature",
      "type": "object"
    },
    "VitalWeight": {
      "properties": {
        "edited_by_scribe": {
          "default": false,
          "title": "Edited By Scribe",
          "type": "boolean"
        },
        "extra_note": {
          "default": "",
          "title": "Extra Note",
          "type": "string"
        },
        "id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "weight": {
          "default": "",
          "title": "Weight",
          "type": "string"
        }
      },
      "title": "VitalWeight",
      "type": "object"
    },
    "VitalsSection-Input": {
      "description": "Tier-1 vitals section; attrs mirror VN2 ``VitalsNode``.",
      "properties": {
        "attrs": {
          "$ref": "#/$defs/VitalsSectionAttrs-Input"
        },
        "type": {
          "const": "vitals",
          "default": "vitals",
          "title": "Type",
          "type": "string"
        }
      },
      "title": "VitalsSection",
      "type": "object"
    },
    "VitalsSectionAttrs-Input": {
      "properties": {
        "ref_id": {
          "title": "Ref Id",
          "type": "string"
        },
        "vitals": {
          "$ref": "#/$defs/el8_note_models__note__sections__vitals_section__Vitals"
        },
        "vitals_collection_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Vitals Collection Id"
        }
      },
      "title": "VitalsSectionAttrs",
      "type": "object"
    },
    "el8_note_models__note__sections__shared__ReferralSummary": {
      "properties": {
        "authorization_for": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Authorization For"
        },
        "clinical_reason": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Clinical Reason"
        },
        "confidential": {
          "default": false,
          "title": "Confidential",
          "type": "boolean"
        },
        "consultant_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Consultant Name"
        },
        "created_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created Date"
        },
        "deleted_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deleted Date"
        },
        "icd10_codes": {
          "default": [],
          "items": {
            "type": "string"
          },
          "title": "Icd10 Codes",
          "type": "array"
        },
        "id": {
          "title": "Id",
          "type": "integer"
        },
        "signed_by_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed By Id"
        },
        "signed_date": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signed Date"
        },
        "specialty_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Specialty Name"
        }
      },
      "required": [
        "id"
      ],
      "title": "ReferralSummary",
      "type": "object"
    },
    "el8_note_models__note__sections__shared__TextBlockMarkTypes": {
      "description": "Formatting marks a text run can carry.\n\nSupports ``bold``, ``italic``, ``strike`` (strikethrough), and ``underline``.",
      "enum": [
        "bold",
        "italic",
        "strike",
        "underline"
      ],
      "title": "TextBlockMarkTypes",
      "type": "string"
    },
    "el8_note_models__note__sections__vitals_section__Vitals": {
      "properties": {
        "bmi": {
          "items": {
            "$ref": "#/$defs/VitalBMI"
          },
          "title": "Bmi",
          "type": "array"
        },
        "bp": {
          "items": {
            "$ref": "#/$defs/VitalBP"
          },
          "title": "Bp",
          "type": "array"
        },
        "fio2": {
          "items": {
            "$ref": "#/$defs/VitalFiO2"
          },
          "title": "Fio2",
          "type": "array"
        },
        "hc": {
          "items": {
            "$ref": "#/$defs/VitalHC"
          },
          "title": "Hc",
          "type": "array"
        },
        "height": {
          "items": {
            "$ref": "#/$defs/VitalHeight"
          },
          "title": "Height",
          "type": "array"
        },
        "hr": {
          "items": {
            "$ref": "#/$defs/VitalHR"
          },
          "title": "Hr",
          "type": "array"
        },
        "oxygen": {
          "items": {
            "$ref": "#/$defs/VitalOxygen"
          },
          "title": "Oxygen",
          "type": "array"
        },
        "pain": {
          "items": {
            "$ref": "#/$defs/VitalPain"
          },
          "title": "Pain",
          "type": "array"
        },
        "rr": {
          "items": {
            "$ref": "#/$defs/VitalRR"
          },
          "title": "Rr",
          "type": "array"
        },
        "temperature": {
          "items": {
            "$ref": "#/$defs/VitalTemperature"
          },
          "title": "Temperature",
          "type": "array"
        },
        "weight": {
          "items": {
            "$ref": "#/$defs/VitalWeight"
          },
          "title": "Weight",
          "type": "array"
        }
      },
      "title": "Vitals",
      "type": "object"
    }
  }
}