55 lines
1.5 KiB
C#
55 lines
1.5 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace vita_asistente.Models
|
|
{
|
|
public class Pacientes
|
|
{
|
|
[Key]
|
|
[StringLength(36)]
|
|
public string Id { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(50)]
|
|
public string DocumentType { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[StringLength(20)]
|
|
public string DocumentNumber { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[StringLength(100)]
|
|
public string FirstName { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[StringLength(100)]
|
|
public string LastName { get; set; } = string.Empty;
|
|
|
|
[StringLength(256)]
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
public DateTime? BirthDate { get; set; }
|
|
|
|
public string? Address { get; set; } = string.Empty;
|
|
|
|
[StringLength(20)]
|
|
public string Phone { get; set; } = string.Empty;
|
|
|
|
[StringLength(100)]
|
|
public string EmergencyContactName{ get; set; } = string.Empty;
|
|
|
|
[StringLength(20)]
|
|
public string EmergencyContactPhone { get; set; } = string.Empty;
|
|
|
|
[StringLength(50) ]
|
|
public string BloodType { get; set; } = string.Empty;
|
|
|
|
[StringLength(500)]
|
|
public string AllergiesDescription{ get; set; }= string.Empty;
|
|
|
|
public bool HasMedicationAllergies { get; set; }
|
|
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
} |