public FhirResponse InstanceOperation(string type, string id, string operation, Parameters parameters) { Key key = Key.Create(type, id); switch (operation.ToLower()) { case "meta": return(service.ReadMeta(key)); case "meta-add": return(service.AddMeta(key, parameters)); case "meta-delete": case "document": case "$everything": // patient default: return(Respond.WithError(HttpStatusCode.NotFound, "Unknown operation")); } }