forked from ohcnetwork/care_fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.example.env
More file actions
178 lines (135 loc) · 6.65 KB
/
.example.env
File metadata and controls
178 lines (135 loc) · 6.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Backend URL (fallback when no mapping matches the current origin)
REACT_CARE_API_URL=https://careapi.ohc.network
# API URL Mapping (optional) - Maps frontend origins to backend URLs
# Allows a single frontend deployment to talk to different backends based on access URL
# Format: JSON object where keys are frontend origins (including port) and values are backend URLs
# The frontend will check window.location.origin against this map at runtime
# If no match is found, falls back to REACT_CARE_API_URL
# Example:
# REACT_CARE_URL_MAP='{"http://localhost:4000": "https://careapi.ohc.network", "http://care.localhost": "https://careapi.ohc.network", "http://develop.localhost": "https://develop-api.ohc.network", "http://dev.localhost": "http://localhost:9000"}'
REACT_CARE_URL_MAP=
# GitHub URL (default: https://github.com/ohcnetwork)
REACT_GITHUB_URL=
# OHCN URL (default: https://ohc.network?ref=care)
REACT_OHCN_URL=
# Care Apps. repo@branch seperated by commas
REACT_ENABLED_APPS="ohcnetwork/care_teleicu_devices_fe@localhost:10120"
# Main logo (JSON string with light and dark properties)
# Example: REACT_MAIN_LOGO="{"light": "https://cdn.ohc.network/light-logo.svg", "dark": "https://cdn.ohc.network/dark-logo.svg"}"
REACT_MAIN_LOGO=
# State logo (JSON string with light and dark properties)
REACT_STATE_LOGO=
# Custom logo (JSON string with light and dark properties)
REACT_CUSTOM_LOGO=
# Custom alternative logo (JSON string with light and dark properties)
REACT_CUSTOM_LOGO_ALT=
# Custom description
REACT_CUSTOM_DESCRIPTION=
# reCAPTCHA site key
REACT_RECAPTCHA_SITE_KEY=
# Sentry DSN
REACT_SENTRY_DSN=
# Sentry environment (default: staging)
REACT_SENTRY_ENVIRONMENT=
# Flag to allow some fields in patient registration to be non-mandatory
REACT_ENABLE_MINIMAL_PATIENT_REGISTRATION=true
# Minimum number of geo-organization levels required during patient registration
# If not set, disables the requirement
REACT_PATIENT_REG_MIN_GEO_ORG_LEVELS_REQUIRED=
# Default govt. organization to be selected when registering a patient
# If not set, does not selects anything
REACT_PATIENT_REGISTRATION_DEFAULT_GEO_ORG="c272cd4e-6f55-4538-8d05-602f40f13c4e"
# JWT token refresh interval (in milliseconds) (default: 5 minutes)
REACT_JWT_TOKEN_REFRESH_INTERVAL=
# Default Encounter Type (default: "hh" - Home Health)
REACT_DEFAULT_ENCOUNTER_TYPE=
# Default Discharge Disposition
REACT_DEFAULT_DISCHARGE_DISPOSITION=
# Allowed Encounter classes (default all encounter classes)
REACT_ALLOWED_ENCOUNTER_CLASSES="hh,imp,amb,obsenc,emer,vr"
# Available languages to switch between (2 Digit language code seperated by comas. See src->Locale->config.ts for available codes)
REACT_ALLOWED_LOCALES="en,hi,ta,ml,mr,kn"
# ISO 3166-1 Alpha-2 code for the default country code (default: "IN")
REACT_DEFAULT_COUNTRY=
# Maps fallback URL template (default:"https://www.openstreetmap.org/?mlat={lat}&mlon={long}&zoom=15")
REACT_MAPS_FALLBACK_URL_TEMPLATE=
# OTP resend timeout in seconds (eg. 90 seconds) (default : 30 seconds)
REACT_APP_RESEND_OTP_TIMEOUT=
# Maximum image upload size allowed (in megabytes)
REACT_APP_MAX_IMAGE_UPLOAD_SIZE_MB=
# Disables public patient login in Care, (default: false)
REACT_DISABLE_PATIENT_LOGIN=false
# Default payment terms for invoices
REACT_DEFAULT_PAYMENT_TERMS=
# Relative number of days to show in the encounters page by default.0 means today.
REACT_ENCOUNTER_DEFAULT_DATE_FILTER=
# Flag to make location field mandatory for payment reconciliation (default: true)
REACT_PAYMENT_LOCATION_REQUIRED=true
# Default payment method to preselect when recording a new payment (optional)
# Valid values: cash, ccca (credit card), cchk (credit check), cdac (credit account), chck (check), ddpo (direct deposit), debc (debit card)
# If not set, no payment method is preselected
# Example: REACT_DEFAULT_PAYMENT_METHOD=cash
REACT_DEFAULT_PAYMENT_METHOD=
# Relative number of days to show in the appointments page by default.0 means today, positive for future days, negative for past days.
REACT_APPOINTMENTS_DEFAULT_DATE_FILTER=
# Custom i18n URL to load translations to override built-in translations
REACT_CUSTOM_REMOTE_I18N_URL=
# Custom Dashboard Links Configuration:
# Each link can have: title, description, href, icon (optional), visible (optional)
# Placeholders like {facilityId}, {userId}, {username} will be replaced at runtime in href URLs only
# Available icons: Calendar, Users, Box
# Example:
# REACT_CUSTOM_SHORTCUTS='[
# {
# "title": "Patient Records",
# "description": "View all patient records for this facility",
# "href": "/facility/{facilityId}/patients",
# "icon": "Users",
# "visible": true
# },
# {
# "title": "External System",
# "description": "Access external integration",
# "href": "https://external-system.com/facility/{facilityId}",
# "icon": "Box",
# "visible": true
# },
# {
# "title": "My Profile",
# "description": "Manage your profile settings",
# "href": "/users/{username}/profile",
# "icon": "Calendar",
# "visible": true
# }
# ]'
REACT_CUSTOM_SHORTCUTS=
# Set to "true" to enable automatic invoice creation after dispensing
REACT_ENABLE_AUTO_INVOICE_AFTER_DISPENSE=false
# Default state for tax inclusive pricing in inventory, When true, base price is calculated from MRP by removing tax
REACT_INVENTORY_DEFAULT_TAX_INCLUSIVE=false
# Set to "true" to open the schedule window automatically after patient registration
REACT_OPEN_SCHEDULE_AFTER_PATIENT_REGISTRATION=true
# Number of months offset for expiry restriction
# 0 = restrict products expiring by end of current month
# 1 = restrict products expiring by end of next month
# If not set, expiry restriction is disabled (only restrict already expired products)
REACT_INVENTORY_EXPIRY_MONTH_OFFSET=0
# Auto refresh interval in seconds
REACT_AUTO_REFRESH_INTERVAL=10
# Default state of auto refresh
REACT_AUTO_REFRESH_BY_DEFAULT=false
# App update check interval in seconds (default: 86400 = 24 hours)
REACT_APP_UPDATE_CHECK_INTERVAL=86400
# Decimal calculation configuration
# Maximum precision for decimal calculations (default: 20)
# Should match backend's max_digits in DecimalField
REACT_DECIMAL_PRECISION=20
# Accounting display precision (default: 2)
# Should match backend's `ACCOUNTING_PRECISION` configuration
REACT_ACCOUNTING_PRECISION=2
# Rounding method for decimal calculations (default: ROUND_HALF_UP)
# Options: ROUND_UP, ROUND_DOWN, ROUND_CEIL, ROUND_FLOOR, ROUND_HALF_UP, ROUND_HALF_DOWN, ROUND_HALF_EVEN, ROUND_HALF_CEIL, ROUND_HALF_FLOOR
# Should match backend's `ACCOUNTING_ROUNDING_METHOD` configuration
REACT_DECIMAL_ROUNDING_METHOD=ROUND_HALF_UP
# Maximum number of forms that can be favorited in the forms dialog (default: 5)
REACT_MAX_FORM_DIALOG_FAVORITES=5