2015-12-03 10:49:29 +00:00
|
|
|
[
|
|
|
|
'{{repeat(100)}}',
|
|
|
|
{
|
|
|
|
Id: '{{index()}}',
|
|
|
|
// retourne 'M' ou 'F' aléatoirement
|
|
|
|
Civilite: function(tags){ return (tags.gender() == 'female') ? 'F' : 'M'; },
|
|
|
|
Nom: function(tags){ return tags.surname().toUpperCase(); },
|
|
|
|
Prenom: function(tags){ return tags.firstName(); },
|
|
|
|
|
|
|
|
Adresse: '{{integer(100, 999)}} {{street()}}, {{city()}}, {{state()}}',
|
|
|
|
Ville: '{{state()}}',
|
|
|
|
CodePostal: function(tags){ return String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10))+String(Math.floor(Math.random()*10)); },
|
|
|
|
DateNaissance: '{{date(new Date(random(1900,2000), random(1,12), random(0,28)), new Date(), "YYYY-MM-dd")}}',
|
|
|
|
LieuNaissance: '{{state()}}',
|
|
|
|
NumSecuriteSociale: function(tags){
|
|
|
|
return ((this.Civilite=='M')?'1':'2') + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10)) + String(Math.floor(Math.random()*10));
|
|
|
|
},
|
2015-12-03 10:56:40 +00:00
|
|
|
MedecinTraitant: '{{integer(1,100)}}'
|
2015-12-03 10:49:29 +00:00
|
|
|
}
|
|
|
|
]
|