public IActionResult NewPatient([FromBody] Newpatient patient) { Logger.LogDebug(nameof(NewPatient)); if (!IsAuthenticated()) { return(BadRequest()); } // TODO: A new patient has been created in the source EHR system. Not implemented, yet. return(Ok()); }
public async Task <object> NewPatientAsync(Newpatient patient) { _logger.LogDebug(nameof(NewPatientAsync)); patient.Meta = new Meta { DataModel = "PatientAdmin", EventType = "NewPatient", EventDateTime = DateTime.UtcNow.ToString("s", System.Globalization.CultureInfo.InvariantCulture), Destinations = new Collection <Destinations> { new Destinations() { ID = _config.PatientAdmin_Destination_ID, Name = _config.PatientAdmin_Destination_Name } } }; var result = await _client.PostAsync <object>(patient); return(result); }