From 18258627f26d6eae87c4decee7a7415ca28edf49 Mon Sep 17 00:00:00 2001 From: Olara Moses Date: Tue, 24 Sep 2024 23:27:43 +0000 Subject: [PATCH 1/2] Bump up initializer version to support billable domains --- distro/pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/distro/pom.xml b/distro/pom.xml index be6eb20..712589a 100644 --- a/distro/pom.xml +++ b/distro/pom.xml @@ -24,6 +24,7 @@ 2.0.2-SNAPSHOT 1.2.0-SNAPSHOT + 2.8.0-SNAPSHOT @@ -37,6 +38,11 @@ billing-omod ${billing.version} + + org.openmrs.module + initializer-omod + ${initializer.version} + From a28d8cf788150c61db44eba57178d072f0342e5f Mon Sep 17 00:00:00 2001 From: Olara Moses Date: Tue, 24 Sep 2024 23:32:49 +0000 Subject: [PATCH 2/2] Test Initializer to add billable services in billing module --- .../uvl-mugamba-frontend-config.json | 2 +- .../billableservices/billableServices.csv | 11 +++++++++++ .../cashpoints/cashpoints.csv | 2 ++ .../concepts/billingconcepts.csv | 18 ++++++++++++++++++ .../paymentmodes/paymentmodes.csv | 5 +++++ 5 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 sites/mugamba/configs/openmrs/initializer_config/billableservices/billableServices.csv create mode 100644 sites/mugamba/configs/openmrs/initializer_config/cashpoints/cashpoints.csv create mode 100644 sites/mugamba/configs/openmrs/initializer_config/concepts/billingconcepts.csv create mode 100644 sites/mugamba/configs/openmrs/initializer_config/paymentmodes/paymentmodes.csv diff --git a/sites/mugamba/configs/openmrs/frontend_config/uvl-mugamba-frontend-config.json b/sites/mugamba/configs/openmrs/frontend_config/uvl-mugamba-frontend-config.json index 59a5e26..bc6b694 100644 --- a/sites/mugamba/configs/openmrs/frontend_config/uvl-mugamba-frontend-config.json +++ b/sites/mugamba/configs/openmrs/frontend_config/uvl-mugamba-frontend-config.json @@ -333,7 +333,7 @@ }, "@openmrs/esm-billing-app": { "serviceTypes": { - "billableService": "49f1cfdf-498a-4984-8acb-eebf402c28eb" + "billableService": "0dfe7d9f-1dc9-4e68-b4cb-d19e1a006c54" } } } diff --git a/sites/mugamba/configs/openmrs/initializer_config/billableservices/billableServices.csv b/sites/mugamba/configs/openmrs/initializer_config/billableservices/billableServices.csv new file mode 100644 index 0000000..40f6a7a --- /dev/null +++ b/sites/mugamba/configs/openmrs/initializer_config/billableservices/billableServices.csv @@ -0,0 +1,11 @@ +Uuid," Void/Retire"," Service Name"," Short Name"," Concept"," Service Type",Service Prices," Service Status" +54369fed-090c-4ddc-b605-a912bd16ab1b,,"Oral Drug","OD","abf1d520-c969-4c15-a7ca-fe8c336f0d8d","Medication Services",Cash;Mobile Money;Visa Card;Insurance," Enabled" +6809f9d8-1ff2-45d7-baaa-9a12c065897a,,"Injection","INJ","c0e16e30-efc8-4cf6-acdc-d40dd2fcc808","Medication Services",Cash (101);Mobile Money (101);Insurance (202);Visa Card (201)," Enabled" +4d433ab3-4a6c-470a-ab8b-53988d515cc3,,"Covid Vaccination Service","CVS","41fb1743-d31a-4b75-818a-47553aabb33a","Vaccination Services",Cash (101) Mobile Money (101) Insurance (202) Visa Card (201)," Enabled" +6b998d28-b297-4435-afaa-d74f9822c8d1,,"Ultra Sound Scanning Services","USSS","8146334c-1fef-4ba6-b0a7-bda19575f54b","Antenatal Services",," Enabled" +e0277c0f-176f-4b2b-8910-fc33058cba5c,,"New Complete Blood Count","NCBC","f08c0e37-1898-4f68-9c7d-5c01199d1e9e","Clinical Consultation Services",," Enabled" +4b8b4914-f068-4381-b720-b5407aeb4a78,,"Ambulance","AMB","38748c42-d079-4a58-8ccc-ce855a686b9d","Emmergency Transport",," Enabled" +44001fd3-11fb-425d-baf7-9706d36c8ce7,,"Yellow Fever Vaccination Service","YFVS","0c99a202-5350-462d-b769-413dca4323d7","Vaccination Services",," Enabled" +66aa694e-86aa-4689-a25a-0a35c30b15a7,,"Polio Vaccination Service","PVS","5f42c737-5993-44ed-a6c1-bb534a453525","Vaccination Services",," Enabled" +a72cccea-8873-4c0f-b00e-6ea619439a65,,"C-Section Delivery","CSD","80e56862-d55d-4a32-b31c-ce3b41716a87","Antenatal Services",," Enabled" +9d98b43c-6604-4c4a-b578-9e480fbec6cb,,"Normal Delivery","ND","f5a1575c-df8d-41f9-85d1-0452c03e403d","Antenatal Services",," Enabled" \ No newline at end of file diff --git a/sites/mugamba/configs/openmrs/initializer_config/cashpoints/cashpoints.csv b/sites/mugamba/configs/openmrs/initializer_config/cashpoints/cashpoints.csv new file mode 100644 index 0000000..05044e1 --- /dev/null +++ b/sites/mugamba/configs/openmrs/initializer_config/cashpoints/cashpoints.csv @@ -0,0 +1,2 @@ +uuid, Void/Retire, name, description, location +54065383-b4d4-42d2-af4d-d250a1fd2590,, General Billing Point, Central point for all billings, Cashier (BIL) \ No newline at end of file diff --git a/sites/mugamba/configs/openmrs/initializer_config/concepts/billingconcepts.csv b/sites/mugamba/configs/openmrs/initializer_config/concepts/billingconcepts.csv new file mode 100644 index 0000000..de66e04 --- /dev/null +++ b/sites/mugamba/configs/openmrs/initializer_config/concepts/billingconcepts.csv @@ -0,0 +1,18 @@ +Uuid,Void/Retire,Same as mappings,Fully specified name:en,Fully specified name:fr,Fully specified name:es,Short name:en,Short name:fr,Short name:es,Description:en,Description:fr,Description:es,Data class,Data type,Members,_version:1,_order:500 +d4b4b6ef-6f3e-43a4-a3b9-9c56f3a1e2d8,,,Medication Services,,,MDC,,,,,,Misc,Text,,, +3f6f6c92-8d5c-4a9e-bb1c-d3e00e4f8b71,,,Clinical Consultation Services,,,CCS,,,,,,Misc,Text,,, +550e8400-e29b-41d4-a716-446655440000,,,Vaccination Services,,,VCS,,,,,,Misc,Text,,, +09850b12-5975-4a2b-a0a9-57de8cdc7e3e,,,Antenatal Services,,,ATS,,,,,,Misc,Text,,, +7bd75957-d07e-4b90-87a3-96e51ceb0317,,,Emmergency Transport,,,EMTP,,,,,,Misc,Text,,, +0dfe7d9f-1dc9-4e68-b4cb-d19e1a006c54,,,Service Types,,,,,,,,,ConvSet,N/A,Medication Services;Clinical Consultation Services;Vaccination Services;Antenatal Services;Emmergency Transport,, +abf1d520-c969-4c15-a7ca-fe8c336f0d8d,,,Oral Drug,,,,,,,,,Misc,Text,,, +c0e16e30-efc8-4cf6-acdc-d40dd2fcc808,,,Injection,,,,,,,,,Misc,Text,,, +41fb1743-d31a-4b75-818a-47553aabb33a,,,Covid Vaccination Service,,,,,,,,,Misc,Text,,, +8146334c-1fef-4ba6-b0a7-bda19575f54b,,,Ultra Sound Scanning Services,,,,,,,,,Misc,Text,,, +f08c0e37-1898-4f68-9c7d-5c01199d1e9e,,,New Complete Blood Count,,,,,,,,,Misc,Text,,, +38748c42-d079-4a58-8ccc-ce855a686b9d,,,Ambulance,,,,,,,,,Misc,Text,,, +0c99a202-5350-462d-b769-413dca4323d7,,,Yellow Fever Vaccination Service,,,,,,,,,Misc,Text,,, +5f42c737-5993-44ed-a6c1-bb534a453525,,,Polio Vaccination Service,,,,,,,,,Misc,Text,,, +80e56862-d55d-4a32-b31c-ce3b41716a87,,,C-Section Delivery,,,,,,,,,Misc,Text,,, +f5a1575c-df8d-41f9-85d1-0452c03e403d,,,Normal Delivery,,,,,,,,,Misc,Text,,, +5994f79d-4348-4966-b816-01d6b25cbb41,,,Billable Services,,,,,,,,,ConvSet,N/A,Oral Drug;Injection;Covid Vaccination Service;Ultra Sound Scanning Services;New Complete Blood Count;Ambulance;Yellow Fever Vaccination Service;Polio Vaccination Service;C-Section Delivery;Normal Delivery,, diff --git a/sites/mugamba/configs/openmrs/initializer_config/paymentmodes/paymentmodes.csv b/sites/mugamba/configs/openmrs/initializer_config/paymentmodes/paymentmodes.csv new file mode 100644 index 0000000..03f4cad --- /dev/null +++ b/sites/mugamba/configs/openmrs/initializer_config/paymentmodes/paymentmodes.csv @@ -0,0 +1,5 @@ +uuid, Void/Retire, name, attributes +94bd1d63-fe27-48a0-9a1b-d536c0ab3944,, Cash, +fcf90cf7-7852-4bd5-a8b5-32f2ba8806ec,, Mobile Money, +0ff5e45b-f524-44c0-8877-67fb684e21a4,, Insurance, +7723f567-d04e-4730-ae63-5dae3638e6a4,, Visa Card,