Business::ID::POM - Parse food/drug registration code published by the Indonesian National Agency of Drug and Food Control (POM)
This document describes version 0.002 of Business::ID::POM (from Perl distribution Business-ID-POM), released on 2019-11-25.
This module can be used to validate food/drug registration codes published by the Indonesian National Agency of Drug and Food Control (BPOM, Badan Pengawas Obat dan Makanan). These codes include:
MD, ML - food SI, SD - health supplements NA, NB, NC, ND, NE - cosmetics TR, TI - traditional medicine D, G - pharmaceutical products FF - phytopharmaceutical products
Not yet included BPOM codes:
CA, CD, CL - cosmetics? HT - standardized herbal (herbal terstandar)
Related codes:
SNI
P-IRT
Usage:
parse_pom_reg_code(%args) -> [status, msg, payload, meta]
Parse food/drug registration code published by the Indonesian National Agency of Drug and Food Control (POM).
Examples:
Example #1:
parse_pom_reg_code(code => "MD 224510107115");
Result:
{ category_code => "MD", category_id => "Makanan (M), dalam negeri (D)", food_company_code => 107, food_company_product_code => 115, food_packaging_code => 2, food_province_code => 10, food_type_code => 245, number => 224510107115, }
Example #2:
parse_pom_reg_code(code => "DBL9624502804A1");
{ category_code => "DBL", category_id => "Obat merek dagang (D), bebas (B), lokal (L)", drug_category_code => "B", drug_company_code => 245, drug_company_product_code => "028", drug_dosage_form_code => "04", drug_dosage_form_id => "kaplet (04)", drug_origin_code => "L", drug_packaging_serial => 1, drug_strength_serial => "A", drug_year => 1996, number => "9624502804A1", }
Example #3:
parse_pom_reg_code(code => "NC14191300159");
{ category_code => "NC", category_id => "Kosmetik (N), Eropa (C)", cosmetic_category_code => "C", cosmetic_country_code => 14, cosmetic_group_code => 13, cosmetic_notification_code => "00159", cosmetic_year => 2019, number => 14191300159, }
Example #4:
parse_pom_reg_code(code => "TR092699241");
{ category_code => "TR", category_id => "Obat traditional (T), dalam negeri (R)", number => "092699241", trad_company_product_serial => 9924, trad_company_type_code => 2, trad_company_type_id => "pabrik jamu", trad_origin => "R", trad_packaging_code => 6, trad_packaging_id => "cairan", trad_packaging_volume => "15ml", trad_packaging_volume_code => 1, trad_year => 2009, }
Example #5:
parse_pom_reg_code(code => "FF182600791");
{ category_code => "FF", category_id => "Fitofarma (FF)", number => 182600791, }
This routine does not check whether the code actually exists. Use https://cekbpom.pom.go.id/ for that.
This function is not exported by default, but exportable.
Arguments ('*' denotes required arguments):
code* => str
Input POM code to be parsed.
Returns an enveloped result (an array).
First element (status) is an integer containing HTTP status code (200 means OK, 4xx caller error, 5xx function error). Second element (msg) is a string containing error message, or 'OK' if status is 200. Third element (payload) is optional, the actual result. Fourth element (meta) is called result metadata and is optional, a hash that contains extra information.
Return value: (any)
Please visit the project's homepage at https://metacpan.org/release/Business-ID-POM.
Source repository is at https://github.com/perlancar/perl-Business-ID-POM.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Business-ID-POM
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Business::ID::PIRT
perlancar <perlancar@cpan.org>
This software is copyright (c) 2019 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Business::ID::POM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::ID::POM
CPAN shell
perl -MCPAN -e shell install Business::ID::POM
For more information on module installation, please visit the detailed CPAN module installation guide.