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); }
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)); }