Frontend module · STATIC DECLARATIONS
Patient Api client API reference · mansoq-web-teleicu
13 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 13 declarations come from repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.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.create | POST | /api/v1/patient/ |
literal |
| default.update | PUT | /api/v1/patient/{id}/ |
literal |
| default.list | GET | /api/v1/patient/ |
literal |
| default.get | GET | /api/v1/patient/{id}/ |
literal |
| default.search | POST | /api/v1/patient/search/ |
literal |
| default.searchRetrieve | POST | /api/v1/patient/search_retrieve/ |
literal |
| default.addUser | POST | /api/v1/patient/{patientId}/add_user/ |
literal |
| default.listUsers | GET | /api/v1/patient/{patientId}/get_users/ |
literal |
| default.removeUser | POST | /api/v1/patient/{patientId}/delete_user/ |
literal |
| default.setInstanceTags | POST | /api/v1/patient/{external_id}/set_instance_tags/ |
literal |
| default.removeInstanceTags | POST | /api/v1/patient/{external_id}/remove_instance_tags/ |
literal |
| default.setFacilityTags | POST | /api/v1/patient/{external_id}/set_facility_tags/ |
literal |
| default.removeFacilityTags | POST | /api/v1/patient/{external_id}/remove_facility_tags/ |
literal |
default.create
POST /api/v1/patient/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
request type: PatientCreate. client-side declaration; not proof of accepted server payload.
PatientCreate declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| tags | string[] | false | — |
Composed/inherited schema references: PatientUpdate. Exact generic composition is retained in the structured reference and requires server-side confirmation.
response type: PatientRead. client-side declaration; not proof of accepted server payload.
PatientRead declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| geo_organization | Organization | false | — |
| created_by | UserReadMinimal | false | — |
| updated_by | UserReadMinimal | false | — |
| instance_identifiers | PatientIdentifier[] | true | — |
| facility_identifiers | PatientIdentifier[] | true | — |
| extensions | Record<string, Record<string, unknown>> | false | — |
Composed/inherited schema references: PatientListRead, Permissions. 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/{id}/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
Path parameters: id. Transport strings are declared here; semantic identifier types require the server contract.
request type: PatientUpdate. client-side declaration; not proof of accepted server payload.
PatientUpdate declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| age | number | false | — |
| geo_organization | string | false | — |
| identifiers | PatientIdentifierCreate[] | true | — |
| extensions | Record<string, Record<string, unknown>> | false | — |
Composed/inherited schema references: PatientBase. Exact generic composition is retained in the structured reference and requires server-side confirmation.
response type: PatientRead. 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.list
GET /api/v1/patient/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
response type: PaginatedResponse<PatientRead>. client-side declaration; not proof of accepted server payload.
PaginatedResponse declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| count | number | true | — |
| results | TItem[] | true | — |
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/{id}/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
Path parameters: id. Transport strings are declared here; semantic identifier types require the server contract.
response type: PatientRead. client-side declaration; not proof of accepted server payload.
query type: object. client-side declaration; not proof of accepted server payload.
default.get.query declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| facility | string | false | — |
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.search
POST /api/v1/patient/search/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
request type: PatientSearchRequest. client-side declaration; not proof of accepted server payload.
PatientSearchRequest declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| phone_number | string | false | — |
| config | string | false | — |
| value | string | false | — |
| page_size | number | false | — |
| facility | string | false | — |
response type: PatientSearchResponse. client-side declaration; not proof of accepted server payload.
PatientSearchResponse declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| partial | boolean | true | — |
| results | PartialPatientModel[] | PatientRead[] | true | — |
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.searchRetrieve
POST /api/v1/patient/search_retrieve/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
request type: PatientSearchRetrieveRequest. client-side declaration; not proof of accepted server payload.
PatientSearchRetrieveRequest declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| phone_number | string | true | — |
| year_of_birth | string | true | — |
| partial_id | string | true | — |
| facility | string | false | — |
response type: PatientRead. 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.addUser
POST /api/v1/patient/{patientId}/add_user/. 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.
request type: object. client-side declaration; not proof of accepted server payload.
default.addUser.request declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| user | string | true | — |
| role | string | true | — |
response type: UserReadMinimal. client-side declaration; not proof of accepted server payload.
UserReadMinimal declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| last_login | string | true | — |
| profile_picture_url | string | true | — |
| mfa_enabled | boolean | true | — |
| deleted | boolean | true | — |
| is_service_account | boolean | true | — |
Composed/inherited schema references: UserBase. 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.listUsers
GET /api/v1/patient/{patientId}/get_users/. 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<UserReadMinimal>. 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.removeUser
POST /api/v1/patient/{patientId}/delete_user/. 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: object. client-side declaration; not proof of accepted server payload.
default.removeUser.response declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| user | string | true | — |
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.setInstanceTags
POST /api/v1/patient/{external_id}/set_instance_tags/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
Path parameters: 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.setInstanceTags.request declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| tags | string[] | true | — |
response type: PatientRead. 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.removeInstanceTags
POST /api/v1/patient/{external_id}/remove_instance_tags/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
Path parameters: 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.removeInstanceTags.request declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| tags | string[] | true | — |
response type: PatientRead. 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.setFacilityTags
POST /api/v1/patient/{external_id}/set_facility_tags/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
Path parameters: 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.setFacilityTags.request declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| tags | string[] | true | — |
| facility | string | null | true | — |
response type: PatientRead. 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.removeFacilityTags
POST /api/v1/patient/{external_id}/remove_facility_tags/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.
Path parameters: 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.removeFacilityTags.request declared fields:
| Field | Type | Required | Description |
|---|---|---|---|
| tags | string[] | true | — |
| facility | string | null | true | — |
response type: PatientRead. 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.
Pinned source evidence
Links require access to the private source repository.
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:14
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:20
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:26
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:31
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:39
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:46
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:54
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:60
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:65
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:72
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:78
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:84
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:90
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patient.ts:67
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patient.ts:51
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patient.ts:60
- repositories/teleicu/mansoq-web-teleicu/src/Utils/request/types.ts:66
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:35
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patient.ts:84
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patient.ts:79
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patient.ts:92
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:57
- repositories/teleicu/mansoq-web-teleicu/src/types/user/user.ts:22
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:68
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:75
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:81
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:87
- repositories/teleicu/mansoq-web-teleicu/src/types/emr/patient/patientApi.ts:93