public AzureDocDBFHIRStore(IFHIRHistoryStore history) { this.client = new DocumentClient(new Uri(EndpointUri), PrimaryKey); historystore = history; ParserSettings ps = new ParserSettings(); ps.AcceptUnknownMembers = true; ps.AllowUnrecognizedEnums = true; parser = new FhirJsonParser(ps); _initTask = Init(); }
public AzureDocDBFHIRStore(IFHIRHistoryStore history) { _secresolve = new SecretResolver(); this.client = new DocumentClient(new Uri(_secresolve.GetSecret("DBStorageEndPointUri").Result), _secresolve.GetSecret("DBStoragePrimaryKey").Result, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct, ConnectionProtocol = Protocol.Tcp }); historystore = history; ParserSettings ps = new ParserSettings(); ps.AcceptUnknownMembers = true; ps.AllowUnrecognizedEnums = true; parser = new FhirJsonParser(ps); string DBSTORAGE = _secresolve.GetConfiguration("FHIRDBStorage"); fixeddb = (DBSTORAGE == null || DBSTORAGE.ToUpper().StartsWith("F")); int.TryParse(_secresolve.GetConfiguration("FHIRMAXDOCSIZE", "500000"), out imaxdocsize); DBName = _secresolve.GetConfiguration("FHIRDB", "FHIR3"); }