@jescon-technologies/react-native-ui-kit 0.0.4 → 0.0.5

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.
Files changed (177) hide show
  1. package/index.d.ts +66 -0
  2. package/index.js +0 -4
  3. package/package.json +3 -2
  4. package/src/Alerts/AAlert.js +3 -3
  5. package/src/Alerts/AAlertIOS.js +3 -3
  6. package/src/{common → Common}/NetworkServiceCall.js +1 -1
  7. package/src/CommonStyle/CommonTheme.js +11 -0
  8. package/src/CommonStyle/ComponentFunctions.js +632 -0
  9. package/src/CommonStyle/PopupStyle.js +146 -0
  10. package/src/CommonStyle/commonStyle.js +93 -0
  11. package/src/CommonStyle/componentStyle.js +545 -0
  12. package/src/CommonStyle/optionListStyles.js +175 -0
  13. package/src/Components/ByProductPage.js +200 -0
  14. package/src/Components/CDropDownListNew.js +153 -0
  15. package/src/Components/CSupplierList.js +88 -0
  16. package/src/Components/CVerificationCard.js +2822 -0
  17. package/src/Components/CustomButton.js +67 -0
  18. package/src/Components/CustomCard.js +127 -0
  19. package/src/Components/CustomTextInput.js +47 -0
  20. package/src/Components/EquipmentPage.js +313 -0
  21. package/src/Components/FilterInput.Copy.js +723 -0
  22. package/src/Components/FilterInput.js +569 -0
  23. package/src/Components/HSubHeading.js +68 -0
  24. package/src/Components/HeaderCard.js +40 -0
  25. package/src/Components/MoreOptionsScreen.js +251 -0
  26. package/src/Components/NonSwipableProductCard.js +226 -0
  27. package/src/Components/NonSwipableSupplierCard.js +348 -0
  28. package/src/Components/ProductCard.js +1336 -0
  29. package/src/Components/QualityProductCard.js +1059 -0
  30. package/src/Components/RateProductCard.js +1452 -0
  31. package/src/Components/RawMaterial.js +261 -0
  32. package/src/Components/SDropDownEdited.js +549 -0
  33. package/src/Components/SDropDownNew.js +529 -0
  34. package/src/Components/SHelpDescription.js +147 -0
  35. package/src/Components/STextInputNew.js +510 -0
  36. package/src/Components/SearchProductCard.js +470 -0
  37. package/src/Components/StageByProduct.js +199 -0
  38. package/src/Components/SupplierCard.js +243 -0
  39. package/src/Components/SupplierInvoiceCard.js +405 -0
  40. package/src/Components/SwipableSupplierCard.js +136 -0
  41. package/src/Components/TagTemplate.js +74 -0
  42. package/src/Components/WrappedComponent.js +25 -0
  43. package/src/Custom/CBooking.js +944 -0
  44. package/src/Custom/CBookingPostpone.js +1822 -0
  45. package/src/Custom/CCalendar.js +560 -0
  46. package/src/Custom/CCard.js +880 -0
  47. package/src/Custom/CDetailCard.js +205 -0
  48. package/src/Custom/CHelpImage.js +52 -0
  49. package/src/Custom/CReport.js +569 -0
  50. package/src/Custom/CScrollView.js +73 -0
  51. package/src/Custom/CSignature.js +112 -0
  52. package/src/Custom/CSliderMenu.js +339 -0
  53. package/src/Custom/CSupplierCard.js +99 -0
  54. package/src/Custom/CTemplateCard.js +438 -0
  55. package/src/Custom/CTokenAllocation.js +1402 -0
  56. package/src/Custom/CTokenListOverlay.js +122 -0
  57. package/src/Custom/CWardStatus.js +444 -0
  58. package/src/Custom/Charts/CBarChart.js +218 -0
  59. package/src/Custom/Charts/CDashBoardList.js +133 -0
  60. package/src/Custom/Charts/CDashBoardTable.js +172 -0
  61. package/src/Custom/Charts/CLineChart.js +193 -0
  62. package/src/Custom/Charts/CPieChart.js +186 -0
  63. package/src/Custom/Loader.js +182 -0
  64. package/src/Custom/OUserView.js +1121 -0
  65. package/src/Custom/PreviewDosage.js +115 -0
  66. package/src/Custom/SearchLoader.js +32 -0
  67. package/src/Custom/TableComponent/CActivityTable.js +707 -0
  68. package/src/Custom/TableComponent/CMoreButtonTable.js +197 -0
  69. package/src/Custom/TableComponent/CTable.js +185 -0
  70. package/src/Custom/TableComponent/CTextBody.js +40 -0
  71. package/src/Custom/TableComponent/CTextHeader.js +17 -0
  72. package/src/Custom/TableComponent/PreviewPrescriptionNew.js +1011 -0
  73. package/src/Custom/TableComponent/SDropdownTable.js +491 -0
  74. package/src/Custom/TableComponent/TagTable.js +1200 -0
  75. package/src/CustomComponents/CAddColumn.js +140 -0
  76. package/src/CustomComponents/CAssessmentDelete.js +307 -0
  77. package/src/CustomComponents/CAwesomeButton.js +83 -0
  78. package/src/CustomComponents/CAwesomeMoreButton.js +54 -0
  79. package/src/CustomComponents/CBackHandler.js +273 -0
  80. package/src/CustomComponents/CCalendar.js +243 -0
  81. package/src/CustomComponents/CCommentOverlay.js +202 -0
  82. package/src/CustomComponents/CComments.js +162 -0
  83. package/src/CustomComponents/CContainerView.js +24 -0
  84. package/src/CustomComponents/CCustomTextInput.js +336 -0
  85. package/src/CustomComponents/CDetailView.js +40 -0
  86. package/src/CustomComponents/CDropDownList.js +153 -0
  87. package/src/CustomComponents/CDropdownSelect.js +555 -0
  88. package/src/CustomComponents/CFooterView.js +42 -0
  89. package/src/CustomComponents/CImagePickerSave.js +316 -0
  90. package/src/CustomComponents/CModalOverlay.js +91 -0
  91. package/src/CustomComponents/CNetworkStatus.js +327 -0
  92. package/src/CustomComponents/CNotesInstructions.js +1000 -0
  93. package/src/CustomComponents/COverlay.js +81 -0
  94. package/src/CustomComponents/CRemarks.js +176 -0
  95. package/src/CustomComponents/CRowAdd.js +143 -0
  96. package/src/CustomComponents/CSummaryDropDown.js +327 -0
  97. package/src/CustomComponents/CText.js +9 -0
  98. package/src/CustomComponents/CVectorIcon.js +34 -0
  99. package/src/CustomComponents/HtmlContentViewer.js +65 -0
  100. package/src/CustomComponents/PdfContentViewer.js +90 -0
  101. package/src/CustomComponents/SDropDownDosage.js +1087 -0
  102. package/src/CustomComponents/SwipableProductCard.js +246 -0
  103. package/src/CustomComponents/SwipableProductImageCard.js +254 -0
  104. package/src/CustomComponents/WorkOrderDetails.js +1216 -0
  105. package/src/CustomComponents/WorkOrderDetailsPage.js +1213 -0
  106. package/src/HOC/ConfirmOverlay.js +2 -2
  107. package/src/HOC/HMoreButton.js +1 -1
  108. package/src/HOC/HNatureHeading.js +1 -1
  109. package/src/HOC/HShadowButton.js +1 -1
  110. package/src/HOC/HShadowCountButton.js +1 -1
  111. package/src/Json/Chart.json +818 -0
  112. package/src/Json/Consultation.json +622 -0
  113. package/src/Json/CreditBill.json +490 -0
  114. package/src/Json/Dropdown.json +216 -0
  115. package/src/Json/DropdownConsultation.json +228 -0
  116. package/src/Json/DynamicReports.json +623 -0
  117. package/src/Json/Footer.json +79 -0
  118. package/src/Media/AudioScreen.js +2 -7
  119. package/src/Media/CCaptureImageWithoutEdit.js +1 -1
  120. package/src/Media/CImageGallery.js +2 -2
  121. package/src/Media/CSingleImage.js +2 -2
  122. package/src/Media/CVideoPlay.js +1 -1
  123. package/src/Media/DocumentScreen.js +2 -7
  124. package/src/Media/DrawingScreen.js +2 -6
  125. package/src/Media/ImageScreen.js +2 -6
  126. package/src/Media/VideoScreen.js +2 -7
  127. package/src/Navigation/PageNavigation.js +224 -0
  128. package/src/Navigation/useFocusEffect.js +2 -0
  129. package/src/Navigation/useFocusEffect.native.js +1 -0
  130. package/src/Navigation/useFocusEffect.web.js +1 -0
  131. package/src/Navigation/useIsFocused.js +1 -0
  132. package/src/Navigation/useIsFocused.native.js +1 -0
  133. package/src/Navigation/useIsFocused.web.js +1 -0
  134. package/src/Navigation/useNavigation.js +2 -0
  135. package/src/Navigation/useNavigation.native.js +1 -0
  136. package/src/Navigation/useNavigation.web.js +1 -0
  137. package/src/Screens/CMedications.js +528 -0
  138. package/src/Screens/CWebViewGallery.js +203 -0
  139. package/src/Screens/ChartScan.js +279 -0
  140. package/src/Screens/ChartScreenNew.js +1579 -0
  141. package/src/Screens/Consultation.js +1500 -0
  142. package/src/Screens/Dashboard.js +778 -0
  143. package/src/Screens/FileExplorer.js +288 -0
  144. package/src/Screens/Footer.js +340 -0
  145. package/src/Screens/ForgotPassword.js +288 -0
  146. package/src/Screens/HeaderBlock.js +353 -0
  147. package/src/Screens/Login.js +328 -0
  148. package/src/Screens/Notification.js +149 -0
  149. package/src/Screens/OcrScreen.js +20 -0
  150. package/src/Screens/PdfPreview.js +507 -0
  151. package/src/Screens/RegistrationDetails.js +467 -0
  152. package/src/Screens/SearchScreen.js +582 -0
  153. package/src/Screens/Splash.js +788 -0
  154. package/src/Screens/SwipeLeftView.js +1867 -0
  155. package/src/StaticComponents/SDatePickerLabel.js +1 -1
  156. package/src/StaticComponents/SDatePickerNew.js +1 -1
  157. package/src/StaticComponents/SDateTimePickerNew.js +2 -2
  158. package/src/StaticComponents/SDropDownGenerate.js +3 -3
  159. package/src/StaticComponents/SDropDownHoc.js +4 -4
  160. package/src/StaticComponents/SDropDownIcon.js +1 -1
  161. package/src/StaticComponents/SMenuBox.js +2 -2
  162. package/src/StaticComponents/SSearch.js +2 -2
  163. package/src/StaticComponents/STextInput.js +1 -1
  164. package/src/StaticComponents/STimePicker.js +1 -1
  165. package/src/StaticComponents/STimingDropDownNew.js +2 -6
  166. package/src/StaticComponents/STimingSwitch.js +1 -1
  167. package/src/layout/CContainerView.js +1 -1
  168. package/src/layout/CDetailView.js +3 -3
  169. package/src/layout/HeaderBlock.js +5 -5
  170. package/src/layout/INVLoginLayout.js +3 -4
  171. package/src/layout/Loader.js +2 -2
  172. package/src/HOC/HAbsolute.js +0 -56
  173. package/src/HOC/HDiscontinue.js +0 -105
  174. package/src/HOC/HOverlay.js +0 -99
  175. package/src/layout/FooterBlock.js +0 -821
  176. /package/src/{common → Common}/ErrorBoundary.tsx +0 -0
  177. /package/src/{common → Common}/Icons.js +0 -0
@@ -0,0 +1,1867 @@
1
+ import React, { useState, useRef } from 'react';
2
+ import { StyleSheet, Dimensions, View, Text, FlatList, Image, TouchableOpacity, PermissionsAndroid, TextInput, RefreshControl, Platform } from 'react-native';
3
+ import Loader from '../Custom/Loader';
4
+ import HeaderBlock from './HeaderBlock';
5
+ import CContainerView from '../CustomComponents/CContainerView';
6
+ import CDetailView from '../CustomComponents/CDetailView';
7
+ import { normalize } from '../CommonStyle/componentStyle';
8
+ import { imageURL, audioURL, videoURL, pdfURL, APIURL } from '../../../../../src/Common/apiConstants';
9
+ import WebView from 'react-native-webview';
10
+ import { ArrayCheck, notifyMessage, ValueCheck } from '../CommonStyle/ComponentFunctions';
11
+ import moment from 'moment';
12
+
13
+ const SwipeLeftView = (props) => {
14
+ const webviewRef = useRef();
15
+ const [filter, setFilter] = useState(props.route.params.type != undefined && props.route.params.type != null ? props.route.params.type : 0);
16
+ const [searchData, setSearchData] = useState('');
17
+ const [pdfdata, SetPdfData] = useState(props.route.params.pdf.data);
18
+
19
+
20
+ const allfiles = [];
21
+
22
+ const datasearch =
23
+ pdfdata.patientchartdetail &&
24
+ pdfdata.patientchartdetail != null &&
25
+ pdfdata.patientchartdetail != undefined ?
26
+ pdfdata.patientchartdetail.map(item => {
27
+ return {
28
+ ...item,
29
+ patientchartdetaildata:
30
+ item.patientchartdetaildata != null &&
31
+ item.patientchartdetaildata != undefined
32
+ ? item.patientchartdetaildata.filter(subElement => {
33
+ return subElement &&
34
+ subElement.textheader &&
35
+ subElement.textheader != null &&
36
+ subElement.textheader != undefined &&
37
+ subElement.textheader.length > 0
38
+ ? subElement.textheader
39
+ .toLowerCase()
40
+ .indexOf(searchData.toLowerCase()) >= 0
41
+ : null;
42
+ })
43
+ : null,
44
+ };
45
+ }) : null;
46
+
47
+ pdfdata.patientchartdetail &&
48
+ pdfdata.patientchartdetail != null &&
49
+ pdfdata.patientchartdetail != undefined ?
50
+ pdfdata.patientchartdetail.map(item => {
51
+ item.files &&
52
+ item.files != null &&
53
+ item.files != undefined ?
54
+ item.files.savedimages &&
55
+ item.files.savedimages != null &&
56
+ item.files.savedimages != undefined &&
57
+ item.files.savedimages.length > 0 ?
58
+ item.files.savedimages.filter((s, i) => {
59
+ s.filename && s.filename != null && s.filename != undefined ?
60
+ allfiles.push({ 'filename': s.filename }) : null
61
+ }) : null
62
+ : null
63
+ }) : null;
64
+
65
+ const prescriptionsearch =
66
+ pdfdata.patientchartdetail &&
67
+ pdfdata.patientchartdetail != null &&
68
+ pdfdata.patientchartdetail != undefined
69
+ ? pdfdata.patientchartdetail.map(item => {
70
+ return {
71
+ chartdate: item.chartdate,
72
+ consultantname: item.consultantname,
73
+ prescriptions: item.prescriptions,
74
+ prescriptionsdata:
75
+ ArrayCheck(item.prescriptions) &&
76
+ item.prescriptions.data != null &&
77
+ item.prescriptions.data != undefined
78
+ ? item.prescriptions.data.filter(subElement => {
79
+ return subElement &&
80
+ subElement.assignedstatusname &&
81
+ subElement.assignedstatusname != null &&
82
+ subElement.assignedstatusname != undefined &&
83
+ subElement.assignedstatusname.length > 0
84
+ ? subElement.assignedstatusname
85
+ .toLowerCase()
86
+ .indexOf(searchData.toLowerCase()) >= 0
87
+ : null;
88
+ })
89
+ : null,
90
+ };
91
+ })
92
+ : null;
93
+
94
+ const vitalsignsearch =
95
+ pdfdata.patientchartdetail &&
96
+ pdfdata.patientchartdetail != null &&
97
+ pdfdata.patientchartdetail != undefined
98
+ ? pdfdata.patientchartdetail.map(item => {
99
+ return {
100
+ chartdate: item.chartdate,
101
+ consultantname: item.consultantname,
102
+ patientchartdetaildata: ArrayCheck(item.patientchartdetaildata) ? [item.patientchartdetaildata.find(o => o.textheader === "VITAL SIGNS")] : []
103
+ };
104
+ })
105
+ : null;
106
+
107
+ const servicesearch =
108
+ pdfdata.patientchartdetail &&
109
+ pdfdata.patientchartdetail != null &&
110
+ pdfdata.patientchartdetail != undefined
111
+ ? pdfdata.patientchartdetail.map(item => {
112
+ return {
113
+ chartdate: item.chartdate,
114
+ consultantname: item.consultantname,
115
+ patientservice: item.patientservice,
116
+ patientservicedata:
117
+ ArrayCheck(item.patientservice) &&
118
+ item.patientservice.data != null &&
119
+ item.patientservice.data != undefined
120
+ ? item.patientservice.data.filter(subElement => {
121
+ return subElement &&
122
+ subElement.assignedstatusname &&
123
+ subElement.assignedstatusname != null &&
124
+ subElement.assignedstatusname != undefined &&
125
+ subElement.assignedstatusname.length > 0
126
+ ? subElement.assignedstatusname
127
+ .toLowerCase()
128
+ .indexOf(searchData.toLowerCase()) >= 0
129
+ : null;
130
+ })
131
+ : null,
132
+ };
133
+ })
134
+ : null;
135
+
136
+ const labresultsearch = null;
137
+
138
+
139
+ function reverse(s) {
140
+ var fields = s.split('T')
141
+ if (fields != undefined && fields.length > 0) {
142
+ return fields[0].split('-').reverse().join('-');
143
+ } else {
144
+ return s.split('-').reverse().join('-');
145
+ }
146
+ }
147
+
148
+ var htmldata =
149
+ filter == 1
150
+ ? prescriptionsearch
151
+ : filter == 2
152
+ ? labresultsearch
153
+ : filter == 0
154
+ ? datasearch
155
+ : filter == 3
156
+ ? filteredDate :
157
+ filter == 4 ?
158
+ servicesearch :
159
+ filter == 5 ?
160
+ vitalsignsearch
161
+ : datasearch;
162
+
163
+ // console.log("Pdfffffffff datattatatatatatattatata",JSON.stringify(pdfdata))
164
+ // console.log("HTMLLLLLLLL DATATATTATATATATTTATTAT",JSON.stringify(htmldata))
165
+
166
+ function fnDateConsultant(datas, i) {
167
+
168
+ return (
169
+ datas &&
170
+ datas.chartdate &&
171
+ datas.chartdate != null &&
172
+ datas.chartdate != undefined
173
+ ?
174
+ `
175
+ <script>
176
+ const ImgSync = async (h) => {
177
+
178
+ window.ReactNativeWebView.postMessage(JSON.stringify({'data':h,'i':'chead'}))
179
+ };
180
+ </script>
181
+ <div style="display: flex;flex-direction: row;align-items: center;margin-top:10px;margin;-bottom:10px;">
182
+ <div style="font-size:12px;font-weight: bold;">
183
+ <i class="fa fa-calendar">
184
+ </i>
185
+ ${' '}
186
+ ${datas &&
187
+ datas.chartdate &&
188
+ datas.chartdate != null &&
189
+ datas.chartdate != undefined
190
+ ? datas.chartdate
191
+ : ''}
192
+ </div>
193
+ <div style="margin-left:15px;font-size:12px;font-weight: bold;">
194
+ ${ValueCheck(datas.consultantname) ? `<i class="fa fa-user-md">` : ``}
195
+ </i>
196
+ ${' '}
197
+ ${datas.consultantname &&
198
+ datas.consultantname != null &&
199
+ datas.consultantname != undefined
200
+ ? datas.consultantname
201
+ : ''}
202
+ </div>
203
+ </div>
204
+ `: ``)
205
+ }
206
+
207
+ function getIntake(params, dosage) {
208
+ switch (dosage) {
209
+ case "STAT NEBULIZATION":
210
+ case "STAT":
211
+ case "SOS":
212
+ case "INVESTIGATION":
213
+ case "PROCEDURE":
214
+ case "IF REQUIRED": return ""
215
+ default: return params
216
+ }
217
+ }
218
+
219
+ function fnHtml(multi, multitiming) {
220
+
221
+ var newArray = multi.timingdata[0].timings[0].timingsarray.filter(function (el) {
222
+ return el.dosage[0].unit != "";
223
+ });
224
+
225
+ return (
226
+ newArray.map((timing, i) => {
227
+
228
+ return timing.dosage != null &&
229
+ timing.dosage != undefined ?
230
+ `
231
+ <div style="display: flex;flex-direction: column;justify-content:center;align-items:center;margin-top:5px;margin-bottom:5px;">
232
+ <div style="font-weight:normal;font-size:10px;">
233
+ <b>${timing.dosage[0].volume ? timing.dosage[0].volume : ''}</b>
234
+ ${timing.dosage[0].unit ? timing.dosage[0].unit : ''}
235
+ ${timing.dosage[0].intake &&
236
+ timing.dosage[0].intake != null &&
237
+ timing.dosage[0].intake != undefined ?
238
+ getIntake(timing.dosage[0].intake, multi.dosage) :
239
+ ''}
240
+ </div>
241
+
242
+ ${getIntake(timing.dosage[0].intake, multi.dosage) ?
243
+ `<div style="font-weight:normal;font-size:10px;">
244
+ ${`<b>${timing.timingslotname && timing.timingslotname != null && timing.timingslotname != undefined && timing.timingslotname.length > 1 ? timing.timingslotname.charAt(0) + `<b style="font-size:7px;">${timing.timingslotname.substring(1).toLowerCase()}</b>` : ''}</b>(${timing.dosage[0].specifictime == true ? timing.dosage[0].timeprovided : timing.timingslotfrom + '-' + timing.timingslotto})`}
245
+ </div>
246
+ <div style="font-weight:normal;font-size:8px;">
247
+ ${timing.dosage[0].patientdescription ? '* ' + timing.dosage[0].patientdescription : ''}
248
+ </div>` : ``}
249
+
250
+ </div>
251
+ ${newArray.length == (i + 1) ? '' : '<div style="height:0.5px;background-color:grey;width:100%;"></div>'}
252
+ `
253
+ : '';
254
+ }).join('')
255
+ )
256
+
257
+ }
258
+
259
+
260
+
261
+ function fnPrescription(datas, s) {
262
+
263
+ return (`
264
+ <div>
265
+ ${(ArrayCheck(datas.prescriptions) &&
266
+ datas.prescriptions[0].data &&
267
+ datas.prescriptions[0].data[0] &&
268
+ datas.prescriptions[0].data[0].assignedstatusname &&
269
+ datas.prescriptions[0].data[0].assignedstatusname != null &&
270
+ datas.prescriptions[0].data[0].assignedstatusname != undefined &&
271
+ datas.prescriptions[0].data[0].assignedstatusname.length > 0 &&
272
+ datas.prescriptions[0].data[0].assignedstatusname != ' (0)') ||
273
+ (ArrayCheck(datas.prescriptions) &&
274
+ datas.prescriptions[0].description &&
275
+ datas.prescriptions[0].description[0] &&
276
+ datas.prescriptions[0].description[0].instructions &&
277
+ datas.prescriptions[0].description[0].instructions != null &&
278
+ datas.prescriptions[0].description[0].instructions != undefined &&
279
+ datas.prescriptions[0].description[0].instructions.length > 0) ||
280
+ (ArrayCheck(datas.prescriptions) &&
281
+ datas.prescriptions[0].description &&
282
+ datas.prescriptions[0].description[0] &&
283
+ datas.prescriptions[0].description[0].notes &&
284
+ datas.prescriptions[0].description[0].notes[0] &&
285
+ datas.prescriptions[0].description[0].notes[0].displayvalue &&
286
+ datas.prescriptions[0].description[0].notes[0].displayvalue != null &&
287
+ datas.prescriptions[0].description[0].notes[0].displayvalue != undefined &&
288
+ datas.prescriptions[0].description[0].notes[0].displayvalue.length > 0)
289
+ ? `<div style="font-size:10px;font-weight:normal;background-color:#F0F0F0;color:blue;margin-top:5px;">
290
+ <i class="fas fa-pills"></i>
291
+ PRESCRIPTION
292
+ </div>
293
+ `
294
+ : ''
295
+ }
296
+
297
+ <div style="margin-top:5px;">
298
+ ${ArrayCheck(datas.prescriptions) &&
299
+ datas.prescriptions[0].date &&
300
+ datas.prescriptions[0].description &&
301
+ datas.prescriptions[0].description != null &&
302
+ datas.prescriptions[0].description != undefined &&
303
+ datas.prescriptions[0].description.length > 0
304
+ ? datas.prescriptions[0].description
305
+ .map(presNoteInsCom => {
306
+ return `<div style="display:flex;flex-direction:row;margin-top:5px;align-items:center;">
307
+ ${presNoteInsCom.notes &&
308
+ presNoteInsCom.notes != null &&
309
+ presNoteInsCom.notes != undefined &&
310
+ presNoteInsCom.notes.length > 0
311
+ ? ` <b style="font-size:10px;">NOTES : </b>`
312
+ : ''}
313
+
314
+ ${presNoteInsCom.notes &&
315
+ presNoteInsCom.notes != null &&
316
+ presNoteInsCom.notes != undefined &&
317
+ presNoteInsCom.notes.length > 0
318
+ ? presNoteInsCom.notes
319
+ .map(presnotes => {
320
+ return `${presnotes.displayvalue &&
321
+ presnotes.displayvalue != null &&
322
+ presnotes.displayvalue != undefined &&
323
+ presnotes.displayvalue.length > 0
324
+ ? `<div style="font-size:16px;font-weight: normal;display:flex;flex-direction:row;">
325
+ <i style="border: 0px solid grey;border-radius: 25px;padding: 4px;">
326
+ ` : ''}
327
+ ${' '}
328
+ ${presnotes.displayvalue &&
329
+ presnotes.displayvalue != null &&
330
+ presnotes.displayvalue != undefined &&
331
+ presnotes.displayvalue.length > 0
332
+ ? presnotes.displayvalue
333
+ : ''
334
+ }
335
+
336
+ </i>
337
+ </div>`;
338
+ })
339
+ .join(',')
340
+ : ''
341
+ }
342
+ </div>
343
+ <div style="display:flex;flex-direction:row;margin-top:7px;">
344
+ ${presNoteInsCom.instructions &&
345
+ presNoteInsCom.instructions != null &&
346
+ presNoteInsCom.instructions != undefined &&
347
+ presNoteInsCom.instructions.length > 0
348
+ ? ` <b style="font-size:10px;">INSTRUCTIONS : </b>`
349
+ : ''}
350
+
351
+ ${presNoteInsCom.instructions &&
352
+ presNoteInsCom.instructions != null &&
353
+ presNoteInsCom.instructions != undefined &&
354
+ presNoteInsCom.instructions.length > 0
355
+ ? presNoteInsCom.instructions
356
+ .map(presinst => {
357
+ return `
358
+ <div style="font-size:16px;font-weight: normal;">
359
+ ${presinst.displayvalue &&
360
+ presinst.displayvalue != null &&
361
+ presinst.displayvalue != undefined &&
362
+ presinst.displayvalue.length > 0
363
+ ?
364
+ `<i style="border: 0px solid grey;border-radius: 25px;padding: 4px;">
365
+
366
+ ${' '}
367
+ ${presinst.displayvalue &&
368
+ presinst.displayvalue != null &&
369
+ presinst.displayvalue != undefined &&
370
+ presinst.displayvalue.length > 0
371
+ ? presinst.displayvalue
372
+ : ''
373
+ }
374
+
375
+ </i>`
376
+ : ''}
377
+ </div>`;
378
+ })
379
+ .join(',')
380
+ : ''
381
+ }
382
+ </div>`;
383
+ })
384
+ .join('')
385
+ : ''
386
+ }
387
+ </div>
388
+
389
+
390
+
391
+ ${ArrayCheck(datas.prescriptions) &&
392
+ datas.prescriptions[0].date &&
393
+ datas.prescriptions[0].data &&
394
+ datas.prescriptions[0].data != null &&
395
+ datas.prescriptions[0].data != undefined &&
396
+ datas.prescriptions[0].data.length > 0 &&
397
+ datas.prescriptions[0].data[0] &&
398
+ datas.prescriptions[0].data[0].assignedstatusname &&
399
+ datas.prescriptions[0].data[0].assignedstatusname != null &&
400
+ datas.prescriptions[0].data[0].assignedstatusname != undefined &&
401
+ datas.prescriptions[0].data[0].assignedstatusname.length > 0 &&
402
+ datas.prescriptions[0].data[0].assignedstatusname != ' (0)'
403
+ ? `
404
+ <div style="flex-direction: row;display: flex;width:100%;margin-top:5px;">
405
+ <div style="flex-direction: column;display: flex;border: 1px solid grey;border-right:0px solid grey;width:5%;font-size:15px;font-weight: normal;text-align:center;justify-content:center;">
406
+ <div style="font-size:12px;">No</div>
407
+ </div>
408
+ <div style="flex-direction: column;display: flex;border: 1px solid #888888;border-right:0px solid #888888;width:25%;font-size:15px;font-weight: normal;text-align:center;justify-content:center;">
409
+ <div style="font-size:12px;">Medicine</div>
410
+ <div style="font-size:8px;">Content</div>
411
+ </div>
412
+ <div style="flex-direction: row;display: flex;width:70%;">
413
+ <div style="flex-direction: column;display: flex;border: 1px solid grey;border-right:0px solid grey;width:30%;font-size:15px;font-weight: normal;text-align:center;justify-content:center;">
414
+ <div style="font-size:12px;">Dosage</div>
415
+ <div style="font-size:8px;">Timing</div>
416
+ </div>
417
+ <div style="flex-direction: column;display: flex;border: 1px solid grey;border-right:0px solid grey;width:20%;font-size:15px;font-weight: normal;text-align:center;justify-content:center;">
418
+ <div style="font-size:12px;">Duration</div>
419
+ </div>
420
+ <div style="flex-direction: column;display: flex;border: 1px solid grey;border-right:0px solid grey;width:12%;font-size:15px;font-weight: normal;text-align:center;justify-content:center;">
421
+ <div style="font-size:12px;">Route</div>
422
+ </div>
423
+ <div style="flex-direction: column;display: flex;border: 1px solid grey;border-right:0px solid grey;width:18%;font-size:15px;font-weight: normal;text-align:center;justify-content:center;">
424
+ <div style="font-size:10px;">Medication Date</div>
425
+ </div>
426
+ <div style="flex-direction: column;display: flex;border: 1px solid grey;width:20%;font-size:15px;font-weight: normal;text-align:center;justify-content:center;">
427
+ <div style="font-size:12px;">Remarks</div>
428
+ </div>
429
+ </div>
430
+ </div>`: ''}
431
+
432
+
433
+
434
+ ${ArrayCheck(datas.prescriptions) &&
435
+ datas.prescriptions[0].date &&
436
+ datas.prescriptions[0].data &&
437
+ datas.prescriptions[0].data != null &&
438
+ datas.prescriptions[0].data != undefined &&
439
+ datas.prescriptions[0].data.length > 0 &&
440
+ datas.prescriptions[0].data[0] &&
441
+ datas.prescriptions[0].data[0].assignedstatusname &&
442
+ datas.prescriptions[0].data[0].assignedstatusname != null &&
443
+ datas.prescriptions[0].data[0].assignedstatusname != undefined &&
444
+ datas.prescriptions[0].data[0].assignedstatusname.length > 0 &&
445
+ datas.prescriptions[0].data[0].assignedstatusname != ' (0)'
446
+ ? datas.prescriptions[0].data
447
+ .map((pres, i) => {
448
+ return `
449
+ <script>
450
+ const SendPresData = async (s) => {
451
+ ${ArrayCheck(datas.prescriptions) &&
452
+ datas.prescriptions[0].date &&
453
+ datas.prescriptions[0].date != null &&
454
+ datas.prescriptions[0].date != undefined &&
455
+ datas.prescriptions[0] &&
456
+ datas.prescriptions[0].date &&
457
+ datas.prescriptions[0].data &&
458
+ datas.prescriptions[0].data != null &&
459
+ datas.prescriptions[0].data != undefined &&
460
+ datas.prescriptions[0].data.length > 0 &&
461
+ datas.prescriptions[0].data[0] &&
462
+ datas.prescriptions[0].data[0].assignedstatusname &&
463
+ datas.prescriptions[0].data[0].assignedstatusname != null &&
464
+ datas.prescriptions[0].data[0].assignedstatusname != undefined &&
465
+ datas.prescriptions[0].data[0].assignedstatusname.length > 0 &&
466
+ datas.prescriptions[0].data[0].assignedstatusname != ' (0)'
467
+ ?
468
+ `window.ReactNativeWebView.postMessage(JSON.stringify({
469
+ 'i': 'presnew',
470
+ 'index':s,
471
+ }))`
472
+ // `window.ReactNativeWebView.postMessage('${JSON.stringify({
473
+ // 'i': 'pres',
474
+ // 'index':i,
475
+ // 'pdate': datas.prescriptions.date,
476
+ // 'pdata': datas.prescriptions.data,
477
+ // 'doctorname': datas.consultantname ,
478
+ // 'pdescription': datas.prescriptions.description
479
+ // })}')`
480
+ : ''};
481
+
482
+
483
+
484
+ };
485
+ window.addEventListener("message", message => {
486
+ alert(message.data)
487
+ });
488
+ </script>
489
+ <div onclick= ${ArrayCheck(datas.prescriptions) &&
490
+ datas.prescriptions[0].date &&
491
+ datas.prescriptions[0].data &&
492
+ datas.prescriptions[0].data != null &&
493
+ datas.prescriptions[0].data != undefined &&
494
+ datas.prescriptions[0].data.length > 0 &&
495
+ datas.prescriptions[0].data[0] &&
496
+ datas.prescriptions[0].data[0].assignedstatusname &&
497
+ datas.prescriptions[0].data[0].assignedstatusname != null &&
498
+ datas.prescriptions[0].data[0].assignedstatusname != undefined &&
499
+ datas.prescriptions[0].data[0].assignedstatusname.length > 0 &&
500
+ datas.prescriptions[0].data[0].assignedstatusname != ' (0)' &&
501
+ datas.prescriptions[0].date &&
502
+ datas.prescriptions[0].date != null &&
503
+ datas.prescriptions[0].date != undefined &&
504
+ datas.prescriptions[0].date.length > 0
505
+ ? `SendPresData(${s})` : ""} style="flex-direction: row;display: flex;width:100%;align-items:stretch;justify-content:stretch;">
506
+ <div style="display:flex;justify-content:center;align-items:center;text-align:center;background-color:white;width: 5%;font-size:10px;font-weight: bold;border: 1px solid grey;border-top:0px solid;border-right:0px solid;">
507
+ ${i + 1}${'.'}
508
+ </div>
509
+ <div style="display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;background-color:white;width: 25%;font-size:15px;font-weight: bold;border: 1px solid grey;border-top:0px solid;border-right:0px solid;">
510
+ <div style="margin-left:5px;font-size:10px;font-weight: bold;color:red;text-align:left;">
511
+ ${pres.timings &&
512
+ pres.timings != undefined &&
513
+ pres.timings != null &&
514
+ pres.timings != '' &&
515
+ pres.timings.timingcategoryname &&
516
+ pres.timings.timingcategoryname != null &&
517
+ pres.timings.timingcategoryname != undefined
518
+ ?
519
+ '[' + pres.timings.timingcategoryname + ']' :
520
+ pres.dosage}
521
+ </div>
522
+
523
+ <div style="margin-left:5px;font-size:11px;">
524
+ ${pres.outsidemedicine &&
525
+ pres.outsidemedicine != null &&
526
+ pres.outsidemedicine != undefined &&
527
+ pres.outsidemedicine == true ?
528
+ '<b style="font-size:11px;color:red;">*</b>' : ''
529
+ }
530
+ ${pres.assignedstatusname &&
531
+ pres.assignedstatusname != null &&
532
+ pres.assignedstatusname !=
533
+ undefined &&
534
+ pres.assignedstatusname.length > 0
535
+ ? pres.assignedstatusname
536
+ : ''
537
+ }
538
+ </div>
539
+
540
+ <div style="margin-left:5px;font-size:9px;font-weight: normal;text-align:left;">
541
+ ${pres.outsidemedicine &&
542
+ pres.outsidemedicine != null &&
543
+ pres.outsidemedicine != undefined &&
544
+ pres.outsidemedicine == true ?
545
+ '<b style="font-size:15px;color:white;">*</b>' : ''
546
+ }
547
+ ${pres.content &&
548
+ pres.content != null &&
549
+ pres.content !=
550
+ undefined &&
551
+ pres.content.length > 0
552
+ ? pres.content
553
+ : ''
554
+ }
555
+ </div>
556
+ </div>
557
+ <div style="width:70%;text-align:center;flex-direction: row;display: flex;font-size:15px;font-weight: bold;">
558
+ <div style="display:flex;justify-content:center;align-items:center;width:30%;display: flex;flex-direction: column;align-items:center;border:1px solid grey;border-top:0px solid;border-right:0px solid;">
559
+ ${ArrayCheck(pres.timingdata) &&
560
+ pres.timingdata[0].timings &&
561
+ pres.timingdata[0].timings != undefined &&
562
+ pres.timingdata[0].timings != null &&
563
+ pres.timingdata[0].timings != '' &&
564
+ pres.timingdata[0].timings[0].timingsarray &&
565
+ pres.timingdata[0].timings[0].timingsarray != null &&
566
+ pres.timingdata[0].timings[0].timingsarray != undefined ?
567
+ fnHtml(pres, false)
568
+ : ''}
569
+ </div>
570
+ ${ArrayCheck(pres.timingdata) && getIntake(pres.intake, pres.dosage) &&
571
+ pres.timingdata[0].timings &&
572
+ pres.timingdata[0].timings != undefined &&
573
+ pres.timingdata[0].timings != null ?
574
+ `<div style="display:flex;justify-content:center;align-items:center;width:20%;font-size:10px;text-align:center;border:1px solid grey;border-top:0px solid;border-right:0px solid;">
575
+ ${pres.durationnature != null &&
576
+ pres.durationnature != undefined
577
+ ? pres.durationnature
578
+ : ''
579
+ }${' '}
580
+ ${pres.duration != undefined &&
581
+ pres.duration != null &&
582
+ pres.duration != 0
583
+ ? 'FOR ' + pres.duration
584
+ : ' '}${' '}
585
+ ${pres.durationtype != null &&
586
+ pres.durationtype != undefined &&
587
+ pres.duration &&
588
+ pres.duration != undefined &&
589
+ pres.duration != null &&
590
+ pres.duration != 0
591
+ ? pres.durationtype
592
+ : ''
593
+ }
594
+ ${pres.durationtype != null &&
595
+ pres.durationtype != undefined &&
596
+ pres.duration &&
597
+ pres.duration != undefined &&
598
+ pres.duration != null &&
599
+ pres.duration != 0 &&
600
+ pres.duration != 1
601
+ ? '(S)'
602
+ : ' '}
603
+
604
+ </div>`
605
+
606
+ : `<div style="display:flex;justify-content:center;align-items:center;width:20%;font-size:10px;text-align:center;border:1px solid grey;border-top:0px solid;border-right:0px solid;">
607
+ </div>`}
608
+ <div style="display:flex;justify-content:center;align-items:center;width:12%;font-size:10px;text-align:center;border:1px solid grey;border-top:0px solid;border-right:0px solid;">
609
+ ${ArrayCheck(pres.timingdata) && pres.routename && pres.routename != null && pres.routename != undefined ? pres.routename : ''}
610
+ </div>
611
+ <div style="display:flex;justify-content:center;align-items:center;width:18%;font-size:10px;text-align:center;border:1px solid grey;border-top:0px solid;border-right:0px solid;">
612
+ ${ArrayCheck(pres.timingdata) && pres.timingdata[0].performeddate && pres.timingdata[0].performeddate != null && pres.timingdata[0].performeddate != undefined ? reverse(pres.timingdata[0].performeddate) : ''}
613
+ </div>
614
+ <div style="display:flex;justify-content:center;align-items:center;width:20%;font-size:10px;text-align:center;border:1px solid grey;border-top:0px solid;">
615
+ ${ArrayCheck(pres.timingdata) && pres.timingdata[0].remarks && pres.timingdata[0].remarks != null && pres.timingdata[0].remarks != undefined ? pres.timingdata[0].remarks : ''}
616
+ </div>
617
+ </div>
618
+ </div>
619
+
620
+
621
+ `;
622
+ })
623
+ .join('')
624
+ : ''
625
+ }
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+ </div>
636
+ `)
637
+
638
+ }
639
+
640
+ function fnPatientService(datas) {
641
+
642
+ return (`<div>
643
+
644
+ ${(ArrayCheck(datas.patientservice) &&
645
+ datas.patientservice[0].data &&
646
+ datas.patientservice[0].data[0] &&
647
+ datas.patientservice[0].data[0].assignedstatusname &&
648
+ datas.patientservice[0].data[0].assignedstatusname != null &&
649
+ datas.patientservice[0].data[0].assignedstatusname != undefined &&
650
+ datas.patientservice[0].data[0].assignedstatusname.length > 0 &&
651
+ datas.patientservice[0].data[0].assignedstatusname != ' (0)') ||
652
+ (ArrayCheck(datas.patientservice) &&
653
+ datas.patientservice[0].description &&
654
+ datas.patientservice[0].description[0] &&
655
+ datas.patientservice[0].description[0].instructions &&
656
+ datas.patientservice[0].description[0].instructions != null &&
657
+ datas.patientservice[0].description[0].instructions != undefined &&
658
+ datas.patientservice[0].description[0].instructions.length > 0) ||
659
+ (ArrayCheck(datas.patientservice) &&
660
+ datas.patientservice[0].description &&
661
+ datas.patientservice[0].description[0] &&
662
+ datas.patientservice[0].description[0].notes &&
663
+ datas.patientservice[0].description[0].notes[0] &&
664
+ datas.patientservice[0].description[0].notes[0].displayvalue &&
665
+ datas.patientservice[0].description[0].notes[0].displayvalue != null &&
666
+ datas.patientservice[0].description[0].notes[0].displayvalue != undefined &&
667
+ datas.patientservice[0].description[0].notes[0].displayvalue.length > 0)
668
+ ? `
669
+ <div style="font-size:10px;background-color:#F0F0F0;color:blue;"> <i class="fa-solid fa-hand-holding-heart"></i> PATIENT SERVICE</div>`
670
+ : ''
671
+ }
672
+ ${ArrayCheck(datas.patientservice) &&
673
+ datas.patientservice[0].date &&
674
+ datas.patientservice[0].data &&
675
+ datas.patientservice[0].data != null &&
676
+ datas.patientservice[0].data != undefined &&
677
+ datas.patientservice[0].data.length > 0 &&
678
+ datas.patientservice[0].data[0] &&
679
+ datas.patientservice[0].data[0].assignedstatusname &&
680
+ datas.patientservice[0].data[0].assignedstatusname != null &&
681
+ datas.patientservice[0].data[0].assignedstatusname != undefined &&
682
+ datas.patientservice[0].data[0].assignedstatusname.length > 0 &&
683
+ datas.patientservice[0].data[0].assignedstatusname != ' (0)'
684
+ ? `<div style="flex-direction: row;display: flex;width:100%;">
685
+
686
+ <div style="width: 20%;border: 1px white;">
687
+ <div style="margin-left:1px;margin-top:5px;font-size:10px;font-weight: normal;">
688
+ Medicine/Content</div>
689
+
690
+ </div>
691
+
692
+ <div style="width: 40%;border: 1px white;">
693
+ <div style="margin-left:1px;margin-top:5px;font-size:10px;font-weight: normal;text-align:center;">Medication</div>
694
+ </div>
695
+
696
+
697
+ <div style="width: 20%;border: 1px white;">
698
+ <div style="margin-left:1px;margin-top:5px;font-size:10px;font-weight: normal;">Duration</div>
699
+ </div>
700
+
701
+ <div style="width: 20%;border: 1px white;">
702
+ <div style="margin-left:1px;margin-top:5px;font-size:10px;font-weight: normal;">Route</div>
703
+ </div>
704
+
705
+ </div>`
706
+ : ''
707
+ }
708
+ <div style="">
709
+ ${ArrayCheck(datas.patientservice) &&
710
+ datas.patientservice[0].date &&
711
+ datas.patientservice[0].data &&
712
+ datas.patientservice[0].data != null &&
713
+ datas.patientservice[0].data != undefined &&
714
+ datas.patientservice[0].data.length > 0 &&
715
+ datas.patientservice[0].data[0] &&
716
+ datas.patientservice[0].data[0].assignedstatusname &&
717
+ datas.patientservice[0].data[0].assignedstatusname != null &&
718
+ datas.patientservice[0].data[0].assignedstatusname != undefined &&
719
+ datas.patientservice[0].data[0].assignedstatusname.length > 0 &&
720
+ datas.patientservice[0].data[0].assignedstatusname != ' (0)'
721
+ ? datas.patientservice[0].data
722
+ .map(pres => {
723
+ return `
724
+ <div style="flex-direction: row;display: flex;width:100%;">
725
+ <div style="width: 20%;margin-left:1px;margin-top:1px;font-size:12px;font-weight: bold;">${pres.assignedstatusname ? pres.assignedstatusname : ''
726
+ }</div>
727
+ <div style="width: 40%;margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">
728
+ ${pres.dosage ? pres.dosage : ''
729
+ }
730
+
731
+ <div style="margin-left:1px;margin-top:1px;font-size:10px;font-weight: normal;">
732
+
733
+ ${pres.timings != undefined && pres.timings != null && ArrayCheck(pres.timings) &&
734
+ pres.timings[0].timingsarray != undefined ? pres.timings[0].timingsarray.map((timing, i) => {
735
+ return (timing.dosage[0].usagename != "" ? `
736
+ <div style="flex-direction: row;display: flex;">
737
+ ${timing.timingslotname}
738
+ ${' '}
739
+ ${timing.dosage[0].usagename}
740
+ ${' '}
741
+ ${' BETWEEN '}
742
+ ${' '}
743
+ ${timing.timingslotfrom}
744
+ ${' '}
745
+ ${" TO "}
746
+ ${' '}
747
+ ${timing.timingslotto}
748
+ ${' '}
749
+ ${timing.dosage[0].intake && timing.dosage[0].intake != null && timing.dosage[0].intake != undefined ? timing.dosage[0].intake : ''}
750
+ </div>
751
+ `: '')
752
+ }).join('') : ''}
753
+
754
+
755
+ </div>
756
+
757
+ </div>
758
+ <div style="width: 20%;margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">
759
+
760
+ ${pres.timing ? pres.timing : ''
761
+ }${' '}${pres.durationnature ? pres.durationnature : ''}${' '}${pres.duration ? 'FOR ' + pres.duration : ''
762
+ }${' '}${pres.durationtype ? pres.durationtype + '(S)' : ''
763
+ }${' '}
764
+ </div>
765
+ <div style="width: 20%;margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">${pres.routename ? pres.routename : ''
766
+ }</div>
767
+ </div>
768
+
769
+ <div>
770
+
771
+ </div>
772
+
773
+
774
+
775
+ <div style="flex-direction: row;display: flex;">
776
+ <div style="margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">${pres.performeddate ? ' ' + pres.performeddate : ''
777
+ }${' '}${pres.remarks ? '**' + pres.remarks : ''}</div>
778
+ </div>
779
+
780
+
781
+ `;
782
+ })
783
+ .join('')
784
+ : ''
785
+ }</div>
786
+
787
+
788
+ <div style="margin-left:30px;">
789
+ ${ArrayCheck(datas.patientservice) &&
790
+ datas.patientservice[0].date &&
791
+ datas.patientservice[0].description &&
792
+ datas.patientservice[0].description != null &&
793
+ datas.patientservice[0].description != undefined &&
794
+ datas.patientservice[0].description.length > 0
795
+ ? datas.patientservice[0].description
796
+ .map(presNoteInsCom => {
797
+ return `<div>
798
+ ${presNoteInsCom.notes &&
799
+ presNoteInsCom.notes != null &&
800
+ presNoteInsCom.notes != undefined &&
801
+ presNoteInsCom.notes.length > 0
802
+ ? presNoteInsCom.notes
803
+ .map(presnotes => {
804
+ return `${presnotes.displayvalue &&
805
+ presnotes.displayvalue != null &&
806
+ presnotes.displayvalue != undefined &&
807
+ presnotes.displayvalue.length > 0
808
+ ? `<div style="font-size:14px;font-weight: normal;margin-top:10px">
809
+ <i style="border: 1px solid lightgrey;border-radius: 25px;padding: 4px;">
810
+ <i class="fa fa-paperclip">
811
+ </i>`
812
+ : ''
813
+ }
814
+ ${' '}
815
+ ${presnotes.displayvalue &&
816
+ presnotes.displayvalue != null &&
817
+ presnotes.displayvalue != undefined &&
818
+ presnotes.displayvalue.length > 0
819
+ ? presnotes.displayvalue
820
+ : ''
821
+ }
822
+ </i>
823
+ </div>`;
824
+ })
825
+ .join('')
826
+ : ''
827
+ }
828
+ </div>
829
+ <div style="">
830
+ ${presNoteInsCom.instructions &&
831
+ presNoteInsCom.instructions != null &&
832
+ presNoteInsCom.instructions != undefined &&
833
+ presNoteInsCom.instructions.length > 0
834
+ ? presNoteInsCom.instructions
835
+ .map(presinst => {
836
+ return `
837
+ <div style="font-size:14px;font-weight: normal;margin-top:10px">
838
+ <i style="border: 1px solid lightgrey;border-radius: 25px;padding: 4px;">
839
+ ${presinst.displayvalue &&
840
+ presinst.displayvalue != null &&
841
+ presinst.displayvalue != undefined &&
842
+ presinst.displayvalue.length > 0
843
+ ? `<i class="fa fa-thumb-tack"></i>`
844
+ : ''
845
+ }
846
+ ${' '}
847
+ ${presinst.displayvalue &&
848
+ presinst.displayvalue != null &&
849
+ presinst.displayvalue != undefined &&
850
+ presinst.displayvalue.length > 0
851
+ ? presinst.displayvalue
852
+ : ''
853
+ }
854
+ </i>
855
+ </div>`;
856
+ })
857
+ .join('')
858
+ : ''
859
+ }
860
+ </div>`;
861
+ })
862
+ .join('')
863
+ : ''
864
+ }
865
+ </div>
866
+ `)
867
+
868
+ }
869
+
870
+ function fnDiet(datas) {
871
+ // console.log("----------------DIET-------------------",JSON.stringify(datas))
872
+ return (`<div>
873
+ ${(ArrayCheck(datas.diet) &&
874
+ datas.diet[0].data &&
875
+ datas.diet[0].data[0] &&
876
+ datas.diet[0].data[0].assignedstatusname &&
877
+ datas.diet[0].data[0].assignedstatusname != null &&
878
+ datas.diet[0].data[0].assignedstatusname != undefined &&
879
+ datas.diet[0].data[0].assignedstatusname.length > 0 &&
880
+ datas.diet[0].data[0].assignedstatusname != ' (0)') ||
881
+ (ArrayCheck(datas.diet) &&
882
+ datas.diet[0].description &&
883
+ datas.diet[0].description[0] &&
884
+ datas.diet[0].description[0].instructions &&
885
+ datas.diet[0].description[0].instructions != null &&
886
+ datas.diet[0].description[0].instructions != undefined &&
887
+ datas.diet[0].description[0].instructions.length > 0) ||
888
+ (ArrayCheck(datas.diet) &&
889
+ datas.diet[0].description &&
890
+ datas.diet[0].description[0] &&
891
+ datas.diet[0].description[0].notes &&
892
+ datas.diet[0].description[0].notes[0] &&
893
+ datas.diet[0].description[0].notes[0].displayvalue &&
894
+ datas.diet[0].description[0].notes[0].displayvalue != null &&
895
+ datas.diet[0].description[0].notes[0].displayvalue != undefined &&
896
+ datas.diet[0].description[0].notes[0].displayvalue.length > 0)
897
+ ? `<div style="font-size:10px;background-color:#F0F0F0;color:blue;"> <i class="fa-solid fa-apple-whole"></i> DIET</div>`
898
+ : ''
899
+ }
900
+ ${ArrayCheck(datas.diet) &&
901
+ datas.diet[0].date &&
902
+ datas.diet[0].data &&
903
+ datas.diet[0].data != null &&
904
+ datas.diet[0].data != undefined &&
905
+ datas.diet[0].data.length > 0 &&
906
+ datas.diet[0].data[0] &&
907
+ datas.diet[0].data[0].assignedstatusname &&
908
+ datas.diet[0].data[0].assignedstatusname != null &&
909
+ datas.diet[0].data[0].assignedstatusname != undefined &&
910
+ datas.diet[0].data[0].assignedstatusname.length > 0 &&
911
+ datas.diet[0].data[0].assignedstatusname != ' (0)'
912
+ ? `<div style="flex-direction: row;display: flex;width:100%;">
913
+
914
+ <div style="width: 20%;border: 1px white;">
915
+ <div style="margin-left:1px;margin-top:5px;font-size:10px;font-weight: normal;">
916
+ Medicine/Content</div>
917
+
918
+ </div>
919
+
920
+ <div style="width: 40%;border: 1px white;">
921
+ <div style="margin-left:1px;margin-top:5px;font-size:10px;font-weight: normal;text-align:center;">Medication</div>
922
+ </div>
923
+
924
+
925
+ <div style="width: 20%;border: 1px white;">
926
+ <div style="margin-left:1px;margin-top:5px;font-size:10px;font-weight: normal;">Duration</div>
927
+ </div>
928
+
929
+ <div style="width: 20%;border: 1px white;">
930
+ <div style="margin-left:1px;margin-top:5px;font-size:10px;font-weight: normal;">Route</div>
931
+ </div>
932
+
933
+ </div>`
934
+ : ''
935
+ }
936
+ <div style="">
937
+ ${ArrayCheck(datas.diet) &&
938
+ datas.diet[0].date &&
939
+ datas.diet[0].data &&
940
+ datas.diet[0].data != null &&
941
+ datas.diet[0].data != undefined &&
942
+ datas.diet[0].data.length > 0 &&
943
+ datas.diet[0].data[0] &&
944
+ datas.diet[0].data[0].assignedstatusname &&
945
+ datas.diet[0].data[0].assignedstatusname != null &&
946
+ datas.diet[0].data[0].assignedstatusname != undefined &&
947
+ datas.diet[0].data[0].assignedstatusname.length > 0 &&
948
+ datas.diet[0].data[0].assignedstatusname != ' (0)'
949
+ ? datas.diet[0].data
950
+ .map(pres => {
951
+ return `
952
+ <div style="flex-direction: row;display: flex;width:100%;">
953
+ <div style="width: 20%;margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">${pres.assignedstatusname ? pres.assignedstatusname : ''
954
+ }</div>
955
+ <div style="width: 40%;margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">
956
+ ${pres.dosage ? pres.dosage : ''
957
+ }
958
+
959
+ <div style="margin-left:1px;margin-top:1px;font-size:10px;font-weight: normal;">
960
+
961
+ ${pres.timings != undefined && pres.timings != null && pres.timings != "" && ArrayCheck(pres.timings) &&
962
+ pres.timings[0].timingsarray != undefined ? pres.timings[0].timingsarray.map((timing, i) => {
963
+ return (timing.dosage[0].usagename != "" ? `
964
+ <div style="flex-direction: row;display: flex;">
965
+ ${timing.timingslotname}
966
+ ${' '}
967
+ ${timing.dosage[0].usagename}
968
+ ${' '}
969
+ ${' BETWEEN '}
970
+ ${' '}
971
+ ${timing.timingslotfrom}
972
+ ${' '}
973
+ ${" TO "}
974
+ ${' '}
975
+ ${timing.timingslotto}
976
+ ${' '}
977
+ ${timing.dosage[0].intake && timing.dosage[0].intake != null && timing.dosage[0].intake != undefined ? timing.dosage[0].intake : ''}
978
+ </div>
979
+ `: '')
980
+ }).join('') : ''}
981
+
982
+
983
+ </div>
984
+
985
+ </div>
986
+ <div style="width: 20%;margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">
987
+
988
+ ${pres.timing ? pres.timing : ''
989
+ }${' '}${pres.durationnature ? pres.durationnature : ''}${' '}${pres.duration ? 'FOR ' + pres.duration : ''
990
+ }${' '}${pres.durationtype ? pres.durationtype + '(S)' : ''
991
+ }${' '}
992
+ </div>
993
+ <div style="width: 20%;margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">${pres.routename ? pres.routename : ''
994
+ }</div>
995
+ </div>
996
+
997
+ <div>
998
+
999
+ </div>
1000
+
1001
+
1002
+
1003
+ <div style="flex-direction: row;display: flex;">
1004
+ <div style="margin-left:1px;margin-top:1px;font-size:10px;font-weight: bold;">${pres.performeddate ? ' ' + pres.performeddate : ''
1005
+ }${' '}${pres.remarks ? '**' + pres.remarks : ''}</div>
1006
+ </div>
1007
+
1008
+
1009
+ `;
1010
+ })
1011
+ .join('')
1012
+ : ''
1013
+ }</div>
1014
+
1015
+
1016
+ <div style="">
1017
+ ${ArrayCheck(datas.diet) &&
1018
+ datas.diet[0].date &&
1019
+ datas.diet[0].description &&
1020
+ datas.diet[0].description != null &&
1021
+ datas.diet[0].description != undefined &&
1022
+ datas.diet[0].description.length > 0
1023
+ ? datas.diet[0].description
1024
+ .map(presNoteInsCom => {
1025
+ return `<div>
1026
+ ${presNoteInsCom.notes &&
1027
+ presNoteInsCom.notes != null &&
1028
+ presNoteInsCom.notes != undefined &&
1029
+ presNoteInsCom.notes.length > 0
1030
+ ? presNoteInsCom.notes
1031
+ .map(presnotes => {
1032
+ return `${presnotes.displayvalue &&
1033
+ presnotes.displayvalue != null &&
1034
+ presnotes.displayvalue != undefined &&
1035
+ presnotes.displayvalue.length > 0
1036
+ ? `<div style="font-size:14px;font-weight: normal;margin-top:10px;">
1037
+ <i style="border: 1px solid lightgrey;border-radius: 25px;padding: 4px;">
1038
+ <i class="fa fa-paperclip">
1039
+ </i>`
1040
+ : ''
1041
+ }
1042
+ ${' '}
1043
+ ${presnotes.displayvalue &&
1044
+ presnotes.displayvalue != null &&
1045
+ presnotes.displayvalue != undefined &&
1046
+ presnotes.displayvalue.length > 0
1047
+ ? presnotes.displayvalue
1048
+ : ''
1049
+ }
1050
+ </i>
1051
+ </div>`;
1052
+ })
1053
+ .join('')
1054
+ : ''
1055
+ }
1056
+ </div>
1057
+ <div style="">
1058
+ ${presNoteInsCom.instructions &&
1059
+ presNoteInsCom.instructions != null &&
1060
+ presNoteInsCom.instructions != undefined &&
1061
+ presNoteInsCom.instructions.length > 0
1062
+ ? presNoteInsCom.instructions
1063
+ .map(presinst => {
1064
+ return `
1065
+ <div style="font-size:14px;font-weight: normal;margin-top:10px;">
1066
+ <i style="border: 1px solid lightgrey;border-radius: 25px;padding: 4px;">
1067
+ ${presinst.displayvalue &&
1068
+ presinst.displayvalue != null &&
1069
+ presinst.displayvalue != undefined &&
1070
+ presinst.displayvalue.length > 0
1071
+ ? `<i class="fa fa-thumb-tack"></i>`
1072
+ : ''
1073
+ }
1074
+ ${' '}
1075
+ ${presinst.displayvalue &&
1076
+ presinst.displayvalue != null &&
1077
+ presinst.displayvalue != undefined &&
1078
+ presinst.displayvalue.length > 0
1079
+ ? presinst.displayvalue
1080
+ : ''
1081
+ }
1082
+ </i>
1083
+ </div>`;
1084
+ })
1085
+ .join('')
1086
+ : ''
1087
+ }
1088
+ </div>`;
1089
+ })
1090
+ .join('')
1091
+ : ''
1092
+ }
1093
+ </div>
1094
+
1095
+ `)
1096
+
1097
+ }
1098
+
1099
+
1100
+ function fnMainMap() {
1101
+ return (
1102
+ `
1103
+ ${htmldata && htmldata != null && htmldata != undefined && htmldata.length > 0 ?
1104
+ htmldata.map((datas, i) => {
1105
+ return `
1106
+ <div style="display: flex;flex-direction: column;">
1107
+ <div style="position:fixed;bottom:100px;right:300px;opacity:1;z-index:100;color:#E5E4E2;user-select: none;font-size: 70px;transform: rotate(0deg);">
1108
+ </div>
1109
+ ${fnDateConsultant(datas, i)}
1110
+ ${datas.patientchartdetaildata &&
1111
+ datas.patientchartdetaildata != null &&
1112
+ datas.patientchartdetaildata != undefined &&
1113
+ datas.patientchartdetaildata.length > 0
1114
+ ? datas.patientchartdetaildata
1115
+ .map(detaildata => {
1116
+ // console.log("...............DDDDDDDD........", JSON.stringify(detaildata))
1117
+ if (
1118
+ ValueCheck(detaildata) &&
1119
+ detaildata.textheader != null &&
1120
+ detaildata.textheader != undefined &&
1121
+ detaildata.textheader.length > 0 &&
1122
+ detaildata.textheader != 'PRESCRIPTION' &&
1123
+ detaildata.textheader != 'EYE EVALUATION' &&
1124
+ detaildata.textheader != 'PATIENT SERVICE' &&
1125
+ detaildata.textheader != 'DIET'
1126
+ ) {
1127
+ return `<div style="">
1128
+ ${(detaildata.notes &&
1129
+ detaildata.notes[0] &&
1130
+ detaildata.notes[0].displayvalue &&
1131
+ detaildata.notes[0].displayvalue != null &&
1132
+ detaildata.notes[0].displayvalue != undefined &&
1133
+ detaildata.notes[0].displayvalue.length > 0) ||
1134
+ (detaildata.instructions &&
1135
+ detaildata.instructions[0] &&
1136
+ detaildata.instructions[0].displayvalue &&
1137
+ detaildata.instructions[0].displayvalue != null &&
1138
+ detaildata.instructions[0].displayvalue != undefined &&
1139
+ detaildata.instructions[0].displayvalue.length > 0) ||
1140
+ (detaildata.savedpdf &&
1141
+ detaildata.savedpdf != null &&
1142
+ detaildata.savedpdf != undefined &&
1143
+ detaildata.savedpdf.length > 0) ||
1144
+ (detaildata.savedimages &&
1145
+ detaildata.savedimages != null &&
1146
+ detaildata.savedimages != undefined &&
1147
+ detaildata.savedimages.length > 0) ||
1148
+ (detaildata.savedaudio &&
1149
+ detaildata.savedaudio != null &&
1150
+ detaildata.savedaudio != undefined &&
1151
+ detaildata.savedaudio.length > 0) ||
1152
+ (detaildata.savedvideo &&
1153
+ detaildata.savedvideo != null &&
1154
+ detaildata.savedvideo != undefined &&
1155
+ detaildata.savedvideo.length > 0)
1156
+ ||
1157
+ (detaildata &&
1158
+ detaildata.dataArr != null &&
1159
+ detaildata.dataArr != undefined &&
1160
+ detaildata.dataArr.length > 0)
1161
+ ? `<div style="color:blue;font-size:10px;background-color:#F0F0F0;"> <i class="fa-solid fa-file"></i>
1162
+ ${detaildata.textheader &&
1163
+ detaildata.textheader != null &&
1164
+ detaildata.textheader != undefined &&
1165
+ detaildata.textheader.length > 0
1166
+ &&
1167
+ detaildata.textheader != 'PRESCRIPTION' &&
1168
+ detaildata.textheader != 'EYE EVALUATION' &&
1169
+ detaildata.textheader != 'PATIENT SERVICE' &&
1170
+ detaildata.textheader != 'DIET'
1171
+ ? detaildata.textheader
1172
+ : ''
1173
+ }
1174
+ </div>`
1175
+ : ''
1176
+ }
1177
+
1178
+
1179
+ ${detaildata.dataArr != undefined
1180
+ && detaildata.dataArr != null
1181
+ && detaildata.dataArr.length > 0 ?
1182
+ detaildata.dataArr.map(arraydata => {
1183
+ // console.log("IMAG URL", JSON.stringify(arraydata))
1184
+ return `
1185
+
1186
+ <div>
1187
+ <div style="display: flex;flex-direction: row;align-items: center;justify-content: space-between;background-color:#fff;">
1188
+ <div style="font-weight: bold;font-size:14px;">
1189
+ <i class="fa fa-circle-dot" style="margin-right:5px; font-size: 0.73em;"></i>
1190
+ </i>
1191
+ ${arraydata.displayvalue &&
1192
+ arraydata.displayvalue != null &&
1193
+ arraydata.displayvalue != "" &&
1194
+ arraydata.displayvalue != undefined &&
1195
+ arraydata.displayvalue.length > 0
1196
+ ? getString(arraydata.displayvalue)
1197
+ : ``}
1198
+ </div>
1199
+ </div>
1200
+
1201
+ ${ValueCheck(arraydata.displayvalue)
1202
+ && getImageFromString(arraydata.displayvalue) != undefined ?
1203
+ `<a href="${imageURL + getImageFromString(arraydata.displayvalue)}"> <img onclick="SendDImgData2()" src=${imageURL + getImageFromString(arraydata.displayvalue)}
1204
+ alt="No image(s)" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/1/14/No_Image_Available.jpg?20200913095930';" style="margin: 3px;width: 100px;height: 100px;object-fit: contain;"></a>` : ``}
1205
+
1206
+ </div>`
1207
+ }).join('') : ``}
1208
+
1209
+
1210
+ <div>
1211
+ ${detaildata.notes &&
1212
+ detaildata.notes != null &&
1213
+ detaildata.notes != undefined &&
1214
+ detaildata.notes.length > 0
1215
+ ? detaildata.notes
1216
+ .map(notesdata => {
1217
+ return `${notesdata.displayvalue &&
1218
+ notesdata.displayvalue != null &&
1219
+ notesdata.displayvalue != undefined &&
1220
+ notesdata.displayvalue.length > 0
1221
+ ? `<div style="font-size:15px;font-weight: normal;display:flex;flex-direction:row;">
1222
+ <i style="border: 1px solid grey;border-radius: 25px;padding: 4px;">
1223
+ <i class="fa fa-paperclip">
1224
+ </i>`
1225
+ : ''
1226
+ }
1227
+ ${' '}
1228
+ ${notesdata.displayvalue &&
1229
+ notesdata.displayvalue != null &&
1230
+ notesdata.displayvalue != undefined &&
1231
+ notesdata.displayvalue.length > 0
1232
+ ? notesdata.displayvalue
1233
+ : ''
1234
+ }
1235
+ </i>
1236
+ </div>`;
1237
+ })
1238
+ .join('')
1239
+ : ''
1240
+ }
1241
+ </div>
1242
+ <div style="margin-top:10px;">
1243
+ ${detaildata.instructions &&
1244
+ detaildata.instructions != null &&
1245
+ detaildata.instructions != undefined &&
1246
+ detaildata.instructions.length > 0
1247
+ ? detaildata.instructions
1248
+ .map(instdata => {
1249
+ return `<div style="font-size:15px;font-weight: normal;display:flex;flex-direction:row;">
1250
+ ${instdata.displayvalue &&
1251
+ instdata.displayvalue != null &&
1252
+ instdata.displayvalue != undefined &&
1253
+ instdata.displayvalue.length > 0
1254
+ ?
1255
+ `<i style="border: 1px solid grey;border-radius: 25px;padding: 4px;">
1256
+ ${instdata.displayvalue &&
1257
+ instdata.displayvalue != null &&
1258
+ instdata.displayvalue != undefined &&
1259
+ instdata.displayvalue.length > 0
1260
+ ? `<i class="fa fa-thumb-tack"></i>`
1261
+ : ''
1262
+ }
1263
+ ${' '}
1264
+ ${instdata.displayvalue &&
1265
+ instdata.displayvalue != null &&
1266
+ instdata.displayvalue != undefined &&
1267
+ instdata.displayvalue.length > 0
1268
+ ? instdata.displayvalue
1269
+ : ''
1270
+ }
1271
+ </i>`
1272
+ : ''}
1273
+ </div>`;
1274
+ })
1275
+ .join('')
1276
+ : ''
1277
+ }
1278
+ </div>
1279
+
1280
+
1281
+ <div style="">
1282
+ ${detaildata.savedpdf &&
1283
+ detaildata.savedpdf != null &&
1284
+ detaildata.savedpdf != undefined &&
1285
+ detaildata.savedpdf.length > 0
1286
+ ? detaildata.savedpdf
1287
+ .map(pdf => {
1288
+ return ``;
1289
+ })
1290
+ .join('')
1291
+ : ''
1292
+ }
1293
+ </div>
1294
+ <div style="">
1295
+ ${detaildata.savedimages &&
1296
+ detaildata.savedimages != null &&
1297
+ detaildata.savedimages != undefined &&
1298
+ detaildata.savedimages.length > 0
1299
+ ? detaildata.savedimages
1300
+ .map((images, i) => {
1301
+ return `<script>
1302
+ const SendDImgData = async () => {
1303
+ ${detaildata.savedimages &&
1304
+ detaildata.savedimages != null &&
1305
+ detaildata.savedimages != undefined &&
1306
+ detaildata.savedimages.length > 0 ?
1307
+ `window.ReactNativeWebView.postMessage('${JSON.stringify({
1308
+ i: 'dimgs',
1309
+ savedimages: detaildata.savedimages,
1310
+ index: i + 1,
1311
+ imageuri: images.filename,
1312
+ })}')` : ''};
1313
+ };
1314
+ </script>`;
1315
+ })
1316
+ .join('')
1317
+ : ''
1318
+ }
1319
+ </div>
1320
+
1321
+ </div>`;
1322
+ }
1323
+ })
1324
+ .join('')
1325
+ : datas.description &&
1326
+ datas.description != null &&
1327
+ datas.description != undefined &&
1328
+ datas.description.length > 0
1329
+ ? datas.description
1330
+ .map(descriptiondata => {
1331
+ if (
1332
+ descriptiondata.textheader &&
1333
+ descriptiondata.textheader != null &&
1334
+ descriptiondata.textheader != undefined &&
1335
+ descriptiondata.textheader.length > 0 &&
1336
+ descriptiondata.textheader != 'PRESCRIPTION'
1337
+ ) {
1338
+ return `<div style="margin-left:30px;">
1339
+
1340
+ ${(descriptiondata.notes &&
1341
+ descriptiondata.notes[0] &&
1342
+ descriptiondata.notes[0].displayvalue &&
1343
+ descriptiondata.notes[0].displayvalue != null &&
1344
+ descriptiondata.notes[0].displayvalue != undefined &&
1345
+ descriptiondata.notes[0].displayvalue.length > 0) ||
1346
+ (descriptiondata.instructions &&
1347
+ descriptiondata.instructions[0] &&
1348
+ descriptiondata.instructions[0].displayvalue &&
1349
+ descriptiondata.instructions[0].displayvalue != null &&
1350
+ descriptiondata.instructions[0].displayvalue != undefined &&
1351
+ descriptiondata.instructions[0].displayvalue.length > 0) ||
1352
+ (descriptiondata.savedimages &&
1353
+ descriptiondata.savedimages != null &&
1354
+ descriptiondata.savedimages != undefined &&
1355
+ descriptiondata.savedimages.length > 0) ||
1356
+ (descriptiondata.savedaudio &&
1357
+ descriptiondata.savedaudio != null &&
1358
+ descriptiondata.savedaudio != undefined &&
1359
+ descriptiondata.savedaudio.length > 0) ||
1360
+ (descriptiondata.savedvideo &&
1361
+ descriptiondata.savedvideo != null &&
1362
+ descriptiondata.savedvideo != undefined &&
1363
+ descriptiondata.savedvideo.length > 0) ||
1364
+ (descriptiondata &&
1365
+ descriptiondata != null &&
1366
+ descriptiondata.textvalue != undefined &&
1367
+ descriptiondata.textvalue.length > 0)
1368
+ ? `<div style="color:blue;font-size:22px;background-color:#F0F0F0;">
1369
+ ${descriptiondata.textheader &&
1370
+ descriptiondata.textheader != null &&
1371
+ descriptiondata.textheader != undefined &&
1372
+ descriptiondata.textheader.length > 0 &&
1373
+ descriptiondata.textheader != 'PRESCRIPTION'
1374
+ ? descriptiondata.textheader
1375
+ : ''
1376
+ }
1377
+ </div>`
1378
+ : ''
1379
+ }
1380
+ <p style="font-weight: bold;">
1381
+ ${descriptiondata.textvalue &&
1382
+ descriptiondata.textvalue != null &&
1383
+ descriptiondata.textvalue != undefined &&
1384
+ descriptiondata.textvalue.length > 0
1385
+ ? descriptiondata.textvalue
1386
+ : ''
1387
+ }
1388
+ </p>
1389
+ <div>
1390
+ ${descriptiondata.notes &&
1391
+ descriptiondata.notes != null &&
1392
+ descriptiondata.notes != undefined &&
1393
+ descriptiondata.notes.length > 0
1394
+ ? descriptiondata.notes
1395
+ .map(dnotesdata => {
1396
+ return `${dnotesdata.displayvalue &&
1397
+ dnotesdata.displayvalue != null &&
1398
+ dnotesdata.displayvalue != undefined &&
1399
+ dnotesdata.displayvalue.length > 0
1400
+ ? `<div style="font-size:25px;font-weight: normal;">
1401
+ <p style="border: 1px solid black;border-radius: 25px;padding: 4px;">
1402
+ <i class="fa fa-paperclip"></i>`
1403
+ : ''
1404
+ }
1405
+ ${' '}
1406
+ ${dnotesdata.displayvalue &&
1407
+ dnotesdata.displayvalue != null &&
1408
+ dnotesdata.displayvalue != undefined &&
1409
+ dnotesdata.displayvalue.length > 0
1410
+ ? dnotesdata.displayvalue
1411
+ : ''
1412
+ }
1413
+ </p>
1414
+ </div>`;
1415
+ })
1416
+ .join('')
1417
+ : ''
1418
+ }
1419
+ </div>
1420
+ <div>
1421
+ ${descriptiondata.instructions &&
1422
+ descriptiondata.instructions != null &&
1423
+ descriptiondata.instructions != undefined &&
1424
+ descriptiondata.instructions.length > 0
1425
+ ? descriptiondata.instructions
1426
+ .map(dinstdata => {
1427
+ return `<div style="font-size:15px;font-weight: normal;">
1428
+ <p style="border: 1px solid black;border-radius: 25px;padding: 4px;">
1429
+ ${dinstdata.displayvalue &&
1430
+ dinstdata.displayvalue != null &&
1431
+ dinstdata.displayvalue != undefined &&
1432
+ dinstdata.displayvalue.length > 0
1433
+ ? `<i class="fa fa-thumb-tack"></i>`
1434
+ : ''
1435
+ }
1436
+ ${' '}
1437
+ ${dinstdata.displayvalue &&
1438
+ dinstdata.displayvalue != null &&
1439
+ dinstdata.displayvalue != undefined &&
1440
+ dinstdata.displayvalue.length > 0
1441
+ ? dinstdata.displayvalue
1442
+ : ''
1443
+ }
1444
+ </p>
1445
+ </div>`;
1446
+ })
1447
+ .join('')
1448
+ : ''
1449
+ }
1450
+ </div>
1451
+
1452
+ </div>`;
1453
+ }
1454
+ })
1455
+ .join('')
1456
+ : ''
1457
+ }
1458
+ ${fnPrescription(datas, i)}
1459
+ ${fnPatientService(datas)}
1460
+ ${fnDiet(datas)}
1461
+ </div>
1462
+
1463
+
1464
+
1465
+
1466
+ <div>
1467
+ ${ArrayCheck(datas.eyeprescription) &&
1468
+ datas.eyeprescription != null &&
1469
+ datas.eyeprescription != undefined
1470
+ ? `<p style="font-size:10px;background-color:#F0F0F0;color:blue;margin-left:0px;">
1471
+ EYE EVALUATION
1472
+ </p>
1473
+ <div style="">
1474
+ <p>
1475
+ Visual Acuity
1476
+ </p>
1477
+ <div>
1478
+ <div style="flex-direction: row;display: flex;">
1479
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1480
+ <div style="margin-left:1px;margin-top:5px;font-size:12px;font-weight: normal;">
1481
+ Name
1482
+ </div>
1483
+ </div>
1484
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1485
+ <div style="margin-left:1px;margin-top:5px;font-size:12px;font-weight: normal;">
1486
+ Right Eye
1487
+ </div>
1488
+ </div>
1489
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1490
+ <div style="margin-left:1px;margin-top:5px;font-size:12px;font-weight: normal;">
1491
+ Left Eye
1492
+ </div>
1493
+ </div>
1494
+ </div>
1495
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1496
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1497
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">
1498
+ Unaided/PG
1499
+ </div>
1500
+ </div>
1501
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1502
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">
1503
+ ${datas.eyeprescription[0].unaidedrighteye
1504
+ ? datas.eyeprescription[0].unaidedrighteye
1505
+ : ' '
1506
+ }
1507
+ </div>
1508
+ </div>
1509
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1510
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].unaidedlefteye
1511
+ ? datas.eyeprescription[0].unaidedlefteye
1512
+ : ' '
1513
+ }
1514
+ </div>
1515
+ </div>
1516
+ </div>
1517
+
1518
+
1519
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1520
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1521
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">Pinhole</div>
1522
+ </div>
1523
+
1524
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1525
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].presentlenserighteye
1526
+ ? datas.eyeprescription[0].presentlenserighteye
1527
+ : ' '
1528
+ }</div>
1529
+ </div>
1530
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1531
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].presentlenselefteye
1532
+ ? datas.eyeprescription[0].presentlenselefteye
1533
+ : ' '
1534
+ }
1535
+ </div>
1536
+ </div>
1537
+ </div>
1538
+
1539
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1540
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1541
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">IOP</div>
1542
+ </div>
1543
+
1544
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1545
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].ioprrighteye
1546
+ ? datas.eyeprescription[0].ioprrighteye
1547
+ : ' '
1548
+ }</div>
1549
+ </div>
1550
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1551
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].ioplefteye
1552
+ ? datas.eyeprescription[0].ioplefteye
1553
+ : ' '
1554
+ }
1555
+ </div>
1556
+ </div>
1557
+ </div>
1558
+
1559
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1560
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1561
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">PUPIL</div>
1562
+ </div>
1563
+
1564
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1565
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].pupilrighteye
1566
+ ? datas.eyeprescription[0].pupilrighteye
1567
+ : ' '
1568
+ }</div>
1569
+ </div>
1570
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1571
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].pupillefteye
1572
+ ? datas.eyeprescription[0].pupillefteye
1573
+ : ' '
1574
+ }
1575
+ </div>
1576
+ </div>
1577
+ </div>
1578
+
1579
+ </div>
1580
+ <p>Tested</p>
1581
+
1582
+ <div>
1583
+
1584
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1585
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1586
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1587
+ </div>
1588
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1589
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1590
+ </div>
1591
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1592
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">Right Eye</div>
1593
+ </div>
1594
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1595
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1596
+ </div>
1597
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1598
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1599
+ </div>
1600
+ </div>
1601
+
1602
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1603
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1604
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1605
+ </div>
1606
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1607
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">SPH
1608
+ </div>
1609
+ </div>
1610
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1611
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">CYL</div>
1612
+ </div>
1613
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1614
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">AXIS</div>
1615
+ </div>
1616
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1617
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">VA</div>
1618
+ </div>
1619
+ </div>
1620
+
1621
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1622
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1623
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">Distance</div>
1624
+ </div>
1625
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1626
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].distancersph
1627
+ ? datas.eyeprescription[0].distancersph
1628
+ : ' '
1629
+ }
1630
+ </div>
1631
+ </div>
1632
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1633
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].distancercyl
1634
+ ? datas.eyeprescription[0].distancercyl
1635
+ : ' '
1636
+ }</div>
1637
+ </div>
1638
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1639
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].distanceraxis
1640
+ ? datas.eyeprescription[0].distanceraxis
1641
+ : '0'
1642
+ }</div>
1643
+ </div>
1644
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1645
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].distancerva
1646
+ ? datas.eyeprescription[0].distancerva
1647
+ : ' '
1648
+ }</div>
1649
+ </div>
1650
+ </div>
1651
+
1652
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1653
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1654
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">Near</div>
1655
+ </div>
1656
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1657
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].nearrsph ? datas.eyeprescription[0].nearrsph : ' '
1658
+ }
1659
+ </div>
1660
+ </div>
1661
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1662
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].nearrcyl ? datas.eyeprescription[0].nearrcyl : ' '
1663
+ }</div>
1664
+ </div>
1665
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1666
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].nearraxis ? datas.eyeprescription[0].nearraxis : '0'
1667
+ }</div>
1668
+ </div>
1669
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1670
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].nearrva ? datas.eyeprescription[0].nearrva : ' '
1671
+ }</div>
1672
+ </div>
1673
+ </div>
1674
+
1675
+ </div>
1676
+ <p>${' '}</p>
1677
+
1678
+ <div>
1679
+
1680
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1681
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1682
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1683
+ </div>
1684
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1685
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1686
+ </div>
1687
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1688
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">Left Eye</div>
1689
+ </div>
1690
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1691
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1692
+ </div>
1693
+ <div style="width: 157px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1694
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1695
+ </div>
1696
+ </div>
1697
+
1698
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1699
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1700
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">${' '}</div>
1701
+ </div>
1702
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1703
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">SPH
1704
+ </div>
1705
+ </div>
1706
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1707
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">CYL</div>
1708
+ </div>
1709
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1710
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">AXIS</div>
1711
+ </div>
1712
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1713
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">VA</div>
1714
+ </div>
1715
+ </div>
1716
+
1717
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1718
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1719
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">Distance</div>
1720
+ </div>
1721
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1722
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].distancelsph
1723
+ ? datas.eyeprescription[0].distancelsph
1724
+ : ' '
1725
+ }
1726
+ </div>
1727
+ </div>
1728
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1729
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].distancelcyl
1730
+ ? datas.eyeprescription[0].distancelcyl
1731
+ : ' '
1732
+ }</div>
1733
+ </div>
1734
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1735
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].distancelaxis
1736
+ ? datas.eyeprescription[0].distancelaxis
1737
+ : '0'
1738
+ }</div>
1739
+ </div>
1740
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1741
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].distancelva
1742
+ ? datas.eyeprescription[0].distancelva
1743
+ : ' '
1744
+ }</div>
1745
+ </div>
1746
+ </div>
1747
+
1748
+ <div style="flex-direction: row;display: flex;margin-left:30px;">
1749
+ <div style="width: 197px;border: 1px solid white;margin:3px;border-radius:5px;text-align: center;">
1750
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: normal;">Near</div>
1751
+ </div>
1752
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1753
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].nearlsph ? datas.eyeprescription[0].nearlsph : ' '
1754
+ }
1755
+ </div>
1756
+ </div>
1757
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1758
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].nearlcyl ? datas.eyeprescription[0].nearlcyl : ' '
1759
+ }</div>
1760
+ </div>
1761
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1762
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].nearlaxis ? datas.eyeprescription[0].nearlaxis : '0'
1763
+ }</div>
1764
+ </div>
1765
+ <div style="width: 157px;border: 1px solid grey;margin:3px;border-radius:5px;text-align: center;">
1766
+ <div style="margin-left:1px;margin-top:5px;font-size:20px;font-weight: bold;">${datas.eyeprescription[0].nearlva ? datas.eyeprescription[0].nearlva : ' '
1767
+ }</div>
1768
+ </div>
1769
+ </div>
1770
+
1771
+
1772
+
1773
+
1774
+ </div>
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+
1791
+
1792
+
1793
+ <p>Eye Examination</p>
1794
+ <p>Left Eye- ${datas.eyeprescription[0].eyeexaminationlefteye}</p>
1795
+ <p>Right Eye- ${datas.eyeprescription[0].eyeexaminationrighteye}</p>
1796
+
1797
+
1798
+
1799
+
1800
+ </div>
1801
+ `
1802
+ : ''
1803
+ }
1804
+ </div>
1805
+ `;
1806
+ }).join('') : ''}`)
1807
+ }
1808
+
1809
+
1810
+ var contentData = `
1811
+ <html>
1812
+ <head>
1813
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
1814
+ <title>
1815
+ Bootstrap Example
1816
+ </title>
1817
+ </head>
1818
+ <body>
1819
+ <div>
1820
+ ${fnMainMap()}
1821
+ </div>
1822
+ </body>
1823
+ </html>`;
1824
+
1825
+ return (
1826
+ <CContainerView>
1827
+ <HeaderBlock style={{ marginBottom: normalize(30) }}
1828
+ navigation={props.navigation} backhandler={false} />
1829
+ <CDetailView>
1830
+ <View androidHardwareAccelerationDisabled
1831
+ style={{
1832
+ flex: 1,
1833
+ backgroundColor: 'white',
1834
+ borderColor: 'black',
1835
+ }}>
1836
+
1837
+ {pdfdata && pdfdata != null && pdfdata != undefined ? (
1838
+ <WebView
1839
+ ref={webviewRef}
1840
+ androidHardwareAccelerationDisabled
1841
+ style={{ opacity: 0.99 }}
1842
+ mixedContentMode="compatibility"
1843
+ source={{ html: contentData }}
1844
+ />
1845
+ )
1846
+ : null}
1847
+ </View>
1848
+ </CDetailView>
1849
+ </CContainerView>
1850
+ );
1851
+
1852
+ function getImageFromString(value) {
1853
+ // console.log("STRINGGGGGGGGGGGGGGGGG", JSON.stringify(value))
1854
+ var fields = value.split('@');
1855
+ var imageString = fields[1];
1856
+ return imageString
1857
+ }
1858
+
1859
+ function getString(value) {
1860
+ // console.log("STRINGGGGGGGGGGGGGGGGG", JSON.stringify(value))
1861
+ var fields = value.split('@');
1862
+ var imageString = fields[0];
1863
+ return imageString
1864
+ }
1865
+ };
1866
+
1867
+ export default SwipeLeftView;