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, addBeneficiaryScreen: AddBeneficiaryScreen,
insuranceSubscriptionScreen: InsuranceSubscriptionScreen, insuranceSubscriptionScreen: InsuranceSubscriptionScreen,
validateConsultationScreen: ValidateConsultationScreen, validateConsultationScreen: ValidateConsultationScreen,
demandeAutorisationSoinScreen: DemandeAutorisationSoinScreen,
validateConsultationDetailScreen: ValidateConsultationDetailScreen, validateConsultationDetailScreen: ValidateConsultationDetailScreen,
activateBuySubscriptionScreen: ActivateBuySubscriptionScreen, activateBuySubscriptionScreen: ActivateBuySubscriptionScreen,
stopSubscriptionScreen: StopSubscriptionScreen, stopSubscriptionScreen: StopSubscriptionScreen,
@ -243,6 +242,7 @@ const AppAgentStack = createDrawerNavigator({
walletSelect: WalletSelect, walletSelect: WalletSelect,
createIdentification: CreateIdentification, createIdentification: CreateIdentification,
validateIdentification: ValidateIdentification, validateIdentification: ValidateIdentification,
demandeAutorisationSoinScreen: DemandeAutorisationSoinScreen,
Historique: Historique:
{ {
screen: createBottomTabNavigator({myDemand: MyHistory}, { 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 ", "RENEW_INSSURANCE": "Renouveler son assurance ",
"MANAGE_ASSURANCE": "Gérer son assurance", "MANAGE_ASSURANCE": "Gérer son assurance",
"MANAGE_HEALTH": "Gérer ses soins", "MANAGE_HEALTH": "Gérer ses soins",
"DEMAND_AUTORIZATION_HEALTH": "Demande autorisation soin", "DEMAND_AUTORIZATION_HEALTH": "Demande de prise en charge",
"HISTORIC_HEALTH": "Historique", "HISTORIC_HEALTH": "Historique",
"VALID_HEALTH": "Valider un soin ", "VALID_HEALTH": "Valider un soin ",
"ACTIVATE_INSSURANCE": "Activer son assurance", "ACTIVATE_INSSURANCE": "Activer son assurance",
@ -727,7 +727,7 @@
"ASSURE_SUSPENDU": "Cet assuré est suspendu", "ASSURE_SUSPENDU": "Cet assuré est suspendu",
"ASSURE_PRINCIPAL_SUSPENDU": "L'assuré principal est suspendu", "ASSURE_PRINCIPAL_SUSPENDU": "L'assuré principal est suspendu",
"CONSULTATION": "Consultation", "CONSULTATION": "Consultation",
"ACTE_EXAMEN": "Autre acte et examen", "ACTE_EXAMEN": "Acte et examen",
"AMOUNT_FREE": "Montant libre", "AMOUNT_FREE": "Montant libre",
"DESCRIPTION": "Description", "DESCRIPTION": "Description",
"EXECUTION": "Execution", "EXECUTION": "Execution",

View File

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

View File

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

View File

@ -2630,7 +2630,7 @@ const ModifierFeuilleSoinScreen = ({
content: ( content: (
<View> <View>
<TextInput <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')} placeholder={isNumeroAssureSearch ? I18n.t('NUMERO_ASSURE') : isPhoneAssureSearch ? I18n.t('PHONE_NUMBER') : I18n.t('NOM_ASSURE')}
value={values.numero_assure} value={values.numero_assure}
keyboardType={isPhoneAssureSearch ? 'numeric' : 'default'} keyboardType={isPhoneAssureSearch ? 'numeric' : 'default'}
@ -2651,12 +2651,12 @@ const ModifierFeuilleSoinScreen = ({
flexDirection: 'row', flexDirection: 'row',
position: 'absolute', position: 'absolute',
top: 22, top: 22,
right: 50, right: 70,
justifyContent: 'space-between', justifyContent: 'space-between',
width: 50 width: 50
}}> }}>
<Icon <Icon
style={{paddingRight: 5}} style={{paddingRight: 10}}
name='lock' name='lock'
size={20} size={20}
color={Color.primaryColor} color={Color.primaryColor}
@ -2666,7 +2666,7 @@ const ModifierFeuilleSoinScreen = ({
}} }}
/> />
<Icon <Icon
style={{paddingRight: 5}} style={{paddingRight: 10}}
name='phone' name='phone'
size={20} size={20}
color={Color.primaryColor} color={Color.primaryColor}
@ -2676,7 +2676,7 @@ const ModifierFeuilleSoinScreen = ({
}} }}
/> />
<Icon <Icon
style={{paddingRight: 5}} style={{paddingRight: 10}}
name='user' name='user'
size={20} size={20}
color={Color.primaryColor} color={Color.primaryColor}
@ -2686,7 +2686,7 @@ const ModifierFeuilleSoinScreen = ({
}} }}
/> />
<Icon <Icon
style={{paddingRight: 5}} style={{paddingRight: 10}}
name="qrcode" name="qrcode"
size={20} size={20}
color={Color.primaryColor} color={Color.primaryColor}
@ -3003,7 +3003,7 @@ const ModifierFeuilleSoinScreen = ({
styles.iconNavigationButton, styles.iconNavigationButton,
{ {
borderRadius: 5, borderRadius: 5,
width: 170, width: 150,
height: 30, height: 30,
flexDirection: "row", flexDirection: "row",
backgroundColor: backgroundColor:
@ -3022,37 +3022,42 @@ const ModifierFeuilleSoinScreen = ({
color={Color.whiteColor} color={Color.whiteColor}
/> />
</TouchableOpacity> </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> </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>
), ),
}, },

View File

@ -430,6 +430,7 @@ const SaisirFeuilleSoinScreen = ({
dispatch(fetchGetUserByNameOrNumberReset());*/ dispatch(fetchGetUserByNameOrNumberReset());*/
} }
}, [getUserByNameOrNumber]); }, [getUserByNameOrNumber]);
useEffect(() => { useEffect(() => {
console.log("getUserByNameOrNumber.result", getUserByNameOrNumber); console.log("getUserByNameOrNumber.result", getUserByNameOrNumber);
if (getUserByNameOrNumber.result !== null) { if (getUserByNameOrNumber.result !== null) {
@ -1684,7 +1685,7 @@ const SaisirFeuilleSoinScreen = ({
content: ( content: (
<View> <View>
<TextInput <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')} placeholder={isNumeroAssureSearch ? I18n.t('NUMERO_ASSURE') : isPhoneAssureSearch ? I18n.t('PHONE_NUMBER') : I18n.t('NOM_ASSURE')}
value={values.numero_assure} value={values.numero_assure}
keyboardType={isPhoneAssureSearch ? 'numeric' : 'default'} keyboardType={isPhoneAssureSearch ? 'numeric' : 'default'}
@ -1705,12 +1706,12 @@ const SaisirFeuilleSoinScreen = ({
flexDirection: 'row', flexDirection: 'row',
position: 'absolute', position: 'absolute',
top: 22, top: 22,
right: 50, right: 70,
justifyContent: 'space-between', justifyContent: 'space-between',
width: 50 width: 50
}}> }}>
<Icon <Icon
style={{paddingRight: 5}} style={{paddingRight: 10}}
name='lock' name='lock'
size={20} size={20}
color={Color.primaryColor} color={Color.primaryColor}
@ -1720,7 +1721,7 @@ const SaisirFeuilleSoinScreen = ({
}} }}
/> />
<Icon <Icon
style={{paddingRight: 5}} style={{paddingRight: 10}}
name='phone' name='phone'
size={20} size={20}
color={Color.primaryColor} color={Color.primaryColor}
@ -1730,7 +1731,7 @@ const SaisirFeuilleSoinScreen = ({
}} }}
/> />
<Icon <Icon
style={{paddingRight: 5}} style={{paddingRight: 10}}
name='user' name='user'
size={20} size={20}
color={Color.primaryColor} color={Color.primaryColor}
@ -1740,7 +1741,7 @@ const SaisirFeuilleSoinScreen = ({
}} }}
/> />
<Icon <Icon
style={{paddingRight: 5}} style={{paddingRight: 10}}
name="qrcode" name="qrcode"
size={20} size={20}
color={Color.primaryColor} color={Color.primaryColor}
@ -2063,7 +2064,7 @@ const SaisirFeuilleSoinScreen = ({
styles.iconNavigationButton, styles.iconNavigationButton,
{ {
borderRadius: 5, borderRadius: 5,
width: 170, width: 150,
height: 30, height: 30,
flexDirection: "row", flexDirection: "row",
backgroundColor: backgroundColor:
@ -2083,35 +2084,42 @@ const SaisirFeuilleSoinScreen = ({
/> />
</TouchableOpacity> </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> </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 diff suppressed because it is too large Load Diff

View File

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

View File

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