---
title: "Submit prescriptions + supporting documents for FORNAS validation"
method: POST
path: "/api/v1/drugs/restriction"
tags: ["Open API", "Restriksi Obat"]
---

# Submit prescriptions + supporting documents for FORNAS validation

`POST /api/v1/drugs/restriction`

## Request

- Base URL: `https://developer.claimmind.life` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.claimmind.life/api/v1/drugs/restriction`
- Auth: none declared. Required headers: `X-API-Key`

Async fire-and-forget submit, mirroring the Temporal drugs contract. Metadata carries the full clinical payload (patient_profile with a main diagnosis, rich current_prescriptions, optional history/supporting documents) plus one file_documents entry per uploaded file (document_type + date, paired by filename -- unpaired entries are rejected). Files are stored to the configured storage backend with per-file sha256. Creates the encounter row (status=processing) and returns 202 with the DB-backed encounter_id. Workflow hand-off is best-effort and gated.

## Headers

- `X-API-Key` string, required

## Request body `multipart/form-data`

- BodySubmitRestrictionApiV1DrugsRestrictionPost
  - `files` string[]: Supporting documents (PDF, PNG, JPEG, TIFF)
  - `metadata` string, required: JSON metadata: external_encounter_id, patient_profile, current_prescriptions, historical_prescriptions?, supporting_documents?, file_documents (one per uploaded file)

## Response `202`

Successful Response

- RestrictionSubmitResponse: Response for POST /drugs/restriction.
  - `encounter_id` string, required
  - `external_encounter_id` string, required
  - `status` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/claimmind/apis/claimmind-open-api-service.md) - [All operations](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/llms.txt) - [OpenAPI document](https://skmtc.dev/claimmind/apis/claimmind-open-api-service/revisions/ee8bfbeadb8a?raw)
