Esempio n. 1
0
        public List <Service> GetServices(Domain2.Cases.Case @case, Provider provider, DateTime refDate)
        {
            var insurance      = @case.GetActiveInsuranceAtDate(refDate)?.Insurance;
            var providerTypeID = provider.ProviderTypeID;

            return(GetServices(insurance, providerTypeID, refDate));
        }
Esempio n. 2
0
        public static Case MapCase(Domain2.Cases.Case source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new Case
            {
                ID      = source.ID,
                Patient = MapPatient(source.Patient),
                ActiveAuthorizations = source.GetActiveAuthorizations().Select(MapAuthorization),
                ActiveInsurance      = MapInsurance(source.GetActiveInsuranceAtDate(DateTime.Now)?.Insurance)
            };

            return(result);
        }