Пример #1
0
        public FhirResponse Transaction(Bundle bundle)
        {
            var interactions = localhost.GetInteractions(bundle);

            transfer.Internalize(interactions);

            store.Add(interactions);
            index.Process(interactions);
            return(Respond.Success);

            //return Transaction(interactions);
        }
Пример #2
0
        public FhirResponse Transaction(Bundle bundle)
        {
            var interactions = localhost.GetInteractions(bundle);

            transfer.Internalize(interactions);

            fhirStore.Add(interactions);
            fhirIndex.Process(interactions);
            transfer.Externalize(interactions);

            bundle = localhost.CreateBundle(Bundle.BundleType.TransactionResponse).Append(interactions);

            return(Respond.WithBundle(bundle));
        }