forked from HospitalRun/hospitalrun-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(src/__tests__/clients/db/patientrepository.test.ts): add test
Added test on the search string cleaning regex; runs search string containing all prohibited chars, expects cleaned version to be searched and matched re HospitalRun#1999
- Loading branch information
Showing
15 changed files
with
262 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
tasks: | ||
- init: yarn | ||
command: yarn run start | ||
|
||
ports: | ||
- port: 3000 | ||
onOpen: open-preview | ||
|
||
github: | ||
prebuilds: | ||
master: true | ||
branches: true | ||
pullRequests: true | ||
pullRequestsFromForks: true | ||
addCheck: true | ||
addComment: true | ||
addBadge: false | ||
addLabel: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default { | ||
actions: { | ||
label: 'Actions', | ||
edit: 'Éditer', | ||
save: 'Enregistrer', | ||
update: 'Mettre à jour', | ||
complete: 'Compléter', | ||
delete: 'Supprimer', | ||
cancel: 'Annuler', | ||
new: 'Nouveau', | ||
list: 'Liste', | ||
search: 'Rechercher', | ||
confirmDelete: 'Confirmer la suppression', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default { | ||
dashboard: { | ||
label: 'Tableau de bord', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import actions from './actions' | ||
import dashboard from './dashboard' | ||
import patient from './patient' | ||
import patients from './patients' | ||
import scheduling from './scheduling' | ||
import states from './states' | ||
import sex from './sex' | ||
import labs from './labs' | ||
|
||
export default { | ||
...actions, | ||
...dashboard, | ||
...patient, | ||
...patients, | ||
...scheduling, | ||
...states, | ||
...sex, | ||
...labs, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export default { | ||
labs: { | ||
label: 'Analyses', | ||
requests: { | ||
label: "Demandes d'analyse", | ||
new: "Nouvelle demande d'analyse", | ||
view: "Voir l'analyse", | ||
cancel: "Annuler l'analyse", | ||
complete: 'Analyse complète', | ||
error: { | ||
unableToRequest: "Impossible de créer une nouvelle demande d'analyse.", | ||
unableToComplete: "Impossible de compléter la demande d'analyse.", | ||
typeRequired: "Le type d'analyse est requis.", | ||
resultRequiredToComplete: "Le résultat est requis pour compléter l'analyse.", | ||
}, | ||
}, | ||
lab: { | ||
status: 'Statut', | ||
for: 'Pour', | ||
type: 'Type', | ||
result: 'Résultat', | ||
notes: 'Notes', | ||
requestedOn: 'Demandé le', | ||
completedOn: 'Complété le', | ||
canceledOn: 'Annulé le', | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
export default { | ||
patient: { | ||
code: 'Code patient', | ||
firstName: 'Prénom', | ||
lastName: 'Nom', | ||
suffix: 'Suffixe', | ||
prefix: 'Préfixe', | ||
givenName: 'Prénom', | ||
familyName: 'Nom de famille', | ||
dateOfBirth: 'Date de naissance', | ||
approximateDateOfBirth: 'Date de naissance approximative', | ||
age: 'Âge', | ||
approximateAge: 'Âge approximatif', | ||
placeOfBirth: 'Lieu de naissance', | ||
sex: 'Sexe', | ||
phoneNumber: 'Numéro de téléphone', | ||
email: 'Email', | ||
address: 'Adresse', | ||
occupation: 'Profession', | ||
type: 'Type de patient', | ||
preferredLanguage: 'Langue', | ||
basicInformation: 'Informations de base', | ||
generalInformation: 'Informations générales', | ||
contactInformation: 'Informations du contact', | ||
unknownDateOfBirth: 'Inconnue', | ||
relatedPerson: 'Personne liée', | ||
relatedPersons: { | ||
error: { | ||
unableToAddRelatedPerson: "Impossible d'ajouter une nouvelle personne liée.", | ||
relatedPersonRequired: 'La personne liée est requise.', | ||
relationshipTypeRequired: 'Le type de relation est requis.', | ||
}, | ||
label: 'Personnes liées', | ||
new: 'Nouvelle personne liée', | ||
add: 'Ajouter une personne liée', | ||
relationshipType: 'Type de relation', | ||
warning: { | ||
noRelatedPersons: 'Aucune personnes liées', | ||
}, | ||
addRelatedPersonAbove: "Ajouter une personne liée à l'aide du bouton ci-dessus.", | ||
}, | ||
appointments: { | ||
new: 'Ajouter un rendez-vous', | ||
}, | ||
allergies: { | ||
label: 'Allergies', | ||
allergyName: "Nom de l'allergie", | ||
new: 'Ajouter une allergie', | ||
error: { | ||
nameRequired: "Le nom de l'allergie est requis.", | ||
unableToAdd: "Impossible d'ajouter l'allergie.", | ||
}, | ||
warning: { | ||
noAllergies: "Pas d'allergies", | ||
}, | ||
addAllergyAbove: "Ajouter une allergie à l'aide du bouton ci-dessus.", | ||
successfullyAdded: 'Nouvelle allergie ajoutée avec succès !', | ||
}, | ||
diagnoses: { | ||
label: 'Diagnostics', | ||
new: 'Ajouter un diagnostic', | ||
diagnosisName: 'Nom du diagnostic', | ||
diagnosisDate: 'Date du diagnostic', | ||
warning: { | ||
noDiagnoses: 'Aucun diagnostic', | ||
}, | ||
error: { | ||
nameRequired: 'Le nom du diagnostic est requis.', | ||
dateRequired: 'La date du diagnostic est requise.', | ||
}, | ||
addDiagnosisAbove: "Ajouter un diagnostic à l'aide du bouton ci-dessus.", | ||
successfullyAdded: 'Nouveau diagnostic ajouté avec succès !', | ||
}, | ||
note: 'Note', | ||
notes: { | ||
label: 'Notes', | ||
new: 'Ajouter une nouvelle note', | ||
warning: { | ||
noNotes: 'Pas de notes', | ||
}, | ||
error: { | ||
noteRequired: 'Une note est requise.', | ||
unableToAdd: "Impossible d'ajouter une nouvelle note.", | ||
}, | ||
addNoteAbove: "Ajouter une nouvelle note à l'aide du bouton ci-dessus..", | ||
}, | ||
types: { | ||
charity: 'Charité', | ||
private: 'Privé', | ||
}, | ||
errors: { | ||
createPatientError: 'Impossible de créer un nouveau patient.', | ||
updatePatientError: 'Impossible de mettre à jour le patient.', | ||
patientGivenNameFeedback: 'Le prénom est obligatoire.', | ||
patientDateOfBirthFeedback: | ||
"La date de naissance ne peut pas être supérieure à celle d'ajourd'hui.", | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export default { | ||
patients: { | ||
label: 'Patients', | ||
patientsList: 'Liste des patients', | ||
viewPatients: 'Voir les patients', | ||
viewPatient: 'Voir le patient', | ||
newPatient: 'Nouveau patient', | ||
successfullyCreated: 'Patient créé avec succès', | ||
successfullyAddedNote: 'Note ajoutée avec succès', | ||
successfullyAddedRelatedPerson: "Ajout d'une nouvelle personne liée avec succès", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export default { | ||
scheduling: { | ||
label: 'Planning', | ||
appointments: { | ||
label: 'Rendez-vous', | ||
new: 'Nouveau rendez-vous', | ||
schedule: 'Planning des rendez-vous', | ||
editAppointment: 'Éditer un rendez-vous', | ||
deleteAppointment: 'Supprimer un rendez-vous', | ||
}, | ||
appointment: { | ||
startDate: 'Date de début', | ||
endDate: 'Date de fin', | ||
location: 'Lieu', | ||
type: 'Type', | ||
types: { | ||
checkup: 'Bilan de santé', | ||
emergency: 'Urgence', | ||
followUp: 'Suivi', | ||
routine: 'Habituel', | ||
walkIn: 'Sans rendez-vous', | ||
}, | ||
errors: { | ||
patientRequired: 'Le patient est requis.', | ||
errorCreatingAppointment: 'Erreur lors de la création du rendez-vous !', | ||
startDateMustBeBeforeEndDate: "La date de début doit être inférieur à l'heure de fin.", | ||
}, | ||
reason: 'Raison', | ||
patient: 'Patient', | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default { | ||
sex: { | ||
male: 'Homme', | ||
female: 'Femme', | ||
other: 'Autre', | ||
unknown: 'Inconnu', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default { | ||
states: { | ||
success: 'Succès !', | ||
error: 'Erreur !', | ||
}, | ||
} |