diff --git a/packages/esm-form-entry-app/translations/pt.json b/packages/esm-form-entry-app/translations/pt.json index b23ba5f5b..02185918b 100644 --- a/packages/esm-form-entry-app/translations/pt.json +++ b/packages/esm-form-entry-app/translations/pt.json @@ -18,7 +18,7 @@ "daysAgo": " dias atrás", "deleteEntry": "Tem certeza de que deseja excluir este item?", "discardButton": "Descartar", - "disallowDecimals": "Decimals are not allowed", + "disallowDecimals": "Decimais não são permitidos", "enterMoreCharacters": "Por favor, insira 2 ou mais caracteres", "errorFetchingFormData": "Ocorreu um erro ao buscar os dados do formulário. Detalhes: {detail}", "errorLoadingForm": "Erro ao carregar o formulário", @@ -44,14 +44,14 @@ "minusSecond": "Subtrair um segundo", "minutesAgo": " minutos atrás", "monthsAgo": " meses atrás", - "next": "Next", + "next": "Próximo", "next21Years": "Próximos 21 anos", "nextMonth": "Próximo mês", "nextYear": "Próximo ano", "patientIdentifierDuplication": "Duplicação de identificação do paciente", "patientIdentifierDuplicationDescription": "A identificação fornecida já está associada a um paciente existente. Por favor, verifique a identificação e tente novamente.", - "orderNumber": "Order number", - "previous": "Previous", + "orderNumber": "Número do pedido", + "previous": "Anterior", "previous21Years": "Anos anteriores 21", "previousMonth": "Mês anterior", "previousValue": "Valor anterior", diff --git a/packages/esm-generic-patient-widgets-app/translations/pt.json b/packages/esm-generic-patient-widgets-app/translations/pt.json index 7b2512d79..3149b67d0 100644 --- a/packages/esm-generic-patient-widgets-app/translations/pt.json +++ b/packages/esm-generic-patient-widgets-app/translations/pt.json @@ -1,7 +1,7 @@ { - "chartView": "Chart View", - "dateAndTime": "Date and time", - "displaying": "Displaying", - "encounterType": "Encounter type", - "tableView": "Table View" + "chartView": "Visualização de Gráfico", + "dateAndTime": "Data e hora", + "displaying": "Visualizando", + "encounterType": "Tipo de consulta", + "tableView": "Visualização em Tabela" } diff --git a/packages/esm-patient-allergies-app/translations/pt.json b/packages/esm-patient-allergies-app/translations/pt.json index 92d41f0b4..8f2f588b0 100644 --- a/packages/esm-patient-allergies-app/translations/pt.json +++ b/packages/esm-patient-allergies-app/translations/pt.json @@ -1,47 +1,47 @@ { - "add": "Add", - "allergen": "Allergen", - "allergies": "Allergies", - "Allergies": "Allergies", - "allergyDeleted": "Allergy deleted", - "allergyIntolerances": "allergy intolerances", - "allergyNowVisible": "It is now visible on the Allergies page", - "allergySaved": "Allergy saved", - "allergySaveError": "Error saving allergy", - "allergyUpdated": "Allergy updated", - "cancel": "Cancel", - "dateOfOnsetAndComments": "Date of onset and comments", - "delete": "Delete", - "deleteModalConfirmationText": "Are you sure you want to delete this allergy?", - "deletePatientAllergy": "Delete allergy", - "deleting": "Deleting", - "discard": "Discard", - "edit": "Edit", - "editAllergy": "Edit an Allergy", - "editOrDeleteAllergy": "Edit or delete allergy", - "errorDeletingAllergy": "Error deleting allergy", - "invalidComment": "Invalid comment, try again", - "loading": "Loading", - "mild": "Mild", - "moderate": "Moderate", - "name": "Name", - "nonCodedAllergenWarningDescription": "Adding a custom allergen may impact system-wide allergy notifications. It's recommended to choose from the provided list for accurate alerts. Custom entries may not trigger notifications in all relevant contexts.", - "nonCodedAllergenWarningTitle": "Warning: Custom Allergen Entry", - "onsetDateAndComments": "Onset date and comments", - "other": "Other", - "otherNonCodedAllergen": "Other non-coded allergen", - "otherNonCodedAllergicReaction": "Other non-coded allergic reaction", - "reaction": "Reaction", - "reactions": "Reactions", - "recordNewAllergy": "Record a new allergy", - "saveAndClose": "Save and close", - "seeAll": "See all", - "selectAllergen": "Select the allergen", - "selectReactions": "Select the reactions", - "severe": "Severe", - "severityandReaction": "Severity", - "severityOfWorstReaction": "Severity of worst reaction", - "typeAdditionalComments": "Type any additional comments here", - "typeAllergenName": "Please type in the name of the allergen", - "typeAllergicReactionName": "Please type in the name of the allergic reaction" + "add": "Adicionar", + "allergen": "Alérgeno", + "allergies": "Alergias", + "Allergies": "Alergias", + "allergyDeleted": "Alergia excluída", + "allergyIntolerances": "intolerâncias alérgicas", + "allergyNowVisible": "Está agora visível na página de Alergias", + "allergySaved": "Alergia gravada", + "allergySaveError": "Erro ao gravar alergia", + "allergyUpdated": "Alergia atualizada", + "cancel": "Cancelar", + "dateOfOnsetAndComments": "Data de início e comentários", + "delete": "Apagar", + "deleteModalConfirmationText": "Tem certeza de que deseja remover esta alergia?", + "deletePatientAllergy": "Apagar alergia", + "deleting": "Removendo", + "discard": "Descartar", + "edit": "Editar", + "editAllergy": "Editar uma Alergia", + "editOrDeleteAllergy": "Editar ou apagar alergia", + "errorDeletingAllergy": "Erro ao apagar alergia", + "invalidComment": "Comentário inválido, tente novamente", + "loading": "Carregando", + "mild": "Leve", + "moderate": "Moderado", + "name": "Nome", + "nonCodedAllergenWarningDescription": "Adicionar um alérgeno personalizado pode afetar as notificações de alergia em todo o sistema. É recomendado escolher na lista correta fornecida para alertas. As entradas personalizadas podem não acionar notificações em todos os contextos relevantes.", + "nonCodedAllergenWarningTitle": "Aviso: Entrada personalizada de alérgenos", + "onsetDateAndComments": "Data de início e comentários", + "other": "Outro", + "otherNonCodedAllergen": "Outro alergeno não codificado", + "otherNonCodedAllergicReaction": "Outra reação alergica não codificada", + "reaction": "Reação", + "reactions": "Reações", + "recordNewAllergy": "Registar nova alergia", + "saveAndClose": "Salvar e fechar", + "seeAll": "Visualizar tudo", + "selectAllergen": "Selecione o alérgeno", + "selectReactions": "Selecione as reações", + "severe": "Severa", + "severityandReaction": "Gravidade", + "severityOfWorstReaction": "Gravidade da pior reação", + "typeAdditionalComments": "Providencie aqui comentarios adicionais", + "typeAllergenName": "Por favor digite o nome do alérgeno", + "typeAllergicReactionName": "Por favor digite o nome da reação alérgica" } diff --git a/packages/esm-patient-attachments-app/translations/am.json b/packages/esm-patient-attachments-app/translations/am.json index a4868502d..b6819fce2 100644 --- a/packages/esm-patient-attachments-app/translations/am.json +++ b/packages/esm-patient-attachments-app/translations/am.json @@ -4,7 +4,6 @@ "addAttachment": "Add attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/ar.json b/packages/esm-patient-attachments-app/translations/ar.json index fb36acad8..2335df282 100644 --- a/packages/esm-patient-attachments-app/translations/ar.json +++ b/packages/esm-patient-attachments-app/translations/ar.json @@ -4,7 +4,6 @@ "addAttachment": "أضف مرفق", "addAttachment_title": "أضف مرفق", "addMoreAttachments": "أضف المزيد من المرفقات", - "attachmentCaptionInstruction": "أدخل الوصف", "attachments": "المرفقات", "Attachments": "المرفقات", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "حذف الصورة", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "خطأ", "failed": "فشل", "failedDeleting": "تعذر الحذف", - "fieldRequired": "هذا الحقل مطلوب", "file": "ملف", "fileDeleted": "تم حذف الملف", "fileName": "اسم الملف", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "صورة", "imageDescription": "وصف الصورة", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "الاسم", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "تم الحذف بنجاح", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "النوع", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/de.json b/packages/esm-patient-attachments-app/translations/de.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/de.json +++ b/packages/esm-patient-attachments-app/translations/de.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/es.json b/packages/esm-patient-attachments-app/translations/es.json index ab3e630ef..1b7759418 100644 --- a/packages/esm-patient-attachments-app/translations/es.json +++ b/packages/esm-patient-attachments-app/translations/es.json @@ -4,7 +4,6 @@ "addAttachment": "Añadir archivo adjunto", "addAttachment_title": "Añadir archivo adjunto", "addMoreAttachments": "Añadir más archivos adjuntos", - "attachmentCaptionInstruction": "Introduzca título", "attachments": "Archivos adjuntos", "Attachments": "Archivos adjuntos", "attachmentsInLowerCase": "archivos adjuntos", @@ -21,10 +20,11 @@ "deleteImage": "Borrar imagen", "deletePdf": "Eliminar PDF", "edit": "Editar", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "fallido", "failedDeleting": "no se pudo borrar", - "fieldRequired": "Este campo es obligatorio", "file": "Archivo", "fileDeleted": "Archivo eliminado", "fileName": "Nombre de archivo", @@ -35,11 +35,14 @@ "gridView": "Vista de cuadrícula", "image": "Imagen", "imageDescription": "Descripción de la imagen", + "imagePlaceholder": "Image placeholder", "imagePreview": "Vista previa de la imagen", "name": "nombre", + "nameIsRequired": "Name is required", "noImageToDisplay": "No hay imagen para mostrar", "options": "Opciones", "successfullyDeleted": "eliminado exitosamente", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Vista de tabla", "type": "Tipo", "unsupportedFileType": "Tipo de archivo no compatible", diff --git a/packages/esm-patient-attachments-app/translations/fr.json b/packages/esm-patient-attachments-app/translations/fr.json index 383daca3a..882496d36 100644 --- a/packages/esm-patient-attachments-app/translations/fr.json +++ b/packages/esm-patient-attachments-app/translations/fr.json @@ -4,7 +4,6 @@ "addAttachment": "Ajouter une Pièce Jointe", "addAttachment_title": "Ajouter une Pièce Jointe", "addMoreAttachments": "Ajouter plus de pièces jointes", - "attachmentCaptionInstruction": "Ajouter une légende pour l'image", "attachments": "Pièces Jointes", "Attachments": "Pièces Jointes", "attachmentsInLowerCase": "pièces jointes", @@ -21,10 +20,11 @@ "deleteImage": "Effacer l'image", "deletePdf": "Supprimer PDF", "edit": "Afficher", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Erreur", "failed": "échec", "failedDeleting": "n'a pu être supprimé", - "fieldRequired": "Ce champs est requis", "file": "Fichier", "fileDeleted": "Fichier supprimé", "fileName": "Nom du fichier", @@ -35,11 +35,14 @@ "gridView": "Vue en grille", "image": "Image", "imageDescription": "Description de l'image", + "imagePlaceholder": "Image placeholder", "imagePreview": "Aperçu de l'image", "name": "Nom", + "nameIsRequired": "Name is required", "noImageToDisplay": "Aucune image à afficher", "options": "Options", "successfullyDeleted": "Supprimé avec succès", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Vue tabulaire", "type": "Type", "unsupportedFileType": "Type de fichier non pris en charge", diff --git a/packages/esm-patient-attachments-app/translations/he.json b/packages/esm-patient-attachments-app/translations/he.json index e2dd025bb..5725c6466 100644 --- a/packages/esm-patient-attachments-app/translations/he.json +++ b/packages/esm-patient-attachments-app/translations/he.json @@ -4,7 +4,6 @@ "addAttachment": "הוסף קובץ מצורף", "addAttachment_title": "הוסף קובץ מצורף", "addMoreAttachments": "הוסף קבצים מצורפים נוספים", - "attachmentCaptionInstruction": "הכנס תיאור לתמונה", "attachments": "קבצים מצורפים", "Attachments": "קבצים מצורפים", "attachmentsInLowerCase": "קבצים מצורפים", @@ -21,10 +20,11 @@ "deleteImage": "מחק תמונה", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "שגיאה", "failed": "נכשל", "failedDeleting": "לא ניתן למחוק", - "fieldRequired": "שדה זה נדרש", "file": "קובץ", "fileDeleted": "קובץ נמחק", "fileName": "שם הקובץ", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "תמונה", "imageDescription": "תיאור התמונה", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "שם", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "נמחק בהצלחה", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "סוג", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/hi.json b/packages/esm-patient-attachments-app/translations/hi.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/hi.json +++ b/packages/esm-patient-attachments-app/translations/hi.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/hi_IN.json b/packages/esm-patient-attachments-app/translations/hi_IN.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/hi_IN.json +++ b/packages/esm-patient-attachments-app/translations/hi_IN.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/id.json b/packages/esm-patient-attachments-app/translations/id.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/id.json +++ b/packages/esm-patient-attachments-app/translations/id.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/it.json b/packages/esm-patient-attachments-app/translations/it.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/it.json +++ b/packages/esm-patient-attachments-app/translations/it.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/km.json b/packages/esm-patient-attachments-app/translations/km.json index 708ec7c49..dcec68589 100644 --- a/packages/esm-patient-attachments-app/translations/km.json +++ b/packages/esm-patient-attachments-app/translations/km.json @@ -4,7 +4,6 @@ "addAttachment": "បន្ថែមឯកសារភ្ជាប់", "addAttachment_title": "បន្ថែមឯកសារភ្ជាប់", "addMoreAttachments": "បន្ថែមឯកសារភ្ជាប់បន្ថែម", - "attachmentCaptionInstruction": "បញ្ចូលចំណងជើងសម្រាប់រូបភាព", "attachments": "ឯកសារភ្ជាប់", "Attachments": "ឯកសារភ្ជាប់", "attachmentsInLowerCase": "ឯកសារភ្ជាប់", @@ -21,10 +20,11 @@ "deleteImage": "លុបរូបភាពចោល", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "កំហុស", "failed": "បរាជ័យ", "failedDeleting": "មិនអាចលុបចោលបានទេ", - "fieldRequired": "ចន្លោះនេះត្រូវតែបំពេញ", "file": "ឯកសារ", "fileDeleted": "បានលុបឯកសារចោល", "fileName": "ឈ្មោះឯកសារ", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "រូបភាព", "imageDescription": "ការពិពណ៌នារូបភាព", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "ឈ្មោះ", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "បានលុបចោលដោយជោគជ័យ", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "ប្រភេទ", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/pt.json b/packages/esm-patient-attachments-app/translations/pt.json index 29333098e..125e7e4ca 100644 --- a/packages/esm-patient-attachments-app/translations/pt.json +++ b/packages/esm-patient-attachments-app/translations/pt.json @@ -1,53 +1,56 @@ { - "add": "Add", - "addAnImage": "Add image", - "addAttachment": "Add Attachment", - "addAttachment_title": "Add Attachment", - "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", - "attachments": "Attachments", - "Attachments": "Attachments", - "attachmentsInLowerCase": "attachments", - "attachmentsInProperFormat": "Attachments", - "cameraAccessErrorMessage": "Please enable camera access in your browser settings and try again.", - "cameraError": "Camera Error", - "cancel": "Cancel", - "chooseAnAllowedFileType": "The file \"{{fileName}}\" cannot be uploaded. Please upload a file with one of the following extensions: {{supportedExtensions}}, or {{ lastExtension }}.", - "closeModal": "Close", - "closePreview": "Close preview", - "dateUploaded": "Date uploaded", - "delete": "Delete", - "deleteAttachmentConfirmationText": "Are you sure you want to delete this {{attachmentType}}? This action can't be undone.", - "deleteImage": "Delete image", - "deletePdf": "Delete PDF", - "edit": "Edit", - "error": "Error", - "failed": "failed", - "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", - "file": "File", - "fileDeleted": "File deleted", - "fileName": "File name", - "fileSizeInstructions": "Drag and drop files here or click to upload", - "fileSizeLimitExceeded": "exceeds the size limit of", - "fileSizeLimitExceededText": "File size limit exceeded", - "fileUploadSizeConstraints": "File limit is {{fileSize}}MB", - "gridView": "Grid view", - "image": "Image", - "imageDescription": "Image description", - "imagePreview": "Image preview", - "name": "name", - "noImageToDisplay": "No image to display", - "options": "Options", - "successfullyDeleted": "successfully deleted", - "tableView": "Table view", - "type": "Type", - "unsupportedFileType": "Unsupported file type", - "uploadComplete": "Upload complete", - "uploadedSuccessfully": "uploaded successfully", - "uploadError": "Error uploading file", - "uploadFiles": "Upload files", - "uploading": "Uploading", - "uploadWillContinueInTheBackground": "Files will be uploaded in the background. You can close this modal.", + "add": "Adicionar", + "addAnImage": "Adicionar imagem", + "addAttachment": "Adicionar anexo", + "addAttachment_title": "Adicionar anexo", + "addMoreAttachments": "Adicionar mais anexos", + "attachments": "Anexos", + "Attachments": "Anexos", + "attachmentsInLowerCase": "anexos", + "attachmentsInProperFormat": "Anexos", + "cameraAccessErrorMessage": "Favor de ativa o acesso à câmera nas configurações do seu navegador e tente novamente.", + "cameraError": "Erro de câmera", + "cancel": "Cancelar", + "chooseAnAllowedFileType": " O arquivo \"{{fileName}}\" não pode ser carregado. Faça o carregamento de um arquivo com uma das seguintes extensões: {{supportedExtensions}} ou {{ lastExtension }}.", + "closeModal": "Fechar", + "closePreview": "Fechar visualização", + "dateUploaded": "Data de carregamento", + "delete": "Apagar", + "deleteAttachmentConfirmationText": "Tem certeza de que deseja apagar este {{attachmentType}}? Esta ação não pode ser desfeita.", + "deleteImage": "Apagar imagem", + "deletePdf": "Apagar PDF", + "edit": "Editar", + "enterAttachmentDescription": "Insira a descrição do anexo", + "enterAttachmentName": "Insira o nome do anexo", + "error": "Erro", + "failed": "Falhou", + "failedDeleting": "Não pode ser apagado", + "file": "Ficheiro", + "fileDeleted": "Ficheiro excluído", + "fileName": "Nome do ficheiro", + "fileSizeInstructions": "Arraste e solte os arquivos aqui ou clique para carregar", + "fileSizeLimitExceeded": "excede o tamanho limite de", + "fileSizeLimitExceededText": "Limite de tamanho de arquivo excedido", + "fileUploadSizeConstraints": "O tamanho limite de arquivos é {{fileSize}} MB", + "gridView": "Visualização em grade", + "image": "Imagem", + "imageDescription": "Descrição da imagem", + "imagePlaceholder": "Espaço reservado para imagem", + "imagePreview": "Visualizar imagem", + "name": "nome", + "nameIsRequired": "Nome é obrigatório", + "noImageToDisplay": "Nemhuma imagem para mostrar", + "options": "Opções", + "successfullyDeleted": "apagado com sucesso", + "supportedFiletypes": "Arquivos suportados são {{supportedFiles}}", + "tableView": "Visualização em Tabela", + "type": "Tipo", + "unsupportedFileType": "Tipo de arquivo não suportado", + "uploadComplete": "Carregamento terminado", + "uploadedSuccessfully": "carregado com sucesso", + "uploadError": "Erro ao carregar arquivo", + "uploadFiles": "Arquivos carregados", + "uploading": "Carregando", + "uploadWillContinueInTheBackground": "Os arquivos serão carregados em segundo plano. Você pode fechar este modal.", "webcam": "Webcam" } diff --git a/packages/esm-patient-attachments-app/translations/qu.json b/packages/esm-patient-attachments-app/translations/qu.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/qu.json +++ b/packages/esm-patient-attachments-app/translations/qu.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/si.json b/packages/esm-patient-attachments-app/translations/si.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/si.json +++ b/packages/esm-patient-attachments-app/translations/si.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/sw.json b/packages/esm-patient-attachments-app/translations/sw.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/sw.json +++ b/packages/esm-patient-attachments-app/translations/sw.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/sw_KE.json b/packages/esm-patient-attachments-app/translations/sw_KE.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/sw_KE.json +++ b/packages/esm-patient-attachments-app/translations/sw_KE.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/tr.json b/packages/esm-patient-attachments-app/translations/tr.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/tr.json +++ b/packages/esm-patient-attachments-app/translations/tr.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/tr_TR.json b/packages/esm-patient-attachments-app/translations/tr_TR.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/tr_TR.json +++ b/packages/esm-patient-attachments-app/translations/tr_TR.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/uk.json b/packages/esm-patient-attachments-app/translations/uk.json index 29333098e..867ad0366 100644 --- a/packages/esm-patient-attachments-app/translations/uk.json +++ b/packages/esm-patient-attachments-app/translations/uk.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Attachments", "Attachments": "Attachments", "attachmentsInLowerCase": "attachments", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Error", "failed": "failed", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "File", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Image", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "name", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Options", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Type", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/vi.json b/packages/esm-patient-attachments-app/translations/vi.json index 22672d30a..3995317a8 100644 --- a/packages/esm-patient-attachments-app/translations/vi.json +++ b/packages/esm-patient-attachments-app/translations/vi.json @@ -4,7 +4,6 @@ "addAttachment": "Add Attachment", "addAttachment_title": "Add Attachment", "addMoreAttachments": "Add more attachments", - "attachmentCaptionInstruction": "Enter caption", "attachments": "Đính kèm", "Attachments": "Đính kèm", "attachmentsInLowerCase": "đính kèm", @@ -21,10 +20,11 @@ "deleteImage": "Delete image", "deletePdf": "Delete PDF", "edit": "Chỉnh sửa", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "Lỗi", "failed": "thất bại", "failedDeleting": "couldn't be deleted", - "fieldRequired": "This field is required", "file": "Tệp", "fileDeleted": "File deleted", "fileName": "File name", @@ -35,11 +35,14 @@ "gridView": "Grid view", "image": "Hình ảnh", "imageDescription": "Image description", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "tên", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "Tùy chọn", "successfullyDeleted": "successfully deleted", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "Table view", "type": "Loại", "unsupportedFileType": "Unsupported file type", diff --git a/packages/esm-patient-attachments-app/translations/zh.json b/packages/esm-patient-attachments-app/translations/zh.json index 3a90c4501..0adab7755 100644 --- a/packages/esm-patient-attachments-app/translations/zh.json +++ b/packages/esm-patient-attachments-app/translations/zh.json @@ -4,7 +4,6 @@ "addAttachment": "添加附件", "addAttachment_title": "添加附件", "addMoreAttachments": "增加更多附件", - "attachmentCaptionInstruction": "输入标题", "attachments": "附件", "Attachments": "附件", "attachmentsInLowerCase": "附件", @@ -21,10 +20,11 @@ "deleteImage": "删除图像", "deletePdf": "删除PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "错误", "failed": "失败", "failedDeleting": "无法删除", - "fieldRequired": "此字段为必填项", "file": "文件", "fileDeleted": "文件已删除", "fileName": "文件名", @@ -35,11 +35,14 @@ "gridView": "网格视图", "image": "图像", "imageDescription": "图像描述", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "名称", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "选项", "successfullyDeleted": "删除成功", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "表格视图", "type": "类型", "unsupportedFileType": "不支持的文件类型", diff --git a/packages/esm-patient-attachments-app/translations/zh_CN.json b/packages/esm-patient-attachments-app/translations/zh_CN.json index 3a90c4501..0adab7755 100644 --- a/packages/esm-patient-attachments-app/translations/zh_CN.json +++ b/packages/esm-patient-attachments-app/translations/zh_CN.json @@ -4,7 +4,6 @@ "addAttachment": "添加附件", "addAttachment_title": "添加附件", "addMoreAttachments": "增加更多附件", - "attachmentCaptionInstruction": "输入标题", "attachments": "附件", "Attachments": "附件", "attachmentsInLowerCase": "附件", @@ -21,10 +20,11 @@ "deleteImage": "删除图像", "deletePdf": "删除PDF", "edit": "Edit", + "enterAttachmentDescription": "Enter attachment description", + "enterAttachmentName": "Enter attachment name", "error": "错误", "failed": "失败", "failedDeleting": "无法删除", - "fieldRequired": "此字段为必填项", "file": "文件", "fileDeleted": "文件已删除", "fileName": "文件名", @@ -35,11 +35,14 @@ "gridView": "网格视图", "image": "图像", "imageDescription": "图像描述", + "imagePlaceholder": "Image placeholder", "imagePreview": "Image preview", "name": "名称", + "nameIsRequired": "Name is required", "noImageToDisplay": "No image to display", "options": "选项", "successfullyDeleted": "删除成功", + "supportedFiletypes": "Supported files are {{supportedFiles}}", "tableView": "表格视图", "type": "类型", "unsupportedFileType": "不支持的文件类型", diff --git a/packages/esm-patient-banner-app/translations/pt.json b/packages/esm-patient-banner-app/translations/pt.json index 61c50e267..47d673099 100644 --- a/packages/esm-patient-banner-app/translations/pt.json +++ b/packages/esm-patient-banner-app/translations/pt.json @@ -1,20 +1,20 @@ { - "address1": "Address line 1", - "address2": "Address line 2", - "city": "City", - "cityVillage": "city", - "country": "Country", - "countyDistrict": "District", - "district": "District", - "implementationLogo": "Implementation logo", - "patientAge": "Age:", - "patientDateOfBirthWithSeparator": "Date of birth:", - "patientGenderWithSeparator": "Gender:", - "patientIdentifierSticker": "Patient identifier sticker", - "patientNameWithSeparator": "Patient name:", - "postalCode": "Postal code", - "printIdentifierSticker": "Print identifier sticker", - "state": "State", - "stateProvince": "State", - "telephoneNumberWithSeparator": "Telephone number:" + "address1": "Endereço linha 1", + "address2": "Endereço linha 2", + "city": "Cidade", + "cityVillage": "cidade", + "country": "País", + "countyDistrict": "Distrito", + "district": "Distrito", + "implementationLogo": "Logotipo de implementação", + "patientAge": "Idade:", + "patientDateOfBirthWithSeparator": "Data de nascimento:", + "patientGenderWithSeparator": "Sexo:", + "patientIdentifierSticker": "Etiqueta de Identificador do Utente", + "patientNameWithSeparator": "Nome do utente:", + "postalCode": "Caixa postal", + "printIdentifierSticker": "Imprimir etiqueta do identificador", + "state": "Estado", + "stateProvince": "Estado", + "telephoneNumberWithSeparator": "Número de Telefone:" } diff --git a/packages/esm-patient-chart-app/translations/vi.json b/packages/esm-patient-chart-app/translations/vi.json index c74c647a3..7a7aeac73 100644 --- a/packages/esm-patient-chart-app/translations/vi.json +++ b/packages/esm-patient-chart-app/translations/vi.json @@ -80,20 +80,20 @@ "loading": "Đang tải", "loadingVisit": "Loading current visit...", "loadMore": "Load more", - "location": "Location", + "location": "Vị trí", "markAliveSuccessfully": "Patient marked alive succesfully", "markDeceasedWarning": "Marking the patient as deceased will end any active visits for this patient", "markPatientAlive": "Mark patient alive", "markPatientAliveConfirmation": "Are you sure you want to mark this patient alive?", "markPatientDeceased": "Mark patient deceased", - "medications": "Medications", - "medications__lower": "medications", + "medications": "Thuốc", + "medications__lower": "thuốc", "missingVisitType": "Missing visit type", "modifyVisitDate": "Modify visit date", "movePatient": "Move patient", "movePatientToNextService": "Move patient to next service", - "name": "Name", - "no": "No", + "name": "Tên", + "no": "Không", "noActiveVisit": "No Active Visit", "noActiveVisitMessage": "active visit", "noActiveVisitNoRDEText": "You can't add data to the patient chart without an active visit. Would you like to start a new visit?", @@ -105,10 +105,10 @@ "nonCodedCauseOfDeath": "Non-coded cause of death", "nonCodedCauseOfDeathRequired": "Please enter the non-coded cause of death", "noObservationsFound": "No observations found", - "notes": "Notes", - "notes__lower": "notes", + "notes": "Ghi chú", + "notes__lower": "ghi chú", "noVisitTypesToDisplay": "No visit types to display", - "optional": "optional", + "optional": "tùy chọn", "orderDurationAndUnit": "for {{duration}} {{durationUnit}}", "orderIndefiniteDuration": "Indefinite duration", "paginationItemsCount_one": "{{pageItemsCount}} / {{count}} item", @@ -119,19 +119,19 @@ "pastVisitErrorText": "Past visit error", "pastVisits": "Past visits", "Patient Summary": "Patient summary", - "program": "Program", - "provider": "Provider", - "quantity": "Quantity", + "program": "Chương trình", + "provider": "Nhà cung cấp", + "quantity": "Số lượng", "queueAddedSuccessfully": "Patient has been added to the queue successfully.", "queueEntryError": "Error adding patient to the queue", - "recommended": "Recommended", - "record": "Record", - "refills": "Refills", + "recommended": "Gợi ý", + "record": "Ghi", + "refills": "Nạp lại", "refreshToTryAgain": "Please refresh to try again", - "required": "Required", + "required": "Yêu cầu", "retrospectiveEntry": "Retrospective entry", "saveAndClose": "Save and close", - "saving": "Saving", + "saving": "Đang lưu", "searchForAVisitType": "Search for a visit type", "searchForCauseOfDeath": "Search for a cause of death", "searchThisList": "Search this list", @@ -140,7 +140,7 @@ "selectLocation": "Select a location", "selectProgramType": "Select program type", "selectVisitType": "Please select a visit type", - "start": "Start", + "start": "Bắt đầu", "startAVisit": "Start a visit", "startDate": "Start date", "startingVisit": "Starting visit", @@ -148,15 +148,15 @@ "startVisit": "Start visit", "startVisitError": "Error starting visit", "successfullyDeleted": "successfully deleted", - "tests": "Tests", - "time": "Time", + "tests": "Kiểm tra", + "time": "Thời gian", "timeFormat ": "Time Format", - "type": "Type", - "undo": "Undo", + "type": "Kiểu", + "undo": "Hoàn tác", "updateError": "Error updating upcoming appointment", "updateVisit": "Update visit", "updatingVisit": "Updating visit", - "visit": "Visit", + "visit": "Lượt khám", "visitAttributes": "Visit attributes", "visitCancelled": "Visit cancelled", "visitCancelSuccessMessage": "Active {{visit}} cancelled successfully", @@ -170,8 +170,8 @@ "visitNotRestored": "Visit couldn't be restored", "visitRestored": "Visit restored", "visitRestoredSuccessfully": "{{visit}} restored successfully", - "visits": "visits", - "Visits": "Visits", + "visits": "lượt khám", + "Visits": "Lượt khám", "visitStartDatetime": "Visit start date and time", "visitStarted": "Visit started", "visitStartedSuccessfully": "{{visit}} started successfully", @@ -181,6 +181,6 @@ "visitType": "Visit type", "visitType_title": "Visit Type", "visitTypeRequired": "Visit type is required", - "warning": "Warning", - "yes": "Yes" + "warning": "Cảnh báo", + "yes": "Có" } diff --git a/packages/esm-patient-conditions-app/translations/pt.json b/packages/esm-patient-conditions-app/translations/pt.json index 1f6dbeb2c..d21a84655 100644 --- a/packages/esm-patient-conditions-app/translations/pt.json +++ b/packages/esm-patient-conditions-app/translations/pt.json @@ -1,41 +1,41 @@ { - "active": "Active", - "add": "Add", - "cancel": "Cancel", - "checkFilters": "Check the filters above", - "clinicalStatus": "Clinical status", - "clinicalStatusRequired": "A clinical status is required", - "condition": "Condition", - "conditionDeleted": "Condition deleted", - "conditionNowVisible": "It is now visible on the Conditions page", - "conditionRequired": "A condition is required", - "conditions": "Conditions", - "Conditions": "Conditions", - "conditionSaved": "Condition saved successfully", - "conditionUpdated": "Condition updated", - "dateOfOnset": "Date of onset", - "delete": "Delete", - "deleteCondition": "Delete condition", - "deleteModalConfirmationText": "Are you sure you want to delete this condition?", - "deleting": "Deleting", - "edit": "Edit", - "editCondition": "Edit a Condition", - "endDate": "End date", - "enterCondition": "Enter condition", - "errorCreatingCondition": "Error creating condition", - "errorDeletingCondition": "Error deleting condition", - "errorUpdatingCondition": "Error updating condition", - "inactive": "Inactive", - "noConditionsToDisplay": "No conditions to display", - "noResultsFor": "No results for", - "onsetDate": "Onset date", - "recordCondition": "Record a Condition", - "required": "Required", - "saveAndClose": "Save & close", - "saving": "Saving", - "searchConditions": "Search conditions", - "searching": "Searching", - "seeAll": "See all", - "show": "Show", - "status": "Status" + "active": "Ativo", + "add": "Adicionar", + "cancel": "Cancelar", + "checkFilters": "Verifique os filtros acima", + "clinicalStatus": "Estado clínico", + "clinicalStatusRequired": "É necessário um estado clínico", + "condition": "Condição", + "conditionDeleted": "Condição excluída", + "conditionNowVisible": "Está agora visível na página de Condições", + "conditionRequired": "Uma condição é necessária", + "conditions": "Condições", + "Conditions": "Condições", + "conditionSaved": "Condição gravada com sucesso", + "conditionUpdated": "Condição actualizada", + "dateOfOnset": "Data de início", + "delete": "Apagar", + "deleteCondition": "Apagar a condição", + "deleteModalConfirmationText": "Tem certeza de que deseja excluir esta condição?", + "deleting": "Removendo", + "edit": "Editar", + "editCondition": "Editar uma condição", + "endDate": "Data de fim", + "enterCondition": "Insira a condição", + "errorCreatingCondition": "Erro ao criar condição", + "errorDeletingCondition": "Erro ao apagar condição", + "errorUpdatingCondition": "Erro ao atualizar a condição", + "inactive": "Inactivo", + "noConditionsToDisplay": "Nenhuma condição para mostrar", + "noResultsFor": "Nenhum resultado para", + "onsetDate": "Data de início", + "recordCondition": "Registe uma condição", + "required": "Obrigatório", + "saveAndClose": "Salvar e fechar", + "saving": "Gravando", + "searchConditions": "Pesquisar condições", + "searching": "Pesquisando", + "seeAll": "Ver tudo", + "show": "Mostrar", + "status": "Estado" } diff --git a/packages/esm-patient-conditions-app/translations/vi.json b/packages/esm-patient-conditions-app/translations/vi.json index 1f6dbeb2c..ecd8c9feb 100644 --- a/packages/esm-patient-conditions-app/translations/vi.json +++ b/packages/esm-patient-conditions-app/translations/vi.json @@ -1,41 +1,41 @@ { - "active": "Active", - "add": "Add", - "cancel": "Cancel", + "active": "Kích hoạt", + "add": "Thêm", + "cancel": "Hủy", "checkFilters": "Check the filters above", "clinicalStatus": "Clinical status", "clinicalStatusRequired": "A clinical status is required", - "condition": "Condition", + "condition": "Tình trạng", "conditionDeleted": "Condition deleted", "conditionNowVisible": "It is now visible on the Conditions page", "conditionRequired": "A condition is required", - "conditions": "Conditions", - "Conditions": "Conditions", + "conditions": "Điều kiện", + "Conditions": "Điều kiện", "conditionSaved": "Condition saved successfully", "conditionUpdated": "Condition updated", "dateOfOnset": "Date of onset", - "delete": "Delete", + "delete": "Xóa", "deleteCondition": "Delete condition", "deleteModalConfirmationText": "Are you sure you want to delete this condition?", - "deleting": "Deleting", - "edit": "Edit", + "deleting": "Đang xóa", + "edit": "Chỉnh sửa", "editCondition": "Edit a Condition", "endDate": "End date", "enterCondition": "Enter condition", "errorCreatingCondition": "Error creating condition", "errorDeletingCondition": "Error deleting condition", "errorUpdatingCondition": "Error updating condition", - "inactive": "Inactive", + "inactive": "Không hoạt động", "noConditionsToDisplay": "No conditions to display", "noResultsFor": "No results for", "onsetDate": "Onset date", "recordCondition": "Record a Condition", - "required": "Required", + "required": "Yêu cầu", "saveAndClose": "Save & close", - "saving": "Saving", + "saving": "Đang lưu", "searchConditions": "Search conditions", - "searching": "Searching", + "searching": "Đang tìm kiếm", "seeAll": "See all", - "show": "Show", - "status": "Status" + "show": "Trình diễn", + "status": "Trạng thái" } diff --git a/packages/esm-patient-flags-app/translations/vi.json b/packages/esm-patient-flags-app/translations/vi.json index 69c968385..88edbe44e 100644 --- a/packages/esm-patient-flags-app/translations/vi.json +++ b/packages/esm-patient-flags-app/translations/vi.json @@ -5,8 +5,8 @@ "closeFlagsBar": "Close flags bar", "disableFlagError": "Disable flag error", "disablingFlag": "Disabling flag...", - "discard": "Discard", - "edit": "Edit", + "discard": "Hủy bỏ", + "edit": "Chỉnh sửa", "editFlags": "Edit flags", "editPatientFlags": "Edit patient flags", "enabledFlag": "Enabled flag", @@ -19,7 +19,7 @@ "flagEnabled": "flag enabled", "flagEnabledSuccessfully": "Flag successfully enabled", "flagEnableError": "Error enabling flag", - "loading": "Loading", + "loading": "Đang tải", "matchesForSearchTerm_one": "{{count}} flag", "matchesForSearchTerm_other": "{{count}} flags", "noFlagsFound": "Sorry, no flags found matching your search", diff --git a/packages/esm-patient-forms-app/translations/pt.json b/packages/esm-patient-forms-app/translations/pt.json index 7cf1901ce..1db680dba 100644 --- a/packages/esm-patient-forms-app/translations/pt.json +++ b/packages/esm-patient-forms-app/translations/pt.json @@ -1,25 +1,25 @@ { - "clinicalForm": "Clinical Form", - "clinicalForms": "Clinical forms", - "editForm": "Edit form", - "formName": "Form Name (A-Z)", - "forms": "Forms", - "formSearchHint": "Try searching for the form using an alternative name or keyword", - "homeOverviewCardView": "View", - "lastCompleted": "Last completed", - "never": "Never", - "noFormsToDisplay": "There are no forms to display.", - "noMatchingFormsAvailable": "There are no {{formCategory}} forms to display", - "noMatchingFormsToDisplay": "No matching forms to display", - "offlineForms": "Offline forms", - "offlineForms__lower": "offline forms", - "offlineFormsOverviewCardAvailableOffline": "Available offline", - "offlineFormsTableFormAvailableOffline": "Offline", - "offlineFormsTableFormNameHeader": "Form name", - "offlineFormsTitle": "Offline forms", - "offlinePatientsTableSearchLabel": "Search this list", - "offlinePatientsTableSearchPlaceholder": "Search this list", - "offlineToggle": "Offline toggle", - "searchForAForm": "Search for a form", - "searchThisList": "Search this list" + "clinicalForm": "Formulário Clínico", + "clinicalForms": "Formulários clínicos", + "editForm": "Editar formulário", + "formName": "Nome do Formulário (A-Z)", + "forms": "Formulários", + "formSearchHint": "Tente pesquisar o formulário usando um nome ou palavra-chave alternativa", + "homeOverviewCardView": "Visualizar", + "lastCompleted": "Último preenchido", + "never": "Nunca", + "noFormsToDisplay": "Não há formulários para visualizar.", + "noMatchingFormsAvailable": "Não há formulários {{formCategory}} para visualizar", + "noMatchingFormsToDisplay": "Não há formulários correspondentes para visualizar", + "offlineForms": "Formulários off-line", + "offlineForms__lower": "Formulários on-line", + "offlineFormsOverviewCardAvailableOffline": "Disponível off-line", + "offlineFormsTableFormAvailableOffline": "Off-line", + "offlineFormsTableFormNameHeader": "Nome do formulário", + "offlineFormsTitle": "Formulários off-line", + "offlinePatientsTableSearchLabel": "Pesquisar esta lista", + "offlinePatientsTableSearchPlaceholder": "Pesquisar esta lista", + "offlineToggle": "Alternar off-line", + "searchForAForm": "Pesquise um formulário", + "searchThisList": "Pesquisar esta lista" } diff --git a/packages/esm-patient-forms-app/translations/vi.json b/packages/esm-patient-forms-app/translations/vi.json index 7cf1901ce..645c88fc0 100644 --- a/packages/esm-patient-forms-app/translations/vi.json +++ b/packages/esm-patient-forms-app/translations/vi.json @@ -3,18 +3,18 @@ "clinicalForms": "Clinical forms", "editForm": "Edit form", "formName": "Form Name (A-Z)", - "forms": "Forms", + "forms": "Biểu mẫu", "formSearchHint": "Try searching for the form using an alternative name or keyword", - "homeOverviewCardView": "View", + "homeOverviewCardView": "Xem", "lastCompleted": "Last completed", - "never": "Never", + "never": "Không bao giờ", "noFormsToDisplay": "There are no forms to display.", "noMatchingFormsAvailable": "There are no {{formCategory}} forms to display", "noMatchingFormsToDisplay": "No matching forms to display", "offlineForms": "Offline forms", "offlineForms__lower": "offline forms", "offlineFormsOverviewCardAvailableOffline": "Available offline", - "offlineFormsTableFormAvailableOffline": "Offline", + "offlineFormsTableFormAvailableOffline": "Ngoại tuyến", "offlineFormsTableFormNameHeader": "Form name", "offlineFormsTitle": "Offline forms", "offlinePatientsTableSearchLabel": "Search this list", diff --git a/packages/esm-patient-immunizations-app/translations/vi.json b/packages/esm-patient-immunizations-app/translations/vi.json index 510dd0e3b..dc30534ee 100644 --- a/packages/esm-patient-immunizations-app/translations/vi.json +++ b/packages/esm-patient-immunizations-app/translations/vi.json @@ -1,27 +1,27 @@ { - "add": "Add", - "cancel": "Cancel", + "add": "Thêm", + "cancel": "Hủy", "doseNumber": "Dose number within series", "doseNumberWithinSeries": "Dose number within series", - "edit": "Edit", - "error": "Error", + "edit": "Chỉnh sửa", + "error": "Lỗi", "errorSaving": "Error saving vaccination", "expirationDate": "Expiration Date", "goToSummary": "Go to Summary", - "immunization": "Immunization", - "immunizations": "Immunizations", - "Immunizations": "Immunizations", - "immunizations__lower": "immunizations", + "immunization": "Tiêm chủng", + "immunizations": "Tiêm chủng", + "Immunizations": "Tiêm chủng", + "immunizations__lower": "Tiêm chủng", "immunizationWorkspaceTitle": "Immunization Form", "lotNumber": "Lot Number", - "manufacturer": "Manufacturer", + "manufacturer": "Nhà sản xuất", "pleaseSelect": "Please select", "recentVaccination": "Recent vaccination", - "save": "Save", + "save": "Lưu", "seeAll": "See all", - "sequence": "Sequence", + "sequence": "Liên tục", "singleDoseOn": "Single Dose on", - "time": "Time", + "time": "Thời gian", "timeFormat ": "Time Format", "vaccinationDate": "Vaccination date", "vaccinationDateRequired": "Vaccination date required", diff --git a/packages/esm-patient-lists-app/translations/vi.json b/packages/esm-patient-lists-app/translations/vi.json index 90c336895..58701db2d 100644 --- a/packages/esm-patient-lists-app/translations/vi.json +++ b/packages/esm-patient-lists-app/translations/vi.json @@ -2,10 +2,10 @@ "backToPatientLists": "Back to patient lists", "checkFilters": "Check the filters above", "createdOn": "Created on", - "identifier": "Identifier", + "identifier": "Mã định danh", "listName": "List name", "listType": "List type", - "name": "Name", + "name": "Tên", "noMatchingListsFound": "No matching lists to display", "noMatchingPatients": "No matching patients to display", "noPatientListsToDisplay": "No patient lists to display", @@ -14,8 +14,8 @@ "patientListDetailWorkspaceTitle": "Patient List Details", "patientLists": "Patient lists", "patientListsWorkspaceTitle": "Patient Lists", - "patients": "patients", + "patients": "bệnh nhân", "searchThisList": "Search this list", - "sex": "Sex", + "sex": "Giới tính", "startDate": "Start Date" } diff --git a/packages/esm-patient-medications-app/src/active-medications/active-medications.component.tsx b/packages/esm-patient-medications-app/src/active-medications/active-medications.component.tsx index 13dce82f6..dcfa0a82e 100644 --- a/packages/esm-patient-medications-app/src/active-medications/active-medications.component.tsx +++ b/packages/esm-patient-medications-app/src/active-medications/active-medications.component.tsx @@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next'; import { DataTableSkeleton } from '@carbon/react'; import { EmptyState, ErrorState, useLaunchWorkspaceRequiringVisit } from '@openmrs/esm-patient-common-lib'; import MedicationsDetailsTable from '../components/medications-details-table.component'; -import { usePatientOrders } from '../api/api'; +import { useActivePatientOrders } from '../api/api'; interface ActiveMedicationsProps { patient: fhir.Patient; @@ -14,7 +14,7 @@ const ActiveMedications: React.FC = ({ patient }) => { const displayText = t('activeMedicationsDisplayText', 'Active medications'); const headerTitle = t('activeMedicationsHeaderTitle', 'active medications'); - const { data: activePatientOrders, error, isLoading, isValidating } = usePatientOrders(patient?.id, 'ACTIVE'); + const { data: activePatientOrders, error, isLoading, isValidating } = useActivePatientOrders(patient?.id); const launchAddDrugWorkspace = useLaunchWorkspaceRequiringVisit('add-drug-order'); @@ -35,6 +35,7 @@ const ActiveMedications: React.FC = ({ patient }) => { /> ); } + return launchAddDrugWorkspace()} />; }; diff --git a/packages/esm-patient-medications-app/src/active-medications/active-medications.test.tsx b/packages/esm-patient-medications-app/src/active-medications/active-medications.test.tsx index dba13504d..b21173256 100644 --- a/packages/esm-patient-medications-app/src/active-medications/active-medications.test.tsx +++ b/packages/esm-patient-medications-app/src/active-medications/active-medications.test.tsx @@ -90,12 +90,12 @@ describe('ActiveMedications', () => { const expectedTableRows = [ /14-Aug-2023 Admin User Acetaminophen 325 mg — 325mg — tablet DOSE 2 tablet — oral — twice daily — indefinite duration — take it sometimes INDICATION Bad boo-boo/, - /14-Aug-2023 Admin User Acetaminophen 325 mg — 325mg — tablet DOSE 2 tablet — oral — twice daily — indefinite duration INDICATION No good — DISCONTINUED DATE 14-Aug-2023/, + /14-Aug-2023 Admin User Acetaminophen 325 mg — 325mg — tablet 14-Aug-2023 DOSE 2 tablet — oral — twice daily — indefinite duration INDICATION No good 0/, /14-Aug-2023 Admin User Sulfacetamide 0.1 — 10% DOSE 1 application — for {{duration}} weeks — REFILLS 1 — apply it INDICATION Pain — QUANTITY 8 Application/, /14-Aug-2023 Admin User Aspirin 162.5mg — 162.5mg — tablet DOSE 1 tablet — oral — once daily — for {{duration}} days INDICATION Heart — QUANTITY 30 Tablet/, ]; - expectedTableRows.map((row) => + expectedTableRows.forEach((row) => expect(within(table).getByRole('row', { name: new RegExp(row, 'i') })).toBeInTheDocument(), ); }); diff --git a/packages/esm-patient-medications-app/src/add-drug-order/drug-search/order-basket-search-results.component.tsx b/packages/esm-patient-medications-app/src/add-drug-order/drug-search/order-basket-search-results.component.tsx index 6f566a79c..b0664dd89 100644 --- a/packages/esm-patient-medications-app/src/add-drug-order/drug-search/order-basket-search-results.component.tsx +++ b/packages/esm-patient-medications-app/src/add-drug-order/drug-search/order-basket-search-results.component.tsx @@ -115,7 +115,7 @@ const DrugSearchResultItem: React.FC = ({ drug, openO const isTablet = useLayoutType() === 'tablet'; const { orders, setOrders } = useOrderBasket('medications', prepMedicationOrderPostData); const patient = usePatient(); - const { data: activeOrders, isLoading: isLoadingActiveOrders } = usePatientOrders(patient.patientUuid, 'ACTIVE'); + const { data: activeOrders, isLoading: isLoadingActiveOrders } = usePatientOrders(patient.patientUuid); const drugAlreadyInBasket = useMemo( () => orders?.some((order) => ordersEqual(order, getTemplateOrderBasketItem(drug))), [orders, drug], diff --git a/packages/esm-patient-medications-app/src/api/api.ts b/packages/esm-patient-medications-app/src/api/api.ts index 158afd7e0..adae25c28 100644 --- a/packages/esm-patient-medications-app/src/api/api.ts +++ b/packages/esm-patient-medications-app/src/api/api.ts @@ -1,29 +1,42 @@ import { useCallback, useMemo } from 'react'; import useSWR, { mutate } from 'swr'; -import { type ConfigObject } from '../config-schema'; -import { type FetchResponse, openmrsFetch, restBaseUrl, useConfig } from '@openmrs/esm-framework'; +import useSWRImmutable from 'swr/immutable'; +import { openmrsFetch, restBaseUrl, useConfig, type FetchResponse } from '@openmrs/esm-framework'; import { type OrderPost, type PatientOrderFetchResponse } from '@openmrs/esm-patient-common-lib'; +import { type ConfigObject } from '../config-schema'; import { type DrugOrderBasketItem } from '../types'; -import useSWRImmutable from 'swr/immutable'; export const careSettingUuid = '6f0c9a92-6f24-11e3-af88-005056821db0'; +const customRepresentation = + 'custom:(uuid,dosingType,orderNumber,accessionNumber,' + + 'patient:ref,action,careSetting:ref,previousOrder:ref,dateActivated,scheduledDate,dateStopped,autoExpireDate,' + + 'orderType:ref,encounter:ref,orderer:(uuid,display,person:(display)),orderReason,orderReasonNonCoded,orderType,urgency,instructions,' + + 'commentToFulfiller,drug:(uuid,display,strength,dosageForm:(display,uuid),concept),dose,doseUnits:ref,' + + 'frequency:ref,asNeeded,asNeededCondition,quantity,quantityUnits:ref,numRefills,dosingInstructions,' + + 'duration,durationUnits:ref,route:ref,brandName,dispenseAsWritten)'; + +/** + * Sorts orders by date activated in descending order. + * + * @param orders The orders to sort. + * @returns The sorted orders. + */ +function sortOrdersByDateActivated(orders: any[]) { + return orders?.sort( + (order1, order2) => new Date(order2.dateActivated).getTime() - new Date(order1.dateActivated).getTime(), + ); +} + /** * SWR-based data fetcher for patient orders. * * @param patientUuid The UUID of the patient whose orders should be fetched. - * @param status Allows fetching either all orders or only active orders. */ -export function usePatientOrders(patientUuid: string, status: 'ACTIVE' | 'any') { - const { drugOrderTypeUUID } = useConfig() as ConfigObject; - const customRepresentation = - 'custom:(uuid,dosingType,orderNumber,accessionNumber,' + - 'patient:ref,action,careSetting:ref,previousOrder:ref,dateActivated,scheduledDate,dateStopped,autoExpireDate,' + - 'orderType:ref,encounter:ref,orderer:(uuid,display,person:(display)),orderReason,orderReasonNonCoded,orderType,urgency,instructions,' + - 'commentToFulfiller,drug:(uuid,display,strength,dosageForm:(display,uuid),concept),dose,doseUnits:ref,' + - 'frequency:ref,asNeeded,asNeededCondition,quantity,quantityUnits:ref,numRefills,dosingInstructions,' + - 'duration,durationUnits:ref,route:ref,brandName,dispenseAsWritten)'; - const ordersUrl = `${restBaseUrl}/order?patient=${patientUuid}&careSetting=${careSettingUuid}&status=${status}&orderType=${drugOrderTypeUUID}&v=${customRepresentation}`; +export function usePatientOrders(patientUuid: string) { + const { drugOrderTypeUUID } = useConfig(); + + const ordersUrl = `${restBaseUrl}/order?patient=${patientUuid}&careSetting=${careSettingUuid}&orderTypes=${drugOrderTypeUUID}&v=${customRepresentation}&excludeDiscontinueOrders=true`; const { data, error, isLoading, isValidating } = useSWR, Error>( patientUuid ? ordersUrl : null, @@ -35,22 +48,73 @@ export function usePatientOrders(patientUuid: string, status: 'ACTIVE' | 'any') [patientUuid], ); - const drugOrders = useMemo( + const drugOrders = useMemo(() => sortOrdersByDateActivated(data?.data?.results) ?? null, [data]); + + return { + data: data ? drugOrders : null, + error, + isLoading, + isValidating, + mutate: mutateOrders, + }; +} + +/** + * Hook to get active patient orders. + * + * @param patientUuid The UUID of the patient whose active orders should be fetched. + */ +export function useActivePatientOrders(patientUuid: string) { + const { drugOrderTypeUUID } = useConfig(); + const ordersUrl = useMemo( () => - data?.data?.results - ? data.data.results - .filter((order) => order.orderType.display === 'Drug Order') - ?.sort((order1, order2) => (order2.dateActivated > order1.dateActivated ? 1 : -1)) + patientUuid + ? `${restBaseUrl}/order?patient=${patientUuid}&careSetting=${careSettingUuid}&orderTypes=${drugOrderTypeUUID}&excludeCanceledAndExpired=true&v=${customRepresentation}` : null, - [data], + [patientUuid, drugOrderTypeUUID], + ); + const { data, error, isLoading, isValidating } = useSWR, Error>( + ordersUrl, + openmrsFetch, ); + const activeOrders = useMemo(() => sortOrdersByDateActivated(data?.data?.results) ?? null, [data]); + return { - data: data ? drugOrders : null, + data: activeOrders, error, isLoading, isValidating, - mutate: mutateOrders, + mutate, + }; +} + +/** + * Hook to get past patient orders. + * + * @param patientUuid The UUID of the patient whose past orders should be fetched. + */ +export function usePastPatientOrders(patientUuid: string) { + const { data: allOrders, error, isLoading, isValidating, mutate } = usePatientOrders(patientUuid); + const { data: activeOrders } = useActivePatientOrders(patientUuid); + + const pastOrders = useMemo(() => { + if (!allOrders || !activeOrders) { + return []; + } + + const filteredDrugOrders = allOrders.filter( + (order) => !activeOrders.some((activeOrder) => activeOrder.uuid === order.uuid), + ); + return sortOrdersByDateActivated(filteredDrugOrders); + }, [allOrders, activeOrders]); + + return { + data: pastOrders, + error, + isLoading, + isValidating, + mutate, }; } diff --git a/packages/esm-patient-medications-app/src/components/medications-details-table.component.tsx b/packages/esm-patient-medications-app/src/components/medications-details-table.component.tsx index 1d67284c0..813239cb2 100644 --- a/packages/esm-patient-medications-app/src/components/medications-details-table.component.tsx +++ b/packages/esm-patient-medications-app/src/components/medications-details-table.component.tsx @@ -15,6 +15,8 @@ import { TableHead, TableHeader, TableRow, + Tag, + Tooltip, } from '@carbon/react'; import { CardHeader, @@ -102,6 +104,13 @@ const MedicationsDetailsTable: React.FC = ({ {capitalize(medication.drug?.display)}{' '} {medication.drug?.strength && <>— {medication.drug?.strength.toLowerCase()}}{' '} {medication.drug?.dosageForm?.display && <>— {medication.drug.dosageForm.display.toLowerCase()}} + {medication.dateStopped && ( + {formatDate(new Date(medication.dateStopped))}}> + + {t('discontinued', 'Discontinued')} + + + )}

{t('dose', 'Dose').toUpperCase()}{' '} @@ -128,26 +137,18 @@ const MedicationsDetailsTable: React.FC = ({

- {medication.orderReasonNonCoded ? ( + {medication.orderReasonNonCoded && ( {t('indication', 'Indication').toUpperCase()}{' '} {medication.orderReasonNonCoded} - ) : null} - {medication.quantity ? ( + )} + {medication.quantity && ( — {t('quantity', 'Quantity').toUpperCase()}{' '} {medication.quantity} {medication?.quantityUnits?.display} - ) : null} - {medication.dateStopped ? ( - - - — {t('discontinuedDate', 'Discontinued date').toUpperCase()} - - {formatDate(new Date(medication.dateStopped))} - - ) : null} + )}

), diff --git a/packages/esm-patient-medications-app/src/components/medications-details-table.scss b/packages/esm-patient-medications-app/src/components/medications-details-table.scss index 079cbbb2e..0f2418605 100644 --- a/packages/esm-patient-medications-app/src/components/medications-details-table.scss +++ b/packages/esm-patient-medications-app/src/components/medications-details-table.scss @@ -66,3 +66,10 @@ border-bottom: none !important; } } + +.tag { + margin: 0 !important; + margin-left: layout.$spacing-03 !important; + border: none; + text-transform: uppercase; +} diff --git a/packages/esm-patient-medications-app/src/medications-summary/medications-summary.component.tsx b/packages/esm-patient-medications-app/src/medications-summary/medications-summary.component.tsx index 759619188..9875c4c77 100644 --- a/packages/esm-patient-medications-app/src/medications-summary/medications-summary.component.tsx +++ b/packages/esm-patient-medications-app/src/medications-summary/medications-summary.component.tsx @@ -1,11 +1,10 @@ -import React, { useMemo } from 'react'; +import React from 'react'; import { useTranslation } from 'react-i18next'; import { DataTableSkeleton } from '@carbon/react'; -import { parseDate } from '@openmrs/esm-framework'; -import { EmptyState, ErrorState, useLaunchWorkspaceRequiringVisit, type Order } from '@openmrs/esm-patient-common-lib'; -import { usePatientOrders } from '../api'; -import MedicationsDetailsTable from '../components/medications-details-table.component'; +import { EmptyState, ErrorState, useLaunchWorkspaceRequiringVisit } from '@openmrs/esm-patient-common-lib'; +import { useActivePatientOrders, usePastPatientOrders } from '../api'; import { type AddDrugOrderWorkspaceAdditionalProps } from '../add-drug-order/add-drug-order.workspace'; +import MedicationsDetailsTable from '../components/medications-details-table.component'; export interface MedicationsSummaryProps { patient: fhir.Patient; @@ -17,32 +16,18 @@ export default function MedicationsSummary({ patient }: MedicationsSummaryProps) useLaunchWorkspaceRequiringVisit('add-drug-order'); const { - data: allOrders, - error: error, - isLoading: isLoading, - isValidating: isValidating, - } = usePatientOrders(patient?.id, 'any'); - - const [pastOrders, activeOrders] = useMemo(() => { - const currentDate = new Date(); - const pastOrders: Array = []; - const activeOrders: Array = []; + data: activeOrders, + error: activeOrdersError, + isLoading: isLoadingActiveOrders, + isValidating: isValidatingActiveOrders, + } = useActivePatientOrders(patient?.id); - if (allOrders) { - for (let i = 0; i < allOrders.length; i++) { - const order = allOrders[i]; - if (order.autoExpireDate && parseDate(order.autoExpireDate) < currentDate) { - pastOrders.push(order); - } else if (order.dateStopped && parseDate(order.dateStopped) < currentDate) { - pastOrders.push(order); - } else { - activeOrders.push(order); - } - } - } - - return [pastOrders, activeOrders]; - }, [allOrders]); + const { + data: pastOrders, + error: pastOrdersError, + isLoading: isLoadingPastOrders, + isValidating: isValidatingPastOrders, + } = usePastPatientOrders(patient?.id); return (
@@ -51,14 +36,14 @@ export default function MedicationsSummary({ patient }: MedicationsSummaryProps) const displayText = t('activeMedicationsDisplayText', 'Active medications'); const headerTitle = t('activeMedicationsHeaderTitle', 'active medications'); - if (isLoading) return ; + if (isLoadingActiveOrders) return ; - if (error) return ; + if (activeOrdersError) return ; if (activeOrders?.length) { return ( ; + if (isValidatingPastOrders) return ; - if (error) return ; + if (pastOrdersError) return ; if (pastOrders?.length) { return ( These vitals are <1>{{count}} day old", "daysOldVitals_other": "<0>These vitals are <1>{{count}} days old", - "diastolic": "diastolic", - "discard": "Discard", - "error": "Error", - "female": "Female", + "diastolic": "tâm trương", + "discard": "Hủy bỏ", + "error": "Lỗi", + "female": "Nữ", "goToSummary": "Go to Summary", "heartRate": "Heart rate", - "height": "Height", - "loading": "Loading", - "male": "Male", + "height": "Chiều cao", + "loading": "Đang tải", + "male": "Nam", "muac": "MUAC", "noDataRecorded": "No data has been recorded for this patient", - "notes": "Notes", - "other": "Other", + "notes": "Ghi chú", + "other": "Khác", "outOfDateVitals": "<0>These vitals are <1>out of date", "overOneWeekOldVitals": "<0>These vitals are <1>over one week old", "oxygenSaturation": "Oxygen saturation",