Esempio n. 1
0
 /// <summary>
 /// Constructs a new DependentModel based on a PatientModel.
 /// </summary>
 /// <param name="userDeleagate">The UserDelegate model.</param>
 /// <param name="patientModel">The Patien Model to be converted.</param>
 /// <returns>The Dependent Model.</returns>
 public static DependentModel CreateFromModels(UserDelegate userDeleagate, PatientModel patientModel)
 {
     return(new DependentModel()
     {
         OwnerId = userDeleagate.OwnerId,
         DelegateId = userDeleagate.DelegateId,
         Version = userDeleagate.Version,
         DependentInformation = DependentInformation.FromPatientModel(patientModel),
     });
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs a new DependentModel based on a PatientModel.
 /// </summary>
 /// <param name="resourceDeleagate">The ResourceDelegate model.</param>
 /// <param name="patientModel">The Patien Model to be converted.</param>
 /// <returns>The Dependent Model.</returns>
 public static DependentModel CreateFromModels(ResourceDelegate resourceDeleagate, PatientModel patientModel)
 {
     return(new DependentModel()
     {
         OwnerId = resourceDeleagate.ResourceOwnerHdid,
         DelegateId = resourceDeleagate.ProfileHdid,
         ReasonCode = resourceDeleagate.ReasonCode,
         Version = resourceDeleagate.Version,
         DependentInformation = DependentInformation.FromPatientModel(patientModel),
     });
 }