← Technical API reference

Frontend module · STATIC DECLARATIONS

Charge Item Definition Api client API reference · mansoq-hmis-web

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-hmis-web/src/types/billing/chargeItemDefinition/chargeItemDefinitionApi.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.listChargeItemDefinition GET /api/v1/facility/{facilityId}/charge_item_definition/ literal
default.retrieveChargeItemDefinition GET /api/v1/facility/{facilityId}/charge_item_definition/{slug}/ literal
default.createChargeItemDefinition POST /api/v1/facility/{facilityId}/charge_item_definition/ literal
default.updateChargeItemDefinition PUT /api/v1/facility/{facilityId}/charge_item_definition/{slug}/ literal
default.listMetrics GET /api/v1/observation_definition/metrics/ literal
default.setTags POST /api/v1/facility/{facilityId}/charge_item_definition/{slug}/set_tags/ literal
default.removeTags POST /api/v1/facility/{facilityId}/charge_item_definition/{slug}/remove_tags/ literal

default.listChargeItemDefinition

GET /api/v1/facility/{facilityId}/charge_item_definition/. 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<ChargeItemDefinitionBase>. client-side declaration; not proof of accepted server payload.

PaginatedResponse declared fields:

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

ChargeItemDefinitionBase declared fields:

Field Type Required Description
id string true —
status ChargeItemDefinitionStatus true —
title string true —
slug string true —
derived_from_uri string false —
description string false —
purpose string false —
price_components MonetaryComponent[] true —
category ResourceCategoryRead true —
slug_config SlugConfig true —
tags TagConfig[] true —
can_edit_charge_item boolean 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.retrieveChargeItemDefinition

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

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

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

ChargeItemDefinitionRead declared fields:

Field Type Required Description
version number false —
category ResourceCategoryRead true —

Composed/inherited schema references: ChargeItemDefinitionBase. 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.createChargeItemDefinition

POST /api/v1/facility/{facilityId}/charge_item_definition/. 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.

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

ChargeItemDefinitionCreate declared fields:

Field Type Required Description
slug_value string true —
category string true —
version number false —
discount_configuration DiscountConfiguration | null true —

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

response type: ChargeItemDefinitionRead. 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.updateChargeItemDefinition

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

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

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

response type: ChargeItemDefinitionRead. 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.listMetrics

GET /api/v1/observation_definition/metrics/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

response type: Metrics[]. client-side declaration; not proof of accepted server payload.

Metrics declared fields:

Field Type Required Description
name string true —
verbose_name string true —
context MetricsContext true —
allowed_operations ConditionOperation[] 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.setTags

POST /api/v1/facility/{facilityId}/charge_item_definition/{slug}/set_tags/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId, slug. 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: ChargeItemDefinitionRead. 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/facility/{facilityId}/charge_item_definition/{slug}/remove_tags/. typed route object; literal. multiple static method/path matches across source registrations; installed target and boundary require review.

Path parameters: facilityId, slug. 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: ChargeItemDefinitionRead. 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.