Rekamedika Docs
Farmasi

farmasi.resepForEncounter

GET
/trpc/farmasi.resepForEncounter

Tenant-scoped tRPC query farmasi.resepForEncounter. Requires a verified session cookie or an OAuth Bearer token; OAuth callers additionally need the simrs:read scope. All reads are filtered to the caller's tenant.

Authorization

AuthorizationBearer <token>

OAuth 2.0 / OIDC issued by the API itself (better-auth oidcProvider). Dynamic client registration per RFC 7591 at /api/auth/oauth2/register.

In: header

Scope: simrs:read

Query Parameters

input*

URL-encoded JSON of the procedure input (tRPC HTTP GET wire format).

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/trpc/farmasi.resepForEncounter?input=%7B%22noRawat%22%3A%22string%22%7D"
{  "result": {    "data": null  }}
{  "error": {    "message": "string",    "code": 0,    "data": {      "code": "string",      "httpStatus": 0,      "path": "string"    }  }}
{  "error": {    "message": "string",    "code": 0,    "data": {      "code": "string",      "httpStatus": 0,      "path": "string"    }  }}
{  "error": {    "message": "string",    "code": 0,    "data": {      "code": "string",      "httpStatus": 0,      "path": "string"    }  }}
{  "error": {    "message": "string",    "code": 0,    "data": {      "code": "string",      "httpStatus": 0,      "path": "string"    }  }}

Is this page helpful?