Table of Contents

Class DiagnosisController

Namespace
adas_core.Controllers
Assembly
adas-core.dll
[Route("diagnosis")]
[ApiController]
public class DiagnosisController : ControllerBase
Inheritance
DiagnosisController
Inherited Members
Extension Methods

Constructors

DiagnosisController(IDiagnosisService)

public DiagnosisController(IDiagnosisService diagnosisService)

Parameters

diagnosisService IDiagnosisService

Methods

ProcessRequest(DiagnosisDto)

Processes an ORU_R01 HL7-style request from a diagnosis payload, persisting it either synchronously or asynchronously depending on the caller's wait-for-result preference.

[HttpPost]
[AuthorizeRoles(PermissionEnum.RolesType.AuthSome)]
[PermissionAuthorize("Source", "DisplayId")]
public IActionResult ProcessRequest(DiagnosisDto diagnosisDto)

Parameters

diagnosisDto DiagnosisDto

The diagnosis payload received in the request body, containing the patient number, location, observation data, observations, diagnosis text, message timestamp, and a flag indicating whether the caller wants to wait for the result.

Returns

IActionResult

An IActionResult that returns an HTTP 200 OK response when the request is accepted for processing.