Demande de prise en charge

This commit is contained in:
Brice Zele 2022-04-12 08:24:31 +01:00
parent 0273273b8a
commit 52e69106b8
10 changed files with 787 additions and 281 deletions

2
App.js
View File

@ -151,7 +151,6 @@ const AppStack = createDrawerNavigator({
addBeneficiaryScreen: AddBeneficiaryScreen,
insuranceSubscriptionScreen: InsuranceSubscriptionScreen,
validateConsultationScreen: ValidateConsultationScreen,
demandeAutorisationSoinScreen: DemandeAutorisationSoinScreen,
validateConsultationDetailScreen: ValidateConsultationDetailScreen,
activateBuySubscriptionScreen: ActivateBuySubscriptionScreen,
stopSubscriptionScreen: StopSubscriptionScreen,
@ -243,6 +242,7 @@ const AppAgentStack = createDrawerNavigator({
walletSelect: WalletSelect,
createIdentification: CreateIdentification,
validateIdentification: ValidateIdentification,
demandeAutorisationSoinScreen: DemandeAutorisationSoinScreen,
Historique:
{
screen: createBottomTabNavigator({myDemand: MyHistory}, {

File diff suppressed because one or more lines are too long

View File

@ -571,7 +571,7 @@
"RENEW_INSSURANCE": "Renouveler son assurance ",
"MANAGE_ASSURANCE": "Gérer son assurance",
"MANAGE_HEALTH": "Gérer ses soins",
"DEMAND_AUTORIZATION_HEALTH": "Demande autorisation soin",
"DEMAND_AUTORIZATION_HEALTH": "Demande de prise en charge",
"HISTORIC_HEALTH": "Historique",
"VALID_HEALTH": "Valider un soin ",
"ACTIVATE_INSSURANCE": "Activer son assurance",
@ -727,7 +727,7 @@
"ASSURE_SUSPENDU": "Cet assuré est suspendu",
"ASSURE_PRINCIPAL_SUSPENDU": "L'assuré principal est suspendu",
"CONSULTATION": "Consultation",
"ACTE_EXAMEN": "Autre acte et examen",
"ACTE_EXAMEN": "Acte et examen",
"AMOUNT_FREE": "Montant libre",
"DESCRIPTION": "Description",
"EXECUTION": "Execution",

View File

@ -1419,7 +1419,7 @@ const ExecuterPrescriptionScreen = ({
content: (
<View>
<TextInput
style={{marginTop: 10}}
style={{marginTop: 10, width: responsiveWidth(90)}}
placeholder={isNumeroAssureSearch ? I18n.t('NUMERO_ASSURE') : isPhoneAssureSearch ? I18n.t('PHONE_NUMBER') : I18n.t('NOM_ASSURE')}
value={values.numero_assure}
keyboardType={isPhoneAssureSearch ? 'numeric' : 'default'}
@ -1440,12 +1440,12 @@ const ExecuterPrescriptionScreen = ({
flexDirection: 'row',
position: 'absolute',
top: 22,
right: 50,
right: 70,
justifyContent: 'space-between',
width: 50
}}>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='lock'
size={20}
color={Color.primaryColor}
@ -1455,7 +1455,7 @@ const ExecuterPrescriptionScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='phone'
size={20}
color={Color.primaryColor}
@ -1465,7 +1465,7 @@ const ExecuterPrescriptionScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='user'
size={20}
color={Color.primaryColor}
@ -1475,7 +1475,7 @@ const ExecuterPrescriptionScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name="qrcode"
size={20}
color={Color.primaryColor}
@ -1484,8 +1484,7 @@ const ExecuterPrescriptionScreen = ({
}}
/>
</View>
</View>
),
</View>),
},
{
title: I18n.t('PATIENT'),

View File

@ -1409,7 +1409,7 @@ const ModifierExecutionPrescriptionScreen = ({
content: (
<View>
<TextInput
style={{marginTop: 10}}
style={{marginTop: 10, width: responsiveWidth(90)}}
placeholder={isNumeroAssureSearch ? I18n.t('NUMERO_ASSURE') : isPhoneAssureSearch ? I18n.t('PHONE_NUMBER') : I18n.t('NOM_ASSURE')}
value={values.numero_assure}
keyboardType={isPhoneAssureSearch ? 'numeric' : 'default'}
@ -1430,12 +1430,12 @@ const ModifierExecutionPrescriptionScreen = ({
flexDirection: 'row',
position: 'absolute',
top: 22,
right: 50,
right: 70,
justifyContent: 'space-between',
width: 50
}}>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='lock'
size={20}
color={Color.primaryColor}
@ -1445,7 +1445,7 @@ const ModifierExecutionPrescriptionScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='phone'
size={20}
color={Color.primaryColor}
@ -1455,7 +1455,7 @@ const ModifierExecutionPrescriptionScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='user'
size={20}
color={Color.primaryColor}
@ -1465,7 +1465,7 @@ const ModifierExecutionPrescriptionScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name="qrcode"
size={20}
color={Color.primaryColor}
@ -1474,8 +1474,7 @@ const ModifierExecutionPrescriptionScreen = ({
}}
/>
</View>
</View>
),
</View>),
},
{
title: I18n.t('PATIENT'),

View File

@ -2630,7 +2630,7 @@ const ModifierFeuilleSoinScreen = ({
content: (
<View>
<TextInput
style={{marginTop: 10}}
style={{marginTop: 10, width: responsiveWidth(90)}}
placeholder={isNumeroAssureSearch ? I18n.t('NUMERO_ASSURE') : isPhoneAssureSearch ? I18n.t('PHONE_NUMBER') : I18n.t('NOM_ASSURE')}
value={values.numero_assure}
keyboardType={isPhoneAssureSearch ? 'numeric' : 'default'}
@ -2651,12 +2651,12 @@ const ModifierFeuilleSoinScreen = ({
flexDirection: 'row',
position: 'absolute',
top: 22,
right: 50,
right: 70,
justifyContent: 'space-between',
width: 50
}}>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='lock'
size={20}
color={Color.primaryColor}
@ -2666,7 +2666,7 @@ const ModifierFeuilleSoinScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='phone'
size={20}
color={Color.primaryColor}
@ -2676,7 +2676,7 @@ const ModifierFeuilleSoinScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='user'
size={20}
color={Color.primaryColor}
@ -2686,7 +2686,7 @@ const ModifierFeuilleSoinScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name="qrcode"
size={20}
color={Color.primaryColor}
@ -3003,7 +3003,7 @@ const ModifierFeuilleSoinScreen = ({
styles.iconNavigationButton,
{
borderRadius: 5,
width: 170,
width: 150,
height: 30,
flexDirection: "row",
backgroundColor:
@ -3022,37 +3022,42 @@ const ModifierFeuilleSoinScreen = ({
color={Color.whiteColor}
/>
</TouchableOpacity>
<TouchableOpacity
style={[
styles.iconNavigationButton,
{
borderRadius: 5,
width: 120,
height: 30,
flexDirection: "row",
backgroundColor:
Color.primaryColor,
borderColor:
Color.primaryColor,
},
]}
onPress={e => {
setModalListMedicament(true);
//setModalMedicament(true);
setMedicament(null);
}}>
<Text whiteColor>{I18n.t('MEDICAMENT')}</Text>
<Fontisto
name="drug-pack"
size={20}
color={Color.whiteColor}
/>
</TouchableOpacity>
</View>
</View>
<View style={{
marginTop: 25,
flexDirection: "row",
alignItems: 'center',
justifyContent: 'center',
width: "100%"
}}>
<TouchableOpacity
style={[
styles.iconNavigationButton,
{
borderRadius: 5,
width: 150,
height: 30,
backgroundColor: Color.primaryColor,
borderColor: Color.primaryColor,
flexDirection: "row",
},
]}
onPress={e => {
setModalMedicament(true);
setMedicament(null);
}}>
<Text whiteColor>{I18n.t('MEDICAMENT')}</Text>
<Fontisto
name="drug-pack"
size={20}
color={Color.whiteColor}
/>
</TouchableOpacity>
</View>
</View>
),
},

View File

@ -430,6 +430,7 @@ const SaisirFeuilleSoinScreen = ({
dispatch(fetchGetUserByNameOrNumberReset());*/
}
}, [getUserByNameOrNumber]);
useEffect(() => {
console.log("getUserByNameOrNumber.result", getUserByNameOrNumber);
if (getUserByNameOrNumber.result !== null) {
@ -1684,7 +1685,7 @@ const SaisirFeuilleSoinScreen = ({
content: (
<View>
<TextInput
style={{marginTop: 10}}
style={{marginTop: 10, width: responsiveWidth(90)}}
placeholder={isNumeroAssureSearch ? I18n.t('NUMERO_ASSURE') : isPhoneAssureSearch ? I18n.t('PHONE_NUMBER') : I18n.t('NOM_ASSURE')}
value={values.numero_assure}
keyboardType={isPhoneAssureSearch ? 'numeric' : 'default'}
@ -1705,12 +1706,12 @@ const SaisirFeuilleSoinScreen = ({
flexDirection: 'row',
position: 'absolute',
top: 22,
right: 50,
right: 70,
justifyContent: 'space-between',
width: 50
}}>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='lock'
size={20}
color={Color.primaryColor}
@ -1720,7 +1721,7 @@ const SaisirFeuilleSoinScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='phone'
size={20}
color={Color.primaryColor}
@ -1730,7 +1731,7 @@ const SaisirFeuilleSoinScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name='user'
size={20}
color={Color.primaryColor}
@ -1740,7 +1741,7 @@ const SaisirFeuilleSoinScreen = ({
}}
/>
<Icon
style={{paddingRight: 5}}
style={{paddingRight: 10}}
name="qrcode"
size={20}
color={Color.primaryColor}
@ -2063,7 +2064,7 @@ const SaisirFeuilleSoinScreen = ({
styles.iconNavigationButton,
{
borderRadius: 5,
width: 170,
width: 150,
height: 30,
flexDirection: "row",
backgroundColor:
@ -2083,35 +2084,42 @@ const SaisirFeuilleSoinScreen = ({
/>
</TouchableOpacity>
<TouchableOpacity
style={[
styles.iconNavigationButton,
{
borderRadius: 5,
width: 120,
height: 30,
flexDirection: "row",
backgroundColor:
Color.primaryColor,
borderColor:
Color.primaryColor,
},
]}
onPress={e => {
setModalMedicament(true);
setMedicament(null);
}}>
<Text whiteColor>{I18n.t('MEDICAMENT')}</Text>
<Fontisto
name="drug-pack"
size={20}
color={Color.whiteColor}
/>
</TouchableOpacity>
</View>
</View>
<View style={{
marginTop: 25,
flexDirection: "row",
alignItems: 'center',
justifyContent: 'center',
width: "100%"
}}>
<TouchableOpacity
style={[
styles.iconNavigationButton,
{
borderRadius: 5,
width: 150,
height: 30,
backgroundColor: Color.primaryColor,
borderColor: Color.primaryColor,
flexDirection: "row",
},
]}
onPress={e => {
setModalMedicament(true);
setMedicament(null);
}}>
<Text whiteColor>{I18n.t('MEDICAMENT')}</Text>
<Fontisto
name="drug-pack"
size={20}
color={Color.whiteColor}
/>
</TouchableOpacity>
</View>
</View>
),
},

File diff suppressed because it is too large Load Diff

View File

@ -547,12 +547,6 @@ export const optionNanoSanteUserScreen = {
{
title: 'MANAGE_HEALTH',
options: [
{
icon: 'book-medical',
title: 'DEMAND_AUTORIZATION_HEALTH',
screen: 'demandeAutorisationSoinScreen',
iconType: "FontAwesome5"
},
{
title: 'HISTORIC_HEALTH',
screen: 'historiqueNanoSanteUserScreen',
@ -669,13 +663,18 @@ export const optionNanoSanteAgentScreen = {
title: 'MODIFY_EXECUTION',
iconType: "FontAwesome5"
},
{
icon: 'book-medical',
title: 'DEMAND_AUTORIZATION_HEALTH',
screen: 'demandeAutorisationSoinScreen',
iconType: "FontAwesome5"
},
{
screen: route.historiqueNanoSanteAgentScreen,
icon: 'history',
title: 'HISTORY',
iconType: "FontAwesome5"
},
{}
}
]
}

View File

@ -571,7 +571,7 @@
"RENEW_INSSURANCE": "Renouveler son assurance ",
"MANAGE_ASSURANCE": "Gérer son assurance",
"MANAGE_HEALTH": "Gérer ses soins",
"DEMAND_AUTORIZATION_HEALTH": "Demande autorisation soin",
"DEMAND_AUTORIZATION_HEALTH": "Demande de prise en charge",
"HISTORIC_HEALTH": "Historique",
"VALID_HEALTH": "Valider un soin ",
"ACTIVATE_INSSURANCE": "Activer son assurance",
@ -727,7 +727,7 @@
"ASSURE_SUSPENDU": "Cet assuré est suspendu",
"ASSURE_PRINCIPAL_SUSPENDU": "L'assuré principal est suspendu",
"CONSULTATION": "Consultation",
"ACTE_EXAMEN": "Autre acte et examen",
"ACTE_EXAMEN": "Acte et examen",
"AMOUNT_FREE": "Montant libre",
"DESCRIPTION": "Description",
"EXECUTION": "Execution",