← Technical API reference

Frontend module · STATIC DECLARATIONS

Prescription Api client API reference · mansoq-web-teleicu

7 client route/call declarations with path parameters, named payload/response types and source references. Exact server acceptance and permissions require the matched backend contract.

Static API contract — behavior review pending. Source baseline f6e9f05f76d4.

Enable JavaScript to inspect structured operation, parameter, schema and permission evidence. Download this reference and its evidence.

Client contract scope

These 7 declarations come from repositories/teleicu/mansoq-web-teleicu/src/types/emr/prescription/prescriptionApi.ts. Client types and noAuth flags describe the caller; they do not authorize a server action. Dynamic paths and missing backend matches are retained as review work, not repaired into invented endpoints.

Operation map

Client method HTTP method Path pattern Resolution
default.list GET /api/v1/patient/{patientId}/medication/prescription/ literal
default.get GET /api/v1/patient/{patientId}/medication/prescription/{id}/ literal
default.update PUT /api/v1/patient/{patientId}/medication/prescription/{id}/ literal
default.upsert POST /api/v1/patient/{patientId}/medication/prescription/upsert/ literal
default.setTags POST /api/v1/patient/{patientId}/medication/prescription/{external_id}/set_tags/ literal
default.removeTags POST /api/v1/patient/{patientId}/medication/prescription/{external_id}/remove_tags/ literal
default.summary GET /api/v1/facility/{facilityId}/medication_prescription/summary/ literal

default.list

GET /api/v1/patient/{patientId}/medication/prescription/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: patientId. Transport strings are declared here; semantic identifier types require the server contract.

response type: PaginatedResponse<PrescriptionList>. client-side declaration; not proof of accepted server payload.

PaginatedResponse declared fields:

Field Type Required Description
count number true —
results TItem[] true —

PrescriptionList declared fields:

Field Type Required Description
prescribed_by UserReadMinimal true —
encounter EncounterRead true —
created_date string true —
tags TagConfig[] true —

Composed/inherited schema references: Prescription. Exact generic composition is retained in the structured reference and requires server-side confirmation.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.get

GET /api/v1/patient/{patientId}/medication/prescription/{id}/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: patientId, id. Transport strings are declared here; semantic identifier types require the server contract.

response type: PrescriptionRead. client-side declaration; not proof of accepted server payload.

PrescriptionRead declared fields:

Field Type Required Description
prescribed_by UserReadMinimal true —
encounter EncounterRead true —
created_date string true —
medications MedicationRequestRead[] true —
tags TagConfig[] false —

Composed/inherited schema references: Prescription. Exact generic composition is retained in the structured reference and requires server-side confirmation.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.update

PUT /api/v1/patient/{patientId}/medication/prescription/{id}/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: patientId, id. Transport strings are declared here; semantic identifier types require the server contract.

response type: PrescriptionRead. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.upsert

POST /api/v1/patient/{patientId}/medication/prescription/upsert/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: patientId. Transport strings are declared here; semantic identifier types require the server contract.

response type: PrescriptionRead. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.setTags

POST /api/v1/patient/{patientId}/medication/prescription/{external_id}/set_tags/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: patientId, external_id. Transport strings are declared here; semantic identifier types require the server contract.

request type: object. client-side declaration; not proof of accepted server payload.

default.setTags.request declared fields:

Field Type Required Description
tags string[] true —

response type: unknown. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.removeTags

POST /api/v1/patient/{patientId}/medication/prescription/{external_id}/remove_tags/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: patientId, external_id. Transport strings are declared here; semantic identifier types require the server contract.

request type: object. client-side declaration; not proof of accepted server payload.

default.removeTags.request declared fields:

Field Type Required Description
tags string[] true —

response type: unknown. client-side declaration; not proof of accepted server payload.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

default.summary

GET /api/v1/facility/{facilityId}/medication_prescription/summary/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId. Transport strings are declared here; semantic identifier types require the server contract.

response type: PaginatedResponse<PrescriptionSummary>. client-side declaration; not proof of accepted server payload.

PrescriptionSummary declared fields:

Field Type Required Description
tags TagConfig[] true —

Composed/inherited schema references: PrescriptionList. Exact generic composition is retained in the structured reference and requires server-side confirmation.

Operational limitation: request validation, permission checks, error statuses and irreversible side effects belong to the server implementation. An unmatched or computed client route requires contract review before use.

Pinned source evidence

Links require access to the private source repository.