Before a pharmaceutical product can be registered in the system, its classification attributes must exist in a set of reference tables that make up the pharmacy catalog. These lookup entities define the controlled vocabulary used across theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ttpullima/RomsoftBackEnd2021_v2/llms.txt
Use this file to discover all available pages before exploring further.
FAR_* module: the INN generic drug name (FAR_GENERICO), the pharmacological class (FAR_CLASE), the therapeutic family (FAR_FAMILIA), the regulatory typification (FAR_TIPIFICACION), the broad product type category (FAR_TIPO_PRODUCTO), and the consignment arrangement (FAR_CONSIGNACION). Each of the six controllers below exposes a GetAllActives endpoint that returns all active records in its respective table — these lists are typically loaded once at application startup or on catalog screens, and their IDs are used as foreign keys when creating or updating FAR_PRODUCTO records.
All catalog endpoints are HTTP POST with no request body (or an ignored body). Responses follow the standard
JsonResponse envelope: Success, Message, and Data (array). All require an Authorization: Bearer {token} header.FAR_GENERICO — Generic Drug Names (INN)
FAR_GENERICO — Generic Drug Names (INN)
FAR_GENERICO holds the International Nonproprietary Names (INN) — the official generic names for pharmaceutical substances as designated by the WHO and DIGEMID (Peru’s drug regulatory authority). Each product in the pharmacy catalog is associated with exactly one generic name via id_generico.POST /api/FAR_GENERICO/GetAllActives
Returns all active generic drug name records.Request body — none required.Response — array of FAR_GENERICODTOSample responseFAR_CLASE — Drug Classification Classes
FAR_CLASE — Drug Classification Classes
FAR_CLASE categorises products by their pharmacological class — the mechanism or chemical grouping that defines how a drug acts (e.g., analgesics, antibiotics, corticosteroids). This level of classification sits above the individual generic name and is used for inventory reports and formulary management.POST /api/FAR_CLASE/GetAllActives
Returns all active drug class records.Request body — none required.Response — array of FAR_CLASEDTOSample responseFAR_FAMILIA — Drug Families / Therapeutic Groups
FAR_FAMILIA — Drug Families / Therapeutic Groups
FAR_FAMILIA groups products into therapeutic families that align broadly with the ATC (Anatomical Therapeutic Chemical) classification used by DIGEMID and the WHO. A family may contain multiple drug classes and represents the highest-level grouping used in the pharmacy module for reporting, purchasing budgets, and clinical formulary design.POST /api/FAR_FAMILIA/GetAllActives
Returns all active therapeutic family records.Request body — none required.Response — array of FAR_FAMILIADTOSample responseFAR_TIPIFICACION — Product Typifications
FAR_TIPIFICACION — Product Typifications
FAR_TIPIFICACION stores the regulatory typification codes used by DIGEMID for official drug registration filings. In Peru, pharmaceutical products must be classified under a specific typification when obtaining a sanitary registration number (Registro Sanitario). This table ensures that every FAR_PRODUCTO record carries its correct regulatory classification for compliance and audit purposes.POST /api/FAR_TIPIFICACION/GetAllActives
Returns all active product typification records.Request body — none required.Response — array of FAR_TIPIFICACIONDTOSample responseFAR_TIPO_PRODUCTO — Product Types
FAR_TIPO_PRODUCTO — Product Types
FAR_TIPO_PRODUCTO is the top-level discriminator for items in the pharmacy catalog. It distinguishes between broad inventory categories such as manufactured medications, medical supplies, equipment, and reagents. The id_tipo_producto on a product record determines how it is treated in dispensing workflows, purchase orders, and financial reporting.POST /api/FAR_TIPO_PRODUCTO/GetAllActives
Returns all active product type records.Request body — none required.Response — array of FAR_TIPO_PRODUCTODTOSample responseFAR_CONSIGNACION — Consignment Arrangements
FAR_CONSIGNACION — Consignment Arrangements
FAR_CONSIGNACION tracks named consignment arrangements with suppliers. Under a consignment model, the clinic stores the supplier’s goods and records stock entries against the consignment ID; financial settlement occurs only when units are dispensed and billed. Each FAR_PRODUCTO record optionally references an id_consignacion to indicate that its stock is managed under such an agreement rather than through a standard purchase.POST /api/FAR_CONSIGNACION/GetAllActives
Returns all active consignment arrangement records.Request body — none required.Response — array of FAR_CONSIGNACIONDTOSample responseRelationship Map
The following table summarises how each catalog entity relates toFAR_PRODUCTO:
| Catalog Table | FK on FAR_PRODUCTO | Purpose |
|---|---|---|
FAR_GENERICO | id_generico | INN / generic substance name |
FAR_CLASE | id_clase | Pharmacological class / mechanism of action |
FAR_FAMILIA | id_familia | Therapeutic family / ATC group |
FAR_TIPIFICACION | id_tipificacion | DIGEMID regulatory typification |
FAR_TIPO_PRODUCTO | id_tipo_producto | Broad item category (medication, supply, etc.) |
FAR_CONSIGNACION | id_consignacion | Consignment stock arrangement (0 = owned stock) |