# Class Admission

Namespace
  adas_core.Domain.Models.MongoModels

Assembly
  adas-core.Domain.dll

Represents an admission, typically encapsulating data and behavior related to the process of admitting an entity, such as a student or patient, into an institution or system.

    public class Admission

Inheritance
  object
  Admission

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## Properties

### AdmissionDate

    public DateTime AdmissionDate { get; set; }

#### Property Value

DateTime

### Allergies

    public List<OptionList>? Allergies { get; set; }

#### Property Value

List<OptionList>

### Diagnosis

    public OptionList? Diagnosis { get; set; }

#### Property Value

OptionList

### DiagnosisAux

    public string? DiagnosisAux { get; set; }

#### Property Value

string

### Id

    public ObjectId Id { get; set; }

#### Property Value

ObjectId

### Insulation

    public OptionList? Insulation { get; set; }

#### Property Value

OptionList

### LanguageBarrier

    public List<OptionList>? LanguageBarrier { get; set; }

#### Property Value

List<OptionList>

### Nhc

    public string Nhc { get; set; }

#### Property Value

string

### Origin

    public OptionList? Origin { get; set; }

#### Property Value

OptionList

### OriginAux

    public string? OriginAux { get; set; }

#### Property Value

string

### PassiveSitting

    public OptionList? PassiveSitting { get; set; }

#### Property Value

OptionList

### PatientLocation

    public PatientLocation? PatientLocation { get; set; }

#### Property Value

PatientLocation

### Person

    public Person? Person { get; set; }

#### Property Value

Person

### PointOfCareId

    public ObjectId? PointOfCareId { get; set; }

#### Property Value

ObjectId?

### UnitId

    public ObjectId UnitId { get; set; }

#### Property Value

ObjectId

## Methods

### ToString()

Returns a human-readable string representation of the Admission, conditionally including NHC, Person, Admission Date, location, Origin, Diagnosis, and any associated Allergies only when they are present.

    public override string ToString()

#### Returns

string

  A formatted string in the form "Admission [...]" summarizing the Admission's key properties.