Beispiel #1
0
        public FhirResponse InstanceOperation(string type, string id, string operation, Parameters parameters)
        {
            Key key = Key.Create(type, id);

            switch (operation.ToLower())
            {
            case "meta": return(_fhirService.ReadMeta(key));

            case "meta-add": return(_fhirService.AddMeta(key, parameters));

            case "meta-delete":

            default: return(Respond.WithError(HttpStatusCode.NotFound, "Unknown operation"));
            }
        }