Home Schema Example JSON Schema

Submission Comment


Content schema for submission comment.

Type: object
No Additional Properties

Content

Type: string

Content in markup language.

Must be at least 1 characters long

Entities

Type: array of object

Array of entities that are "tagged" in the submission.

No Additional Items

Each item of this array must be:

Type: object
No Additional Properties

Type

Type: enum (of string)

The entity type being tagged.

Must be one of:

  • "clinician"

Start

Type: integer

Start index of the entity in the content. Starts from 0.

Value must be greater or equal to 0

Length

Type: integer

Length of the entity in the content.

Value must be greater or equal to 1

Clinician

Type: object

Information about the clinician being tagged.

No Additional Properties

UID

Type: string

UID of clinician.

Must be at least 1 characters long

Name

Type: string

Name of clinician. Note that this is set by the client (i.e., frontend), it will not be updated by the backend and is thus not a trustworthy source of the most up-to-date name of the clinician. A reasonable alternative will be the taggedClinicians field on the cleoSubmissionComment GQL type. Thus, this field is optional and is used for display purposes only.

Must be at least 1 characters long

Non-empty Strings

Type: string

Convenience schema for validating non-empty strings.

Must be at least 1 characters long