clinik.intakes namespace manages FHIR QuestionnaireResponse resources — completed patient intake forms. Each intake contains structured question-and-answer pairs with typed values, making form data both human-readable and machine-processable. Intakes support nine answer types, from free text and booleans to SNOMED-coded responses and measurement quantities.
submit
Submit a completed intake form.patientId and items are required. This method is equivalent to create but uses the domain-specific name to reflect the patient-facing workflow.
ID of the patient who completed the form.
Array of question-answer pairs. Each item requires a
linkId (unique question identifier) and an answer array. See answer types below.Encounter associated with this intake.
ID of the person who filled out the form (may differ from the patient).
ID of the person who provided the answers.
URL or canonical reference to the
Questionnaire definition this response answers.Response status. Accepted values:
in-progress, completed, amended, stopped.ISO 8601 datetime when the answers were gathered.
Example
Nest items inside a parent item’s
items array to represent grouped or section-based questions, such as a vitals panel.Answer types
Each answer in ananswer array uses exactly one typed value field:
| Field | Type | Use case |
|---|---|---|
valueString | string | Free-text answers |
valueBoolean | boolean | Yes / no questions |
valueInteger | number | Whole-number values |
valueDecimal | number | Decimal-precision values |
valueDate | string | Date answers (YYYY-MM-DD) |
valueDateTime | string | Date-time answers (ISO 8601) |
valueCoding | { system?: string; code: string; display?: string } | Coded answers (SNOMED, ICD, etc.) |
valueQuantity | { value: number; unit?: string } | Measurements with units |
valueUri | string | URI answers |
read
Fetch a single intake by ID.update
Amend a submitted intake. Useful when new information comes to light after initial submission.Example: add a newly reported allergy
delete
Permanently delete an intake record.search
Search intake responses with optional filters and cursor pagination.Filter by patient.
Filter by response status.
Return intakes authored on or after this date.
Return intakes authored on or before this date.
Results per page. Maximum is
100.Pagination cursor from a previous response.