@kenyaemr/esm-billing-app 5.4.2-pre.2599 → 5.4.2-pre.2606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/127.js +1 -1
- package/dist/40.js +1 -1
- package/dist/440.js +1 -1
- package/dist/440.js.map +1 -1
- package/dist/916.js +1 -1
- package/dist/kenyaemr-esm-billing-app.js.buildmanifest.json +15 -15
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/billing-form/visit-attributes/visit-attributes-form.component.tsx +78 -76
- package/translations/am.json +1 -0
- package/translations/en.json +1 -0
- package/translations/sw.json +1 -0
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[{"component":"billableServicesHome","route":"billable-services"},{"component":"requirePaymentModal","routeRegex":"^patient/.+/chart","online":true,"offline":false}],"extensions":[{"component":"accountingDashboardLink","name":"accounting-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"accounting","slot":"accounting-dashboard-slot","title":"Accounting"}},{"name":"billing-dashboard","component":"billingDashboard","slot":"accounting-dashboard-slot"},{"component":"benefitsPackageDashboardLink","name":"benefits-package-dashboard-link","meta":{"name":"benefits-package","slot":"patient-chart-benefits-dashboard-slot","path":"insurance-benefits","columns":1,"columnSpan":1},"featureFlag":"healthInformationExchange"},{"component":"benefitsPackage","name":"benefits-package","slot":"patient-chart-benefits-dashboard-slot"},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"component":"benefitsEligibilyRequestForm","name":"benefits-eligibility-request-form"},{"component":"benefitsPreAuthForm","name":"benefits-pre-auth-form"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"Billing","layoutMode":"anchored"}},{"name":"billing-check-in-form","slot":"extra-visit-attribute-slot","component":"billingCheckInForm"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"initiate-payment-modal","component":"initiatePaymentDialog"},{"name":"delete-billableservice-modal","component":"deleteBillableServiceModal"},{"name":"refund-bill-modal","component":"refundBillModal"},{"name":"delete-bill-modal","component":"deleteBillModal"},{"name":"lab-order-billable-item","component":"labOrder","slot":"top-of-lab-order-form-slot"},{"name":"procedure-order-billable-item","component":"procedureOrder","slot":"top-of-procedure-order-form-slot"},{"name":"imaging-order-billable-item","component":"imagingOrder","slot":"top-of-imaging-order-form-slot"},{"name":"price-info-order","component":"priceInfoOrder"},{"name":"drug-order-billable-item","component":"drugOrder","slot":"medication-info-slot"},{"name":"order-action-button","component":"orderActionButton","slots":["prescription-action-button-slot","imaging-orders-action","procedure-orders-action","tests-ordered-actions-slot"],"order":0},{"component":"claimsManagementOverviewDashboardLink","name":"claims-management-overview-link","slots":["claims-management-dashboard-link-slot"]},{"component":"preAuthRequestsDashboardLink","name":"preauthrequest-overview-link","slots":["claims-management-dashboard-link-slot"]},{"component":"claimsOverview","name":"claims-overview-dashboard-link","slot":"claims-management-overview-slot"},{"component":"waiveBillActionButton","name":"waive-bill-action-button","slot":"bill-actions-slot"},{"component":"deleteBillActionButton","name":"delete-bill-action-button","slot":"bill-actions-slot"},{"component":"refundLineItem","name":"refund-line-item","slot":"bill-actions-overflow-menu-slot"},{"name":"edit-line-item","component":"editLineItem","slot":"bill-actions-overflow-menu-slot"},{"name":"cancel-line-item","component":"cancelLineItem","slot":"bill-actions-overflow-menu-slot"},{"name":"patient-info-sha-status","component":"patientBannerShaStatus","slot":"patient-banner-tags-slot"}],"workspaces":[{"name":"create-bill-workspace","component":"createBillWorkspace","title":"Create Bill Workspace","type":"other-form"},{"name":"waive-bill-form","component":"waiveBillForm","title":"Waive Bill Form","type":"other-form"},{"name":"edit-bill-form","component":"editBillForm","title":"Edit Bill Form","type":"other-form"},{"name":"billable-service-form","component":"addServiceForm","title":"Create Charge Item Form","type":"other-form"},{"name":"commodity-form","component":"addCommodityForm","title":"Create Charge Item Form","type":"other-form"},{"name":"billing-form","component":"billingForm","title":"Billing Form","type":"other-form","width":"extra-wide"},{"name":"payment-mode-workspace","component":"paymentModeWorkspace","title":"Payment Mode Workspace","type":"other-form"},{"name":"cancel-bill-workspace","component":"cancelBillWorkspace","title":"Cancel Bill Workspace","type":"other-form"},{"name":"add-deposit-workspace","component":"addDepositWorkspace","title":"Add Deposit","type":"other-form"},{"name":"deposit-transaction-workspace","component":"depositTransactionWorkspace","title":"Deposit Transaction","type":"other-form"},{"name":"payment-workspace","component":"paymentWorkspace","title":"Payment Workspace","type":"other-form"}],"modals":[{"name":"create-payment-point","component":"createPaymentPoint"},{"name":"clock-out-modal","component":"clockOut"},{"name":"bulk-import-billable-services-modal","component":"bulkImportBillableServicesModal"},{"name":"delete-payment-mode-modal","component":"deletePaymentModeModal"},{"name":"manage-claim-request-modal","component":"manageClaimRequestModal"},{"name":"clock-in-modal","component":"clockIn"},{"name":"create-bill-item-modal","component":"createBillItemModal"},{"name":"delete-deposit-modal","component":"deleteDepositModal"},{"name":"reverse-transaction-modal","component":"reverseTransactionModal"},{"name":"print-preview-modal","component":"printPreviewModal"},{"name":"bill-action-modal","component":"billActionModal"},{"name":"require-billing-modal","component":"requirePaymentModal"}],"version":"5.4.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemr":"^19.0.0"},"pages":[{"component":"billableServicesHome","route":"billable-services"},{"component":"requirePaymentModal","routeRegex":"^patient/.+/chart","online":true,"offline":false}],"extensions":[{"component":"accountingDashboardLink","name":"accounting-dashboard-link","slot":"homepage-dashboard-slot","meta":{"name":"accounting","slot":"accounting-dashboard-slot","title":"Accounting"}},{"name":"billing-dashboard","component":"billingDashboard","slot":"accounting-dashboard-slot"},{"component":"benefitsPackageDashboardLink","name":"benefits-package-dashboard-link","meta":{"name":"benefits-package","slot":"patient-chart-benefits-dashboard-slot","path":"insurance-benefits","columns":1,"columnSpan":1},"featureFlag":"healthInformationExchange"},{"component":"benefitsPackage","name":"benefits-package","slot":"patient-chart-benefits-dashboard-slot"},{"component":"root","name":"billing-dashboard-root","slot":"billing-dashboard-slot"},{"component":"benefitsEligibilyRequestForm","name":"benefits-eligibility-request-form"},{"component":"benefitsPreAuthForm","name":"benefits-pre-auth-form"},{"name":"billing-patient-summary","component":"billingPatientSummary","slot":"patient-chart-billing-dashboard-slot","order":10,"meta":{"columnSpan":4}},{"name":"billing-summary-dashboard-link","component":"billingSummaryDashboardLink","order":11,"meta":{"columns":1,"columnSpan":1,"slot":"patient-chart-billing-dashboard-slot","path":"Billing","layoutMode":"anchored"}},{"name":"billing-check-in-form","slot":"extra-visit-attribute-slot","component":"billingCheckInForm"},{"name":"patient-banner-billing-tags","component":"visitAttributeTags","slot":"patient-banner-tags-slot","order":2},{"name":"initiate-payment-modal","component":"initiatePaymentDialog"},{"name":"delete-billableservice-modal","component":"deleteBillableServiceModal"},{"name":"refund-bill-modal","component":"refundBillModal"},{"name":"delete-bill-modal","component":"deleteBillModal"},{"name":"lab-order-billable-item","component":"labOrder","slot":"top-of-lab-order-form-slot"},{"name":"procedure-order-billable-item","component":"procedureOrder","slot":"top-of-procedure-order-form-slot"},{"name":"imaging-order-billable-item","component":"imagingOrder","slot":"top-of-imaging-order-form-slot"},{"name":"price-info-order","component":"priceInfoOrder"},{"name":"drug-order-billable-item","component":"drugOrder","slot":"medication-info-slot"},{"name":"order-action-button","component":"orderActionButton","slots":["prescription-action-button-slot","imaging-orders-action","procedure-orders-action","tests-ordered-actions-slot"],"order":0},{"component":"claimsManagementOverviewDashboardLink","name":"claims-management-overview-link","slots":["claims-management-dashboard-link-slot"]},{"component":"preAuthRequestsDashboardLink","name":"preauthrequest-overview-link","slots":["claims-management-dashboard-link-slot"]},{"component":"claimsOverview","name":"claims-overview-dashboard-link","slot":"claims-management-overview-slot"},{"component":"waiveBillActionButton","name":"waive-bill-action-button","slot":"bill-actions-slot"},{"component":"deleteBillActionButton","name":"delete-bill-action-button","slot":"bill-actions-slot"},{"component":"refundLineItem","name":"refund-line-item","slot":"bill-actions-overflow-menu-slot"},{"name":"edit-line-item","component":"editLineItem","slot":"bill-actions-overflow-menu-slot"},{"name":"cancel-line-item","component":"cancelLineItem","slot":"bill-actions-overflow-menu-slot"},{"name":"patient-info-sha-status","component":"patientBannerShaStatus","slot":"patient-banner-tags-slot"}],"workspaces":[{"name":"create-bill-workspace","component":"createBillWorkspace","title":"Create Bill Workspace","type":"other-form"},{"name":"waive-bill-form","component":"waiveBillForm","title":"Waive Bill Form","type":"other-form"},{"name":"edit-bill-form","component":"editBillForm","title":"Edit Bill Form","type":"other-form"},{"name":"billable-service-form","component":"addServiceForm","title":"Create Charge Item Form","type":"other-form"},{"name":"commodity-form","component":"addCommodityForm","title":"Create Charge Item Form","type":"other-form"},{"name":"billing-form","component":"billingForm","title":"Billing Form","type":"other-form","width":"extra-wide"},{"name":"payment-mode-workspace","component":"paymentModeWorkspace","title":"Payment Mode Workspace","type":"other-form"},{"name":"cancel-bill-workspace","component":"cancelBillWorkspace","title":"Cancel Bill Workspace","type":"other-form"},{"name":"add-deposit-workspace","component":"addDepositWorkspace","title":"Add Deposit","type":"other-form"},{"name":"deposit-transaction-workspace","component":"depositTransactionWorkspace","title":"Deposit Transaction","type":"other-form"},{"name":"payment-workspace","component":"paymentWorkspace","title":"Payment Workspace","type":"other-form"}],"modals":[{"name":"create-payment-point","component":"createPaymentPoint"},{"name":"clock-out-modal","component":"clockOut"},{"name":"bulk-import-billable-services-modal","component":"bulkImportBillableServicesModal"},{"name":"delete-payment-mode-modal","component":"deletePaymentModeModal"},{"name":"manage-claim-request-modal","component":"manageClaimRequestModal"},{"name":"clock-in-modal","component":"clockIn"},{"name":"create-bill-item-modal","component":"createBillItemModal"},{"name":"delete-deposit-modal","component":"deleteDepositModal"},{"name":"reverse-transaction-modal","component":"reverseTransactionModal"},{"name":"print-preview-modal","component":"printPreviewModal"},{"name":"bill-action-modal","component":"billActionModal"},{"name":"require-billing-modal","component":"requirePaymentModal"}],"version":"5.4.2-pre.2606"}
|
package/package.json
CHANGED
|
@@ -87,109 +87,111 @@ const VisitAttributesForm: React.FC<VisitAttributesFormProps> = ({ setAttributes
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
return (
|
|
90
|
-
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
<div className={styles.
|
|
94
|
-
<Controller
|
|
95
|
-
name="isPatientExempted"
|
|
96
|
-
control={control}
|
|
97
|
-
render={({ field }) => (
|
|
98
|
-
<RadioButtonGroup
|
|
99
|
-
onChange={(selected) => {
|
|
100
|
-
field.onChange(selected);
|
|
101
|
-
}}
|
|
102
|
-
orientation="horizontal"
|
|
103
|
-
legendText={t('isPatientExemptedLegend', 'Is patient exempted from payment?')}
|
|
104
|
-
name="patientExemption">
|
|
105
|
-
<RadioButton labelText={t('yes', 'Yes')} value="true" id="Yes" />
|
|
106
|
-
<RadioButton labelText={t('no', 'No')} value="false" id="No" />
|
|
107
|
-
</RadioButtonGroup>
|
|
108
|
-
)}
|
|
109
|
-
/>
|
|
110
|
-
</div>
|
|
111
|
-
|
|
112
|
-
{isPatientExempted === 'true' && (
|
|
113
|
-
<div className={styles.sectionFieldLayer}>
|
|
114
|
-
<Controller
|
|
115
|
-
control={control}
|
|
116
|
-
name="exemptionCategory"
|
|
117
|
-
render={({ field }) => (
|
|
118
|
-
<ComboBox
|
|
119
|
-
className={styles.sectionField}
|
|
120
|
-
onChange={({ selectedItem }) => field.onChange(selectedItem?.value)}
|
|
121
|
-
id="exemptionCategory"
|
|
122
|
-
items={patientExemptionCategories}
|
|
123
|
-
itemToString={(item) => (item ? item.label : '')}
|
|
124
|
-
titleText={t('exemptionCategory', 'Exemption category')}
|
|
125
|
-
placeholder={t('selectExemptionCategory', 'Select exemption category')}
|
|
126
|
-
/>
|
|
127
|
-
)}
|
|
128
|
-
/>
|
|
129
|
-
</div>
|
|
130
|
-
)}
|
|
131
|
-
|
|
132
|
-
{isPatientExempted === 'false' && (
|
|
90
|
+
<>
|
|
91
|
+
<section>
|
|
92
|
+
<div className={styles.sectionTitle}>{t('modeOfPayment', 'Mode of payment')}</div>
|
|
93
|
+
<div className={styles.sectionField}>
|
|
133
94
|
<div className={styles.sectionFieldLayer}>
|
|
134
95
|
<Controller
|
|
96
|
+
name="isPatientExempted"
|
|
135
97
|
control={control}
|
|
136
|
-
name="paymentMethods"
|
|
137
98
|
render={({ field }) => (
|
|
138
|
-
<
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
99
|
+
<RadioButtonGroup
|
|
100
|
+
onChange={(selected) => {
|
|
101
|
+
field.onChange(selected);
|
|
102
|
+
}}
|
|
103
|
+
orientation="horizontal"
|
|
104
|
+
legendText={t('isPatientExemptedLegend', 'Is patient exempted from payment?')}
|
|
105
|
+
name="patientExemption">
|
|
106
|
+
<RadioButton labelText={t('yes', 'Yes')} value="true" id="Yes" />
|
|
107
|
+
<RadioButton labelText={t('no', 'No')} value="false" id="No" />
|
|
108
|
+
</RadioButtonGroup>
|
|
148
109
|
)}
|
|
149
110
|
/>
|
|
150
111
|
</div>
|
|
151
|
-
)}
|
|
152
112
|
|
|
153
|
-
|
|
154
|
-
<>
|
|
113
|
+
{isPatientExempted === 'true' && (
|
|
155
114
|
<div className={styles.sectionFieldLayer}>
|
|
156
115
|
<Controller
|
|
157
116
|
control={control}
|
|
158
|
-
name="
|
|
117
|
+
name="exemptionCategory"
|
|
159
118
|
render={({ field }) => (
|
|
160
119
|
<ComboBox
|
|
161
120
|
className={styles.sectionField}
|
|
162
|
-
onChange={({ selectedItem }) => field.onChange(selectedItem)}
|
|
163
|
-
id="
|
|
164
|
-
items={
|
|
165
|
-
itemToString={(item) => (item ? item : '')}
|
|
166
|
-
titleText={t('
|
|
167
|
-
placeholder={t('
|
|
121
|
+
onChange={({ selectedItem }) => field.onChange(selectedItem?.value)}
|
|
122
|
+
id="exemptionCategory"
|
|
123
|
+
items={patientExemptionCategories}
|
|
124
|
+
itemToString={(item) => (item ? item.label : '')}
|
|
125
|
+
titleText={t('exemptionCategory', 'Exemption category')}
|
|
126
|
+
placeholder={t('selectExemptionCategory', 'Select exemption category')}
|
|
168
127
|
/>
|
|
169
128
|
)}
|
|
170
129
|
/>
|
|
171
130
|
</div>
|
|
131
|
+
)}
|
|
132
|
+
|
|
133
|
+
{isPatientExempted === 'false' && (
|
|
172
134
|
<div className={styles.sectionFieldLayer}>
|
|
173
135
|
<Controller
|
|
174
136
|
control={control}
|
|
175
|
-
name="
|
|
137
|
+
name="paymentMethods"
|
|
176
138
|
render={({ field }) => (
|
|
177
|
-
<
|
|
178
|
-
{...field}
|
|
139
|
+
<ComboBox
|
|
179
140
|
className={styles.sectionField}
|
|
180
|
-
onChange={(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
141
|
+
onChange={({ selectedItem }) => field.onChange(selectedItem)}
|
|
142
|
+
initialSelectedItem={field.value}
|
|
143
|
+
id="paymentMethods"
|
|
144
|
+
items={paymentModes?.map((method) => method.uuid)}
|
|
145
|
+
itemToString={(item) => paymentModes.find((mode) => mode.uuid === item)?.name ?? ''}
|
|
146
|
+
titleText={t('paymentMethodsTitle', 'Payment method')}
|
|
147
|
+
placeholder={t('selectPaymentMethod', 'Select payment method')}
|
|
185
148
|
/>
|
|
186
149
|
)}
|
|
187
150
|
/>
|
|
188
151
|
</div>
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
152
|
+
)}
|
|
153
|
+
|
|
154
|
+
{paymentMethods === insurancePaymentMethod && isPatientExempted === 'false' && (
|
|
155
|
+
<>
|
|
156
|
+
<div className={styles.sectionFieldLayer}>
|
|
157
|
+
<Controller
|
|
158
|
+
control={control}
|
|
159
|
+
name="insuranceScheme"
|
|
160
|
+
render={({ field }) => (
|
|
161
|
+
<ComboBox
|
|
162
|
+
className={styles.sectionField}
|
|
163
|
+
onChange={({ selectedItem }) => field.onChange(selectedItem)}
|
|
164
|
+
id="insurance-scheme"
|
|
165
|
+
items={insuranceSchemes}
|
|
166
|
+
itemToString={(item) => (item ? item : '')}
|
|
167
|
+
titleText={t('insuranceScheme', 'Insurance scheme')}
|
|
168
|
+
placeholder={t('selectInsuranceScheme', 'Select insurance scheme')}
|
|
169
|
+
/>
|
|
170
|
+
)}
|
|
171
|
+
/>
|
|
172
|
+
</div>
|
|
173
|
+
<div className={styles.sectionFieldLayer}>
|
|
174
|
+
<Controller
|
|
175
|
+
control={control}
|
|
176
|
+
name="policyNumber"
|
|
177
|
+
render={({ field }) => (
|
|
178
|
+
<TextInput
|
|
179
|
+
{...field}
|
|
180
|
+
className={styles.sectionField}
|
|
181
|
+
onChange={(e) => field.onChange(e.target.value)}
|
|
182
|
+
id="policy-number"
|
|
183
|
+
type="text"
|
|
184
|
+
labelText={t('policyNumber', 'Policy number')}
|
|
185
|
+
placeholder={t('enterPolicyNumber', 'Enter policy number')}
|
|
186
|
+
/>
|
|
187
|
+
)}
|
|
188
|
+
/>
|
|
189
|
+
</div>
|
|
190
|
+
</>
|
|
191
|
+
)}
|
|
192
|
+
</div>
|
|
193
|
+
</section>
|
|
194
|
+
</>
|
|
193
195
|
);
|
|
194
196
|
};
|
|
195
197
|
|
package/translations/am.json
CHANGED
|
@@ -239,6 +239,7 @@
|
|
|
239
239
|
"Phone Number": "ስልክ ቁጥር",
|
|
240
240
|
"pleaseSelectItems": "ጥያቄ ለማቅረብ እባክዎ መስመር ዕቃዎችን ይምረጡ",
|
|
241
241
|
"policyNumber": "የፖሊሲ ቁጥር",
|
|
242
|
+
"preAuth": "Pre-Authorization",
|
|
242
243
|
"preauthRequest": "ቅድመ ፍቃድ ጥያቄዎች",
|
|
243
244
|
"preAuthRequests": "ቅድመ ፍቃድ ጥያቄዎች",
|
|
244
245
|
"preAuthRequets": "ቅድመ ፍቃድ ጥያቄዎች",
|
package/translations/en.json
CHANGED
|
@@ -239,6 +239,7 @@
|
|
|
239
239
|
"Phone Number": "Phone Number",
|
|
240
240
|
"pleaseSelectItems": "Please select line items to raise a claim",
|
|
241
241
|
"policyNumber": "Policy number",
|
|
242
|
+
"preAuth": "Pre-Authorization",
|
|
242
243
|
"preauthRequest": "Preauth requests",
|
|
243
244
|
"preAuthRequests": "Pre-auth requests",
|
|
244
245
|
"preAuthRequets": "Pre-Auth Requests",
|
package/translations/sw.json
CHANGED
|
@@ -239,6 +239,7 @@
|
|
|
239
239
|
"Phone Number": "Phone Number",
|
|
240
240
|
"pleaseSelectItems": "Please select line items to raise a claim",
|
|
241
241
|
"policyNumber": "Policy number",
|
|
242
|
+
"preAuth": "Pre-Authorization",
|
|
242
243
|
"preauthRequest": "Preauth requests",
|
|
243
244
|
"preAuthRequests": "Pre-auth requests",
|
|
244
245
|
"preAuthRequets": "Pre-Auth Requests",
|