saisir feuille soin
This commit is contained in:
parent
2767c26524
commit
a1145e66f9
File diff suppressed because one or more lines are too long
|
@ -67,5 +67,6 @@
|
||||||
"reattachAccountUser": "reattachAccountUser",
|
"reattachAccountUser": "reattachAccountUser",
|
||||||
"acceptPrestationAgent": "acceptPrestationAgent",
|
"acceptPrestationAgent": "acceptPrestationAgent",
|
||||||
"souscrireAssuranceUser": "souscrireAssuranceUser",
|
"souscrireAssuranceUser": "souscrireAssuranceUser",
|
||||||
"askPrestationUser": "askPrestationUser"
|
"askPrestationUser": "askPrestationUser",
|
||||||
|
"saisirFeuilleSoinScreen": "saisirFeuilleSoinScreen"
|
||||||
}
|
}
|
||||||
|
|
|
@ -577,8 +577,9 @@
|
||||||
"ACTIVATE_INSSURANCE": "Activer son assurance",
|
"ACTIVATE_INSSURANCE": "Activer son assurance",
|
||||||
"AMOUNT_PER_DURATION": "Montant par durée",
|
"AMOUNT_PER_DURATION": "Montant par durée",
|
||||||
"AMOUNT_PRIME": "Montant de la prime",
|
"AMOUNT_PRIME": "Montant de la prime",
|
||||||
"NOM_ASSURE": "Nom de l'assuré",
|
"ASSURE": "Assuré",
|
||||||
"NUMERO_ASSURE": "Numéro de l'assuré",
|
"NUMERO_ASSURE": "Numéro de l'assuré",
|
||||||
|
"NOM_ASSURE": "Nom de l'assuré",
|
||||||
"PRENOM_ASSURE": "Prénom de l'assuré",
|
"PRENOM_ASSURE": "Prénom de l'assuré",
|
||||||
"DATE_NAISSANCE": "Date de naissance",
|
"DATE_NAISSANCE": "Date de naissance",
|
||||||
"SEXE": "Sexe",
|
"SEXE": "Sexe",
|
||||||
|
@ -588,6 +589,7 @@
|
||||||
"ENFANT": "Enfant",
|
"ENFANT": "Enfant",
|
||||||
"CONJOINT": "Conjoint",
|
"CONJOINT": "Conjoint",
|
||||||
"ADD_AYANT_DROIT": "Ajouter un ayant droit",
|
"ADD_AYANT_DROIT": "Ajouter un ayant droit",
|
||||||
|
"AYANT_DROITS": "Ayant droit",
|
||||||
"SELECT_INSURANCE": "Sélectionner une assurance",
|
"SELECT_INSURANCE": "Sélectionner une assurance",
|
||||||
"COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE": "Acte \n naissance",
|
"COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE": "Acte \n naissance",
|
||||||
"DOCUMENT_JUSTICE_ENFANT_ADOPTE": "Document adoption \n ou tutelle (facultatif) ",
|
"DOCUMENT_JUSTICE_ENFANT_ADOPTE": "Document adoption \n ou tutelle (facultatif) ",
|
||||||
|
@ -603,5 +605,37 @@
|
||||||
"DETAIL": "Détail",
|
"DETAIL": "Détail",
|
||||||
"PRIME_AMOUNT": "Montant de la prime",
|
"PRIME_AMOUNT": "Montant de la prime",
|
||||||
"AYANT_DROIT": "Ayant(s) droit(s)",
|
"AYANT_DROIT": "Ayant(s) droit(s)",
|
||||||
"SELECT_SUBSCRIPTION": "Sélectionner une souscription"
|
"SELECT_SUBSCRIPTION": "Sélectionner une souscription",
|
||||||
|
"SAISIR_FEUILLE_SOIN": "Saisir une feuille de soin",
|
||||||
|
"MODIFIER_FEUILLE_SOIN": "Modifier une feuille de soin",
|
||||||
|
"FACTURER_FEUILLES_SOINS": "Facturer les feuilles de soins",
|
||||||
|
"FICHE_DE_SOIN": "Fiche de soins",
|
||||||
|
"PATIENT": "Patient",
|
||||||
|
"PRATICIEN": "Praticien",
|
||||||
|
"PRESCRIPTION_MEDICALE": "Prescription",
|
||||||
|
"ADD_PRESCRIPTION_MEDICALE": "Ajouter une prescription",
|
||||||
|
"SITUATION": "Situation",
|
||||||
|
"CODE_AGREMENT_ETS": "Code agrément",
|
||||||
|
"SITUATION": "Situation",
|
||||||
|
"NOM_PRATICIEN": "Nom du praticien",
|
||||||
|
"PRENOM_PRATICIEN": "Prénom du praticien",
|
||||||
|
"NOM_CLIENT": "Nom du client",
|
||||||
|
"PRENOM_CLIENT": "Prénom du client",
|
||||||
|
"CODE_AGREMENT": "Code agrément",
|
||||||
|
"CLASSIFICATION": "Classification",
|
||||||
|
"COURANTE": "Courante",
|
||||||
|
"LONGUE": "Longue",
|
||||||
|
"ACCIDENT": "Accident",
|
||||||
|
"GROSSESSE": "Grossesse",
|
||||||
|
"ADD_PRESTATION": "Ajouter une prestation",
|
||||||
|
"ADD_PRESCRIPTION": "Ajouter une prescription",
|
||||||
|
"VISITE_DOMICILE": "Visite domicile ",
|
||||||
|
"CODE_ACTE": "Code acte ",
|
||||||
|
"TICKET_MONDERATEUR": "Ticket modérateur",
|
||||||
|
"AMOUNT_PER_INSURANCE": "Montant par assurance",
|
||||||
|
"VISITE_DOMICILE": "Visible domicile",
|
||||||
|
"CONDITION_PRISE_CHARGE": "Condition de prise en charge",
|
||||||
|
"AFFECTION_COURANTE": "Affection courante",
|
||||||
|
"AFFECTION_LONGUE": "Affection longue durée",
|
||||||
|
"EXONERE": "Exonéré"
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {StyleSheet, View} from 'react-native';
|
import {StyleSheet, View} from 'react-native';
|
||||||
import {Color} from "../config/Color";
|
import {Color} from "../config/Color";
|
||||||
|
import Text from './Text';
|
||||||
|
|
||||||
const Circle = ({index, selectedIndex}) => {
|
const Circle = ({index, selectedIndex}) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {Platform, TextInput, View} from 'react-native';
|
import {I18nManager, Platform, TextInput, View} from 'react-native';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import {Color} from '../../config/Color';
|
import {Color} from '../../config/Color';
|
||||||
import Text from '../Text';
|
import Text from '../Text';
|
||||||
|
@ -28,7 +28,6 @@ export default function Index(props) {
|
||||||
height: 46,
|
height: 46,
|
||||||
borderRadius: 5,
|
borderRadius: 5,
|
||||||
paddingHorizontal: 10,
|
paddingHorizontal: 10,
|
||||||
width: '100%',
|
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
|
@ -36,16 +35,17 @@ export default function Index(props) {
|
||||||
}, style]}>
|
}, style]}>
|
||||||
{React.Children.map(icon, child =>
|
{React.Children.map(icon, child =>
|
||||||
React.cloneElement(child, {
|
React.cloneElement(child, {
|
||||||
color: success ? Color.primaryColor : Color.accentColor,
|
color: success ? Color.primaryLightColor : Color.accentColor,
|
||||||
style: {marginRight: Platform.OS === 'ios' ? 10 : 5}
|
style: {marginRight: Platform.OS === 'ios' ? 10 : 5}
|
||||||
}),
|
}),
|
||||||
)}
|
)}
|
||||||
|
{/* @ts-ignore */}
|
||||||
<TextInput
|
<TextInput
|
||||||
style={{
|
style={{
|
||||||
fontFamily: 'Raleway',
|
width: "100%",
|
||||||
flex: 1,
|
|
||||||
height: '100%',
|
height: '100%',
|
||||||
color: Color.textColor,
|
textAlign: I18nManager.isRTL ? 'right' : 'left',
|
||||||
|
color: success ? Color.textColor : Color.accentColor,
|
||||||
paddingTop: 5,
|
paddingTop: 5,
|
||||||
paddingBottom: 5,
|
paddingBottom: 5,
|
||||||
}}
|
}}
|
||||||
|
@ -53,7 +53,9 @@ export default function Index(props) {
|
||||||
onFocus={() => onFocus()}
|
onFocus={() => onFocus()}
|
||||||
autoCorrect={false}
|
autoCorrect={false}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
placeholderTextColor={success ? Color.grayColor : Color.primaryColor}
|
placeholderTextColor={
|
||||||
|
success ? Color.grayColor : Color.accentColor
|
||||||
|
}
|
||||||
secureTextEntry={secureTextEntry}
|
secureTextEntry={secureTextEntry}
|
||||||
value={value}
|
value={value}
|
||||||
selectionColor={Color.primaryColor}
|
selectionColor={Color.primaryColor}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -286,7 +286,7 @@ const AddBeneficiaryScreen = ({
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (subscription !== null)
|
if (subscription !== null)
|
||||||
console.log('Subscription', subscription.subscription);
|
console.log('Subscription', subscription);
|
||||||
}, [subscription]);
|
}, [subscription]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -558,10 +558,11 @@ const AddBeneficiaryScreen = ({
|
||||||
]}/>
|
]}/>
|
||||||
<View style={[{marginBottom: 40}]}>
|
<View style={[{marginBottom: 40}]}>
|
||||||
<FlatList
|
<FlatList
|
||||||
data={beneficiaries.concat(subscription.subscription.beneficiaries)}
|
data={beneficiaries.concat(subscription.beneficiaries)}
|
||||||
extraData={beneficiaries.concat(subscription.subscription.beneficiaries)}
|
extraData={beneficiaries.concat(subscription.beneficiaries)}
|
||||||
keyExtractor={(item, index) => index}
|
keyExtractor={(item, index) => index}
|
||||||
renderItem={({item, index}) => {
|
renderItem={({item, index}) => {
|
||||||
|
console.log("Item", item);
|
||||||
return (
|
return (
|
||||||
<View style={styles.lineRow}>
|
<View style={styles.lineRow}>
|
||||||
<View style={{alignItems: 'flex-start'}}>
|
<View style={{alignItems: 'flex-start'}}>
|
||||||
|
@ -731,9 +732,9 @@ const AddBeneficiaryScreen = ({
|
||||||
onPress={(value) => {
|
onPress={(value) => {
|
||||||
setFileAdded([]);
|
setFileAdded([]);
|
||||||
if (value === 'CHILD')
|
if (value === 'CHILD')
|
||||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.subscription.network.age_limit_of_child_beneficiary)), 0, 1));
|
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.network.age_limit_of_child_beneficiary)), 0, 1));
|
||||||
else
|
else
|
||||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.subscription.network.age_limit_of_insured_and_spouse)), 0, 1));
|
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.network.age_limit_of_insured_and_spouse)), 0, 1));
|
||||||
setAffliliation(value);
|
setAffliliation(value);
|
||||||
}}/>
|
}}/>
|
||||||
</View>
|
</View>
|
||||||
|
@ -905,6 +906,7 @@ const AddBeneficiaryScreen = ({
|
||||||
setSubscription(
|
setSubscription(
|
||||||
{
|
{
|
||||||
id: value.id,
|
id: value.id,
|
||||||
|
network: value.network,
|
||||||
insurance_subscription_id: value.insurance_subscription_id,
|
insurance_subscription_id: value.insurance_subscription_id,
|
||||||
network_id: value.network_id,
|
network_id: value.network_id,
|
||||||
user_id: value.user_id,
|
user_id: value.user_id,
|
||||||
|
@ -918,7 +920,8 @@ const AddBeneficiaryScreen = ({
|
||||||
start_at: value.start_at,
|
start_at: value.start_at,
|
||||||
end_at: value.end_at,
|
end_at: value.end_at,
|
||||||
insured_id: value.insured_id,
|
insured_id: value.insured_id,
|
||||||
subscription: value.subscription
|
subscription: value.subscription,
|
||||||
|
beneficiaries: value.beneficiaries
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
|
@ -926,7 +929,7 @@ const AddBeneficiaryScreen = ({
|
||||||
return value
|
return value
|
||||||
}}
|
}}
|
||||||
labelExtractor={(value) => {
|
labelExtractor={(value) => {
|
||||||
return `${value.subscription.network.name} | ${I18n.t('ETAT')}: ${value.state} | ${I18n.t('AMOUNT_LABEL')}: ${value.subscription.total_bonus_amount}`
|
return `${value.network.name} | ${I18n.t('ETAT')}: ${value.state} | ${I18n.t('AMOUNT_LABEL')}: ${value.total_bonus_amount}`
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Animatable.View>
|
</Animatable.View>
|
||||||
|
@ -961,12 +964,13 @@ const AddBeneficiaryScreen = ({
|
||||||
I18n.t('PLEASE_SELECT_INSURANCE_BEFORE'),
|
I18n.t('PLEASE_SELECT_INSURANCE_BEFORE'),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
console.log("Souscription", subscription);
|
||||||
setModalVisible(true);
|
setModalVisible(true);
|
||||||
setShowDateNaissancePicker(false);
|
setShowDateNaissancePicker(false);
|
||||||
dispatch(fetchUploadInsuranceReset());
|
dispatch(fetchUploadInsuranceReset());
|
||||||
setAffliliation('CHILD');
|
setAffliliation('CHILD');
|
||||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.subscription.network.age_limit_of_child_beneficiary)), 0, 1));
|
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription?.network?.age_limit_of_child_beneficiary)), 0, 1));
|
||||||
setDateNaissance('' + moment(new Date(((new Date()).getFullYear() - parseInt(subscription.subscription.network.age_limit_of_child_beneficiary)), 0, 1)).format('YYYY-MM-DD'));
|
setDateNaissance('' + moment(new Date(((new Date()).getFullYear() - parseInt(subscription?.network?.age_limit_of_child_beneficiary)), 0, 1)).format('YYYY-MM-DD'));
|
||||||
setFirstNameBeneficiary(null);
|
setFirstNameBeneficiary(null);
|
||||||
setLastNameBeneficiary(null);
|
setLastNameBeneficiary(null);
|
||||||
setFileAdded([]);
|
setFileAdded([]);
|
||||||
|
@ -1011,7 +1015,7 @@ const AddBeneficiaryScreen = ({
|
||||||
}}
|
}}
|
||||||
onPress={() => setModalViewBeneficiariesVisible(true)}
|
onPress={() => setModalViewBeneficiariesVisible(true)}
|
||||||
>
|
>
|
||||||
<Text whiteColor title2>{beneficiaries.concat(subscription.subscription.beneficiaries).length}</Text>
|
<Text whiteColor title2>{beneficiaries.concat(subscription.beneficiaries).length}</Text>
|
||||||
<Text whiteColor caption2>{I18n.t('AYANT_DROIT')}</Text>
|
<Text whiteColor caption2>{I18n.t('AYANT_DROIT')}</Text>
|
||||||
</TouchableOpacity>)}
|
</TouchableOpacity>)}
|
||||||
</ScreenComponent>
|
</ScreenComponent>
|
||||||
|
|
|
@ -612,7 +612,7 @@ export const optionNanoSanteAgentScreen = {
|
||||||
subTitle: 'CHOOSE_OPTION',
|
subTitle: 'CHOOSE_OPTION',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
screen: route.cautionNanoCreditAgent,
|
screen: route.saisirFeuilleSoinScreen,
|
||||||
icon: 'user-plus',
|
icon: 'user-plus',
|
||||||
title: 'SAISIR_FEUILLE_SOIN',
|
title: 'SAISIR_FEUILLE_SOIN',
|
||||||
},
|
},
|
||||||
|
|
|
@ -577,8 +577,9 @@
|
||||||
"ACTIVATE_INSSURANCE": "Activer son assurance",
|
"ACTIVATE_INSSURANCE": "Activer son assurance",
|
||||||
"AMOUNT_PER_DURATION": "Montant par durée",
|
"AMOUNT_PER_DURATION": "Montant par durée",
|
||||||
"AMOUNT_PRIME": "Montant de la prime",
|
"AMOUNT_PRIME": "Montant de la prime",
|
||||||
"NOM_ASSURE": "Nom de l'assuré",
|
"ASSURE": "Assuré",
|
||||||
"NUMERO_ASSURE": "Numéro de l'assuré",
|
"NUMERO_ASSURE": "Numéro de l'assuré",
|
||||||
|
"NOM_ASSURE": "Nom de l'assuré",
|
||||||
"PRENOM_ASSURE": "Prénom de l'assuré",
|
"PRENOM_ASSURE": "Prénom de l'assuré",
|
||||||
"DATE_NAISSANCE": "Date de naissance",
|
"DATE_NAISSANCE": "Date de naissance",
|
||||||
"SEXE": "Sexe",
|
"SEXE": "Sexe",
|
||||||
|
@ -588,6 +589,7 @@
|
||||||
"ENFANT": "Enfant",
|
"ENFANT": "Enfant",
|
||||||
"CONJOINT": "Conjoint",
|
"CONJOINT": "Conjoint",
|
||||||
"ADD_AYANT_DROIT": "Ajouter un ayant droit",
|
"ADD_AYANT_DROIT": "Ajouter un ayant droit",
|
||||||
|
"AYANT_DROITS": "Ayant droit",
|
||||||
"SELECT_INSURANCE": "Sélectionner une assurance",
|
"SELECT_INSURANCE": "Sélectionner une assurance",
|
||||||
"COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE": "Acte \n naissance",
|
"COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE": "Acte \n naissance",
|
||||||
"DOCUMENT_JUSTICE_ENFANT_ADOPTE": "Document adoption \n ou tutelle (facultatif) ",
|
"DOCUMENT_JUSTICE_ENFANT_ADOPTE": "Document adoption \n ou tutelle (facultatif) ",
|
||||||
|
@ -606,5 +608,37 @@
|
||||||
"SELECT_SUBSCRIPTION": "Sélectionner une souscription",
|
"SELECT_SUBSCRIPTION": "Sélectionner une souscription",
|
||||||
"SAISIR_FEUILLE_SOIN": "Saisir une feuille de soin",
|
"SAISIR_FEUILLE_SOIN": "Saisir une feuille de soin",
|
||||||
"MODIFIER_FEUILLE_SOIN": "Modifier une feuille de soin",
|
"MODIFIER_FEUILLE_SOIN": "Modifier une feuille de soin",
|
||||||
"FACTURER_FEUILLES_SOINS": "Facturer les feuilles de soins"
|
"FACTURER_FEUILLES_SOINS": "Facturer les feuilles de soins",
|
||||||
|
"FICHE_DE_SOIN": "Fiche de soins",
|
||||||
|
"PATIENT": "Patient",
|
||||||
|
"PRATICIEN": "Praticien",
|
||||||
|
"PRESCRIPTION_MEDICALE": "Prescription",
|
||||||
|
"ADD_PRESCRIPTION_MEDICALE": "Ajouter une prescription",
|
||||||
|
"SITUATION": "Situation",
|
||||||
|
"CODE_AGREMENT_ETS": "Code agrément",
|
||||||
|
"SITUATION": "Situation",
|
||||||
|
"NOM_PRATICIEN": "Nom du praticien",
|
||||||
|
"PRENOM_PRATICIEN": "Prénom du praticien",
|
||||||
|
"NOM_CLIENT": "Nom du client",
|
||||||
|
"PRENOM_CLIENT": "Prénom du client",
|
||||||
|
"CODE_AGREMENT": "Code agrément",
|
||||||
|
"CLASSIFICATION": "Classification",
|
||||||
|
"COURANTE": "Courante",
|
||||||
|
"LONGUE": "Longue",
|
||||||
|
"ACCIDENT": "Accident",
|
||||||
|
"GROSSESSE": "Grossesse",
|
||||||
|
"ADD_PRESTATION": "Ajouter une prestation",
|
||||||
|
"ADD_PRESCRIPTION": "Ajouter une prescription",
|
||||||
|
"VISITE_DOMICILE": "Visite domicile ",
|
||||||
|
"CODE_ACTE": "Code acte ",
|
||||||
|
"TICKET_MONDERATEUR": "Ticket modérateur",
|
||||||
|
"AMOUNT_PER_INSURANCE": "Montant par assurance",
|
||||||
|
"VISITE_DOMICILE": "Visible domicile",
|
||||||
|
"CONDITION_PRISE_CHARGE": "Condition de prise en charge",
|
||||||
|
"AFFECTION_COURANTE": "Affection courante",
|
||||||
|
"AFFECTION_LONGUE": "Affection longue durée",
|
||||||
|
"EXONERE": "Exonéré",
|
||||||
|
"DATE_ACCIDENT": "Date accident",
|
||||||
|
"DATE_DEBUT_GROSSESSE": "Date début de grossesse",
|
||||||
|
"DATE_FIN_GROSSESSE": "Date fin de grossesse"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue