The CRE is the core database schema (PostgreSQL), API (PHP/Slim) and core test cases (PHPUnit). It is designed to provide a FAIR data-system for regulators, auditors and businesses.
This system is designed primarily to use ULID formatted primary identifiers for all objects. However, it is capable of handling identifiers from legacy systems as well.
This system is typically deployed on to a database-host node, with replication and a separate application-host nodes.
The CRE provides migration scripts to import data from existing platforms.
Data from an existing BioTrack based environment can be copied in from either API or direct SQL access. The API based import must be run once (or twice) for each License to migrate.
LeafData systems can be migrated via the LeafData API. However, the process must be run once, for each License to migrate.
METRC systems can be migrated via the METRC API. The process must be run three times, for each License in sequence (eg: A, B, C; A, B, C; A, B, C)
This is a simple software solution for collecting and reporting on crops of cannabis or other tightly tracked, regulated products. A simple setup of an event-object-audit-log database, along with the API end-point to collect the necessary details.
The platform is easy to extend by the regulatory agency or their selected vendor through middleware.
More information is available at https://openthc.com/
If you want to add new custom Services, Middleware or other code use the ./Custom
directory.
All of your custom libraries would be in ./Custom/Service
or ./Custom/Middleware
.
Then you can use them in the ./webroot/front.php
script.