public FhirBaseOperationService(ICommonFactory ICommonFactory, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IServerSearchParameterServiceFactory IServerSearchParameterServiceFactory) { this.ICommonFactory = ICommonFactory; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.ISearchParameterServiceFactory = ISearchParameterServiceFactory; this.IServerSearchParameterServiceFactory = IServerSearchParameterServiceFactory; }
public DeleteHistoryIndexesOperation(IResourceServices ResourceServices, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IRequestMetaFactory IRequestMetaFactory) { this.IResourceServices = ResourceServices; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.ISearchParameterServiceFactory = ISearchParameterServiceFactory; this.IRequestMetaFactory = IRequestMetaFactory; }
public ConnectathonAnswerOperation(IResourceServices IResourceServices, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IRequestMetaFactory IRequestMetaFactory) { this.IResourceServices = IResourceServices; this.ISearchParameterServiceFactory = ISearchParameterServiceFactory; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.IRequestMetaFactory = IRequestMetaFactory; }
public void Test_HISearchMedicareNumber() { IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory = CommonTestSetup.TestSetupMocks.GetIResourceServiceOutcomeFactory(); IPyroFhirUriFactory IPyroFhirUriFactory = CommonTestSetup.TestSetupMocks.GetIPyroFhirUriFactory(); IResourceServices IResourceServices = GetIResourceServices(); IGlobalProperties IGlobalProperties = CommonTestSetup.TestSetupMocks.GetIGlobalProperties(); IHiServiceApi IHiServiceApi = GetMokIHiServiceApi(); IMedicareNumberParser IMedicareNumberParser = new MedicareNumberParser(); IIndividualHealthcareIdentifierParser IIndividualHealthcareIdentifierParser = new IndividualHealthcareIdentifierParser(); IDVANumberParser IDVANumberParser = new DVANumberParser(); IRequestMetaFactory RequestMetaFactory = CommonTestSetup.TestSetupMocks.GetIRequestMetaFactory(); INationalHealthcareIdentifierInfo INationalHealthcareIdentifierInfo = new NationalHealthcareIdentifierInfo(); IMedicareNumberInfo IMedicareNumberInfo = new MedicareNumberInfo(); Common.PyroHealthFhirResource.CodeSystems.IPyroFhirServer IPyroFhirServerCodeSystem = new Common.PyroHealthFhirResource.CodeSystems.PyroFhirServer(); IHISearchOrValidateOperation IHISearchOrValidateOperationService = new IHISearchOrValidateOperation( IResourceServiceOutcomeFactory, IResourceServices, IGlobalProperties, IHiServiceApi, RequestMetaFactory, IMedicareNumberParser, IIndividualHealthcareIdentifierParser, IDVANumberParser, INationalHealthcareIdentifierInfo, IMedicareNumberInfo, IPyroFhirServerCodeSystem); OperationClass OperationClass = new OperationClass() { Scope = Common.Enum.FhirOperationEnum.OperationScope.Resource, Type = Common.Enum.FhirOperationEnum.OperationType.xIHISearchOrValidate }; //var SearchParameterGeneric = new Common.Search.SearchParameterGeneric(); var PyroRequestUri = CommonTestSetup.TestSetupMocks.GetIPyroRequestUriFactory().CreateFhirRequestUri(); PyroRequestUri.FhirRequestUri = CommonTestSetup.TestSetupMocks.GetIPyroRequestUriFactory().CreateFhirRequestUri().FhirRequestUri = new Pyro.Common.Tools.UriSupport.PyroFhirUri(CommonTestSetup.TestSetupMocks.GetIPrimaryServiceRootCache()); PyroRequestUri.FhirRequestUri.Parse($"{StaticTestData.FhirEndpoint()}/{ResourceType.Patient.GetLiteral()}/{Common.Enum.FhirOperationEnum.OperationType.xIHISearchOrValidate.GetPyroLiteral()}"); IRequestMeta RequestMeta = RequestMetaFactory.CreateRequestMeta(); RequestMeta.PyroRequestUri = PyroRequestUri; RequestMeta.RequestHeader = CommonTestSetup.TestSetupMocks.GetIRequestHeaderFactory().CreateRequestHeader(); RequestMeta.SearchParameterGeneric = CommonTestSetup.TestSetupMocks.GetISearchParameterGenericFactory().CreateDtoSearchParameterGeneric(); Parameters ParametersResource = GenerateRequestParametersResource(); IResourceServiceOutcome ResourceServiceOutcome = IHISearchOrValidateOperationService.IHISearchOrValidate( OperationClass, ParametersResource, RequestMeta ); Assert.NotNull(ResourceServiceOutcome.ResourceResult); Assert.AreEqual(ResourceType.Parameters.GetLiteral(), ResourceServiceOutcome.ResourceResult.TypeName); }
public MetadataService(IPrimaryServiceRootCache IPrimaryServiceRootCache, IGlobalProperties IGlobalProperties, IServiceSearchParameterService IServiceSearchParameterService, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, IDatabaseOperationOutcomeFactory IDatabaseOperationOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IServiceCompartmentRepository IServiceCompartmentRepository) { this.IPrimaryServiceRootCache = IPrimaryServiceRootCache; this.IGlobalProperties = IGlobalProperties; this.IServiceSearchParameterService = IServiceSearchParameterService; this.IDatabaseOperationOutcomeFactory = IDatabaseOperationOutcomeFactory; this.ISearchParameterServiceFactory = ISearchParameterServiceFactory; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.IServiceCompartmentRepository = IServiceCompartmentRepository; }
public BundleTransactionOperation(IResourceServices IResourceServices, IRequestHeaderFactory IRequestHeaderFactory, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterGenericFactory ISearchParameterGenericFactory, IPyroFhirUriFactory IPyroFhirUriFactory, IPyroRequestUriFactory IPyroRequestUriFactory, IRequestMetaFactory IRequestMetaFactory) { this.IResourceServices = IResourceServices; this.IRequestHeaderFactory = IRequestHeaderFactory; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.IPyroFhirUriFactory = IPyroFhirUriFactory; this.ISearchParameterGenericFactory = ISearchParameterGenericFactory; this.IPyroRequestUriFactory = IPyroRequestUriFactory; this.IRequestMetaFactory = IRequestMetaFactory; }
public ServerInitializeOperationService( IRepositorySwitcher IRepositorySwitcher, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, IResourceServices IResourceServices, IRequestMetaFactory IRequestMetaFactory, IGlobalProperties IGlobalProperties, IBundleTransactionOperation IBundleTransactionOperation) { this.IRepositorySwitcher = IRepositorySwitcher; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.IResourceServices = IResourceServices; this.IRequestMetaFactory = IRequestMetaFactory; this.IGlobalProperties = IGlobalProperties; this.IBundleTransactionOperation = IBundleTransactionOperation; }
public FhirValidateOperation( IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, IPyroFhirUriFactory IPyroFhirUriFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IResourceServices IResourceServices, IFhirValidationSupport IFhirValidationSupport, IRequestMetaFactory IRequestMetaFactory) { //this.ICommonFactory = ICommonFactory; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.IPyroFhirUriFactory = IPyroFhirUriFactory; this.ISearchParameterServiceFactory = ISearchParameterServiceFactory; this.IResourceServices = IResourceServices; this.IFhirValidationSupport = IFhirValidationSupport; this.IRequestMetaFactory = IRequestMetaFactory; }
public ServerInitializeOperationService( IRepositorySwitcher IRepositorySwitcher, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, IResourceServices IResourceServices, IRequestMetaFactory IRequestMetaFactory, IGlobalProperties IGlobalProperties, IBundleTransactionOperation IBundleTransactionOperation, PyroHealthFhirResource.CodeSystems.IPyroFhirServer IPyroFhirServerCodeSystem) { this.IRepositorySwitcher = IRepositorySwitcher; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.IResourceServices = IResourceServices; this.IRequestMetaFactory = IRequestMetaFactory; this.IGlobalProperties = IGlobalProperties; this.IBundleTransactionOperation = IBundleTransactionOperation; this.IPyroFhirServerCodeSystem = IPyroFhirServerCodeSystem; }
public CompartmentOperation( IRepositorySwitcher IRepositorySwitcher, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, IResourceServices IResourceServices, IRequestMetaFactory IRequestMetaFactory, IServiceCompartmentRepository IServiceCompartmentRepository, IServiceSearchParameterCache IServiceSearchParameterCache, IServiceCompartmentCache IServiceCompartmentCache, IResourceTriggerService IResourceTriggerService, IPyroFhirResource IPyroFhirResource) { this.IRepositorySwitcher = IRepositorySwitcher; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.IResourceServices = IResourceServices; this.IRequestMetaFactory = IRequestMetaFactory; this.IServiceCompartmentRepository = IServiceCompartmentRepository; this.IServiceSearchParameterCache = IServiceSearchParameterCache; this.IServiceCompartmentCache = IServiceCompartmentCache; this.IResourceTriggerService = IResourceTriggerService; this.IPyroFhirResource = IPyroFhirResource; }
public CompartmentOperation( IRepositorySwitcher IRepositorySwitcher, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, IResourceServices IResourceServices, IRequestMetaFactory IRequestMetaFactory, IServiceCompartmentRepository IServiceCompartmentRepository, IServiceSearchParameterCache IServiceSearchParameterCache, IServiceCompartmentCache IServiceCompartmentCache) { this.IRepositorySwitcher = IRepositorySwitcher; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.IResourceServices = IResourceServices; this.IRequestMetaFactory = IRequestMetaFactory; this.IServiceCompartmentRepository = IServiceCompartmentRepository; this.IServiceSearchParameterCache = IServiceSearchParameterCache; this.IServiceCompartmentCache = IServiceCompartmentCache; var PyroHealthCodeSystem = PyroHealthInformation.PyroServerCodeSystem.GetCodeSystem(); PyroOrgUrl = $"{PyroHealthCodeSystem.Url}/{PyroHealthInformation.PyroServerCodeSystem.Codes.CompartmentDefinition.GetPyroLiteral()}"; }
public ResourceReportOperation(IResourceServices IResourceServices, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory) { this.IResourceServices = IResourceServices; this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory; this.ISearchParameterServiceFactory = ISearchParameterServiceFactory; }