@jescon-technologies/react-native-ui-kit 0.0.5 → 0.0.7
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/dist/Common/ErrorBoundary.d.ts +15 -0
- package/dist/Common/ErrorBoundary.d.ts.map +1 -0
- package/dist/Common/ErrorBoundary.js +64 -0
- package/dist/Common/ErrorBoundary.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/src/Common/ErrorBoundary.d.ts +15 -0
- package/dist/src/Common/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/Common/ErrorBoundary.js +64 -0
- package/dist/src/Common/ErrorBoundary.js.map +1 -0
- package/package.json +17 -5
- package/.gitattributes +0 -2
- package/index.d.ts +0 -66
- package/index.js +0 -66
- package/src/Alerts/AAlert.js +0 -137
- package/src/Alerts/AAlertIOS.js +0 -97
- package/src/Alerts/ABlink.js +0 -40
- package/src/Common/ErrorBoundary.tsx +0 -73
- package/src/Common/Icons.js +0 -49
- package/src/Common/NetworkServiceCall.js +0 -265
- package/src/CommonStyle/CommonTheme.js +0 -11
- package/src/CommonStyle/ComponentFunctions.js +0 -632
- package/src/CommonStyle/PopupStyle.js +0 -146
- package/src/CommonStyle/commonStyle.js +0 -93
- package/src/CommonStyle/componentStyle.js +0 -545
- package/src/CommonStyle/optionListStyles.js +0 -175
- package/src/Components/ByProductPage.js +0 -200
- package/src/Components/CDropDownListNew.js +0 -153
- package/src/Components/CSupplierList.js +0 -88
- package/src/Components/CVerificationCard.js +0 -2822
- package/src/Components/CustomButton.js +0 -67
- package/src/Components/CustomCard.js +0 -127
- package/src/Components/CustomTextInput.js +0 -47
- package/src/Components/EquipmentPage.js +0 -313
- package/src/Components/FilterInput.Copy.js +0 -723
- package/src/Components/FilterInput.js +0 -569
- package/src/Components/HSubHeading.js +0 -68
- package/src/Components/HeaderCard.js +0 -40
- package/src/Components/MoreOptionsScreen.js +0 -251
- package/src/Components/NonSwipableProductCard.js +0 -226
- package/src/Components/NonSwipableSupplierCard.js +0 -348
- package/src/Components/ProductCard.js +0 -1336
- package/src/Components/QualityProductCard.js +0 -1059
- package/src/Components/RateProductCard.js +0 -1452
- package/src/Components/RawMaterial.js +0 -261
- package/src/Components/SDropDownEdited.js +0 -549
- package/src/Components/SDropDownNew.js +0 -529
- package/src/Components/SHelpDescription.js +0 -147
- package/src/Components/STextInputNew.js +0 -510
- package/src/Components/SearchProductCard.js +0 -470
- package/src/Components/StageByProduct.js +0 -199
- package/src/Components/SupplierCard.js +0 -243
- package/src/Components/SupplierInvoiceCard.js +0 -405
- package/src/Components/SwipableSupplierCard.js +0 -136
- package/src/Components/TagTemplate.js +0 -74
- package/src/Components/WrappedComponent.js +0 -25
- package/src/Custom/CBooking.js +0 -944
- package/src/Custom/CBookingPostpone.js +0 -1822
- package/src/Custom/CCalendar.js +0 -560
- package/src/Custom/CCard.js +0 -880
- package/src/Custom/CDetailCard.js +0 -205
- package/src/Custom/CHelpImage.js +0 -52
- package/src/Custom/CReport.js +0 -569
- package/src/Custom/CScrollView.js +0 -73
- package/src/Custom/CSignature.js +0 -112
- package/src/Custom/CSliderMenu.js +0 -339
- package/src/Custom/CSupplierCard.js +0 -99
- package/src/Custom/CTemplateCard.js +0 -438
- package/src/Custom/CTokenAllocation.js +0 -1402
- package/src/Custom/CTokenListOverlay.js +0 -122
- package/src/Custom/CWardStatus.js +0 -444
- package/src/Custom/Charts/CBarChart.js +0 -218
- package/src/Custom/Charts/CDashBoardList.js +0 -133
- package/src/Custom/Charts/CDashBoardTable.js +0 -172
- package/src/Custom/Charts/CLineChart.js +0 -193
- package/src/Custom/Charts/CPieChart.js +0 -186
- package/src/Custom/Loader.js +0 -182
- package/src/Custom/OUserView.js +0 -1121
- package/src/Custom/PreviewDosage.js +0 -115
- package/src/Custom/SearchLoader.js +0 -32
- package/src/Custom/TableComponent/CActivityTable.js +0 -707
- package/src/Custom/TableComponent/CMoreButtonTable.js +0 -197
- package/src/Custom/TableComponent/CTable.js +0 -185
- package/src/Custom/TableComponent/CTextBody.js +0 -40
- package/src/Custom/TableComponent/CTextHeader.js +0 -17
- package/src/Custom/TableComponent/PreviewPrescriptionNew.js +0 -1011
- package/src/Custom/TableComponent/SDropdownTable.js +0 -491
- package/src/Custom/TableComponent/TagTable.js +0 -1200
- package/src/CustomComponents/CAddColumn.js +0 -140
- package/src/CustomComponents/CAssessmentDelete.js +0 -307
- package/src/CustomComponents/CAwesomeButton.js +0 -83
- package/src/CustomComponents/CAwesomeMoreButton.js +0 -54
- package/src/CustomComponents/CBackHandler.js +0 -273
- package/src/CustomComponents/CCalendar.js +0 -243
- package/src/CustomComponents/CCommentOverlay.js +0 -202
- package/src/CustomComponents/CComments.js +0 -162
- package/src/CustomComponents/CContainerView.js +0 -24
- package/src/CustomComponents/CCustomTextInput.js +0 -336
- package/src/CustomComponents/CDetailView.js +0 -40
- package/src/CustomComponents/CDropDownList.js +0 -153
- package/src/CustomComponents/CDropdownSelect.js +0 -555
- package/src/CustomComponents/CFooterView.js +0 -42
- package/src/CustomComponents/CImagePickerSave.js +0 -316
- package/src/CustomComponents/CModalOverlay.js +0 -91
- package/src/CustomComponents/CNetworkStatus.js +0 -327
- package/src/CustomComponents/CNotesInstructions.js +0 -1000
- package/src/CustomComponents/COverlay.js +0 -81
- package/src/CustomComponents/CRemarks.js +0 -176
- package/src/CustomComponents/CRowAdd.js +0 -143
- package/src/CustomComponents/CSummaryDropDown.js +0 -327
- package/src/CustomComponents/CText.js +0 -9
- package/src/CustomComponents/CVectorIcon.js +0 -34
- package/src/CustomComponents/HtmlContentViewer.js +0 -65
- package/src/CustomComponents/PdfContentViewer.js +0 -90
- package/src/CustomComponents/SDropDownDosage.js +0 -1087
- package/src/CustomComponents/SwipableProductCard.js +0 -246
- package/src/CustomComponents/SwipableProductImageCard.js +0 -254
- package/src/CustomComponents/WorkOrderDetails.js +0 -1216
- package/src/CustomComponents/WorkOrderDetailsPage.js +0 -1213
- package/src/HOC/ConfirmOverlay.js +0 -192
- package/src/HOC/HHeading.js +0 -70
- package/src/HOC/HMoreButton.js +0 -88
- package/src/HOC/HNatureHeading.js +0 -402
- package/src/HOC/HOCIcons.js +0 -80
- package/src/HOC/HOverlayCentered.js +0 -140
- package/src/HOC/HShadowButton.js +0 -45
- package/src/HOC/HShadowCountButton.js +0 -82
- package/src/HOC/OptionOverlay.js +0 -48
- package/src/Json/Chart.json +0 -818
- package/src/Json/Consultation.json +0 -622
- package/src/Json/CreditBill.json +0 -490
- package/src/Json/Dropdown.json +0 -216
- package/src/Json/DropdownConsultation.json +0 -228
- package/src/Json/DynamicReports.json +0 -623
- package/src/Json/Footer.json +0 -79
- package/src/Media/AudioScreen.js +0 -342
- package/src/Media/BarcodeScan.js +0 -145
- package/src/Media/CAudioPlay.js +0 -228
- package/src/Media/CCaptureImageWithoutEdit.js +0 -330
- package/src/Media/CImageGallery.js +0 -289
- package/src/Media/CImageZoom.js +0 -82
- package/src/Media/CSingleImage.js +0 -391
- package/src/Media/CSketchCanvas.js +0 -76
- package/src/Media/CVideoPlay.js +0 -31
- package/src/Media/DocumentScreen.js +0 -362
- package/src/Media/DrawingScreen.js +0 -578
- package/src/Media/ImageScreen.js +0 -309
- package/src/Media/RecordAudio.js +0 -250
- package/src/Media/RecordVideo.js +0 -223
- package/src/Media/VideoScreen.js +0 -378
- package/src/Navigation/PageNavigation.js +0 -224
- package/src/Navigation/useFocusEffect.js +0 -2
- package/src/Navigation/useFocusEffect.native.js +0 -1
- package/src/Navigation/useFocusEffect.web.js +0 -1
- package/src/Navigation/useIsFocused.js +0 -1
- package/src/Navigation/useIsFocused.native.js +0 -1
- package/src/Navigation/useIsFocused.web.js +0 -1
- package/src/Navigation/useNavigation.js +0 -2
- package/src/Navigation/useNavigation.native.js +0 -1
- package/src/Navigation/useNavigation.web.js +0 -1
- package/src/Screens/CMedications.js +0 -528
- package/src/Screens/CWebViewGallery.js +0 -203
- package/src/Screens/ChartScan.js +0 -279
- package/src/Screens/ChartScreenNew.js +0 -1579
- package/src/Screens/Consultation.js +0 -1500
- package/src/Screens/Dashboard.js +0 -778
- package/src/Screens/FileExplorer.js +0 -288
- package/src/Screens/Footer.js +0 -340
- package/src/Screens/ForgotPassword.js +0 -288
- package/src/Screens/HeaderBlock.js +0 -353
- package/src/Screens/Login.js +0 -328
- package/src/Screens/Notification.js +0 -149
- package/src/Screens/OcrScreen.js +0 -20
- package/src/Screens/PdfPreview.js +0 -507
- package/src/Screens/RegistrationDetails.js +0 -467
- package/src/Screens/SearchScreen.js +0 -582
- package/src/Screens/Splash.js +0 -788
- package/src/Screens/SwipeLeftView.js +0 -1867
- package/src/StaticComponents/SAlphabet.js +0 -47
- package/src/StaticComponents/SCheckBox.js +0 -42
- package/src/StaticComponents/SDatePicker.js +0 -208
- package/src/StaticComponents/SDatePickerLabel.js +0 -253
- package/src/StaticComponents/SDatePickerNew.js +0 -258
- package/src/StaticComponents/SDateTimePickerNew.js +0 -381
- package/src/StaticComponents/SDropDownGenerate.js +0 -450
- package/src/StaticComponents/SDropDownHoc.js +0 -636
- package/src/StaticComponents/SDropDownIcon.js +0 -500
- package/src/StaticComponents/SMenuBox.js +0 -131
- package/src/StaticComponents/SOverlay.js +0 -177
- package/src/StaticComponents/SOverlayTextInput.js +0 -109
- package/src/StaticComponents/SSearch.js +0 -438
- package/src/StaticComponents/SSearchBar.js +0 -53
- package/src/StaticComponents/SSpeedDial.js +0 -303
- package/src/StaticComponents/STextInput.js +0 -289
- package/src/StaticComponents/STextInputProps.js +0 -36
- package/src/StaticComponents/STimePicker.js +0 -171
- package/src/StaticComponents/STimingDropDownNew.js +0 -1585
- package/src/StaticComponents/STimingSwitch.js +0 -34
- package/src/layout/CContainerView.js +0 -21
- package/src/layout/CDetailView.js +0 -81
- package/src/layout/HeaderBlock.js +0 -353
- package/src/layout/INVLoginLayout.js +0 -657
- package/src/layout/Loader.js +0 -176
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { Text, View, Dimensions } from 'react-native';
|
|
3
|
-
import { useNavigation } from '../Navigation/useNavigation';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
7
|
-
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
|
|
8
|
-
import {
|
|
9
|
-
Menu,
|
|
10
|
-
MenuOptions,
|
|
11
|
-
MenuOption,
|
|
12
|
-
MenuTrigger,
|
|
13
|
-
} from 'react-native-popup-menu';
|
|
14
|
-
import { normalize } from '../../CommonStyle/componentStyle';
|
|
15
|
-
import NetworkServiceCall from '../../Common/NetworkServiceCall';
|
|
16
|
-
import { Global } from '../../Common/Global';
|
|
17
|
-
import { APIURL } from '../../Common/apiConstants';
|
|
18
|
-
import { notifyMessage } from '../../CommonStyle/ComponentFunctions';
|
|
19
|
-
|
|
20
|
-
export default function CMoreButtonTable(props) {
|
|
21
|
-
const [data, setData] = useState(props.moreData);
|
|
22
|
-
const navigation = useNavigation();
|
|
23
|
-
return (
|
|
24
|
-
<View
|
|
25
|
-
style={{
|
|
26
|
-
borderTopWidth: 0.5, justifyContent: 'center', alignItems: 'center', backgroundColor: '#fff', borderBottomWidth: 0.5, borderLeftWidth: 0.5, borderRightWidth: 0.5,
|
|
27
|
-
paddingLeft: 5, width: Dimensions.get('screen').width * (0.1), paddingTop: 5, paddingBottom: 5, height: Dimensions.get('screen').height * 0.035,
|
|
28
|
-
}}
|
|
29
|
-
>
|
|
30
|
-
<Menu>
|
|
31
|
-
<MenuTrigger>
|
|
32
|
-
<MaterialCommunityIcons
|
|
33
|
-
name={'dots-horizontal-circle'}
|
|
34
|
-
color="black"
|
|
35
|
-
size={normalize(20)}
|
|
36
|
-
/>
|
|
37
|
-
<Text
|
|
38
|
-
style={{
|
|
39
|
-
color: 'black',
|
|
40
|
-
fontSize: normalize(5),
|
|
41
|
-
alignSelf: 'center',
|
|
42
|
-
}}>
|
|
43
|
-
More
|
|
44
|
-
</Text>
|
|
45
|
-
</MenuTrigger>
|
|
46
|
-
<MenuOptions
|
|
47
|
-
customStyles={{
|
|
48
|
-
optionsContainer: { width: '35%' },
|
|
49
|
-
optionText: {},
|
|
50
|
-
}}>
|
|
51
|
-
<View>
|
|
52
|
-
{[{ 'iconname': 'eye-dropper', 'function': 1, 'displaytext': 'Lab Results' },
|
|
53
|
-
// { "iconname": "capsules", "function": 2, "displaytext": "Prescription" },
|
|
54
|
-
// { "iconname": "capsules", "function": 4, "displaytext": "Medications Chart" },
|
|
55
|
-
// { "iconname": "file-prescription", "function": 5, "displaytext": "MDR" },
|
|
56
|
-
{ 'iconname': 'chart-line', 'function': 3, 'displaytext': 'Patient Chart' }].map((params, key) => {
|
|
57
|
-
return (
|
|
58
|
-
<MenuOption
|
|
59
|
-
key={key}
|
|
60
|
-
onSelect={() =>
|
|
61
|
-
moreButton(params.function, data)
|
|
62
|
-
}
|
|
63
|
-
style={{ flexDirection: 'row', alignItems: 'center' }}>
|
|
64
|
-
<FontAwesome5
|
|
65
|
-
name={params.iconname}
|
|
66
|
-
color={'blue'}
|
|
67
|
-
size={normalize(20)}
|
|
68
|
-
style={{ width: normalize(25) }}
|
|
69
|
-
/>
|
|
70
|
-
<Text adjustsFontSizeToFit
|
|
71
|
-
style={{
|
|
72
|
-
fontSize: normalize(13),
|
|
73
|
-
fontWeight: 'bold',
|
|
74
|
-
marginLeft: '10%',
|
|
75
|
-
}}>
|
|
76
|
-
{params.displaytext}
|
|
77
|
-
</Text>
|
|
78
|
-
</MenuOption>
|
|
79
|
-
);
|
|
80
|
-
})}
|
|
81
|
-
</View>
|
|
82
|
-
</MenuOptions>
|
|
83
|
-
</Menu>
|
|
84
|
-
</View>
|
|
85
|
-
);
|
|
86
|
-
|
|
87
|
-
function moreButton(key, Pdata) {
|
|
88
|
-
console.log('KEYYYYYYYYYYYYYYY', JSON.stringify(key));
|
|
89
|
-
switch (key) {
|
|
90
|
-
case 2:
|
|
91
|
-
Global.PatientDetails = null;
|
|
92
|
-
navigation.navigate('Prescription', { hopapatient: Pdata.hopapatient });
|
|
93
|
-
break;
|
|
94
|
-
case 3: GeneratePatientChart(Pdata);
|
|
95
|
-
break;
|
|
96
|
-
case 4: GenerateMedicationsChart(Pdata);
|
|
97
|
-
break;
|
|
98
|
-
case 5: getMDR(Pdata);
|
|
99
|
-
break;
|
|
100
|
-
default:
|
|
101
|
-
navigation.navigate('CLabChart', { hopapatient: Pdata.hopapatient });
|
|
102
|
-
// navigation.navigate('LabResults', { patientdata: Pdata.patientid })
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
function getMDR(params) {
|
|
108
|
-
Global.PatientDetails = {
|
|
109
|
-
'datalistid': 1,
|
|
110
|
-
'bordercolor': '#143A81',
|
|
111
|
-
'apimethod': 'GET',
|
|
112
|
-
'detailapi': "emr/emrcommonget/exec rnlapatientcharttemplate 83986,190048,3,126150,3637,3,0,'',0,NULL,A",
|
|
113
|
-
'hopapatient': params.hopapatient,
|
|
114
|
-
'verified': false,
|
|
115
|
-
'homrpatientchartdetailstatus': 1,
|
|
116
|
-
'homrpatientchart': 83986,
|
|
117
|
-
'leftcontent': [
|
|
118
|
-
{
|
|
119
|
-
'contentid': 1,
|
|
120
|
-
'displaytext': 'Registration Date',
|
|
121
|
-
'value': 'Aug 11 2018 12:00AM',
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
'contentid': 2,
|
|
125
|
-
'displaytext': 'CRD/CON/PKG',
|
|
126
|
-
'value': ' CON',
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
'profilecontent': [
|
|
130
|
-
{
|
|
131
|
-
'heading1': (params.patientno).toString(),
|
|
132
|
-
'heading2': params.patientname,
|
|
133
|
-
'logo2': params.clinicalunit,
|
|
134
|
-
'leftlogo2': 'IP',
|
|
135
|
-
'subheading1': params.gender == 'F' ? 'FEMALE' : 'MALE',
|
|
136
|
-
'subheading2': params.age + 'Y',
|
|
137
|
-
'subheading3': 'PUTHUKKARA',
|
|
138
|
-
'subheading4': '9995890650',
|
|
139
|
-
'hopapatient': 126150,
|
|
140
|
-
'bedno': params.bedno,
|
|
141
|
-
'postoffice': 'PERAMANGALAM',
|
|
142
|
-
'tokenno': 1,
|
|
143
|
-
'tokencolor': 'rgb(255,255,255)',
|
|
144
|
-
'logo1': 'REVISIT',
|
|
145
|
-
'chartuser': '',
|
|
146
|
-
'infectioncontrol': 0,
|
|
147
|
-
'patientchart': [
|
|
148
|
-
{
|
|
149
|
-
'itemname': 'Patient Chart',
|
|
150
|
-
'buttonapimethod': 'POST',
|
|
151
|
-
'buttonapi': '',
|
|
152
|
-
'apiarguments': 126150,
|
|
153
|
-
'homrpatientchart': 83986,
|
|
154
|
-
},
|
|
155
|
-
],
|
|
156
|
-
},
|
|
157
|
-
],
|
|
158
|
-
'rightcontent': [
|
|
159
|
-
{
|
|
160
|
-
'contentid': 1,
|
|
161
|
-
'displaytext': 'Last Visited',
|
|
162
|
-
'value': 'Jun 24 2022 12:00AM',
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
'contentid': 2,
|
|
166
|
-
'displaytext': 'Father/Husband',
|
|
167
|
-
'value': 'RAPPAI.P.D-',
|
|
168
|
-
},
|
|
169
|
-
],
|
|
170
|
-
};
|
|
171
|
-
navigation.navigate('DrugResistancy', { hopapatient: params.hopapatient });
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function GenerateMedicationsChart(params) {
|
|
175
|
-
console.log('YYYYYYYYYYYTTTTTTTTTTTTTTT', params);
|
|
176
|
-
// Global.PatientDetails = null
|
|
177
|
-
navigation.navigate('MedicationsIP', { patientdata: params });
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
function GeneratePatientChart(item) {
|
|
181
|
-
Global.PatientDetails = null;
|
|
182
|
-
props.callBack != undefined ? props.callBack(true) : null;
|
|
183
|
-
let buttonapi = APIURL + 'emr/emrcommonget/rnhtlamedicalrecord ' + item.hopapatient;
|
|
184
|
-
console.log('Patient......................................', buttonapi);
|
|
185
|
-
NetworkServiceCall('get', buttonapi, '')
|
|
186
|
-
.then(function (response) {
|
|
187
|
-
if (response.httpstatus == 200) {
|
|
188
|
-
props.callBack != undefined ? props.callBack(false) : null;
|
|
189
|
-
navigation.navigate('ChartScreen', { pdf: response, moredata: data.item });
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
props.callBack != undefined ? props.callBack(false) : null;
|
|
193
|
-
notifyMessage('Patient chart not found.',4);
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Text, View, Dimensions, ScrollView, ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
3
|
-
import CTextBody from './CTextBody';
|
|
4
|
-
import CTextHeader from './CTextHeader';
|
|
5
|
-
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
|
|
6
|
-
import { normalize } from '../../CommonStyle/componentStyle';
|
|
7
|
-
import { useState } from 'react';
|
|
8
|
-
import Icons from '../../Common/Icons';
|
|
9
|
-
import { Global } from '../../Common/Global';
|
|
10
|
-
import { APIURL } from '../../Common/apiConstants';
|
|
11
|
-
import { ArrayCheck, getLoading, ValueCheck } from '../../CommonStyle/ComponentFunctions';
|
|
12
|
-
import { useNavigation } from '../Navigation/useNavigation';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import Loader from '../Loader';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const CTable = (props) => {
|
|
19
|
-
|
|
20
|
-
const [data, setData] = useState(props.data);
|
|
21
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
22
|
-
const navigation = useNavigation();
|
|
23
|
-
|
|
24
|
-
function getSort() {
|
|
25
|
-
setData();
|
|
26
|
-
setTimeout(() => {
|
|
27
|
-
if (ArrayCheck(data)) {
|
|
28
|
-
data.sort((a, b) => (a.patientname > b.patientname) ? 1 : ((b.patientname > a.patientname) ? -1 : 0));
|
|
29
|
-
setData(data);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<View style={{ flex: 1, marginBottom: normalize(50) }}>
|
|
36
|
-
<View style={{
|
|
37
|
-
backgroundColor: '#e5e3e3',
|
|
38
|
-
paddingVertical: 3,
|
|
39
|
-
paddingHorizontal: 6,
|
|
40
|
-
marginTop: 5,
|
|
41
|
-
marginBottom: 2,
|
|
42
|
-
display: 'flex',
|
|
43
|
-
flexDirection: 'row',
|
|
44
|
-
alignItems: 'center',
|
|
45
|
-
}}>
|
|
46
|
-
<View style={{ width: normalize(30), alignItems: 'center', marginRight: 5 }}>
|
|
47
|
-
<FontAwesome5 name={'user-injured'} color={Global.AppTheme.primary_color} size={normalize(20)} />
|
|
48
|
-
</View>
|
|
49
|
-
<Text
|
|
50
|
-
style={{
|
|
51
|
-
textShadowRadius: 2,
|
|
52
|
-
fontSize: normalize(14),
|
|
53
|
-
fontWeight: '600',
|
|
54
|
-
color: Global.AppTheme.primary_color,
|
|
55
|
-
flex: 1,
|
|
56
|
-
}}>
|
|
57
|
-
Patient Information {ValueCheck(props.date) ? '- ' + props.date : ''}
|
|
58
|
-
</Text>
|
|
59
|
-
</View>
|
|
60
|
-
{isLoading ?
|
|
61
|
-
<Loader displaytext={true} /> : null}
|
|
62
|
-
<View style={{ flexDirection: 'row', marginLeft: normalize(5), marginRight: normalize(5) }}>
|
|
63
|
-
<View>
|
|
64
|
-
<View style={{ flexDirection: 'row' }}>
|
|
65
|
-
<CTextHeader text={'Chart'} widthArr={Dimensions.get('screen').width * (0.1)} />
|
|
66
|
-
<CTextHeader text={'Lab'} widthArr={Dimensions.get('screen').width * (0.1)} />
|
|
67
|
-
<View style={{ flexDirection: 'row-reverse' }}>
|
|
68
|
-
<CTextHeader text={' Name'} widthArr={Dimensions.get('screen').width * (0.34)} />
|
|
69
|
-
<TouchableOpacity style={{ width: Dimensions.get('screen').width * (0.06), alignItems: 'center' }}
|
|
70
|
-
onPress={() => getSort()}>
|
|
71
|
-
<Icons.FontAwesome name={'sort'} color={'black'} size={normalize(20)} />
|
|
72
|
-
</TouchableOpacity>
|
|
73
|
-
</View>
|
|
74
|
-
</View>
|
|
75
|
-
{ArrayCheck(data) ? data.map((item, k) => {
|
|
76
|
-
return (
|
|
77
|
-
<View key={k} style={{ flexDirection: 'row', marginTop: 1, backgroundColor: 'white' }}>
|
|
78
|
-
|
|
79
|
-
<View style={{ width: Dimensions.get('screen').width * (0.1), paddingTop: normalize(2.5) }}>
|
|
80
|
-
<TouchableOpacity onPress={() => GeneratePatientChart(item)}
|
|
81
|
-
style={{ backgroundColor: '#adc3ff', alignSelf: 'center', padding: normalize(5), paddingHorizontal: normalize(8), borderRadius: 1000 }}>
|
|
82
|
-
<Icons.FontAwesome5 name={'file-medical'} size={normalize(15)} color={Global.AppTheme.primary_color} style={{}} />
|
|
83
|
-
</TouchableOpacity>
|
|
84
|
-
</View>
|
|
85
|
-
|
|
86
|
-
<View style={{ width: Dimensions.get('screen').width * (0.1), paddingTop: normalize(2.5) }}>
|
|
87
|
-
<TouchableOpacity onPress={() => getLabResults(item)}
|
|
88
|
-
style={{ backgroundColor: '#adc3ff', alignSelf: 'center', padding: normalize(3), borderRadius: 1000 }}>
|
|
89
|
-
<Icons.Entypo name={'lab-flask'} size={normalize(20)} color={Global.AppTheme.primary_color} style={{}} />
|
|
90
|
-
</TouchableOpacity>
|
|
91
|
-
</View>
|
|
92
|
-
|
|
93
|
-
{/* <CMoreButtonTable moreData={item} callBack={val => (val == undefined ? null : setIsLoading(val))} /> */}
|
|
94
|
-
<CTextBody widthArr={0.4} displaytext={item.patientname} />
|
|
95
|
-
</View>);
|
|
96
|
-
}) : <View style={{ height: normalize(400) }} />}
|
|
97
|
-
</View>
|
|
98
|
-
|
|
99
|
-
<ScrollView horizontal={true} showsHorizontalScrollIndicator={true}>
|
|
100
|
-
<View style={{ flex: 1, marginTop: 0, marginRight: normalize(20) }}>
|
|
101
|
-
<View style={{ flexDirection: 'row' }}>
|
|
102
|
-
<CTextHeader text={' ID'} widthArr={Dimensions.get('screen').width * (0.2)} />
|
|
103
|
-
<CTextHeader text={' Gender'} widthArr={Dimensions.get('screen').width * (0.123)} />
|
|
104
|
-
<CTextHeader text={' Age'} widthArr={Dimensions.get('screen').width * (0.123)} />
|
|
105
|
-
<CTextHeader text={' Place'} widthArr={Dimensions.get('screen').width * (0.31)} />
|
|
106
|
-
<CTextHeader text={' Mobile'} widthArr={Dimensions.get('screen').width * (0.31)} />
|
|
107
|
-
<CTextHeader text={' Address'} widthArr={Dimensions.get('screen').width * (0.3)} />
|
|
108
|
-
<CTextHeader text={' Clinical unit'} widthArr={Dimensions.get('screen').width * (0.3)} />
|
|
109
|
-
</View>
|
|
110
|
-
{ArrayCheck(data) ? data.map((item, h) => {
|
|
111
|
-
return (
|
|
112
|
-
<View key={h} style={{ flexDirection: 'row', marginTop: 1, backgroundColor: 'white' }}>
|
|
113
|
-
<CTextBody widthArr={0.2} displaytext={item.patientid} />
|
|
114
|
-
<CTextBody widthArr={0.12} gender={item.gender} />
|
|
115
|
-
<CTextBody widthArr={0.12} displaytext={item.age} />
|
|
116
|
-
<CTextBody widthArr={0.3} displaytext={item.place} />
|
|
117
|
-
<CTextBody widthArr={0.3} displaytext={ValueCheck(item.mobileno) && item.mobileno != '0' && item.mobileno != '00' ? item.mobileno : ''} />
|
|
118
|
-
<CTextBody widthArr={0.3} displaytext={item.address} />
|
|
119
|
-
<CTextBody widthArr={0.3} displaytext={item.clinicalunit} />
|
|
120
|
-
</View>);
|
|
121
|
-
}) : <View style={{ height: normalize(400) }} />}
|
|
122
|
-
</View>
|
|
123
|
-
</ScrollView>
|
|
124
|
-
</View>
|
|
125
|
-
</View>
|
|
126
|
-
);
|
|
127
|
-
|
|
128
|
-
function GeneratePatientChart(item) {
|
|
129
|
-
Global.PatientDetails = null;
|
|
130
|
-
setIsLoading(true);
|
|
131
|
-
let buttonapi = APIURL + 'emr/emrcommonget/rnhtlamedicalrecord ' + item.hopapatient;
|
|
132
|
-
console.log('Patient......................................', buttonapi);
|
|
133
|
-
NetworkServiceCall('get', buttonapi, '')
|
|
134
|
-
.then(function (response) {
|
|
135
|
-
if (response.httpstatus == 200) {
|
|
136
|
-
setIsLoading(false);
|
|
137
|
-
navigation.navigate('ChartScreen', { pdf: response, moredata: data.item, type: 0 });
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
setIsLoading(false);
|
|
141
|
-
notifyMessage('Patient chart not found.', 4);
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
getLoading(v => setIsLoading(false));
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function getLabResults(Pdata) {
|
|
148
|
-
|
|
149
|
-
var patientData = {
|
|
150
|
-
'datalistid': 1,
|
|
151
|
-
'bordercolor': '#143A81',
|
|
152
|
-
'hopapatient': Pdata.hopapatient,
|
|
153
|
-
'verified': false,
|
|
154
|
-
'homrpatientchartdetailstatus': 0,
|
|
155
|
-
'homrpatientchart': 0,
|
|
156
|
-
'profilecontent': [
|
|
157
|
-
{
|
|
158
|
-
'patientno': Pdata.patientid,
|
|
159
|
-
'patientname': Pdata.patientname,
|
|
160
|
-
'heading3': '',
|
|
161
|
-
'patienttype': 'OP',
|
|
162
|
-
'gender': Pdata.gender == 'F' ? 'FEMALE' : 'MALE',
|
|
163
|
-
'age': Pdata.age,
|
|
164
|
-
'mobileno': Pdata.mobileno,
|
|
165
|
-
'badgecolor': 'rgb(255,255,255)',
|
|
166
|
-
'logo1': '',
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
'rightcontent': [
|
|
170
|
-
{
|
|
171
|
-
'contentid': 1,
|
|
172
|
-
'displaytext': 'Last Visited',
|
|
173
|
-
'value': ValueCheck(Pdata.lastvisited) ? Pdata.lastvisited : '',
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
Global.PatientDetails = patientData;
|
|
179
|
-
console.log('PATIENT DATATTATTATATATTTATATATATA', JSON.stringify(Pdata));
|
|
180
|
-
// navigation.navigate('CLabChart', { hopapatient: Pdata.hopapatient })
|
|
181
|
-
navigation.navigate('LabResults');
|
|
182
|
-
// navigation.navigate('CValueSummary')
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
export default CTable;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Text, View, Dimensions, Image } from 'react-native';
|
|
3
|
-
import { normalize } from '../../CommonStyle/componentStyle';
|
|
4
|
-
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
|
|
5
|
-
import { APIURL } from '../../Common/apiConstants';
|
|
6
|
-
|
|
7
|
-
export default function CTextBody(props) {
|
|
8
|
-
return (
|
|
9
|
-
<View
|
|
10
|
-
style={{
|
|
11
|
-
borderWidth: 1, justifyContent: 'center', backgroundColor: props.color != undefined ? props.color : '#fff' , borderColor:'lightgrey',borderRadius:5,elevation:3
|
|
12
|
-
,paddingLeft: 5, width: Dimensions.get('screen').width * (props.widthArr), paddingTop:normalize(5) , paddingBottom: normalize(5), height: Dimensions.get('screen').height * 0.035,elevation:3,marginHorizontal:normalize(2),marginVertical:normalize(2),
|
|
13
|
-
}}
|
|
14
|
-
>
|
|
15
|
-
{props.gender != undefined ?
|
|
16
|
-
<Image
|
|
17
|
-
source={props.gender == 'M' ? {uri: `${APIURL}file/getCommonFile/image/Male(2).png`} : {uri: `${APIURL}file/getCommonFile/image/FemaleI(1).png`}}
|
|
18
|
-
style={{
|
|
19
|
-
width: normalize(20), height: normalize(20), resizeMode: 'contain',
|
|
20
|
-
position: 'absolute', left: normalize(12),
|
|
21
|
-
}}
|
|
22
|
-
/> : null}
|
|
23
|
-
|
|
24
|
-
{props.insurance != undefined ?
|
|
25
|
-
<Text style={{ position: 'absolute', bottom: 0, fontSize: normalize(10), right: 2 }}>{props.insurance}</Text> : null}
|
|
26
|
-
|
|
27
|
-
<Text adjustsFontSizeToFit numberOfLines={1} style={{
|
|
28
|
-
fontSize: normalize(13), fontWeight: 'bold',
|
|
29
|
-
color: props.status != undefined && props.status != null ? getBedStatusColor(props.status) : 'black',
|
|
30
|
-
}}>{props.displaytext}</Text>
|
|
31
|
-
</View>
|
|
32
|
-
);
|
|
33
|
-
function getBedStatusColor(params) {
|
|
34
|
-
switch (params) {
|
|
35
|
-
case 1: return 'green'; //patient there
|
|
36
|
-
case 0: return 'orange'; //Discharged soon to be empty
|
|
37
|
-
default: return '#ea4b68'; //vaccant
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Text, View, Dimensions, TouchableOpacity } from 'react-native';
|
|
3
|
-
import { ValueCheck } from '../../CommonStyle/ComponentFunctions';
|
|
4
|
-
import { normalize } from '../../CommonStyle/componentStyle';
|
|
5
|
-
|
|
6
|
-
export default function CTextHeader(props) {
|
|
7
|
-
return (
|
|
8
|
-
<TouchableOpacity onPress={() => console.log('JJJJ')}
|
|
9
|
-
disabled={props.Sort != undefined ? false : true}
|
|
10
|
-
style={{
|
|
11
|
-
borderWidth: 1, borderColor: props.borderColor, marginHorizontal: props.marginHorizontal, borderRadius: props.borderRadius, elevation: props.elevation
|
|
12
|
-
, width: props.widthArr, height: normalize(20), backgroundColor: props.bgColor, justifyContent: 'center',
|
|
13
|
-
}}>
|
|
14
|
-
<Text style={{ color: props.color, fontSize: props.fontSize ? props.fontSize : normalize(11), alignSelf: props.alignself ? props.alignself : 'center', fontWeight: props.fontweight ? props.fontweight : 'normal', borderWidth: 0, textAlign: props.textAlign ? props.textAlign : null }} adjustsFontSizeToFit>{props.text} {ValueCheck(props.star) ? <Text style={{ color: 'red', fontWeight: 'bold', fontSize: normalize(13) }}>*</Text> : null}</Text>
|
|
15
|
-
</TouchableOpacity>
|
|
16
|
-
);
|
|
17
|
-
}
|