Anamnesis
The Anamnesis API allows external providers to submit medical questionnaire responses (anamnesis data) and connect them to patients in the RxScale system.Base Path
Authentication
All endpoints require an API key via theX-API-Key header. See Authentication for details.
The legacy
X-RxScale-Authorization header is also supported for backward compatibility but X-API-Key is recommended for new integrations.Submit External Anamnesis
Submit anamnesis data from an external provider for a specific questionnaire.The UID of the questionnaire to submit against
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
data | object | Yes | The anamnesis response data. Structure depends on the questionnaire definition |
anamnesis_provider_uid | string | Yes | Your anamnesis provider UID (provided by RxScale) |
external_identifier | string | Yes | Your external identifier for this submission (for tracking) |
Example Request
The
data object structure must match the fields defined in the questionnaire. Contact your RxScale account manager to get the questionnaire schema.Connect Anamnesis to Patient
Link a submitted anamnesis to a patient profile using their shop customer ID.The UID of the anamnesis submission to connect
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
shop_identifier | string | Yes | Your shop identifier |
shop_patient_id | string | Yes | The customer ID from your shop system |
Example Request
Typical Integration Flow
Submit Anamnesis
Your external system collects patient questionnaire responses and submits them via the external submissions endpoint.
Receive Anamnesis UID
The API returns an anamnesis UID that you store alongside the submission in your system.
Connect to Patient
When the patient is identified in your shop (e.g., during checkout), connect the anamnesis to their patient profile.