Open API
Restriksi Obat

Submit prescriptions + supporting documents for FORNAS validation

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.

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)
  • Auth
    none declared. Required headers: X-API-Key

Headers

X-API-Keystring required

Request body multipart/form-data

filesstring[]

Supporting documents (PDF, PNG, JPEG, TIFF)

metadatastring required

JSON metadata: external_encounter_id, patient_profile, current_prescriptions, historical_prescriptions?, supporting_documents?, file_documents (one per uploaded file)

Response

Successful Response

encounter_idstring required
external_encounter_idstring required
statusstring

Changes

No recorded changes to this operation across all 1 revision of this API.