Files
streamline-emr/docker/_streamline-src/database/seeders/DentalsTableSeeder.php
T

59 lines
22 KiB
PHP
Executable File

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Streamline\Models\Dental;
class DentalsTableSeeder extends Seeder
{
/**
* Run the database seeders.
*
* @return void
*/
public function run()
{
$inventory_items = array(
array('Item_Id' => '913','Item_Name' => 'Dental needles','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '2','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '914','Item_Name' => 'Amalgam caps','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '915','Item_Name' => 'Lignocaine 2% Adrenaline Dental Cartridges ','Cost_Price' => '1200','Selling_Price' => '0','Quantity' => '100','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '2018-02-06','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '916','Item_Name' => 'High speed dental bars','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '917','Item_Name' => 'Dental wire','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '918','Item_Name' => 'Alginake Powder ','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '919','Item_Name' => 'Sansodyne','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '920','Item_Name' => 'Dental floss','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '921','Item_Name' => 'Dental stone','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '922','Item_Name' => 'Composite','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '923','Item_Name' => 'Glass lonomer (big-9)','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '924','Item_Name' => 'Anaesthetic gel','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '925','Item_Name' => 'Stain remover','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '926','Item_Name' => 'Floride gel','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '927','Item_Name' => 'Glass lonomer cement','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '928','Item_Name' => 'Zinc Oxide','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '929','Item_Name' => 'Calcium Hydroxide','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '28','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '930','Item_Name' => 'Pumice','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '931','Item_Name' => 'Root canal filling material','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '932','Item_Name' => 'hand piece oil','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '933','Item_Name' => 'Slow speed hand piece','Cost_Price' => '0','Selling_Price' => '0','Quantity' => '0','Reoder_Level' => '0','Description' => '','Drug_Form' => '21','Drug_Unit' => '0','Updated_At' => '0000-00-00 00:00:00','Created_At' => '0000-00-00 00:00:00','Item_Category_Id' => '0','Supplier_Id' => '0','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => NULL,'Reference_Name' => NULL,'Insurance_Coverage' => '0','Drug_Category' => '','Account_Id' => '0','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '0000-00-00','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => NULL),
array('Item_Id' => '1079','Item_Name' => 'Sensodyne Tooth Paste 75ml','Cost_Price' => '25000','Selling_Price' => '28000','Quantity' => '2','Reoder_Level' => '1','Description' => 'Tooth Paste','Drug_Form' => '7','Drug_Unit' => '4','Updated_At' => NULL,'Created_At' => '2019-04-12 10:10:37','Item_Category_Id' => '0','Supplier_Id' => '20','Prompt' => '','Patient_Info_Rukiga' => '','Patient_Info' => '','Reference_Areas' => ',','Reference_Name' => ',','Insurance_Coverage' => '0','Drug_Category' => '99','Account_Id' => '4','Item_Type' => 'Dental','Comment' => '','Restricted_Prescribing' => '','Long_Term' => '','Pharmacy_Stock' => '0','Expiry_Date' => '2020-12-31','Non_Insured_Amount' => '0','Pricing_Factor_Adult' => '0.00','Ip_Adult_Daily_Cost' => '0','Pricing_Factor_Children' => '0.00','IP_Paed_Daily_Cost' => '0','Pack' => '0.00','Strength' => '0.00','Active' => '1','Pricing_Factor_Infant' => '0.00','IP_Infant_Daily_Cost' => '0','Hssip' => '','Government_Essential' => 'No')
);
foreach ($inventory_items as $dental):
Dental::firstOrCreate([
"id" => $dental['Item_Id'],
"name" => $dental['Item_Name'],
"insurance_coverage" => $dental['Insurance_Coverage'],
"account_id" => $dental['Account_Id'],
"buying_price" => $dental['Cost_Price'],
"non_insured_price" => $dental['Selling_Price'],
"insured_price" => 0,
"store_stock" => $dental['Quantity'],
"pharmacy_stock" => $dental['Pharmacy_Stock'],
"re_order_level" => $dental['Reoder_Level'],
"supplier_id" => $dental['Supplier_Id'],
"expiry_date" => $dental['Expiry_Date']
]);
endforeach;
}
}