/// <summary> /// Creates a new NbrSurveillance viewmodel with the data /// from the given NbrSurveillance model entity. /// </summary> /// <param name="nbrSurveillance">NbrSurveillance model entity to get values from.</param> public EditNbrSurveillanceViewModel(NbrSurveillance nbrSurveillance) { Id = nbrSurveillance.PatientId; TimeSlot = nbrSurveillance.TimeSlot; Eeg = nbrSurveillance.Eeg; AEeg = nbrSurveillance.AEeg; TfUltrasound = nbrSurveillance.TfUltrasound; CnsExploration = new CnsExplorationViewModel(nbrSurveillance.CnsExploration); Analysis = new AnalysisViewModel(nbrSurveillance.Analysis); }
/// <summary> /// Creates a new Hypothermia viewmodel with the data /// from the given Hypothermia model entity. /// </summary> /// <param name="hypothermia">Hypothermia model entity to get values from.</param> public EditHypothermiaViewModel(Hypothermia hypothermia) { TimeSlot = hypothermia.TimeSlot; CnsUs = hypothermia.CnsUs; AEeg = hypothermia.AEeg; Eeg = hypothermia.Eeg; Convulsion = hypothermia.Convulsion; Cr = hypothermia.Cr; CnsExploration = new CnsExplorationViewModel(hypothermia.CnsExploration); Analysis = new AnalysisViewModel(hypothermia.Analysis); }
/// <summary> /// Empty constructor. /// </summary> public EditHypothermiaViewModel() { CnsExploration = new CnsExplorationViewModel(); Analysis = new AnalysisViewModel(); }
/// <summary> /// Empty constructor. /// </summary> public EditNbrSurveillanceViewModel() { CnsExploration = new CnsExplorationViewModel(); Analysis = new AnalysisViewModel(); }