public ActionResult <string> Post([FromBody] jsonDoc data)
        {
            switch (data.type.ToLower())
            {
            case "hl7":
                return(_context.Parse(data.body, InputDataFormat.HL7));

            case "xml":
                return(_context.Parse(data.body, InputDataFormat.XML));

            case "delimited":
                return(_context.Parse(data.body, InputDataFormat.Delimited));

            case "mts":
                return(_context.Parse(data.body, InputDataFormat.MTS));

            case "psedi":
                return(_context.Parse(data.body, InputDataFormat.psEDI));

            case "parada":
                return(_context.Parse(data.body, InputDataFormat.Parada));

            case "json":
                return(_context.Parse(data.body, InputDataFormat.JSON));

            case "tagged":
            case "mot":
                return(_context.Parse(data.body, InputDataFormat.Tagged));

            default:
                break;
            }

            return(_context.Parse(data.body));
        }
 public ActionResult <string> PostHL7([FromBody] jsonDoc data)
 {
     return(_context.Parse(data.body, InputDataFormat.HL7));
 }