Exemplo n.º 1
0
 public FhirBaseOperationService(ICommonFactory ICommonFactory, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IServerSearchParameterServiceFactory IServerSearchParameterServiceFactory)
 {
     this.ICommonFactory = ICommonFactory;
     this.IResourceServiceOutcomeFactory       = IResourceServiceOutcomeFactory;
     this.ISearchParameterServiceFactory       = ISearchParameterServiceFactory;
     this.IServerSearchParameterServiceFactory = IServerSearchParameterServiceFactory;
 }
Exemplo n.º 2
0
 public DeleteHistoryIndexesOperation(IResourceServices ResourceServices, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IRequestMetaFactory IRequestMetaFactory)
 {
     this.IResourceServices = ResourceServices;
     this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory;
     this.ISearchParameterServiceFactory = ISearchParameterServiceFactory;
     this.IRequestMetaFactory            = IRequestMetaFactory;
 }
Exemplo n.º 3
0
 public ConnectathonAnswerOperation(IResourceServices IResourceServices, IResourceServiceOutcomeFactory IResourceServiceOutcomeFactory, ISearchParameterServiceFactory ISearchParameterServiceFactory, IRequestMetaFactory IRequestMetaFactory)
 {
     this.IResourceServices = IResourceServices;
     this.ISearchParameterServiceFactory = ISearchParameterServiceFactory;
     this.IResourceServiceOutcomeFactory = IResourceServiceOutcomeFactory;
     this.IRequestMetaFactory            = IRequestMetaFactory;
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 9
0
 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;
 }
Exemplo n.º 10
0
 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;
 }
Exemplo n.º 11
0
        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;
 }