public void Setup()
        {
            _factory        = new Factory();
            _uow            = new UnitOfWork(new SyncContext());
            _testEncounters = _factory.GenerateTestEncountersByType(1);
            var _encounter     = _testEncounters.First();
            var _patient       = _testEncounters.First().Patient;
            var _emrRepository = new EmrRepository();
            var _visitType     = _emrRepository.GetVisitTypeByFeature(_encounter.EncounterType.IqcareId.Value);
            var location       = _emrRepository.GetLocation(1024);
            var concepts       = _uow.MConceptRepository.GetAllByEncounterType(_encounter.EncounterTypeId).ToList();
            var htslookups     = _uow.LookupHtsRepository.GetAll().ToList();

            _encounterCreated          = new EncounterCreated(_patient, _visitType, _encounter, location, concepts, htslookups);
            _createEmrEncounterHandler = new CreateEmrEncounterHandler();
        }
Ejemplo n.º 2
0
 public IQVisitType GetVisitType(int featureId)
 {
     return(EmrRepository.GetVisitTypeByFeature(featureId));
 }